add admin override option to ansible-pcp sync workflow#250
Merged
richm merged 1 commit intolinux-system-roles:mainfrom Aug 14, 2025
Merged
add admin override option to ansible-pcp sync workflow#250richm merged 1 commit intolinux-system-roles:mainfrom
richm merged 1 commit intolinux-system-roles:mainfrom
Conversation
Reviewer's guide (collapsed on small PRs)Reviewer's GuideUpdates the ansible-pcp subtree sync workflow to invoke Sequence diagram for admin override in PR merge workflowsequenceDiagram
participant Workflow as GitHub Actions Workflow
participant gh as GitHub CLI
participant GitHub as GitHub API
Workflow->>gh: gh pr merge "$PR_URL" --squash --delete-branch --admin
gh->>GitHub: Merge PR with admin override
GitHub-->>gh: PR merged, branch deleted
gh-->>Workflow: Success message
File-Level Changes
Tips and commandsInteracting with Sourcery
Customizing Your ExperienceAccess your dashboard to:
Getting Help
|
richm
approved these changes
Aug 14, 2025
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.
As observed in #249, a PR needs at least 1 approval to allow merging. To work around this in the sync ansible-pcp git subtree action, the --admin option is now used when merging the PR. This allows bypassing the approval.
This may also require a change to the branch protection rules. It looks like the "Allow specified actors to bypass required pull requests" option needs to be enabled for the --admin option to work.
Summary by Sourcery
Enable admin override when merging sync ansible-pcp subtree PRs
Enhancements: