https://github.com/jumpserver/action-auto-del-pr-branch
https://github.com/jumpserver/action-auto-del-pr-branch
Last synced: over 1 year ago
JSON representation
- Host: GitHub
- URL: https://github.com/jumpserver/action-auto-del-pr-branch
- Owner: jumpserver
- License: mit
- Created: 2020-07-20T06:29:47.000Z (almost 6 years ago)
- Default Branch: master
- Last Pushed: 2020-07-20T08:01:10.000Z (almost 6 years ago)
- Last Synced: 2024-04-13T17:54:28.989Z (about 2 years ago)
- Language: Shell
- Size: 1.95 KB
- Stars: 0
- Watchers: 3
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# 自动删除PR Merge后的分支
这个 action 是用来自动已Merge的分支进行删除的
## 约定条件
#### 分支 命名规范
格式:pr_${BRANCH_TO}_other
说明:分支必须以 pr_开头,后面是向 某个分支发起的PR请求分支, 最后是其他名字
## Inputs
无
## Example usage
```yaml
on:
pull_request:
types: [closed]
name: Auto delete the PR branch if need
jobs:
delete_pr_branch:
name: Auto delete the PR branch
runs-on: ubuntu-latest
steps:
- name: Auto delete the PR branch
uses: jumpserver/action-auto-del-pr-branch@master
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
```