Skip to content

Give each sample a changelog and release notes - #32

Merged
brionmario merged 1 commit into
thunder-id:mainfrom
brionmario:changelog-labels
Nov 25, 2026
Merged

brionmario merged 1 commit into
thunder-id:mainfrom
brionmario:changelog-labels

Conversation

@brionmario

@brionmario brionmario commented Nov 23, 2026 •

Copy link
Copy Markdown
Member

Purpose

A sample's GitHub release has no notes. GitHub generates them against whichever tag came before, usually another sample's, so a release like ThunderID Self-Care Account Sample v1.0.0 shows only a compare link to sample/management/admin/v1.0.0. No sample has a CHANGELOG either. This gives each sample a CHANGELOG and grouped release notes in the same format as thunder-id/thunderid and the SDKs.

Approach

  • pr-label-check.yml: the same PR check thunder-id/thunderid runs. A pull request must carry Type/New Feature, Type/Improvement or Type/Bug, or skip-changelog to leave it out of the notes.
  • .github/release.yml: groups the generated notes by those labels: ⚠️ Breaking Changes (breaking change), 🚀 Features, ✨ Improvements, 🐛 Bug Fixes and 📝 Other Changes. It uses the same configuration as thunder-id/thunderid.
  • .github/actions/release-notes: asks GitHub for the notes between the sample's previous tag (sample/<path>/v*) and its new one, then keeps only the pull requests that changed files under the sample's directory and drops the sections that end up empty.
    • The same notes go to the top of <path>/CHANGELOG.md under ## <version>, without the "What's Changed" heading and the "New Contributors" section.
    • If no pull request changed the sample, the notes say so.
    • On a sample's first release, the compare link is left out, because GitHub would point it at another sample's tag.
  • release.yml:
    • The release job runs the action after the version bump, so the release commit carries the CHANGELOG.
    • It creates the GitHub release with the same notes through --notes-file.
    • It now checks out the full history, so the previous tags are there.

Related Issues

Related PRs

The same label check and changelog for the SDKs:

Checklist

  • Followed the contribution guidelines.
  • Manual test round performed and verified: ran the action's script against the existing tags.
    • self-care/account (no changes since v1.0.0; GitHub's unfiltered notes list 9 unrelated PRs).
    • quickstarts/flutter (only Migrate the Flutter samples to material_ui #26, matching git log for the directory).
    • b2b/wayfinder-enterprise as a first release (its 4 PRs, no compare link).
  • Documentation provided: the action and workflow headers explain the behaviour.
  • Tests provided.
  • Breaking changes.

Security checks

  • Followed secure coding standards. The label check reads only the event payload. The sample path and version reach the script through env.
  • Confirmed that this PR doesn't commit any keys, passwords, tokens, usernames, or other secrets.

A sample's GitHub release had no notes. It was generated against whichever
tag came before, usually another sample's, so all it showed was a compare
link to that tag, and no sample had a CHANGELOG.

Every pull request now has to carry a Type/New Feature, Type/Improvement or
Type/Bug label, or skip-changelog to leave it out, and a PR check fails until
it does, the same check thunder-id/thunderid and the SDKs run.
.github/release.yml groups the generated notes by those labels.

A new release-notes action asks GitHub for the notes since the sample's
previous tag (sample/<path>/v*), keeps only the pull requests that changed
the sample's directory, and drops the sections that end up empty. The
release job runs it after the version bump, adds the notes to the top of the
sample's CHANGELOG.md, which the release commit carries, and creates the
GitHub release with the same notes. The job now checks out the full history
so the previous tags are there.

Signed-off-by: Brion <info@brionmario.com>
@brionmario
brionmario merged commit 94ebbaf into thunder-id:main Nov 25, 2026
22 of 23 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

skip-changelog Skip generating changelog for a particular PR

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants