Skip to content

AdamReifsneider/pull-automerge

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

58 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

pull-automerge

Automatically merge all pull requests in the repo with the Automerge label from oldest to newest.

Running it

lein run [github access token]

How it works

This is a stateless run-once application that is meant to be run in a polling fashion using something like AWS.

During one run it finds the oldest pull request in the repository with the Automerge label and does one action:

  • If that PR has merge conflicts or a github status has failed (e.g. CI check failure or no approvals), the label on that PR is removed and the app exits.
  • If that PR still has outstanding github statuses (that is, they are currently still running), nothing is done and the app exits.
  • If that PR has no merge conflicts and all github statuses have passed, the PR is merged and the branch is deleted.

AWS

This is set up to integrate with AWS. It expects a JSON Constant in the events when run through AWS like this: { "userToken": "<USER_TOKEN>" }

About

Automatically merge status-passed github pull requests that have a particular label

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published