Skip to content

Promote develop to main - #4

Closed
519lab-release-bot[bot] wants to merge 15 commits into
mainfrom
develop
Closed

519lab-release-bot[bot] wants to merge 15 commits into
mainfrom
develop

Conversation

@519lab-release-bot

Copy link
Copy Markdown
Contributor

Merging this pull request promotes develop onto main.

Use a merge commit. A rebase would leave develop looking unmerged.

Commits

  • fix(release): name the previous release once in the summary (d248332)
  • Merge pull request #28 from ggrace519/fix/release-previous-label (a7265b9)
  • feat(version): roll the changelog and compute the version before promotion (64b0d41)
  • fix(version): harden the roll-up after review and add a test suite (053bf64)
  • Merge pull request #30 from ggrace519/feat/version-workflow (698d56c)
  • chore(release): roll changelog into 1.2.0 (d08e3b8)
  • feat(version)!: open a roll-up pull request instead of committing to develop (7baba6a)
  • fix(version): gate promote on an explicit output and close review gaps (a4975f5)
  • docs(readme): restore the roll-up changelog-conflict note (56def27)
  • Merge pull request #32 from ggrace519/feat/version-roll-pr (c238711)
  • chore(release): roll changelog into 2.0.0 (848e541)
  • Merge pull request #33 from ggrace519/chore/roll-changelog (c5cc5ba)
  • docs(claude): scope the caller scan to ggrace519 and 519lab (109efe3)
  • Merge pull request #35 from ggrace519/docs/claude-caller-scan (52396ce)
  • Merge branch 'ggrace519:develop' into develop (4fa3480)

Files

 .github/workflows/lint.yml         |   7 +
 .github/workflows/promote.yml      |  36 ++-
 .github/workflows/release.yml      |  14 +-
 .github/workflows/self-promote.yml |  81 ++++++
 .github/workflows/version.yml      | 566 +++++++++++++++++++++++++++++++++++++
 CHANGELOG.md                       |  20 ++
 CLAUDE.md                          |   8 +-
 DECISIONS.md                       |  50 ++++
 README.md                          |  95 ++++++-
 tests/bin/gh                       | 118 ++++++++
 tests/version.sh                   | 274 ++++++++++++++++++
 11 files changed, 1255 insertions(+), 14 deletions(-)

Maintained by the shared ggrace519/.github promote workflow. A later push to develop updates this description; notes left in the description are replaced, so put them in a comment.

ggrace519 and others added 15 commits November 7, 2026 15:44
`${latest:+$PREFIX$latest}${latest:-none}` expands to both halves when
latest is set, so the step summary and dry-run line read v1.0.21.0.2.
Compute the label once. Notes and tags were never affected; the
promotion PR #27 dry-run showed the string.

Co-Authored-By: Claude Fable 5.1 <[email protected]>
fix(release): name the previous release once in the summary
…otion

Add the reusable `version` workflow. After CI passes on develop it works
out the next semantic version from the entries under [Unreleased], rolls
them into a dated version section and commits that to develop through
createCommitOnBranch, so the promotion pull request carries the changelog
that `release` tags on the merge. A rolled section that is neither tagged
nor on main is pending and is re-derived on later runs, so several develop
pushes before one merge make one release.

`self-promote.yml` chains it ahead of `promote` for this repository and
previews the next release on pull requests into develop. ADR-001 records
why the commit goes on develop and the tag stays on the merge.

Co-Authored-By: Claude Fable 5.2 <[email protected]>
Review of the version workflow found that a failed branch-head lookup was
reported as "develop moved on" and let promote continue on an unrolled
changelog, and that a manual run from another branch could close or
rewrite the promotion pull request. The lookup now fails loudly, a ref
that is not on the branch is an error, and promote.yml refuses a ref
that is not on develop.

The changelog parsers in version.yml and release.yml skip headings
inside fenced code blocks; version.yml also refuses unbracketed version
headings, keeps CRLF line endings, and no longer mistakes gh's stderr
for the commit id.

tests/version.sh runs both scripts against throwaway repositories with
a stand-in for the GitHub API; the lint workflow runs it.

Co-Authored-By: Claude Fable 5.2 <[email protected]>
feat(version): roll the changelog and compute the version before promotion
…develop

version.yml committed the rolled changelog straight to develop, the one
commit that bypassed the pull-request branch model. It now builds the
roll-up on the workflow-owned chore/roll-changelog branch (via a staging
branch, so the PR branch never points at its base and gets auto-closed)
and opens or updates one pull request into develop. Merging it is the
release decision: the run that merge starts finds nothing to roll,
deletes the branch, and lets promote open the promotion pull request.

version and promote also take an optional GitHub App (app-client-id,
app-private-key) so their pull requests run CI without the approval
click; without it they fall back to GITHUB_TOKEN.

BREAKING CHANGE: callers must grant the version job pull-requests: write,
run promote only when the new pull-request output is empty, and drop the
removed rolled output and token secret. sha is now always ref.

Rationale in ADR-002.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
- self-promote's dry-run preview job now grants pull-requests: write;
  version.yml declares it, so the preview would not have started.
- New `promote` output ('true' only when nothing is left to roll and ref
  is still the branch head). An empty pull-request alone also held for a
  superseded run, which then promoted a stale commit.
- Re-read the branch head after the roll-up commit: the fresh staging
  branch made expectedHeadOid useless as a guard on develop.
- retire also deletes a staging branch left by a cancelled run, and
  ref_exists no longer reads a server error as a missing branch.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
feat(version)!: open a roll-up pull request instead of committing to develop
chore(release): roll changelog into 2.0.0
docs(claude): scope the caller scan to ggrace519 and 519lab
@ggrace519

Copy link
Copy Markdown
Contributor

Fork is being retired; releases come from ggrace519/.github.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant