Skip to content

fix(validate-pr): Remove draft enforcement from composite action - #159

Merged
stephanie-anderson merged 1 commit into
mainfrom
fix/remove-draft-enforcement
Mar 30, 2026
Merged

fix(validate-pr): Remove draft enforcement from composite action#159
stephanie-anderson merged 1 commit into
mainfrom
fix/remove-draft-enforcement

Conversation

@stephanie-anderson

Copy link
Copy Markdown
Contributor

The convertPullRequestToDraft GraphQL mutation requires permissions that the SDK Maintainer Bot app does not have (contents: write), causing the action to fail on non-draft PRs with:

API call failed: GraphQL: Resource not accessible by integration (convertPullRequestToDraft)

Seen in https://github.com/getsentry/sentry-javascript/actions/runs/23732107280/job/69134480759

Remove the draft conversion and labeling steps entirely rather than expanding the app's permissions. This deletes enforce-draft.js and updates the README accordingly.

Co-Authored-By: Claude Opus 4.6 (1M context) noreply@anthropic.com

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>
@stephanie-anderson
stephanie-anderson marked this pull request as ready for review March 30, 2026 08:28
@github-actions

Copy link
Copy Markdown
Contributor
Warnings
⚠️Could not load custom Dangerfile: .github/test-dangerfile-curl.js Error: ENOENT: no such file or directory, lstat '/github/workspace/.github/test-dangerfile-curl.js'

Generated by 🚫 dangerJS against 33c378e

