Skip to content

release: v4.28.0 - approval-triggered API squash-merge for the release PR - #305

Merged
Shinrai merged 4 commits into
masterfrom
next
Sep 16, 2026
Merged

Shinrai merged 4 commits into
masterfrom
next

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

Co-authored-by: Shinrai [email protected]

Shinrai and others added 4 commits September 16, 2026 00:05
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
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.
@cldmv-bot cldmv-bot Bot added ! release → master v4 flow: persistent next → master release PR (carries the next feature release) release Marks a pull request as a pending release — merge to publish a new version semver: minor This release adds new functionality in a backwards-compatible way type: bug Something is broken or not behaving as expected 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: config Changes to repository or project configuration files type: documentation Relates to docs, README updates, guides, or inline code comments labels Sep 16, 2026
@Shinrai
Shinrai merged commit 7debbb0 into master Sep 16, 2026
18 checks passed
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 ! release → master v4 flow: persistent next → master release PR (carries the next feature release) release Marks a pull request as a pending release — merge to publish a new version semver: minor This release adds new functionality in a backwards-compatible way type: bug Something is broken or not behaving as expected type: ci Changes to CI workflows, actions, or build pipelines type: config Changes to repository or project configuration files 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