Skip to content

Bug 2056699 - CI: Auto-merge PRs from admins that are only touching repositories.yaml - #1051

Draft
badboy wants to merge 1 commit into
mainfrom
ci-auto-merge-prs-from-admins-/xpymsqvxkovu
Draft

Bug 2056699 - CI: Auto-merge PRs from admins that are only touching repositories.yaml#1051
badboy wants to merge 1 commit into
mainfrom
ci-auto-merge-prs-from-admins-/xpymsqvxkovu

Conversation

@badboy

@badboy badboy commented Jul 22, 2026

Copy link
Copy Markdown
Member

They are ONLY merged after tests succeed!


We could add additional checks to make sure this only applies to PRs opened by the fog-updater.
It's also currently missing a secret (GH_PAT) that is a Personal Access Token from one of us (e.g. me) with admin privileges, so that the github action can force the merge (and overwriting our "requires a reviewer" protection).

Alternatively we could use either a bot account or a GitHub app with the right permissions, both of which are a bit more involved to do.

)

# Enable auto-merge on the new pull request
pr.enable_automerge(merge_method="REBASE")

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, I just recently added that, but it turns out it doesn't help us much because the workflow won't merge until a review anyway, so we're forcing the merge in the other workflow (see above). Thus we don't need GitHub's own auto-merge workflow

@github-actions

Copy link
Copy Markdown
Contributor

Auto-merge aborted. '.github/workflows/build-test-deploy.yml' was modified. Only repositories.txt changes are merged automatically.

@badboy
badboy force-pushed the ci-auto-merge-prs-from-admins-/xpymsqvxkovu branch from ec3c958 to d45ccb3 Compare July 27, 2026 16:16
Comment thread .github/workflows/build-test-deploy.yml Fixed
@badboy
badboy force-pushed the ci-auto-merge-prs-from-admins-/xpymsqvxkovu branch 2 times, most recently from fb37314 to a3cf194 Compare July 27, 2026 16:20

- name: Generate a token
id: generate-token
uses: actions/create-github-app-token@bcd2ba49218906704ab6c1aa796996da409d3eb1 # v3.2.0
@badboy
badboy force-pushed the ci-auto-merge-prs-from-admins-/xpymsqvxkovu branch from a3cf194 to a34218d Compare July 27, 2026 16:23
@badboy

badboy commented Jul 27, 2026

Copy link
Copy Markdown
Member Author

This is now using a (not-yet-set-up) GitHub app to get a token to use.

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.

2 participants