From 5974a884da75858c79d824bd448d3435468fadf6 Mon Sep 17 00:00:00 2001 From: Nina Polshakova Date: Fri, 6 Dec 2024 17:11:40 -0500 Subject: [PATCH] Fix slack notification url (#10388) Co-authored-by: Bernie Birnbaum --- .github/workflows/docs-gen.yaml | 2 +- .github/workflows/nightly-tests.yaml | 2 +- .github/workflows/push-docs.yaml | 2 +- .github/workflows/trivy-analysis-scheduled.yaml | 2 +- changelog/v1.18.0-beta35/fix-notification-urls.yaml | 3 +++ 5 files changed, 7 insertions(+), 4 deletions(-) create mode 100644 changelog/v1.18.0-beta35/fix-notification-urls.yaml diff --git a/.github/workflows/docs-gen.yaml b/.github/workflows/docs-gen.yaml index ac4d3b82cf3..43c15261193 100644 --- a/.github/workflows/docs-gen.yaml +++ b/.github/workflows/docs-gen.yaml @@ -136,5 +136,5 @@ jobs: run : | curl -X POST\ -H 'Content-type: application/json'\ - --data '{"text":"Gloo Edge has on `main` branch"}'\ + --data '{"text":"k8sgateway has on `main` branch"}'\ ${{ env.SLACK_DEBUG_TESTING == true && secrets.SLACK_INTEGRATION_TESTING_WEBHOOK || secrets.EDGE_TEAM_BOTS_WEBHOOK }} diff --git a/.github/workflows/nightly-tests.yaml b/.github/workflows/nightly-tests.yaml index 8034d4d1d2f..47f2651a82c 100644 --- a/.github/workflows/nightly-tests.yaml +++ b/.github/workflows/nightly-tests.yaml @@ -488,7 +488,7 @@ jobs: go-version-file: go.mod - name: Send Slack Message env: - PARENT_JOB_URL: https://github.com/solo-io/gloo/actions/runs/${{github.run_id}} # parent job hyperlink + PARENT_JOB_URL: https://github.com/k8sgateway/k8sgateway/actions/runs/${{github.run_id}} # parent job hyperlink PREAMBLE: ${{ steps.compute-preamble.outputs.preamble }} # text to hyperlink at start of slack message SLACKBOT_BEARER: ${{ secrets.SLACKBOT_BEARER }} run: | diff --git a/.github/workflows/push-docs.yaml b/.github/workflows/push-docs.yaml index e3fc45c56f1..6b72d2e3dbb 100644 --- a/.github/workflows/push-docs.yaml +++ b/.github/workflows/push-docs.yaml @@ -184,7 +184,7 @@ jobs: env: SLACK_BOT_TOKEN: ${{ secrets.SLACK_BOT_TOKEN }} run: | - JOB_URL=https://github.com/solo-io/gloo/actions/runs/${GITHUB_RUN_ID} + JOB_URL=https://github.com/k8sgateway/k8sgateway/actions/runs/${GITHUB_RUN_ID} MESSAGE="❌ *Failure:* Automated copy of reference docs for ${{ steps.version-variables.outputs.minor }} failed. <${JOB_URL}|Review the workflow failure>" curl \ diff --git a/.github/workflows/trivy-analysis-scheduled.yaml b/.github/workflows/trivy-analysis-scheduled.yaml index abf7dc8e85f..fe17bbbda61 100644 --- a/.github/workflows/trivy-analysis-scheduled.yaml +++ b/.github/workflows/trivy-analysis-scheduled.yaml @@ -48,5 +48,5 @@ jobs: run : | curl -X POST\ -H 'Content-type: application/json'\ - --data '{"text":"Gloo Edge Vulnerability Scan has failed, visit https://github.com/solo-io/gloo/actions/runs/${{github.run_id}} to view logs."}'\ + --data '{"text":"k8sgateway Vulnerability Scan has failed, visit https://github.com/k8sgateway/k8sgateway/actions/runs/${{github.run_id}} to view logs."}'\ ${{ env.SLACK_DEBUG_TESTING == true && secrets.SLACK_INTEGRATION_TESTING_WEBHOOK || secrets.EDGE_TEAM_BOTS_WEBHOOK }} diff --git a/changelog/v1.18.0-beta35/fix-notification-urls.yaml b/changelog/v1.18.0-beta35/fix-notification-urls.yaml new file mode 100644 index 00000000000..b2d538343d0 --- /dev/null +++ b/changelog/v1.18.0-beta35/fix-notification-urls.yaml @@ -0,0 +1,3 @@ +changelog: + - type: NON_USER_FACING + description: Fix URLs in Slack notifications for GHAs such that they correctly link to actions in this repo. \ No newline at end of file