From ca2c6899ed09ccfb8318a142168105806e0f384a Mon Sep 17 00:00:00 2001 From: TwiN Date: Thu, 6 Mar 2025 21:48:42 -0500 Subject: [PATCH] ci(labeler): Don't bother checking the body --- .github/workflows/labeler.yml | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/.github/workflows/labeler.yml b/.github/workflows/labeler.yml index 480fd7c4..5ab95be1 100644 --- a/.github/workflows/labeler.yml +++ b/.github/workflows/labeler.yml @@ -18,7 +18,6 @@ jobs: continue-on-error: true env: 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_REPO: ${{ github.repository }} NUMBER: ${{ github.event.issue.number }}${{ github.event.pull_request.number }} @@ -34,10 +33,10 @@ jobs: if [[ $TITLE == *"storage"* || $TITLE == *"postgres"* || $TITLE == *"sqlite"* ]]; then gh issue edit "$NUMBER" --add-label "area/storage" 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" 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" fi