Auto Merge and Branch WorkFlow Probot APP.
A GitHub App built with probot.
Create .github/branch.yml
and configure your branches.
autoMerge:
- target: EPD
source: EPD
- target: QAS
source: QAS
restrict:
- target: master
source:
- ppr
- pprfix
close: true
- target: ppr
source: qas
fork: true
Pull Request with title [WIP]
aren't merged.
Permissions
- Repository contents - Read & write
- Repository metadata - Read-only
- Pull requests - Read & write
- Single File - Read-only
- Path:
.github/branch.yml
- Path:
- Commit statuses - Read & write
Events
- Check the box for Pull request events
# Install dependencies
npm install
# Run the bot
npm start
Using node alpine image.
You need to have
private.pem
file.
docker build -t branch-bot .
docker run -d -p 80:3000 -e APP_ID=<you-app-id> -e WEBHOOK_SECRET=<your-secret> -e PRIVATE_KEY=$(cat private.pem) --name gitbot branch-bot