ci: agentic workflow to keep PRs rebased (gh-aw)#357
Draft
igorpecovnik wants to merge 1 commit into
Draft
Conversation
GitHub Agentic Workflow (githubnext/gh-aw): daily + manual, rebases open same-repo PRs labelled `keep-rebased` onto the default branch and pushes the result back via the push-to-pull-request-branch safe output; PRs with unresolvable conflicts get a comment instead. engine: claude (ANTHROPIC_API_KEY, already used by this repo). Both the .md source and the compiled .lock.yml are committed per gh-aw convention. Signed-off-by: Igor Pecovnik <igor@armbian.com>
Contributor
|
Important Review skippedDraft detected. Please check the settings in the CodeRabbit UI or the ⚙️ Run configurationConfiguration used: Organization UI Review profile: CHILL Plan: Pro Run ID: You can disable this status message by setting the Use the checkbox below for a quick retry:
✨ Finishing Touches🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
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.
Adds a GitHub Agentic Workflow (githubnext/gh-aw) that keeps open PRs rebased on the default branch — per the GitHub Agentic Workflows model. Source is
keep-prs-rebased.md; the compiledkeep-prs-rebased.lock.ymlis committed alongside (gh-aw convention,gh aw compile).What it does
workflow_dispatch.keep-rebasedthat's behind the default branch: rebase onto the default branch and push the result back via thepush-to-pull-request-branchsafe output.add-commentsafe output) asking for a manual rebase.claude(usesANTHROPIC_API_KEY, already used byreporting-release-summary.yml).Safety model (why this is low-risk)
keep-rebasedlabel — the label is enforced both in the prompt and by thepush-to-pull-request-branchsafe output. No PRs have it yet, so merging this is inert until you label one.permissions: contents: read, pull-requests: read; the agent never writes to GitHub directly — all writes go through the sanitizedsafe-outputsjob.Security review (required by gh-aw safe-update)
ANTHROPIC_API_KEY— already present and used by this repo; no new external secret. gh-aw'sGH_AW_*tokens fall back toGITHUB_TOKEN.actions/checkout,actions/cache,actions/download-artifact,actions/upload-artifact,actions/github-script,actions/setup-node,github/gh-aw-actions/setup.network: defaults(gh-aw egress allowlist/firewall).Notes / knobs
required-labels: [keep-rebased].dailyto spread load — left as-is for predictability.update-pull-request: { update-branch: true }safe output. Say the word and I'll swap it.Opened as draft for review since it force-pushes to PR branches.