Skip to content

Commit

Permalink
chore(workflow): add PR labeler (#850)
Browse files Browse the repository at this point in the history
  • Loading branch information
chenjiahan authored Mar 23, 2024
1 parent c23d83c commit 3c88d59
Show file tree
Hide file tree
Showing 2 changed files with 31 additions and 0 deletions.
10 changes: 10 additions & 0 deletions .github/pr-labeler.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
"change: feat":
- "/^(feat|types|style)/"
"change: fix":
- "/^fix/"
"change: perf":
- "/^perf/"
"change: breaking":
- "/^breaking change/"
"change: docs":
- "/^docs/"
21 changes: 21 additions & 0 deletions .github/workflows/pr-label.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
name: PR Labeler

on:
pull_request_target:
types:
- opened
- edited

jobs:
change-labeling:
name: Labeling for changes
runs-on: ubuntu-latest
if: github.repository == 'web-infra-dev/rspress'
steps:
- uses: github/[email protected]
with:
repo-token: "${{ secrets.GITHUB_TOKEN }}"
configuration-path: .github/pr-labeler.yml
enable-versioned-regex: 0
include-title: 1
sync-labels: 1

0 comments on commit 3c88d59

Please sign in to comment.