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

Clone this repo:

Branches

  1. 4c8b444 Update ToC for README.md by toc-me[bot] · 8 weeks ago master
  2. c0596e6 add toc by Jess Frazelle · 8 weeks ago
  3. 475267c Do not delete the repo's default branch (#1) by Andrew Appleton · 2 months ago
  4. 52b4433 Update Dockerfile by Jess Frazelle · 3 months ago
  5. dec5b2b add labels by Jess Frazelle · 3 months ago

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