https://github.com/jumpserver/action-auto-label-pr
https://github.com/jumpserver/action-auto-label-pr
Last synced: about 2 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/jumpserver/action-auto-label-pr
- Owner: jumpserver
- License: mit
- Created: 2020-07-17T08:16:37.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2020-07-17T08:34:07.000Z (over 5 years ago)
- Last Synced: 2025-10-16T14:29:16.853Z (3 months ago)
- Language: Shell
- Size: 1.95 KB
- Stars: 0
- Watchers: 0
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# 构建和上传 release assets
这个 action 是用来自动给 repo 的 PR 打标签的,因为 JumpServer 项目的 Release Log 是根据 PR 标签生成的
## 约定条件
根据 PR 标题中的字符来打标签:
fix => fix
feat => 新功能
perf => 优化
refactor => 优化
ci => 无需处理
## Inputs
无
## Example usage
```yaml
on:
pull_request:
types:
- opened
- edited
name: Auto add PR label
jobs:
add_pr_labels:
name: Auto add pull request labels if need
runs-on: ubuntu-latest
steps:
- name: Add labels
uses: jumpserver/action-auto-label-pr@master
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
```