ci(labeler): Support pull request and issue number

This commit is contained in:
TwiN 2025-03-02 20:10:47 -05:00 committed by GitHub
parent b750fcd209
commit bb62a400f1
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -19,7 +19,7 @@ jobs:
BODY: ${{ github.event.issue.body }}${{ github.event.pull_request.body }} BODY: ${{ github.event.issue.body }}${{ github.event.pull_request.body }}
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
GH_REPO: ${{ github.repository }} GH_REPO: ${{ github.repository }}
NUMBER: ${{ github.event.issue.number }} NUMBER: ${{ github.event.issue.number }}${{ github.event.pull_request.number }}
run: | run: |
if [[ $TITLE == *"feat:"* || $TITLE == *"feat("* ]]; then if [[ $TITLE == *"feat:"* || $TITLE == *"feat("* ]]; then
gh issue edit "$NUMBER" --add-label "feature" gh issue edit "$NUMBER" --add-label "feature"