You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
fix(validate-pr): Remove draft enforcement from composite action (#159)
The `convertPullRequestToDraft` GraphQL mutation requires permissions
that the SDK Maintainer Bot app does not have, causing the action to
fail on non-draft PRs.
Remove the draft conversion and labeling steps entirely rather than
expanding the app's permissions.
Co-authored-by: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
1.**Validates issue references** — Non-maintainer PRs must reference a GitHub issue where the PR author and a maintainer have discussed the approach. PRs that don't meet this requirement are automatically closed with a descriptive comment.
8
-
2.**Enforces draft status** — All PRs must start as drafts. Non-draft PRs are automatically converted and labeled.
7
+
**Validates issue references** — Non-maintainer PRs must reference a GitHub issue where the PR author and a maintainer have discussed the approach. PRs that don't meet this requirement are automatically closed with a descriptive comment.
9
8
10
-
Maintainers (users with `admin` or `maintain` role) are exempt from the issue reference validation. Draft enforcement applies to everyone.
9
+
Maintainers (users with `admin` or `maintain` role) are exempt from validation.
11
10
12
11
## Usage
13
12
@@ -61,10 +60,6 @@ A PR is valid if **any** referenced issue passes all checks:
61
60
- If the issue has assignees, the PR author must be one of them
62
61
- Both the PR author and a maintainer have participated in the issue discussion
63
62
64
-
### Draft enforcement
65
-
66
-
Non-draft PRs are converted to draft and labeled `converted-to-draft` with an informational comment.
67
-
68
63
## Labels
69
64
70
65
The action creates these labels automatically (they don't need to exist beforehand):
@@ -73,4 +68,3 @@ The action creates these labels automatically (they don't need to exist beforeha
73
68
- `missing-issue-reference`— PR body has no issue references
0 commit comments