I’m currently deploying a site (both as drafts and to production) using netlify-cli on a GitLab CI runner. The command to deploy drafts I use is the following:
netlify deploy --site $NETLIFY_SITE_ID --auth $NETLIFY_AUTH_TOKEN --json | tee deployResults.json
Deploys are successfull, but the Slack integration which posts this message when a deploy is successful has the production URL in the title. I would prefer if it would directly link to the deployed draft subdomain (under netlify.app).
I’ve tried looking for an option to change this behavior, but I can’t find it anywhere. iirc the link is correct for Netlify regular builds, it’s just deploys through netlify-cli that are failing.
The site ID is hocus-app.netlify.app (or time.hocus.app).
Thanks so much! We do have an open feature request on the topic to which I’ve added your voice. I don’t see that changing in the near future but if it does, I’ll follow up in this thread with details!