A Branch Cleanup

By jessfraz

Back

A Branch Cleanup

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

https://github.com/jessfraz/branch-cleanup-action

Travis CI

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