ADR Suggestion Auto-generated Release Pull Requests (develop → master)
#50
Replies: 2 comments 5 replies
-
|
Creating the release merge is a simple task. Automating the process means more code to maintain. Does automation really improve consistency over a well-documented manual process? CI checks before PR creation - those should be run before the PR is created. |
Beta Was this translation helpful? Give feedback.
-
At THIS moment. Consider potential improvements, versioning, additional tests (e.g. do we do the PR if there's no difference between This script only clicks on "Create PR" button, really - how is it less demanding than doing it manually?
Making a |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Currently, in most EasyScience projects, a pull request from develop to master has to be created manually every time a new release is prepared. This usually means opening GitHub, selecting branches, writing a title and description, etc.
To simplify this process and make it more consistent across all EasyScience repositories, I suggest adding a standard GitHub workflow 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 more 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 as e.g.hotfix, 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 introduction of this label is described in a separate ADR suggestion (#49).Below is a draft of the proposed workflow included to the EasyScience Copier templates.
https://github.com/easyscience/templates/blob/master/template/.github/workflows/release-pr.yml
Beta Was this translation helpful? Give feedback.
All reactions