Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions .github/actions/test-robot-check/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,12 +40,12 @@ runs:
const has = new Set(labels.map(l => l.name));

if (!has.has(labelNeeded)) {
core.info(`\`${labelNeeded}\` not present — no robot testing required.`);
core.info(`\`${labelNeeded}\` not present. No robot testing required.`);
return;
}

if (has.has(labelDone)) {
core.info(`\`${labelDone}\` present — robot testing confirmed.`);
core.info(`\`${labelDone}\` present. Robot testing confirmed.`);
return;
}

Expand All @@ -55,4 +55,4 @@ runs:
`\`${labelNeeded}\` is present but \`${labelDone}\` has not been added. This PR cannot be merged until robot testing is complete.${shaLine}\n\n` +
`> [!IMPORTANT]\n> Add \`${labelDone}\` once robot testing is complete.`
);
core.setFailed(`\`${labelNeeded}\` is present but \`${labelDone}\` has not been added — robot testing must be completed before merging.`);
core.setFailed(`\`${labelNeeded}\` is present but \`${labelDone}\` has not been added. Robot testing must be completed before merging.`);
8 changes: 4 additions & 4 deletions .github/actions/test-robot-label/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -42,20 +42,20 @@ runs:

if (!has.has(labelDone)) {
if (has.has(labelNeeded)) {
core.warning(`\`${labelDone}\` not found — \`${labelNeeded}\` is present but testing is not confirmed.`);
core.warning(`\`${labelDone}\` not found. \`${labelNeeded}\` is present but testing is not confirmed.`);
await postComment(
`### ⚠️ Robot Testing Incomplete\n\n` +
`\`${labelNeeded}\` is present but \`${labelDone}\` has not been added yet.${shaLine}\n\n` +
`> [!WARNING]\n> Add \`${labelDone}\` once robot testing is complete.`
);
} else {
core.info(`\`${labelDone}\` not present — nothing to do.`);
core.info(`\`${labelDone}\` not present. Nothing to do.`);
}
return;
}

core.info(`\`${labelDone}\` found — posting confirmation comment.`);
core.info(`\`${labelDone}\` found. Posting confirmation comment.`);
await postComment(
`### ✅ Robot Test Complete\n\n` +
`\`${labelDone}\` has been added — robot testing has been confirmed for this PR.${shaLine}`
`\`${labelDone}\` has been added. Robot testing has been confirmed for this PR.${shaLine}`
);
4 changes: 2 additions & 2 deletions .github/actions/test-robot-unlabel/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ runs:
const has = new Set(labels.map(l => l.name));

if (!has.has(labelDone)) {
core.info(`\`${labelDone}\` not present — nothing to do.`);
core.info(`\`${labelDone}\` not present. Nothing to do.`);
return;
}

Expand All @@ -49,7 +49,7 @@ runs:

const shaLine = sha ? `\n\n**Commit:** \`${sha}\`` : '';
const warning = !has.has(labelNeeded)
? `\n\n> [!WARNING]\n> \`${labelDone}\` was removed but \`${labelNeeded}\` was not present — this PR may not be queued for robot testing.`
? `\n\n> [!WARNING]\n> \`${labelDone}\` was removed but \`${labelNeeded}\` was not present. This PR may not be queued for robot testing.`
: '';

await postComment(
Expand Down
Loading