{"id":20475167,"url":"https://github.com/christofdamian/plus-pull","last_synced_at":"2025-04-13T12:29:01.479Z","repository":{"id":8338296,"uuid":"9894718","full_name":"christofdamian/plus-pull","owner":"christofdamian","description":"Script that checks pull requests and merges them if they satisfy certain requirements. ","archived":false,"fork":false,"pushed_at":"2019-07-23T14:53:09.000Z","size":135,"stargazers_count":13,"open_issues_count":0,"forks_count":4,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-03-27T03:34:42.398Z","etag":null,"topics":["ci","github","php"],"latest_commit_sha":null,"homepage":"","language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/christofdamian.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGES.md","contributing":null,"funding":null,"license":"LICENSE.txt","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2013-05-06T19:19:03.000Z","updated_at":"2019-07-23T14:52:48.000Z","dependencies_parsed_at":"2022-08-07T02:33:55.844Z","dependency_job_id":null,"html_url":"https://github.com/christofdamian/plus-pull","commit_stats":null,"previous_names":[],"tags_count":26,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/christofdamian%2Fplus-pull","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/christofdamian%2Fplus-pull/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/christofdamian%2Fplus-pull/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/christofdamian%2Fplus-pull/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/christofdamian","download_url":"https://codeload.github.com/christofdamian/plus-pull/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248713777,"owners_count":21149772,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["ci","github","php"],"created_at":"2024-11-15T15:14:51.478Z","updated_at":"2025-04-13T12:29:01.458Z","avatar_url":"https://github.com/christofdamian.png","language":"PHP","readme":"[![Build Status](https://travis-ci.org/christofdamian/plus-pull.svg?branch=master)](https://travis-ci.org/christofdamian/plus-pull)\n\nplus-pull\n=========\nSimple script that checks pull requests on a repository on Github and pulls\nthem if they satisfy certain requirements.\n\nBy default these requirements are:\n\n1. the sum of +1 and -1 is at least 3\n2. there are no [B] blocker comments\n3. the request is mergeable\n4. (optionally) all build statuses are OK\n\nInstall\n-------\ncomposer.phar create-project cdamian/plus-pull\n\nCommand Line Usage\n------------------\n\nCheck pull requests:\n\n    check [-p|--pull] [-l|--limit=\"...\"] [config-file]\n\n    Arguments:\n     config-file           Path of the yaml configuration file (default: \"config.yml\")\n\n    Options:\n     --pull (-p)           Pull the request if all conditions are met\n     --limit (-l)          Maximum numbers of pull (default: 1)\n\nCreate a new github authorization token:\n\n    token:create [--note=\"...\"]\n\n    Options:\n     --note                Note for the authorization token on github (default: \"plus-push\")\n\n\nConfiguration File\n------------------\n\nWith the config file you can set the github authorization username and\npassword or an github authorizisation token.\n\nThe other section sets the repository owner and name and you can change\nthe defaults for needed votes, if status will be checked and voter\nwhitelist.\n\nYou have also the option to automatically add labels for keywords found\nin the comments. In the example below we will add the label 'blocked'\nwith the given color if we see '[B]' in one of the comments. The label\nwill be created if it doesn't exist.\n\n```yaml\nauthorization:\n    username: christofdamian\n    password: secret\n    token: githubtoken\n\nrepositories:\n    -\n        username: christofdamian\n        name: test\n        status: true\n        required: 3\n        whitelist: [ christofdamian ]\n        wait: 300\n        mergemode: merge\n        labels:\n            -\n                name: blocked\n                color: eb6420\n                hook: '[B]'\n```\n\nCredits\n-------\nWe are using a similar script at work, which was started by @adriacidre .\nThis is a complete rewrite though to make it easier to add further features.\n\nLabel support by @ifosch\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fchristofdamian%2Fplus-pull","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fchristofdamian%2Fplus-pull","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fchristofdamian%2Fplus-pull/lists"}