Build notifications have unescaped url
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
- Create amplify app
- setup build notifications
- push a branch with "/" in it
- receive wrongly formatted build notification
Hi @cedWetzel 👋 , thanks for raising this! I was able to reproduce this behavior and marking it as a bug.
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.