Skip to content

Commit f768b92

Browse files
authored
Merge pull request ceph#64296 from Naveenaidu/wip-naveen-introduce-fix-config-ok-command-logic
.github/workflows/scripts/config-diff-post-comment.js: fix config check ok logic
2 parents 02a0071 + 5382bf2 commit f768b92

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

.github/workflows/scripts/config-diff-post-comment.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,9 @@ module.exports = async ({ github, context, core, configDiff }) => {
1414
);
1515

1616
// Check if any comment contains `/config check ok`
17-
const configCheckOkComment = comments.find(comment => comment.body.includes("/config check ok"));
17+
const configCheckOkComment = comments.find(
18+
comment => comment.body.includes("/config check ok") && !comment.body.includes("### Config Diff Tool Output")
19+
);
1820
if (configCheckOkComment) {
1921
core.info("Found '/config check ok' comment. Returning with success.");
2022
return;

0 commit comments

Comments
 (0)