I added a new feature for bot: now it can simplify the release process for language packs.
How does it work?
- For language packs with this feature enabled bot will open a PR when it detects some changes in translations. PR contains an updated entry in the changelog.
- Bot will keep updating this PR until someone with collaborator/maintainer status will approve the pull request. So there is no rush, you can keep this PR for a few days until you will be ready to review it.
- .After approving the PR bot will automatically update the release date in the changelog, merge PR, and tag a new release on GitHub. It will also generate a draft of a new release announcement on forum.
You can see an example here:
rob006-software/flarum-lang-polish8
https://github.com/rob006-software/flarum-lang-polish/releases/tag/v0.5.29
https://discuss.flarum.org/d/18134-polish-language-pack/204
Notes:
- Bot uses semver for detecting next version. With version format as
Major.Minor.Patch
it will increaseMajor
if any translation file for any extension was removed (BC breaking change),Minor
when detects a new translation file (new feature), andPatch
in any other case. Version format is configurable (to some extent), for example, in Polish language pack I skippedPatch
part. - Changelog is generated in English by default but it can be localized by translating this file (create a copy with language code as a name and translate). Right now it is not available on Weblate, so you need to edit file directly and create a PR on GitHub.
This is still an experimental feature and I'm searching for language pack maintainers who would want to test it. If you're interested, please open a new issue here.