Skip to content

Tolerate missing Actions create-PR permission in stats bot - #211

Merged
godofecht merged 1 commit into
mainfrom
fix/stats-pr-permissions
Aug 5, 2026
Merged

godofecht merged 1 commit into
mainfrom
fix/stats-pr-permissions

Conversation

@godofecht

Copy link
Copy Markdown
Contributor

Summary

The stats bot can push chore/repository-stats, but this repository does not allow GitHub Actions to create pull requests. The previous workflow failed the job after a successful push.

Push the branch, try to open/update the PR, and if that is forbidden emit a warning with the compare URL and exit 0. Enable Settings → Actions → General → Allow GitHub Actions to create and approve pull requests if you want fully hands-off PR opening.

Test plan

  • CI green
  • Next stats run that has a diff pushes the branch without failing when PR creation is denied

Made with Cursor

The bot can push chore/repository-stats, but this repo does not allow
GitHub Actions to open pull requests. Treat a successful branch push as
success and warn with the compare URL instead of failing the job.

Co-authored-by: Cursor <[email protected]>
@godofecht
godofecht merged commit c033a99 into main Aug 5, 2026
12 checks passed
@godofecht
godofecht deleted the fix/stats-pr-permissions branch August 5, 2026 20:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant