Skip to content

chore: automate the GitHub release notes and credit all contributors - #10671

Merged
paulbalandan merged 1 commit into
codeigniter4:developfrom
paulbalandan:automate-release-notes
Oct 28, 2026
Merged

paulbalandan merged 1 commit into
codeigniter4:developfrom
paulbalandan:automate-release-notes

Conversation

@paulbalandan

Copy link
Copy Markdown
Member

Description
Automates the last manual step of a release, writing the GitHub release notes, and credits every contributor instead of only first-time ones.

admin/create-release.php replaces the "Create a new Release" step in admin/RELEASE.md, where we copied a template and the "New Contributors" list by hand:

  • Fetches GitHub's auto-generated release notes for master since the latest published release. --previous=v4.x.w overrides that, and versions and tags work with or without the v prefix.
  • Credits every PR author in that range once, sorted alphabetically, skipping [bot] accounts. First-time contributors keep GitHub's "made their first contribution in ..." note.
  • Publishes CodeIgniter 4.x.x with tag v4.x.x on master, with the same intro, changelog link and Full Changelog line as today. It refuses if the release already exists, and --dry-run prints the body instead.

The script always passes the previous tag, because GitHub left to itself compared a 4.7.6 release against v4.7.4 instead of v4.7.5.

It runs locally with the maintainer's gh login rather than in a workflow. A release published by a workflow's GITHUB_TOKEN doesn't trigger deploy-distributables.yml, and editing the body after publishing would race with the step that copies it to the userguide release.

Usage: php admin/create-release.php 4.x.x [--previous=v4.x.w] [--dry-run]

Sample output of php admin/create-release.php 4.7.6 --previous=v4.7.4 --dry-run. master currently ends at v4.7.5, so this covers the 4.7.5 changes:

CodeIgniter 4.7.6 release.

See the changelog: https://github.com/codeigniter4/CodeIgniter4/blob/develop/CHANGELOG.md

## Contributors

* @gr8man
* @karlgray made their first contribution in https://github.com/codeigniter4/CodeIgniter4/pull/10509
* @mdalikadar made their first contribution in https://github.com/codeigniter4/CodeIgniter4/pull/10511
* @michalsn
* @paulbalandan
* @samsonasik
* @soccerlover29 made their first contribution in https://github.com/codeigniter4/CodeIgniter4/pull/10458
* @wakqasahmed

**Full Changelog**: https://github.com/codeigniter4/CodeIgniter4/compare/v4.7.4...v4.7.6

Checklist:

  • Securely signed commits
  • Component(s) with PHPDoc blocks, only if necessary or adds value (without duplication)
  • Unit testing, with >80% coverage
  • User guide updated
  • Conforms to style guide

@paulbalandan
paulbalandan merged commit ef9f864 into codeigniter4:develop Oct 28, 2026
11 checks passed
@paulbalandan
paulbalandan deleted the automate-release-notes branch October 28, 2026 10:19
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.

2 participants