Skip to content

Add automerge workflow#202

Merged
lumachad merged 1 commit into
amd-stagingfrom
users/github/automerge
Jul 14, 2026
Merged

Add automerge workflow#202
lumachad merged 1 commit into
amd-stagingfrom
users/github/automerge

Conversation

@lumachad

@lumachad lumachad commented Jul 13, 2026

Copy link
Copy Markdown
Collaborator

Adds a GitHub Actions workflow that every 6 hours syncs sourceware/master into
origin/amd-staging. The workflow also triggers on closure of fast-forward
or conflict PRs to immediately start the next sync.

On a clean merge, a fast-forward PR is opened against amd-staging for CI
validation. On a conflict, a conflict PR is opened for manual resolution.
Only one PR of either type is allowed open at a time and further syncs are
postponed until it is resolved.

The fast-forward PR range is expressed as merge-base..last-clean-commit
so the title and compare URL are always meaningful even when only one
commit is being merged.

The script lives in .github/scripts/automerge.py and is documented in
.github/scripts/automerge.md.

@lumachad lumachad self-assigned this Jul 13, 2026
@lumachad lumachad added the ci:skip Skip all pre-commit / CI jobs while the label is up label Jul 13, 2026
@lumachad lumachad force-pushed the users/github/automerge branch 10 times, most recently from 76113e7 to 79f487d Compare July 13, 2026 12:24
@lumachad lumachad marked this pull request as ready for review July 13, 2026 12:26
@lumachad lumachad requested a review from a team as a code owner July 13, 2026 12:26
@lumachad lumachad force-pushed the users/github/automerge branch from 79f487d to e76c576 Compare July 13, 2026 12:29
Comment thread .github/scripts/automerge.py Outdated
Comment thread .github/workflows/automerge.yml
Comment thread .github/scripts/automerge.py
Comment thread .github/scripts/automerge.py Outdated
Comment thread .github/scripts/automerge.py Outdated
Comment thread .github/workflows/automerge.yml
@lumachad lumachad force-pushed the users/github/automerge branch from e76c576 to c56e8d8 Compare July 14, 2026 11:37
@lumachad lumachad requested a review from spatrang July 14, 2026 11:39
Adds a GitHub Actions workflow that hourly syncs sourceware/master into
origin/amd-staging. The workflow also triggers on closure of fast-forward
or conflict PRs to immediately start the next sync.

On a clean merge, a fast-forward PR is opened against amd-staging for CI
validation. On a conflict, a conflict PR is opened for manual resolution.
Only one PR of either type is allowed open at a time and further syncs are
postponed until it is resolved.

The fast-forward PR range is expressed as merge-base..last-clean-commit
so the title and compare URL are always meaningful even when only one
commit is being merged.

The script lives in .github/scripts/automerge.py and is documented in
.github/scripts/automerge.md.
@lumachad lumachad force-pushed the users/github/automerge branch from c56e8d8 to 6ef8ca9 Compare July 14, 2026 12:36

@spatrang spatrang left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

LGTM

@lumachad lumachad merged commit 29fbb53 into amd-staging Jul 14, 2026
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ci:skip Skip all pre-commit / CI jobs while the label is up

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants