2017 © Pedro Peláez
 

library plus-pull

Script to merge Github pull requests, which have enough +1 votes

image

cdamian/plus-pull

Script to merge Github pull requests, which have enough +1 votes

  • Wednesday, May 30, 2018
  • by cdamian
  • Repository
  • 2 Watchers
  • 13 Stars
  • 13,898 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 3 Forks
  • 0 Open issues
  • 33 Versions
  • 0 % Grown

The README.md

Build Status, (*1)

plus-pull

Simple script that checks pull requests on a repository on Github and pulls them if they satisfy certain requirements., (*2)

By default these requirements are:, (*3)

  1. the sum of +1 and -1 is at least 3
  2. there are no [B] blocker comments
  3. the request is mergeable
  4. (optionally) all build statuses are OK

Install

composer.phar create-project cdamian/plus-pull, (*4)

Command Line Usage

Check pull requests:, (*5)

check [-p|--pull] [-l|--limit="..."] [config-file]

Arguments:
 config-file           Path of the yaml configuration file (default: "config.yml")

Options:
 --pull (-p)           Pull the request if all conditions are met
 --limit (-l)          Maximum numbers of pull (default: 1)

Create a new github authorization token:, (*6)

token:create [--note="..."]

Options:
 --note                Note for the authorization token on github (default: "plus-push")

Configuration File

With the config file you can set the github authorization username and password or an github authorizisation token., (*7)

The other section sets the repository owner and name and you can change the defaults for needed votes, if status will be checked and voter whitelist., (*8)

You have also the option to automatically add labels for keywords found in the comments. In the example below we will add the label 'blocked' with the given color if we see '[B]' in one of the comments. The label will be created if it doesn't exist., (*9)

authorization:
    username: christofdamian
    password: secret
    token: githubtoken

repositories:
    -
        username: christofdamian
        name: test
        status: true
        required: 3
        whitelist: [ christofdamian ]
        wait: 300
        mergemode: merge
        labels:
            -
                name: blocked
                color: eb6420
                hook: '[B]'

Credits

We are using a similar script at work, which was started by @adriacidre . This is a complete rewrite though to make it easier to add further features., (*10)

Label support by @ifosch, (*11)

The Versions

30/05 2018

dev-dependency-upgrades

dev-dependency-upgrades https://github.com/christofdamian/plus-pull

Script to merge Github pull requests, which have enough +1 votes

  Sources   Download

MIT

The Requires

 

The Development Requires

by Christof Damian

01/03 2018

dev-master

9999999-dev https://github.com/christofdamian/plus-pull

Script to merge Github pull requests, which have enough +1 votes

  Sources   Download

MIT

The Requires

 

The Development Requires

by Christof Damian

01/03 2018

dev-dockerfile

dev-dockerfile https://github.com/christofdamian/plus-pull

Script to merge Github pull requests, which have enough +1 votes

  Sources   Download

MIT

The Requires

 

The Development Requires

by Christof Damian

14/07 2017

v0.7.0

0.7.0.0 https://github.com/christofdamian/plus-pull

Script to merge Github pull requests, which have enough +1 votes

  Sources   Download

MIT

The Requires

 

The Development Requires

by Christof Damian

14/07 2017

dev-add-grace-period

dev-add-grace-period https://github.com/christofdamian/plus-pull

Script to merge Github pull requests, which have enough +1 votes

  Sources   Download

MIT

The Requires

 

The Development Requires

by Christof Damian

30/06 2017

dev-allow-different-merge-modes

dev-allow-different-merge-modes https://github.com/christofdamian/plus-pull

Script to merge Github pull requests, which have enough +1 votes

  Sources   Download

MIT

The Requires

 

The Development Requires

by Christof Damian

08/08 2016

v0.6.4

0.6.4.0 https://github.com/christofdamian/plus-pull

Script to merge Github pull requests, which have enough +1 votes

  Sources   Download

MIT

The Requires

 

The Development Requires

by Christof Damian

02/08 2016

v0.6.3

0.6.3.0 https://github.com/christofdamian/plus-pull

Script to merge Github pull requests, which have enough +1 votes

  Sources   Download

MIT

The Requires

 

The Development Requires

by Christof Damian

02/08 2016

dev-disable-label-removal

dev-disable-label-removal https://github.com/christofdamian/plus-pull

Script to merge Github pull requests, which have enough +1 votes

  Sources   Download

MIT

The Requires

 

The Development Requires

by Christof Damian

02/08 2016

v0.6.2

0.6.2.0 https://github.com/christofdamian/plus-pull

Script to merge Github pull requests, which have enough +1 votes

  Sources   Download

MIT

The Requires

 

The Development Requires

by Christof Damian

12/07 2016

v0.6.1

0.6.1.0 https://github.com/christofdamian/plus-pull

Script to merge Github pull requests, which have enough +1 votes

  Sources   Download

MIT

The Requires

 

The Development Requires

by Christof Damian

30/06 2016

v0.6.0

0.6.0.0 https://github.com/christofdamian/plus-pull

Script to merge Github pull requests, which have enough +1 votes

  Sources   Download

MIT

The Requires

 

