Skip to content

PR Auto Label

Actions
PR auto set label follow its title
v1.0.3
Latest
Star (7)

PR Auto Label

PR auto set label follow its title.

🚀 How to use?

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'

Inputs

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.

⚡ Feedback

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

也欢迎加入 钉钉交流群

Changelog

CHANGELOG

LICENSE

MIT

PR Auto Label is not certified by GitHub. It is provided by a third-party and is governed by separate terms of service, privacy policy, and support documentation.

About

PR auto set label follow its title
v1.0.3
Latest

PR Auto Label is not certified by GitHub. It is provided by a third-party and is governed by separate terms of service, privacy policy, and support documentation.