Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Auto-merge Pull Requests from bots #37

Open
philschatz opened this issue Mar 8, 2018 · 0 comments
Open

Auto-merge Pull Requests from bots #37

philschatz opened this issue Mar 8, 2018 · 0 comments

Comments

@philschatz
Copy link
Member

philschatz commented Mar 8, 2018

... after all required CI Status checks pass of course 😄

The idea for this is that several repositories have dependency-checker bots that update packages and trigger Travis to run. When those all pass then we could automatically merge these types of PullRequests.

Steps

This code should run when a pull_request.created or status (passed) event occurs.

  1. Ensure the PR is made by a bot
  2. Check if the PR is mergeable (passes CI and has a reviewer if those are configured to be required for the master branch), is made by a bot, and get the commit await octokit.pullRequests.get({owner, repo, number})
  3. Merge the PR await octokit.pullRequests.merge({...})
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant