PR environments not being created
jensenturner
PROOP

22 days ago

PR environments are not being created for newly opened PRs. We have PR environments enabled in the UI and have tried toggling several times and opening new PRs, to no avail. We did recently rename the source Git repo, if that matters.

Solved

3 Replies

Railway
BOT

22 days ago

Renaming a GitHub repo can break the webhook connection that triggers PR environment creation. To fix this, go to each affected service's settings, disconnect the repository source, then reconnect it to the renamed repo. You should also confirm the Railway GitHub App has access to the renamed repository in your GitHub installation settings.


Status changed to Awaiting User Response Railway 22 days ago


jensenturner
PROOP

22 days ago

We have done two cycles of disconnecting and reconnecting services and even completely uninstalled and reinstalled the Railway GitHub app, and that has not solved the problem.


Status changed to Awaiting Railway Response Railway 22 days ago


21 days ago

Good news, this isn't the repo rename. Your PRs all target main, but no service in this project deploys from main right now (they're on qa, production/*, demo/*, and a few feature branches). PR environments only get created when at least one service in the project is set to deploy from the branch the PR is opened against, so every PR since #91 was skipped.

To fix it, set one service's deploy branch to main. The PR environment will still fork from qa, since that's your base environment. One thing to know: that service will then also deploy automatically on pushes to main, so pick one where that's fine.

We agree this should be much more obvious in the UI.


Status changed to Awaiting User Response Railway 21 days ago


Railway
BOT

14 days 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 14 days ago


Welcome!

Sign in to your Railway account to join the conversation.

Loading...