Repository navigation
ci: link the opened PR, and explain the PR-permission failure - #84
Merged
Merged
Conversation
When create-pull-request fails, add an error annotation that links to the repo's Actions settings and says which checkbox to enable, since GitHub's error only links to the REST docs. When it creates or updates a PR, add a notice with the PR link. Applies to the generated deps-update workflow and to update-template-pins. Co-Authored-By: Claude Opus 5.5 <[email protected]>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
When
create-pull-requestfails because the repo doesn't allow Actions to open PRs, GitHub's error only links to the REST docs, which don't say how to fix it.This adds two steps after "Create Pull Request", in the generated
deps-update.ymland inupdate-template-pins.yml:/settings/actionspage and names the checkbox to enable under "Workflow permissions".Pull request created/Pull request updatedwith its URL, shown on the run's summary page.The action does not expose its error message, so the hint is phrased conditionally ("If the error is …").
Testing
Ran the generated
deps-update.yml(with the uv/audit steps replaced by a dummy file change) on a throwaway public repo:Pull request creatednotice showed its URL.update-template-pins.ymlgets the identical steps but was not run.🤖 Generated with Claude Code