Skip to content

Commit 5af27fb

Browse files
authored
make the git sha a link in slack notifications (#2709)
* make the git sha a link in slack notifications * use slack's mrkdwn link formatting
1 parent 0252331 commit 5af27fb

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

.github/workflows/build-and-push.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ jobs:
6060
payload: |
6161
{
6262
"channel": "${{ env.SLACK_CHANNEL }}",
63-
"text": "Docs build complete for ${{ github.server_url }}/${{ github.repository }}/commit/${{ github.sha }}."
63+
"text": "Docs build complete for <${{ github.server_url }}/${{ github.repository }}/commit/${{ github.sha }}|${{ github.sha }}>."
6464
}
6565
6666
- name: Slack notification — failure
@@ -72,5 +72,5 @@ jobs:
7272
payload: |
7373
{
7474
"channel": "${{ env.SLACK_CHANNEL }}",
75-
"text": "Docs build failed for ${{ github.server_url }}/${{ github.repository }}/commit/${{ github.sha }}."
75+
"text": "Docs build failed for <${{ github.server_url }}/${{ github.repository }}/commit/${{ github.sha }}|${{ github.sha }}>."
7676
}

0 commit comments

Comments
 (0)