From a28654ac754852f188be4c9710d001172ba459ac Mon Sep 17 00:00:00 2001
From: Amy Stamile <74275278+amystamile-usgs@users.noreply.github.com>
Date: Mon, 5 Aug 2024 09:02:56 -0700
Subject: [PATCH] Updates to PR comment bot (#5574)

* Updates to PR comment bot

* addressed feedback
---
 .github/workflows/gitlab-codebuild.yml | 7 ++++++-
 1 file changed, 6 insertions(+), 1 deletion(-)

diff --git a/.github/workflows/gitlab-codebuild.yml b/.github/workflows/gitlab-codebuild.yml
index 1cfad11b00..cabd03b2fd 100644
--- a/.github/workflows/gitlab-codebuild.yml
+++ b/.github/workflows/gitlab-codebuild.yml
@@ -29,6 +29,7 @@ jobs:
   comment-bot:
       permissions: write-all
       runs-on: [ubuntu-latest]
+      needs: [build]
       steps:
       - name: Check out code
         uses: actions/checkout@v4 
@@ -36,5 +37,9 @@ jobs:
         uses: thollander/actions-comment-pull-request@v2
         with:
           message: |
-            The build and test suite have started for your pull request. View [build logs](https://us-west-2.codebuild.aws.amazon.com/project/eyJlbmNyeXB0ZWREYXRhIjoiNDJNZ2MxbHFKTkwxV1RyQUxJekdJY3FIanNqU29rMHB4Nk1YUzk4REIrZUZDeEtEaW9HQlZ1dTZOSHpML2VUTGVDekYydmVFcU9sUHJKN20wQzd1Q0UzSzJscnB0MElDb1M3Ti9GTlJYR1RuMWJTV3V1SkJTa3NoYmc9PSIsIml2UGFyYW1ldGVyU3BlYyI6IjF3U2NTSGlDcEtCc29YVnEiLCJtYXRlcmlhbFNldFNlcmlhbCI6MX0%3D) for results.
+            The build and test suite have started for your pull request. 
+            
+            To view your [build log](https://us-west-2.codebuild.aws.amazon.com/project/eyJlbmNyeXB0ZWREYXRhIjoiNDJNZ2MxbHFKTkwxV1RyQUxJekdJY3FIanNqU29rMHB4Nk1YUzk4REIrZUZDeEtEaW9HQlZ1dTZOSHpML2VUTGVDekYydmVFcU9sUHJKN20wQzd1Q0UzSzJscnB0MElDb1M3Ti9GTlJYR1RuMWJTV3V1SkJTa3NoYmc9PSIsIml2UGFyYW1ldGVyU3BlYyI6IjF3U2NTSGlDcEtCc29YVnEiLCJtYXRlcmlhbFNldFNlcmlhbCI6MX0%3D), please reference the build with source version: "PR_${{ github.event.number }}". 
+            
+            Additionally, check the latest "dev" source version to identify existing test failures. Please note that you are not responsible for the test failures that exist on both your PR and the dev branch.
           
\ No newline at end of file
-- 
GitLab