Przeglądaj źródła

feat: update to not post comment on workflows when no duplicates found (#13238)

Ryan Vogel 1 miesiąc temu
rodzic
commit
d723147083
1 zmienionych plików z 3 dodań i 1 usunięć
  1. 3 1
      .github/workflows/pr-management.yml

+ 3 - 1
.github/workflows/pr-management.yml

@@ -60,9 +60,11 @@ jobs:
         run: |
           COMMENT=$(bun script/duplicate-pr.ts -f pr_info.txt "Check the attached file for PR details and search for duplicates")
 
-          gh pr comment "$PR_NUMBER" --body "_The following comment was made by an LLM, it may be inaccurate:_
+          if [ "$COMMENT" != "No duplicate PRs found" ]; then
+            gh pr comment "$PR_NUMBER" --body "_The following comment was made by an LLM, it may be inaccurate:_
 
           $COMMENT"
+          fi
 
   add-contributor-label:
     runs-on: ubuntu-latest