Package Exports
- probot-app-delete-merged-branch
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (probot-app-delete-merged-branch) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
probot-app-delete-merged-branch
Forked from https://github.com/SvanBoxel/delete-merged-branch
A GitHub app built with Probot that automatically deletes a branch after it's merged.
Running it locally
First, follow these instructions for making your own GitHub app. Give your app the following permissions:
- Repository contents: Read & Write.
- Pull requests: Read
Then, clone the repo:
git clone git@github.com:uber-workflow/probot-app-delete-merged-branch.git
Copy
.env.example
to.env
and set the right environment variables as hereNow, install app dependencies and run it:
# Install dependencies
npm install
# Run the bot
npm start
How it works
This GitHub app listens to the pull_request.closed
webhook. If a pull request is closed and the connected branch is merged, it will delete the branch.