You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
message: `### ⚠️ Cannot proceed with deployment\n\nThis pull request is attempting to merge into the \`not-main\` branch which is not the default branch of this repository (\`${data.inputs.stable_branch}\`). This deployment has been rejected since it could be dangerous to proceed.`,
1186
+
status: false
1187
+
})
1188
+
})
1189
+
1190
+
test('runs prechecks and finds that the PR is targeting a non-default branch and allows the deployment based on the action config',async()=>{
message: `✅ PR is approved and all CI checks passed`,
1236
+
status: true,
1237
+
noopMode: false,
1238
+
ref: 'test-ref',
1239
+
sha: 'abcde12345',
1240
+
isFork: false
1241
+
})
1242
+
})
1243
+
1086
1244
test('runs prechecks and finds that the IssueOps command is valid for a branch deployment and is from a forked repository and the PR is approved but CI is failing and it is a noop',async()=>{
// If the PR is targeting a branch other than the default branch (and it is not a stable branch deploy) reject the deployment
92
+
// If the PR is targeting a branch other than the default branch (and it is not a stable branch deploy) reject the deployment, unless the Action is explicitly configured to allow it
message=`### ⚠️ Cannot proceed with deployment\n\nThis pull request is attempting to merge into the \`${baseRef}\` branch which is not the default branch of this repository (\`${data.inputs.stable_branch}\`). This deployment has been rejected since it could be dangerous to proceed.`
0 commit comments