ci(labeler): Don't bother checking the body

This commit is contained in:
TwiN 2025-03-06 21:48:42 -05:00 committed by GitHub
parent da3607106c
commit ca2c6899ed
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -18,7 +18,6 @@ jobs:
continue-on-error: true continue-on-error: true
env: env:
TITLE: ${{ github.event.issue.title }}${{ github.event.pull_request.title }} TITLE: ${{ github.event.issue.title }}${{ github.event.pull_request.title }}
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 }}${{ github.event.pull_request.number }} NUMBER: ${{ github.event.issue.number }}${{ github.event.pull_request.number }}
@ -34,10 +33,10 @@ jobs:
if [[ $TITLE == *"storage"* || $TITLE == *"postgres"* || $TITLE == *"sqlite"* ]]; then if [[ $TITLE == *"storage"* || $TITLE == *"postgres"* || $TITLE == *"sqlite"* ]]; then
gh issue edit "$NUMBER" --add-label "area/storage" gh issue edit "$NUMBER" --add-label "area/storage"
fi fi
if [[ $TITLE == *"security"* || $TITLE == *"oidc"* || $TITLE == *"oauth2"* || $BODY == *"security"* || $BODY == *"oidc"* || $BODY == *"oauth2"* ]]; then if [[ $TITLE == *"security"* || $TITLE == *"oidc"* || $TITLE == *"oauth2"* ]]; then
gh issue edit "$NUMBER" --add-label "area/security" gh issue edit "$NUMBER" --add-label "area/security"
fi fi
if [[ $TITLE == *"metric"* || $TITLE == *"prometheus"* || $BODY == *"metric"* || $BODY == *"prometheus"* ]]; then if [[ $TITLE == *"metric"* || $TITLE == *"prometheus"* ]]; then
gh issue edit "$NUMBER" --add-label "area/metrics" gh issue edit "$NUMBER" --add-label "area/metrics"
fi fi