Skip to content

feat(release): approval-triggered API squash-merge for the release PR - #304

Merged
Shinrai merged 2 commits into
nextfrom
feat/release-merge-api-squash
Sep 16, 2026
Merged

Shinrai merged 2 commits into
nextfrom
feat/release-merge-api-squash

Conversation

@cldmv-bot

@cldmv-bot cldmv-bot Bot commented Sep 16, 2026 •

Copy link
Copy Markdown
Contributor

🚀 What's Changed

💥 Breaking Changes

No breaking changes

✨ Features

🐛 Bug Fixes

📦 Dependencies

No dependency updates

🔧 Other Changes

No other changes

👥 Contributors

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
@cldmv-bot cldmv-bot Bot added ! feature → next v4 flow: contributor PR targeting the next integration branch type: feature Implements new functionality — a PR or issue that adds a feature area: core Touches core library / runtime source code type: ci Changes to CI workflows, actions, or build pipelines type: documentation Relates to docs, README updates, guides, or inline code comments labels Sep 16, 2026
Shinrai
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
Shinrai merged commit 7b16449 into next Sep 16, 2026
14 checks passed
@cldmv-bot
cldmv-bot Bot deleted the feat/release-merge-api-squash branch September 16, 2026 13:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area: core Touches core library / runtime source code ! feature → next v4 flow: contributor PR targeting the next integration branch type: ci Changes to CI workflows, actions, or build pipelines type: documentation Relates to docs, README updates, guides, or inline code comments type: feature Implements new functionality — a PR or issue that adds a feature

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant