Auto-generated release PR: develop → master
#57
Locked
AndrewSazonov
announced in
ADRs
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
When a package is ready to be released, the first step is to create a pull request from
developtomaster. This can be done manually:Go to the “Pull requests” tab
Click “New pull request”
Select the correct branches in the two dropdowns:
master←developClick “Create pull request”
Add a title
Add a description
Select the correct label
By “correct”, we mean it must not be one of the
[scope]labels. The[scope]labels are parsed later to suggest the version bump. Those labels belong to PRs merged fromfeature→develop.The
develop→masterPR is only for collecting already merged changes intomaster. It still needs a label, because otherwise the PR-label-check workflow fails. However, it must be a label that:That is why we introduced
[bot] pull request.If, for example, someone accidentally selects
[scope] maintenance, while all feature PRs only had[scope] documentation, then the version bump suggestion would be incorrect (PATCH instead of POST).Click “Create pull request”
All these steps are mechanical and normally identical for every
develop→masterPR.Decision
To simplify this process and ensure consistency across all EasyScience repositories, we use a GitHub workflow (added via Copier templates) that automatically creates this release PR.
The workflow can be triggered manually via
workflow_dispatchby clicking the “Run workflow” button in the Actions tab. After a single click, the EasyScience bot creates a pull request fromdevelop(or another specified branch) intomaster, using a predefined title, description, and label.This replaces the full manual PR creation process with one simple action.
To allow flexibility, the workflow includes an input field “Source branch to create PR from”. By default, this is set to
develop, but it can be changed to another branch, such ashotfix, if needed.The created PR is automatically labeled
[bot] pull request, which clearly marks it as automation-generated and excludes it from release notes and version bump logic.The workflow included in the EasyScience Copier templates can be found here:
https://github.com/easyscience/templates/blob/master/template/.github/workflows/release-pr.yml
Links to the original discussions: #50
Beta Was this translation helpful? Give feedback.
All reactions