Motivation
Currently, the RunDispatch function calls GenerateKubernetesDeployment and checks for the existence of the AUTO_MERGE file. This means that when a deployment is dispatched, the resulting PR will be automerged if AUTO_MERGE exists. We want this functionality to apply to manual deployments too, and those use the GenerateDeployment function. So we want to also check for the existence of the AUTO_MERGE file within that function too
Acceptance criteria
Motivation
Currently, the
RunDispatchfunction callsGenerateKubernetesDeploymentand checks for the existence of theAUTO_MERGEfile. This means that when a deployment is dispatched, the resulting PR will be automerged ifAUTO_MERGEexists. We want this functionality to apply to manual deployments too, and those use theGenerateDeploymentfunction. So we want to also check for the existence of theAUTO_MERGEfile within that function tooAcceptance criteria
GenerateDeploymentfunction checks for the existance of theAUTO_MERGEfile and automerges the PR when it exists