hernandesbsousa / branch-cleanup-action

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

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Branch Cleanup Action

Travis CI

A GitHub action to automatically delete the branch after a pull request has been merged. Here's a blog post describing this action in more detail.

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

About

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

License:MIT License


Languages

Language:Shell 61.6%Language:Makefile 24.0%Language:Dockerfile 14.4%