amplify-hosting icon indicating copy to clipboard operation
amplify-hosting copied to clipboard

Build notifications have unescaped url

Open cedWetzel opened this issue 1 year ago • 2 comments

Environment information

General

Describe the bug

We have amplify branch deployments and their build notifications enabled. When pushing branches like feature/cool-thing, the deployment URL is something like https://feature-cool-thing.[appid].amplifyapp.com

The build notification states

Build notification from the AWS Amplify Console for app: https://feature/cool-thing.du3jckf[...].amplifyapp.com/.

Instead the branch name should be dash encoded

Reproduction steps

  1. Create amplify app
  2. setup build notifications
  3. push a branch with "/" in it
  4. receive wrongly formatted build notification

cedWetzel avatar Aug 29 '24 18:08 cedWetzel

Hi @cedWetzel 👋 , thanks for raising this! I was able to reproduce this behavior and marking it as a bug.

Jay2113 avatar Aug 29 '24 19:08 Jay2113

For anyone else awaiting a fix and seeking a temporary solution, try configuring CloudWatch (EventBridge) to track your Amplify builds and relay them to Slack (or wherever) via a Lambda function.

sh-ravan avatar Feb 27 '25 16:02 sh-ravan