Skip to content

Commit 9f4e918

Browse files
ci: Add converted-to-draft label to enforce-draft workflow
Adds a label to PRs that were auto-converted to draft, enabling maintainers to filter and track how often the rule is violated. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
1 parent 5eea42a commit 9f4e918

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

.github/workflows/enforce-draft-pr.yml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,13 @@ jobs:
3838
return;
3939
}
4040
41+
// Label the PR so maintainers can filter/track violations
42+
await github.rest.issues.addLabels({
43+
...repo,
44+
issue_number: pullRequest.number,
45+
labels: ['converted-to-draft'],
46+
});
47+
4148
// Check for existing bot comment to avoid duplicates on reopen
4249
const comments = await github.rest.issues.listComments({
4350
...repo,

0 commit comments

Comments
 (0)