Skip to content

Tool for automated creation of pull requests for releasing changes in the gitflow model.

Notifications You must be signed in to change notification settings

steve148/release-pull-request-generator

Repository files navigation

Release Pull Request Generator

Tool for automated creation of pull requests for releasing changes in the gitflow model.

Installation

First make sure you have pipenv installed for whatever version of python you are running on.

pipenv --version

Then install all the necessary dependencies.

pipenv install

That's it 😃

Usage

Running the script requires the following arguments to be passed in on the command line.

To create a release pull request for a particular repository following the gitflow model, run the following command.

pipenv run python release_pull_request_generator.py <repository_name> <your-github-username> <github_token>

As an example, if I wanted to create a release pull request for a repository called world_domination_plans for an organization called chum_bucket and I had a personal access token of 1234abcd, then I would run the following command in my terminal.

pipenv run python release_pull_request_generator.py chum_bucket/world_dominations_plans steve148 1234abcd

Assumptions

To figure out which Pull Requests are a part of the release being generated, this script looks for merge commits and infers the pull request fields from that commit. This means if you are rebasing onto develop (eg. no merge commits) then this release generator will not work :( There probably is a smart way to get around this, but for now I went the simple route. Let me know if you have any suggestions!

About

Tool for automated creation of pull requests for releasing changes in the gitflow model.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published