From 6c605ac99046731efa074ba092ad539683345435 Mon Sep 17 00:00:00 2001 From: Antonin Deniau Date: Fri, 13 Oct 2023 11:02:01 +0000 Subject: [PATCH] Number --- .github/workflows/notify.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/notify.yml b/.github/workflows/notify.yml index 8191066..57acc6c 100644 --- a/.github/workflows/notify.yml +++ b/.github/workflows/notify.yml @@ -15,7 +15,7 @@ jobs: id: slack-pr uses: slackapi/slack-github-action@v1.24.0 with: - payload: "{\"text\":\"New pull request on repository ${{ github.repository }}: ${{ github.server_url }}/${{ github.repository }}/pull/${{ github.event.number }}\"}" + payload: "{\"text\":\"New pull request on repository ${{ github.repository }}: ${{ github.server_url }}/${{ github.repository }}/pull/${{ github.event.issue.number }}\"}" env: SLACK_WEBHOOK_URL: ${{ vars.SLACK_INCOMING_WEBHOOK_URL }} SLACK_WEBHOOK_TYPE: INCOMING_WEBHOOK @@ -24,7 +24,7 @@ jobs: id: slack-issue uses: slackapi/slack-github-action@v1.24.0 with: - payload: "{\"text\":\"New issue on repository ${{ github.repository }}: ${{ github.server_url }}/${{ github.repository }}/issues/${{ github.event.number }}\"}" + payload: "{\"text\":\"New issue on repository ${{ github.repository }}: ${{ github.server_url }}/${{ github.repository }}/issues/${{ github.event.issue.number }}\"}" env: SLACK_WEBHOOK_URL: ${{ vars.SLACK_INCOMING_WEBHOOK_URL }} SLACK_WEBHOOK_TYPE: INCOMING_WEBHOOK