Skip to content

Commit 6a74fff

Browse files
committed
BENCH-196 merge statuses added
1 parent 23878bf commit 6a74fff

File tree

1 file changed

+7
-6
lines changed

1 file changed

+7
-6
lines changed

.github/workflows/build_integration_and_code_analysis.yml

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -95,11 +95,12 @@ jobs:
9595
with:
9696
payload: |
9797
{
98-
"PR_URL": "${{ github.event.pull_request.html_url }}",
99-
"Sonar_Status": "${{ needs.Sonar-Cloud.outputs.job-status }}",
100-
"Test_Status": "${{ needs.Build-Test.outputs.job-status }}",
101-
"Title": "${{ github.event.pull_request.title }}",
102-
"Type": "${{ github.event.action }}"
103-
}
98+
"PR_URL": "${{ github.event_name == 'push' && github.event.repository.html_url || github.event.pull_request.html_url }}",
99+
"Sonar_Status": "${{ needs.Sonar-Cloud.outputs.job-status }}",
100+
"Test_Status": "${{ needs.Build-Test.outputs.job-status }}",
101+
"Title": "${{ github.event_name == 'push' && github.event.commits[0].message || github.event.pull_request.title }}",
102+
"Type": "${{ github.event_name == 'push' && 'Merged' || github.event.action }}",
103+
"Author": "${{ github.actor }}"
104+
}
104105
env:
105106
SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL }}

0 commit comments

Comments
 (0)