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

Folders and files

NameName
Last commit message
Last commit date

Latest commit

ย 

History

10 Commits
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 

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

About

๐Ÿ’„ PR auto set label follow its title.

Topics

Resources

License

Stars

Watchers

Forks