Pull request environment variable
scarabcoder
PROOP

a year ago

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.

3 Replies

a year ago

you could check the value of RAILWAY_ENVIRONMENT_NAME ?


scarabcoder
PROOP

a year ago

Hm, good idea. The PR environments should alway start with -pr- right?


a year ago

yep!


Loading...