-
Notifications
You must be signed in to change notification settings - Fork 4.4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
d93f7f7
commit 1fd8641
Showing
1,244 changed files
with
16,312 additions
and
88,972 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
File renamed without changes.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
```release-note:bug | ||
connect: Solves an issue where two upstream services with the same name in different namespaces were not getting routed to correctly by API Gateways. | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
#!/usr/bin/env bash | ||
# Copyright (c) HashiCorp, Inc. | ||
# SPDX-License-Identifier: BUSL-1.1 | ||
|
||
set -uo pipefail | ||
|
||
# This script is used in GitHub Actions pipelines to notify Slack of a job failure. | ||
|
||
if [[ $GITHUB_REF_NAME == "main" ]]; then | ||
GITHUB_ENDPOINT="https://github.com/${GITHUB_REPOSITORY}/commit/${GITHUB_SHA}" | ||
GITHUB_ACTIONS_ENDPOINT="https://github.com/${GITHUB_REPOSITORY}/actions/runs/${GITHUB_RUN_ID}" | ||
COMMIT_MESSAGE=$(git log -1 --pretty=%B | head -n1) | ||
SHORT_REF=$(git rev-parse --short "${GITHUB_SHA}") | ||
curl -X POST -H 'Content-type: application/json' \ | ||
--data \ | ||
"{ \ | ||
\"attachments\": [ \ | ||
{ \ | ||
\"fallback\": \"GitHub Actions workflow failed!\", \ | ||
\"text\": \"❌ Failed: \`${GITHUB_ACTOR}\`'s <${GITHUB_ACTIONS_ENDPOINT}|${GITHUB_JOB}> job failed for commit <${GITHUB_ENDPOINT}|${SHORT_REF}> on \`${GITHUB_REF_NAME}\`!\n\n- <${COMMIT_MESSAGE}\", \ | ||
\"footer\": \"${GITHUB_REPOSITORY}\", \ | ||
\"ts\": \"$(date +%s)\", \ | ||
\"color\": \"danger\" \ | ||
} \ | ||
] \ | ||
}" "${FEED_CONSUL_GH_URL}" | ||
else | ||
echo "Not posting slack failure notifications for non-main branch" | ||
fi |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.