Repository navigation
feat(release): approval-triggered API squash-merge for the release PR - #304
Merged
Merged
Conversation
Adds an opt-in path to merge the persistent next/hotfixes → master release PR via the REST merge API with an explicit commit message = the PR body, triggered by the maintainer's approval and gated on the FULL check set (required AND non-required — coverage badge, release-PR body refresh, …). Why: the manual squash UI drops the body on the mobile Default path (title-only release commits) and auto-appends its own Co-authored-by list (not deduped, not bot-stripped). An explicit-message API merge makes the release commit exactly the curated body — the clean <!-- co-authors --> block is the whole credit — and a direct PUT .../merge succeeds precisely when the PR is mergeable, avoiding native auto-merge's "clean status" refusal. It never approves as the bot; the human approval stays the gate. - github/jobs/release-merge: gate (all check-runs + statuses terminal + passing, self-excluded; standing human approval) then squash-merge with the fresh PR body; pure helpers unit-tested. - workflow-release-merge.yml: reusable wrapper (app-token -> release-merge). - examples/.../release-flow-v4/release-merge.yml: opt-in caller template (pull_request_review approved + check_suite completed). - docs/conventions/release-flow-v4.md: document the opt-in path; unattended auto-merge stays a non-goal. Fixes #303
Shinrai
previously approved these changes
Sep 16, 2026
CodeQL flagged js/file-access-to-http on #304: release-merge/action.mjs read GITHUB_EVENT_PATH and flowed event-derived values (PR number, head branch) into the api() fetch, which CodeQL traces as file data in an outbound request. Take those fields as action inputs from the workflow's github context instead (no readFileSync), with a scan-open-PRs fallback for workflow_dispatch. No behavior change for the review/check_suite triggers; the file->network dataflow — and the alert — are gone.
Shinrai
approved these changes
Sep 16, 2026
This was referenced Sep 16, 2026
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.
🚀 What's Changed
💥 Breaking Changes
No breaking changes
✨ Features
🐛 Bug Fixes
📦 Dependencies
No dependency updates
🔧 Other Changes
No other changes
👥 Contributors