File tree Expand file tree Collapse file tree 1 file changed +7
-6
lines changed
Expand file tree Collapse file tree 1 file changed +7
-6
lines changed Original file line number Diff line number Diff 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 }}
You can’t perform that action at this time.
0 commit comments