N
Neon•2y ago
deep-jade

Creating Neon branches using Vercel integration

I created a Pull Request, and can see a preview branch was created in Neon. However, I can't see the Neon branch URL in the Pull Request comments. I thought the Vercel integration was supposed to add the comment automatically 🤔
No description
3 Replies
criminal-purple
criminal-purple•2y ago
Do you mean the database connection string? We wouldn't add that for security reasons. We do have an example repository that uses our GitHub Actions to mimic the Vercel intgeration's behaviour, with some added flexbility. This does add a comment with URL to the Neon console for the specific branch: https://github.com/neondatabase/preview-branches-with-vercel
GitHub
GitHub - neondatabase/preview-branches-with-vercel: Example project...
Example project that shows how you can create a branch for every preview deployment on Vercel using GitHub actions - neondatabase/preview-branches-with-vercel
deep-jade
deep-jadeOP•2y ago
sorry, I meant the Neon console URL. Any reason why the Vercel integration can't create such comment?
criminal-purple
criminal-purple•2y ago
I think because it's not connected directly to your GitHub. It's using Vercel data. I think we'd need to somehow post the comment via the Vercel permissions against the repo. I'll run it by Mike our PM. We do have a GitHub integration in the works that could potentially handle some of this.

Did you find this page helpful?