A GitHub action to automatically delete the branch after a pull request has been merged.
Branch: master
Clone or download
Latest commit 4c8b444 Dec 29, 2018
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
.travis.yml initial commit Nov 20, 2018
Dockerfile Update Dockerfile Nov 21, 2018
Makefile initial commit Nov 20, 2018
README.md Update ToC for README.md Dec 29, 2018
cleanup-pr-branch Do not delete the repo's default branch (#1) Dec 12, 2018
demo.png Add files via upload Nov 20, 2018
test.sh initial commit Nov 20, 2018

README.md

Branch Cleanup Action

Travis CI

A GitHub action to automatically delete the branch after a pull request has been merged.

NOTE: This will never delete the repository's default branch. If the pull request is closed without merging, it will not delete it.

Table of Contents

Usage

workflow "on pull request merge, delete the branch" {
  on = "pull_request"
  resolves = ["branch cleanup"]
}

action "branch cleanup" {
  uses = "jessfraz/branch-cleanup-action@master"
  secrets = ["GITHUB_TOKEN"]
}

demo

Contributing

Running the tests

The tests use shellcheck. You don't need to install anything. They run in a container.

$ make test