PR Deployment preview URL is wrong Link in Github status
sherryyiyang
PROOP

3 months ago

Hi, I am working on a testing tool on Github App that should able to integrated with all deployment platform.

We have trouble to integrate with Railway Github APP auto deployment, since the deployment preview URL is wrongly set to setting page of the project instead of the real preview page (pls check the screenshot attached), therefore the upstream tools who depends on Railway deployment preview link will failed.

Can railway engineer fix this bug?

Solved

4 Replies

sam-a
EMPLOYEE

3 months ago

We can confirm the GitHub deployment status for PR environments is linking to the project settings page instead of the actual preview URL (e.g., web-cal-com-pr-6.up.railway.app). We've filed this as a bug for our engineering team to address.


Status changed to Awaiting User Response Railway 3 months ago


3 months ago

This is actually intended behaviour because we create a single GitHub deployment per Railway PR environment. This means there can be multiple services with URLs and there is no clear URL that we can surface. What would your tool expect in this case (e.g. you have a Railway environment with 5 services that all have different web URLs)?


sherryyiyang
PROOP

3 months ago

Our tool do E2E test against the deployed URL in a PR: We listen the deployment event from Github Webhook and use the deploymentStatus?.environment_url || deployment?.payload?.web_url as the targeted testing URL. By this logic, we integrated finely with Vercel and Render.

Since Railway is doing a deployment, and I guess it should expose the deployed URL in Github event, so others tools can refer to it.

Maybe you can let me know where is the preview URL stored in payload in in your case, so we can do better integration.


Status changed to Awaiting Railway Response Railway 3 months ago


3 months ago

Currently the preview URL isn't exposed anywhere in the GitHub deployment status payload. As mentioned, we create one GitHub deployment per PR environment, which can contain multiple services with different URLs, so we link to the project page instead. We've tracked this as a feature request for our engineering team to explore, potentially surfacing service URLs when there's only a single service with a domain in the environment.


Status changed to Awaiting User Response Railway 3 months ago


Railway
BOT

2 months ago

This thread has been marked as solved automatically due to a lack of recent activity. Please re-open this thread or create a new one if you require further assistance. Thank you!

Status changed to Solved Railway about 2 months ago


Welcome!

Sign in to your Railway account to join the conversation.

Loading...