Skip to content

Github action to create Pull Request automatically.

Notifications You must be signed in to change notification settings

floriandorau/autopr-action

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

65 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

autopr-action

Github action to automatically create pull request for newly pushed branches.

Build Status

Usage

Register the autpr-action in your .github/main.workflow according to the following.

workflow "Create pull request for pushed branch" {
  on = "create"
  resolves = ["auto-create-pullrequest"]
}

action "auto-create-pullrequest" {
  uses = "floriandorau/autopr-action@master"
  secrets = ["GITHUB_TOKEN"]
}

By default, all created Pull request will be merged into the master branch. If you want merge your features into different branch, make use of AUTOPR_BASE_BRANCH env var to overrides this with your desired branch name.

If you want to add a prefix to your pull request title, e.g. WiP in front of it, you can use AUTOPR_TITLE_PREFIX env var.