# probot-app-delete-merged-branch

> A GitHub app built that automatically deletes a branch after it's merged

Latest version **1.0.1** (published 2018-10-09) · ISC license · 0 weekly downloads

## Install

```sh
npm install probot-app-delete-merged-branch
pnpm add probot-app-delete-merged-branch
yarn add probot-app-delete-merged-branch
bun add probot-app-delete-merged-branch
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.1 |
| Published | 2018-10-09 |
| First published | 2018-10-09 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | none |
| Module format | CommonJS |
| Node | >= 8.9.0 |
| Dependencies | 1 |
| Unpacked size | 262.3 KB |
| Known vulnerabilities | 0 (+1 in 1 direct dependencies) |
| Install scripts | no |
| GitHub stars | 1 |
| Author | Nadiia Dmytrenko |
| Maintainers | fusion-ci |
| Keywords | probot, github, probot-app, delete-branch, git-tools, github-app |

## Links

- npm: https://www.npmjs.com/package/probot-app-delete-merged-branch
- Repository: https://github.com/uber-workflow/probot-app-delete-merged-branch
- Issues: https://github.com/uber-workflow/probot-app-delete-merged-branch/issues
- npm.io page: https://npm.io/package/probot-app-delete-merged-branch

## Dependencies (1)

- [probot](https://npm.io/package/probot.md) ^7.2.0

## Recent versions

- 1.0.1 (latest) — 2018-10-09
- 1.0.2-0 (prerelease) — 2019-05-13

## README

# probot-app-delete-merged-branch

Forked from [https://github.com/SvanBoxel/delete-merged-branch](https://github.com/SvanBoxel/delete-merged-branch)

A GitHub app built with [Probot](https://github.com/probot/probot) that automatically deletes a branch after it's merged.

## Running it locally
1. First, follow [these instructions](https://probot.github.io/docs/development/#configure-a-github-app) for making your own GitHub app.
Give your app the following permissions:
    - Repository contents: Read & Write.
    - Pull requests: Read

2. Then, clone the repo:
```sh
git clone git@github.com:uber-workflow/probot-app-delete-merged-branch.git
```

3. Copy `.env.example` to `.env` and set the right environment variables as [here](https://probot.github.io/docs/development/#configure-a-github-app) 

4. Now, install app dependencies and run it:

```sh
# 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.

---
_Source: https://npm.io/package/probot-app-delete-merged-branch · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
