Interest in extending with a GitHub PR-oriented flow?
I'm currently using release-please to create PR:s for new version suggestions and then merging those will create the release.
I'm thinking it should be possible to do something similar with release-it and get some nice configurability / extensibility through that. I'm thinking one could achieve it by making a plugin that does:
- Checks if a release PR has been merged and if so uses that metadata to do a release for that commit
- Else checks if there's any changelog generated for any unreleased commits and if so opens a PR with the changelog and version rather than releasing
I think this would be doable if one could cancel further execution of a hook / release, but as far as I see here that's not doable? https://github.com/release-it/release-it/blob/c73f866c655ebc9611d48cac029977093174d7dc/lib/index.js#L115-L128
I'm thinking that a "release-it-by-pr" plugin could:
- Cancel the built in releases when opening a PR, making the PR become the "release"
- Set the changelog and version data from the release commit when doing the actual release (and ensuring no new version commit is created, only that the current one gets tagged and gets GH release etc )
Edit:
And I'm of course interested in working on this and doing PR:s etc as well as creating such a plugin
Source: release-it/release-it