Repository navigation
New workflow to copy linked issue labels to PRs - #11386
Merged
Merged
Conversation
Jefffrey
commented
Oct 5, 2026
|
|
||
| concurrency: | ||
| group: ${{ github.repository }}-${{ github.head_ref || github.sha }}-${{ github.workflow }} | ||
| group: ${{ github.repository }}-${{ github.event.pull_request.number }}-${{ github.workflow }} |
Contributor
Author
There was a problem hiding this comment.
this was something identified by codex on the side; if PRs from different forks have same name it can cause issues, so we rely on PR number to avoid conflicts. this follows what we do in other workflows:
arrow-rs/.github/workflows/ci.yml
Lines 27 to 29 in 103ebe7
since this runs only on PRs, we dont need a fallback to github.sha
Contributor
Author
|
reminder to self: if/once this is merged, go back to my fork and clean it up |
Contributor
Contributor
Author
it uses a github api to get those issues, so as long as github itself recognizes the issues as being linked to the PR in that way the solution will work |
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.
Which issue does this PR close?
Rationale for this change
From issue:
What changes are included in this PR?
Instead of pulling in another action, just achieve it simply with actions github script. This implementation was drafted by codex and iterated to get the simplest form, then I did some further editing of the code.
New workflow that runs only on PR open, and if PR closes an issue (just linking it doesnt trigger this) then it fetches labels from that issue, and if is one of the 4 whitelisted labels copies it onto the PR
Are these changes tested?
Tested in my fork:
Are there any significant user-facing changes?
Just dev process changes