-
Notifications
You must be signed in to change notification settings - Fork 0
Document GitHub Actions PR creation permission requirement for release workflow #113
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
…sions Co-authored-by: huangyiirene <[email protected]>
Co-authored-by: huangyiirene <[email protected]>
Co-authored-by: huangyiirene <[email protected]>
Co-authored-by: huangyiirene <[email protected]>
📋 Changelog PreviewThe following changes will be included in the next release:
🦋 �[31merror�[39m Error: Failed to find where HEAD diverged from "main". Does "main" exist and it's synced with remote? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull request overview
This PR adds comprehensive documentation to resolve GitHub Actions workflow failures when attempting to create pull requests. The release workflow was failing because the required repository and organization settings weren't enabled to allow GitHub Actions to create PRs.
Changes:
- Created three new documentation files providing setup instructions at different levels of detail (admin quick-start, checklist, and detailed guide)
- Updated existing documentation and workflow files with inline comments and cross-references to the new guides
- Added maintainer instructions to the main README
Reviewed changes
Copilot reviewed 6 out of 6 changed files in this pull request and generated 2 comments.
Show a summary per file
| File | Description |
|---|---|
.github/FOR_ADMINS.md |
Quick 2-minute action plan for organization owners with security context and step-by-step instructions |
.github/RELEASE_CHECKLIST.md |
Setup checklist with workflow diagram and troubleshooting section |
.github/RELEASE_SETUP.md |
Comprehensive troubleshooting guide with URL templates and security considerations |
.github/workflows/release.yml |
Added inline comments documenting the required permission settings |
.github/WORKFLOWS.md |
Added "Required Repository Settings" section with links to setup guides |
README.md |
Added "For Repository Maintainers" section with release process setup and changeset instructions |
| ## Questions? | ||
|
|
||
| **Documentation**: | ||
| - Quick Setup: [.github/RELEASE_CHECKLIST.md](.github/RELEASE_CHECKLIST.md) |
Copilot
AI
Jan 17, 2026
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The relative path in the link is incorrect. The file is located at RELEASE_CHECKLIST.md in the same directory, not .github/RELEASE_CHECKLIST.md. The correct link should be [RELEASE_CHECKLIST.md](RELEASE_CHECKLIST.md).
| - Quick Setup: [.github/RELEASE_CHECKLIST.md](.github/RELEASE_CHECKLIST.md) | |
| - Quick Setup: [RELEASE_CHECKLIST.md](RELEASE_CHECKLIST.md) |
|
|
||
| **Documentation**: | ||
| - Quick Setup: [.github/RELEASE_CHECKLIST.md](.github/RELEASE_CHECKLIST.md) | ||
| - Detailed Guide: [.github/RELEASE_SETUP.md](.github/RELEASE_SETUP.md) |
Copilot
AI
Jan 17, 2026
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The relative path in the link is incorrect. The file is located at RELEASE_SETUP.md in the same directory, not .github/RELEASE_SETUP.md. The correct link should be [RELEASE_SETUP.md](RELEASE_SETUP.md).
| - Detailed Guide: [.github/RELEASE_SETUP.md](.github/RELEASE_SETUP.md) | |
| - Detailed Guide: [RELEASE_SETUP.md](RELEASE_SETUP.md) |
📋 Changelog PreviewThe following changes will be included in the next release:
🦋 �[31merror�[39m Error: Failed to find where HEAD diverged from "main". Does "main" exist and it's synced with remote? |
Release workflow fails with "GitHub Actions is not permitted to create or approve pull requests" because the repository setting is disabled.
Changes
Created documentation:
.github/FOR_ADMINS.md- 2-minute action plan for org owners with security context.github/RELEASE_CHECKLIST.md- Setup checklist with workflow diagram.github/RELEASE_SETUP.md- Detailed troubleshooting guide with URL templatesUpdated existing files:
.github/workflows/release.yml- Inline setup comments.github/WORKFLOWS.md- Required settings sectionREADME.md- Maintainer instructionsRequired Action
Organization owner must enable at both levels:
https://github.com/organizations/{ORG}/settings/actionshttps://github.com/{ORG}/{REPO}/settings/actionsCheck: ☑ Allow GitHub Actions to create and approve pull requests
Context
GitHub introduced this setting in May 2022 to prevent recursive workflow executions. It's safe to enable:
Original prompt
💬 We'd love your input! Share your thoughts on Copilot coding agent in our 2 minute survey.