Skip to content

Commit

Permalink
Fix CodeBuild URLs in build Slack messages
Browse files Browse the repository at this point in the history
  • Loading branch information
farski committed Feb 6, 2024
1 parent 4bf917b commit 180f684
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ci/src/slack-message-handler/builder.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ function codebuildUrl(event) {
const project = event.detail['project-name'];
const uuid = event.detail['build-id'].split('/')[1].split(':')[1];

return `https://console.aws.amazon.com/codesuite/codebuild/${account}/projects/${project}/build/${project}%3A${uuid}?region=${region}`;
return `https://${region}.console.aws.amazon.com/codesuite/codebuild/${account}/projects/${project}/build/${project}%3A${uuid}?region=${region}`;
}

module.exports = {
Expand Down

0 comments on commit 180f684

Please sign in to comment.