You're viewing an older version of this GitHub Action. Do you want to see the latest version instead?
GitHub Action
PR Auto Label
v1.0.1
PR auto set label follow its title.
name: PR Auto Label
on:
pull_request_target:
types: [opened, edited]
jobs:
set-labels:
runs-on: ubuntu-latest
steps:
- name: pr-auto-label
uses: actions-cool/pr-auto-label@v1
with:
token: ${{ secrets.GITHUB_TOKEN }}
enum: 'fix, feat, docs'
format: 'pr-${type}'
extra: 'feat/feature, docs/doc'
Name | Desc | Type | Required |
---|---|---|---|
token | GitHub token | string | ✖ |
enum | Only deal with these types, when no input will deal all | string | ✖ |
format | PR label format. Default pr(${type}) |
string | ✖ |
extra | Extra replacement | string | ✖ |
${type}
will replace the real PR title type.pr-${type}-${type}
is not support.
You are very welcome to try it out and put forward your comments. You can use the following methods:
- Report bugs or consult with Issue
- Submit Pull Request to improve the code of
pr-auto-label
也欢迎加入 钉钉交流群