Pull request environment variable
Is there a way to determine if the current environment is a pull request environment via environment variables? I have some testing tools that I'd like to enable in PR environments, but for security reasons I don't want them to accidentally turn on for other environments.
Solution:Jump to solution
you could check the value of
RAILWAY_ENVIRONMENT_NAME
?
https://docs.railway.app/reference/variables#railway-provided-variables...3 Replies
Solution
you could check the value of
RAILWAY_ENVIRONMENT_NAME
?
https://docs.railway.app/reference/variables#railway-provided-variablesHm, good idea. The PR environments should alway start with <repo name>-pr-<pr number> right?
yep!