Skip to content

Commit 1b74ba4

Browse files
authored
Refactor auto-assign job and enhance comment message
Updated conditions for auto-assign job and modified comment message to include review link.
1 parent d81d851 commit 1b74ba4

1 file changed

Lines changed: 5 additions & 6 deletions

File tree

.github/workflows/deploy.yml

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -21,11 +21,8 @@ permissions:
2121
jobs:
2222
auto_assign:
2323
runs-on: ubuntu-latest
24-
#if: github.event_name == 'pull_request' && github.event.action != 'closed'
25-
if: github.event.review.state == 'commented'
26-
steps:
27-
- name: Debug Reviewer Login
28-
run: echo "Reviewer Login:${{ github.event.review.user.login }}"
24+
if: github.event_name == 'pull_request' && github.event.action != 'closed'
25+
steps:
2926
- name: Checkout code
3027
uses: actions/checkout@v4
3128
- name: configure aws credentials
@@ -95,7 +92,9 @@ jobs:
9592
PR_NUMBER=${{ github.event.pull_request.number }}
9693
REVIEWER=${{ github.event.review.user.login }}
9794
TEAM_HANDLE="@${{ github.repository_owner }}/ai4sdlc-approval"
98-
COMMENT="$TEAM_HANDLE PR #$PR_NUMBER has a new review comment from @$REVIEWER and is ready for final review."
95+
#COMMENT="$TEAM_HANDLE PR #$PR_NUMBER has a new review comment from @$REVIEWER and is ready for final review."
96+
COMMENT="$TEAM_HANDLE PR #$PR_NUMBER has a new review comment from @$REVIEWER and is ready for final review. Please review the changes at the following site: http://${{ secrets.S3_BUCKET_NAME }}/mergeRequest/${PR_NUMBER}/index.html"
97+
9998
10099
curl -X POST \
101100
-H "Authorization: token $GITHUB_TOKEN" \

0 commit comments

Comments
 (0)