Skip to content

Commit

Permalink
feat: add label-pr action --story=119540612
Browse files Browse the repository at this point in the history
  • Loading branch information
normal-wls committed Sep 6, 2024
1 parent 508f065 commit 798a100
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions .github/workflows/label-pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,12 @@ jobs:
gh pr edit ${{ github.event.pull_request.number }} --add-label bugfix
elif [[ "$PR_TITLE" == "feat:"* ]]; then
gh pr edit ${{ github.event.pull_request.number }} --add-label feature
elif [[ "$PR_TITLE" == "docs:"* ]]; then
gh pr edit ${{ github.event.pull_request.number }} --add-label optimization
elif [[ "$PR_TITLE" == "refactor:"* ]]; then
gh pr edit ${{ github.event.pull_request.number }} --add-label feature
elif [[ "$PR_TITLE" == "perf:"* ]]; then
gh pr edit ${{ github.event.pull_request.number }} --add-label optimization
else
echo "No label with this title: $PR_TITLE"
fi
Expand Down

0 comments on commit 798a100

Please sign in to comment.