Skip to content
skip-back

GitHub Action

PR Auto Label

v1.0.3 Latest version

PR Auto Label

skip-back

PR Auto Label

PR auto set label follow its title

Installation

Copy and paste the following snippet into your .yml file.

              

- name: PR Auto Label

uses: actions-cool/[email protected]

Learn more about this action in actions-cool/pr-auto-label

Choose a version

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