8 days ago
We have an existing ephemeral PR environment with per-service GitHub deployment triggers. We want to pause automatic deployments for just that PR while keeping its environment and existing deployment intact.
- If we update only branch via deploymentTriggerUpdate to a nonexistent holding branch, can a later GitHub pull_request.synchronize event recreate or reset those triggers or otherwise deploy the PR services?
- Does omitting rootDirectory, repository, and checkSuites preserve their existing values, including any trigger-specific root-directory override?
- Is there a supported reversible PR-environment-specific setting that stops all automatic PR deployments without deleting the environment or affecting other PRs, and without deploying services during the setting change?
Please do not ask us to post access tokens, environment variables, or secrets.
1 Replies
Status changed to Awaiting Railway Response Railway • 8 days ago
8 days ago
Hi Rod,
Answers from how the trigger update works on our side:
-
Repointing the trigger's branch to a holding branch stops deploys for that PR: a push to the PR branch no longer matches the trigger, and a pull_request synchronize event doesn't recreate or reset triggers; deploys for PR environments come from push events matched against the trigger's branch. The only things that bring a trigger back are an environment change that sets the service's source branch, or a trigger that has been deleted outright and is later repaired from the service's source.
-
Yes. Fields you omit from deploymentTriggerUpdate are left exactly as they are, including repository, checkSuites and a trigger-specific root directory override. One caveat: sending null for rootDirectory is also treated as "leave unchanged", so an override can't be cleared through this mutation.
-
There's no per-PR-environment "pause" switch. The reversible way is what you describe: update the trigger's branch, and update it back later. Updating a trigger doesn't deploy anything and doesn't touch the environment or its existing deployment. Deleting the trigger also works but is less safe, since a later repair can recreate it from the service's source branch.
Status changed to Awaiting User Response Railway • 8 days ago
16 hours 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 16 hours ago