-
Notifications
You must be signed in to change notification settings - Fork 16
Closed
Description
Background and motivation
There is currently no safeguard or process against publishing a release without changing the version inversion.py to indicate a full release.
Description of idea
There should be some process that either automates switching _version_extra in version.py from 'dev' to '0' before publishing a release, or enabled editing of the saltproc/version.py file once the release is published. Both would be nice.
We should also remove the "in-development" note from the release notes file for the current release before publishing.
Implementation details
Some ideas on how to do this:
- Make the
next-minor-release.ymlworkflow trigger from closing a milestone, and add functionality to changeversion.pyas well as publishing the current draft release. We will also document this in the Developer guide. - Implement Feature: Branched release model #116 so we can update
version.pyas needed after publishing a release - Add a workflow that makes a PR making the changes to
version.pythat must be merged before publishing the release
Useful resources:
- GitHub REST API References:
- Webhook events:
- Triggering workflows based on milestone events
Rough outline:
- Get name of the milestone we closed
- Merge the
masterbranch into the branch with the same name as the milestone. - Find the release with the same name (tricky part)
2a. Will need to do stuff w/ JSON matching most likely - Update
version.py - Update the release notes file
- Create a PR using the REST API
- Merging this PR will publish the release.
Potential snags
We may need to implement these changes over multiple PRs. We also may need to cannibalize parts of next-release-minor.yml
Reactions are currently unavailable