Repository navigation
Label draft PRs with "🚧 Draft/WIP" - #13
Open
OsirisTerje wants to merge 1 commit into
Open
OsirisTerje wants to merge 1 commit into
OsirisTerje wants to merge 1 commit into
Conversation
Calls the reusable draft-label workflow in nunit/.github. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
There was a problem hiding this comment.
🔵 Needs a closer look
The prerequisite nunit/.github#3 is still unmerged, so the shared workflow must become available on main before this PR is merged.
No open issues 🎉
What changed in this PR
Adds a caller workflow to keep the 🚧 Draft/WIP label synchronized with pull request draft status through the shared NUnit workflow.
Changes:
- Runs when PRs are opened, converted to draft, or marked ready for review.
- Uses
pull_request_targetwith label-writing permissions to support fork PRs. - Delegates labeling to
nunit/.githubwithout checking out or running PR code.
| File | Description |
|---|---|
.github/workflows/draft-label.yml |
Adds event triggers, permissions, and the shared workflow call. |
Review effort: Balanced
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.
Adds
.github/workflows/draft-label.yml, which calls the shared workflow in nunit/.github to keep the🚧 Draft/WIPlabel in sync with the PR's draft state:It runs on
pull_request_target, so PRs from forks get a token that can write labels. No PR code is checked out or run.Depends on nunit/.github#3. Merge that first, or this workflow fails because the shared workflow is not on
mainyet.The label already exists in this repo.
🤖 Made by @OsirisTerje with Claude