The Development Requires

by Christof Damian

30/05 2016

v0.5.13

0.5.13.0 https://github.com/christofdamian/plus-pull

Script to merge Github pull requests, which have enough +1 votes

  Sources   Download

MIT

The Requires

 

The Development Requires

by Christof Damian

30/05 2016

dev-check-review-comments

dev-check-review-comments https://github.com/christofdamian/plus-pull

Script to merge Github pull requests, which have enough +1 votes

  Sources   Download

MIT

The Requires

 

The Development Requires

by Christof Damian

07/01 2016

v0.5.12

0.5.12.0 https://github.com/christofdamian/plus-pull

Script to merge Github pull requests, which have enough +1 votes

  Sources   Download

MIT

The Requires

 

The Development Requires

by Christof Damian

07/01 2016

v0.5.11

0.5.11.0 https://github.com/christofdamian/plus-pull

Script to merge Github pull requests, which have enough +1 votes

  Sources   Download

MIT

The Requires

 

The Development Requires

by Christof Damian

05/01 2016

v0.5.10

0.5.10.0 https://github.com/christofdamian/plus-pull

Script to merge Github pull requests, which have enough +1 votes

  Sources   Download

MIT

The Requires

 

The Development Requires

by Christof Damian

05/01 2016

dev-fix-multiple-statuses

dev-fix-multiple-statuses https://github.com/christofdamian/plus-pull

Script to merge Github pull requests, which have enough +1 votes

  Sources   Download

MIT

The Requires

 

The Development Requires

by Christof Damian

28/07 2015

v0.5.8

0.5.8.0 https://github.com/christofdamian/plus-pull

Script to merge Github pull requests, which have enough +1 votes

  Sources   Download

MIT

The Requires

 

The Development Requires

by Christof Damian

28/07 2015

v0.5.9

0.5.9.0 https://github.com/christofdamian/plus-pull

Script to merge Github pull requests, which have enough +1 votes

  Sources   Download

MIT

The Requires

 

The Development Requires

by Christof Damian

28/07 2015

dev-allow-leading-whitespace

dev-allow-leading-whitespace https://github.com/christofdamian/plus-pull

Script to merge Github pull requests, which have enough +1 votes

  Sources   Download

MIT

The Requires

 

The Development Requires

by Christof Damian

02/04 2015

v0.5.7

0.5.7.0 https://github.com/christofdamian/plus-pull

Script to merge Github pull requests, which have enough +1 votes

  Sources   Download

MIT

The Requires

 

The Development Requires

by Christof Damian

24/03 2015

v0.5.6

0.5.6.0 https://github.com/christofdamian/plus-pull

Script to merge Github pull requests, which have enough +1 votes

  Sources   Download

MIT

The Requires

 

The Development Requires

by Christof Damian

29/05 2014

v0.5.5

0.5.5.0 https://github.com/christofdamian/plus-pull

Script to merge Github pull requests, which have enough +1 votes

  Sources   Download

MIT

The Requires

 

The Development Requires

by Christof Damian

29/04 2014

v0.5.4

0.5.4.0 https://github.com/christofdamian/plus-pull

Script to merge Github pull requests, which have enough +1 votes

  Sources   Download

MIT

The Requires

 

The Development Requires

by Christof Damian

29/04 2014

v0.5.3

0.5.3.0 https://github.com/christofdamian/plus-pull

Script to merge Github pull requests, which have enough +1 votes

  Sources   Download

MIT

The Requires

 

The Development Requires

by Christof Damian

26/02 2014

v0.5.2

0.5.2.0 https://github.com/christofdamian/plus-pull

Script to merge Github pull requests, which have enough +1 votes

  Sources   Download

MIT

The Requires

 

The Development Requires

by Christof Damian

28/01 2014

v0.5.1

0.5.1.0 https://github.com/christofdamian/plus-pull

Script to merge Github pull requests, which have enough +1 votes

  Sources   Download

MIT

The Requires

 

The Development Requires

by Christof Damian

28/01 2014

v0.5.0

0.5.0.0 https://github.com/christofdamian/plus-pull

Script to merge Github pull requests, which have enough +1 votes

  Sources   Download

MIT

The Requires

 

The Development Requires

by Christof Damian

16/05 2013

v0.4.0

0.4.0.0 https://github.com/christofdamian/plus-pull

Script to merge Github pull requests, which have enough +1 votes

  Sources   Download

MIT

The Requires

 

The Development Requires

by Christof Damian

13/05 2013

v0.3.0

0.3.0.0 https://github.com/christofdamian/plus-pull

Script to merge Github pull requests, which have enough +1 votes

  Sources   Download

MIT

The Requires

 

The Development Requires

by Christof Damian

09/05 2013

v0.2.0

0.2.0.0 https://github.com/christofdamian/plus-pull

Script to merge Github pull requests, which have enough +1 votes

  Sources   Download

MIT

The Requires

 

The Development Requires

by Christof Damian

07/05 2013

v0.1.0

0.1.0.0 https://github.com/christofdamian/plus-pull

Script to pull requests, which have enough votes

  Sources   Download

The Requires

 

The Development Requires

by Christof Damian