@stephanie-anderson
stephanie-anderson merged commit 0b52fc6 into mainMar 30, 2026
25 checks passed
stephanie-anderson added a commit to getsentry/sentry-javascript that referenced this pull request Mar 30, 2026
The draft enforcement step was failing with `Resource not accessible by
integration (convertPullRequestToDraft)` due to insufficient app
permissions. The draft conversion has been removed from the shared
action.
Refs getsentry/github-workflows#159
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
stephanie-anderson added a commit to getsentry/sentry-javascript that referenced this pull request Mar 30, 2026
The validate-pr composite action's draft enforcement step was failing
with:
```
API call failed: GraphQL: Resource not accessible by integration (convertPullRequestToDraft)
```
The SDK Maintainer Bot app lacks the permissions needed for the
`convertPullRequestToDraft` GraphQL mutation. Rather than expanding the
app's permissions, draft enforcement has been removed from the shared
action in getsentry/github-workflows#159.
This bumps the pinned SHA to pick up that fix.
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Co-authored-by: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
stephanie-anderson added a commit to getsentry/sentry-capacitor that referenced this pull request Mar 30, 2026
The draft enforcement step was failing due to insufficient app
permissions. It has been removed from the shared action.
Refs getsentry/github-workflows#159
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
stephanie-anderson added a commit to getsentry/sentry-clj that referenced this pull request Mar 30, 2026
The draft enforcement step was failing due to insufficient app
permissions. It has been removed from the shared action.
Refs getsentry/github-workflows#159
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
stephanie-anderson added a commit to getsentry/sentry-dart that referenced this pull request Mar 30, 2026
The draft enforcement step was failing due to insufficient app
permissions. It has been removed from the shared action.
Refs getsentry/github-workflows#159
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
stephanie-anderson added a commit to getsentry/sentry-deno that referenced this pull request Mar 30, 2026
The draft enforcement step was failing due to insufficient app
permissions. It has been removed from the shared action.
Refs getsentry/github-workflows#159
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
stephanie-anderson added a commit to getsentry/sentry-dotnet that referenced this pull request Mar 30, 2026
The draft enforcement step was failing due to insufficient app
permissions. It has been removed from the shared action.
Refs getsentry/github-workflows#159
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
stephanie-anderson added a commit to getsentry/sentry-elixir that referenced this pull request Mar 30, 2026
The draft enforcement step was failing due to insufficient app
permissions. It has been removed from the shared action.
Refs getsentry/github-workflows#159
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
stephanie-anderson added a commit to getsentry/sentry-go that referenced this pull request Mar 30, 2026
The draft enforcement step was failing due to insufficient app
permissions. It has been removed from the shared action.
Refs getsentry/github-workflows#159
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
stephanie-anderson added a commit to getsentry/sentry-godot that referenced this pull request Mar 30, 2026
The draft enforcement step was failing due to insufficient app
permissions. It has been removed from the shared action.
Refs getsentry/github-workflows#159
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
stephanie-anderson added a commit to getsentry/sentry-java that referenced this pull request Mar 30, 2026
The draft enforcement step was failing due to insufficient app
permissions. It has been removed from the shared action.
Refs getsentry/github-workflows#159
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
stephanie-anderson added a commit to getsentry/sentry-kotlin-multiplatform that referenced this pull request Mar 30, 2026
The draft enforcement step was failing due to insufficient app
permissions. It has been removed from the shared action.
Refs getsentry/github-workflows#159
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
stephanie-anderson added a commit to getsentry/sentry-laravel that referenced this pull request Mar 30, 2026
The draft enforcement step was failing due to insufficient app
permissions. It has been removed from the shared action.
Refs getsentry/github-workflows#159
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
stephanie-anderson added a commit to getsentry/sentry-native that referenced this pull request Mar 30, 2026
The draft enforcement step was failing due to insufficient app
permissions. It has been removed from the shared action.
Refs getsentry/github-workflows#159
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
stephanie-anderson added a commit to getsentry/sentry-php that referenced this pull request Mar 30, 2026
The draft enforcement step was failing due to insufficient app
permissions. It has been removed from the shared action.
Refs getsentry/github-workflows#159
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
stephanie-anderson added a commit to getsentry/sentry-python that referenced this pull request Mar 30, 2026
The draft enforcement step was failing due to insufficient app
permissions. It has been removed from the shared action.
Refs getsentry/github-workflows#159
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
stephanie-anderson added a commit to getsentry/sentry-react-native that referenced this pull request Mar 30, 2026
The draft enforcement step was failing due to insufficient app
permissions. It has been removed from the shared action.
Refs getsentry/github-workflows#159
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
stephanie-anderson added a commit to getsentry/sentry-ruby that referenced this pull request Mar 30, 2026
The draft enforcement step was failing due to insufficient app
permissions. It has been removed from the shared action.
Refs getsentry/github-workflows#159
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
stephanie-anderson added a commit to getsentry/sentry-powershell that referenced this pull request Mar 30, 2026
The draft enforcement step was failing due to insufficient app
permissions. It has been removed from the shared action.
Refs getsentry/github-workflows#159
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
stephanie-anderson added a commit to getsentry/sentry-rust that referenced this pull request Mar 30, 2026
The draft enforcement step was failing due to insufficient app
permissions. It has been removed from the shared action.
Refs getsentry/github-workflows#159
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
stephanie-anderson added a commit to getsentry/sentry-symfony that referenced this pull request Mar 30, 2026
The draft enforcement step was failing due to insufficient app
permissions. It has been removed from the shared action.
Refs getsentry/github-workflows#159
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
stephanie-anderson added a commit to getsentry/sentry-unity that referenced this pull request Mar 30, 2026
The draft enforcement step was failing due to insufficient app
permissions. It has been removed from the shared action.
Refs getsentry/github-workflows#159
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
stephanie-anderson added a commit to getsentry/sentry-unreal that referenced this pull request Mar 30, 2026
The draft enforcement step was failing due to insufficient app
permissions. It has been removed from the shared action.
Refs getsentry/github-workflows#159
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
stephanie-anderson added a commit to getsentry/sentry-zig that referenced this pull request Mar 30, 2026
The draft enforcement step was failing due to insufficient app
permissions. It has been removed from the shared action.
Refs getsentry/github-workflows#159
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
stephanie-anderson added a commit to getsentry/sentry-unreal that referenced this pull request Mar 30, 2026
The draft enforcement step was failing due to insufficient app
permissions. It has been removed from the shared action.
Refs getsentry/github-workflows#159
Co-authored-by: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
stephanie-anderson added a commit to getsentry/sentry-clj that referenced this pull request Mar 30, 2026
The draft enforcement step was failing due to insufficient app
permissions. It has been removed from the shared action.
Refs getsentry/github-workflows#159
Co-authored-by: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
stephanie-anderson added a commit to getsentry/sentry-dotnet that referenced this pull request Mar 30, 2026
The draft enforcement step was failing due to insufficient app
permissions. It has been removed from the shared action.
Refs getsentry/github-workflows#159
Co-authored-by: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
stephanie-anderson added a commit to getsentry/sentry-kotlin-multiplatform that referenced this pull request Mar 30, 2026
The draft enforcement step was failing due to insufficient app
permissions. It has been removed from the shared action.
Refs getsentry/github-workflows#159
Co-authored-by: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
stephanie-anderson added a commit to getsentry/sentry-elixir that referenced this pull request Mar 30, 2026
The draft enforcement step was failing due to insufficient app
permissions. It has been removed from the shared action.
Refs getsentry/github-workflows#159
Co-authored-by: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
stephanie-anderson added a commit to getsentry/sentry-godot that referenced this pull request Mar 30, 2026
The draft enforcement step was failing due to insufficient app
permissions. It has been removed from the shared action.
Refs getsentry/github-workflows#159
Co-authored-by: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
stephanie-anderson added a commit to getsentry/sentry-unity that referenced this pull request Mar 30, 2026
The draft enforcement step was failing due to insufficient app
permissions. It has been removed from the shared action.
Refs getsentry/github-workflows#159
Co-authored-by: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
stephanie-anderson added a commit to getsentry/sentry-react-native that referenced this pull request Mar 30, 2026
The draft enforcement step was failing due to insufficient app
permissions. It has been removed from the shared action.
Refs getsentry/github-workflows#159
Co-authored-by: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
stephanie-anderson added a commit to getsentry/sentry-capacitor that referenced this pull request Mar 30, 2026
The draft enforcement step was failing due to insufficient app
permissions. It has been removed from the shared action.
Refs getsentry/github-workflows#159
Co-authored-by: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
stephanie-anderson added a commit to getsentry/sentry-python that referenced this pull request Mar 30, 2026
The validate-pr action's draft enforcement step was failing with:
```
API call failed: GraphQL: Resource not accessible by integration (convertPullRequestToDraft)
```
Draft enforcement has been removed from the shared action in
getsentry/github-workflows#159. This bumps the pinned SHA.
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Co-authored-by: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
stephanie-anderson added a commit to getsentry/sentry-ruby that referenced this pull request Mar 30, 2026
The draft enforcement step was failing due to insufficient app
permissions. It has been removed from the shared action.
Refs getsentry/github-workflows#159
Co-authored-by: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
stephanie-anderson added a commit to getsentry/sentry-rust that referenced this pull request Mar 30, 2026
The validate-pr action's draft enforcement step was failing with:
```
API call failed: GraphQL: Resource not accessible by integration (convertPullRequestToDraft)
```
Draft enforcement has been removed from the shared action in
getsentry/github-workflows#159. This bumps the pinned SHA.
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Co-authored-by: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
stephanie-anderson added a commit to getsentry/sentry-go that referenced this pull request Mar 30, 2026
The draft enforcement step was failing due to insufficient app
permissions. It has been removed from the shared action.
Refs getsentry/github-workflows#159
Co-authored-by: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
stephanie-anderson added a commit to getsentry/sentry-dart that referenced this pull request Mar 30, 2026
The draft enforcement step was failing due to insufficient app
permissions. It has been removed from the shared action.
Refs getsentry/github-workflows#159
Co-authored-by: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
markushi pushed a commit to getsentry/sentry-java that referenced this pull request Mar 30, 2026
The draft enforcement step was failing due to insufficient app
permissions. It has been removed from the shared action.
Refs getsentry/github-workflows#159
Co-authored-by: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
stephanie-anderson added a commit to getsentry/sentry-cocoa that referenced this pull request Mar 30, 2026
The draft enforcement step was failing due to insufficient app
permissions. It has been removed from the shared action.
Refs getsentry/github-workflows#159
Co-authored-by: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
stephanie-anderson added a commit to getsentry/sentry-lynx that referenced this pull request Mar 30, 2026
The draft enforcement step was failing due to insufficient app
permissions. It has been removed from the shared action.
Refs getsentry/github-workflows#159
Co-authored-by: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant

@stephanie-anderson