概要
プルリクエストのマージ後にブランチを自動削除する GitHub Action。
その他のプロジェクト計測したスター増加
- 24時間
- 0
- 7日間
- 0
- 15日間
- 0
- 1か月
- 履歴を収集中
期間ごとの純増数です。期間は重複しており、日別の値ではありません。未計測の値は空欄です。スター数は注目度の指標であり、品質の保証ではありません。
README.md
オリジナルBranch Cleanup Action
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 or protected branches. 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"]
}
If you include this in another Workflow, you may want to configure the environment variable NO_BRANCH_DELETED_EXIT_CODE. The default value for this is 78, as Github Actions will mark a check as "neutral" (neither failed/succeeded) when you exit with code 78. This will however cancel any other actions running in parallel in this workflow.
If you don't want it to cancel, configure your workflow as follows:
action "branch cleanup" {
uses = "jessfraz/branch-cleanup-action@master"
secrets = ["GITHUB_TOKEN"]
env = {
NO_BRANCH_DELETED_EXIT_CODE = "0"
}
}

Contributing
Running the tests
The tests use shellcheck. You don't need to install anything (assuming you have docker installed). The tests run in a container.
$ make test
関連プロジェクトを探す
読み込み中…