Skip to content

Promote develop to main - #6

Merged
ggrace519 merged 17 commits into
mainfrom
develop
Nov 22, 2026
Merged

ggrace519 merged 17 commits into
mainfrom
develop

Conversation

@ggrace519

Copy link
Copy Markdown
Contributor

Summary

Promotes #5 to main: the repository becomes the standalone org-defaults repository (SECURITY.md, README.md, CLAUDE.md, CHANGELOG.md), and main stops carrying the copy of the shared workflows.

Use a merge commit, not a squash or rebase. main holds two old merge commits (#1, #2) that develop lacks. A merge commit keeps the two branches related; a squash would make them diverge again.

Verification

  • Test-merging origin/develop into origin/main locally: clean, and the resulting tree is exactly those four files.
  • No CI here: Actions are disabled and the repository has no workflows.

🤖 Generated with Claude Code

ggrace519 and others added 17 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
The repository was a fork of ggrace519/.github and carried a full copy
of the shared workflows with their own release pipeline and tags, which
no repository calls. Now that it is detached from the fork network it
keeps only what an organization .github repository is for: the default
SECURITY.md, used by every public 519lab repository without its own.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
chore: make this the standalone org-defaults repository
@ggrace519
ggrace519 merged commit b1a9b97 into main Nov 22, 2026
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