Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/enrise/prbot
Automated pull requests for forgotten merge-backs
https://github.com/enrise/prbot
cicd merge-requests pull-requests
Last synced: 11 days ago
JSON representation
Automated pull requests for forgotten merge-backs
- Host: GitHub
- URL: https://github.com/enrise/prbot
- Owner: Enrise
- Created: 2016-03-18T09:53:27.000Z (almost 9 years ago)
- Default Branch: master
- Last Pushed: 2022-10-21T21:23:06.000Z (over 2 years ago)
- Last Synced: 2024-11-15T13:20:47.416Z (2 months ago)
- Topics: cicd, merge-requests, pull-requests
- Language: PHP
- Homepage:
- Size: 15.6 KB
- Stars: 0
- Watchers: 6
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# PRBot
### What
The PRBot was created to automatically create a new pull request, when a merge-back was forgotten.
For example; if a hotfix was made for version 1.1, it should also be merged back to your development branch.
The PRBot should run every morning, to remind you what's still in need of a merge-back.### Requirements
In order to run the PRBot, you need to have the following available:
* A server with a CRON-job
* PHP 5.4 or higher
* Have the PHP CURL module enabled
* A Github account with READ access to the repositories you want to monitorOnce you downloaded all the files, make sure you run `composer install` with [composer](https://getcomposer.org/).
# Configuration
Copy the `dev/config.dist.php` to `dev/config.php`, and edit the file to configure your setup.
```php
'myMergeBot', // Your github username
'password' => 'somepass123', // Your github password
// The title that will be used for your PRs, the first %s being the
// branch to merge from, the second %s being the to branch to merge to.
'prTitle' => 'Make sure that %s is in %s!',
// Message the PRBot uses for the pull request:
'prBody' => '![](https://heavyeditorial.files.wordpress.com/2012/08/thumbsup.gif)',
'github' => [
// http://github.com/SomeUserOrOrganisation/ProjectA
'SomeUserOrOrganisation' => [
'ProjectA' => [
// Merges back release/1.1 into release/1.2
'release/1.1' => 'release/1.2',
// Merges back release/1.2 into develop
'release/1.2' => 'develop',
],
],
// http://github.com/AnotherUserOrOrganisation/ProjectB
'AnotherUserOrOrganisation' => [
'ProjectB' => [
// Merges back release/2.0 into develop
'release/2.0' => 'develop',
// Merges back master into develop
'master' => 'develop',
],
],
],
];
```We recommend that you configure your cronjob to run every morning before you get to work. For example at 5am from monday to friday:
![0 5 * * 1-5](https://cloud.githubusercontent.com/assets/6495166/13875109/2efe13a8-ecfc-11e5-87ce-5c3214903073.png)
# Example
![image](https://cloud.githubusercontent.com/assets/6495166/13874703/d7a38018-ecf9-11e5-9b8b-966a92e73434.png)