Repository navigation
Conversation
caugner
force-pushed
the
needs-triage-event-history
branch
from
October 12, 2026 17:30
6f814f1 to
222dc37
Compare
caugner
marked this pull request as ready for review
October 12, 2026 19:12
LeoMcA
requested changes
Oct 14, 2026
caugner
marked this pull request as draft
October 15, 2026 10:09
Match the SHA-pinned actions elsewhere in this repo so Dependabot can bump it.
The `transferred` event fires in the source repository, where `changes.new_issue` describes an issue the token cannot act on. Use `issue.updated_at` of the issue being labeled instead; destination repositories handle transfers via `opened`.
…amps The payload is a snapshot taken at event time, so `updated_at` equals `created_at` for a freshly opened issue and the `changes.old_issue` check is redundant.
Contributor
Author
|
I wonder if we should "own" the |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
Update the
needs-triageworkflow to check paginated issue event history before adding the configured label.unlabeledevent occurred after the triggering event.gh issue editstep withactions/github-script, pinned to v9.0.0.docs/needs-triage.md.Motivation
Preserve maintainer label removals made while the
opened,reopened, ortransferredworkflow is starting.Additional details
Use
issue.updated_atfrom the triggering payload as the cutoff foropened,reopened, andtransferredevents. The payload is a snapshot taken at event time, so it equalscreated_atfor freshly opened issues. Other event types retain the existing add behavior.Manual validation in mdn/needs-triage-test:
needs triage(issue #1).unlabeledevent afteropenedkept the label off (issue #2, run).All three workflow runs completed successfully: run 1, run 2, and run 3.
Related issues and pull requests