Skip to content

actions-cool/pr-auto-label

Use this GitHub action with your project
Add this Action to an existing workflow or create a new one
View on Marketplace

Repository files navigation

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