diff --git a/dist/index.js b/dist/index.js index 7da151c4..8e51603e 100644 --- a/dist/index.js +++ b/dist/index.js @@ -6514,8 +6514,8 @@ const codeReview = async (lightBot, heavyBot, options, prompts) => { core.warning(`Skipped: files data is missing`); return; } - // Filter out any file that is not changed compared to the target branch - const files = incrementalFiles.filter(incrementalChange => targetBranchFiles.some(changeRelativeToTargetBranch => changeRelativeToTargetBranch.filename === incrementalChange.filename)); + // Filter out any file that is changed compared to the incremental changes + const files = targetBranchFiles.filter(targetBranchFile => incrementalFiles.some(incrementalFile => incrementalFile.filename === targetBranchFile.filename)); if (!files) { core.warning(`Skipped: files is null`); return; @@ -6752,6 +6752,9 @@ ${lib_commenter/* EXTRA_CONTENT_TAG */.Nh} - The bot may make code suggestions, but please review them carefully before committing since the line number ranges may be misaligned. - You can edit the comment made by the bot and manually tweak the suggestion if it is slightly off. +### Ignoring further reviews +- Type \`@openai: ignore\` anywhere in the PR description to ignore further reviews from the bot. + --- ${filter_ignored_files.length > 0 diff --git a/src/review.ts b/src/review.ts index 4901b5dd..94a49672 100644 --- a/src/review.ts +++ b/src/review.ts @@ -414,6 +414,9 @@ ${EXTRA_CONTENT_TAG} - The bot may make code suggestions, but please review them carefully before committing since the line number ranges may be misaligned. - You can edit the comment made by the bot and manually tweak the suggestion if it is slightly off. +### Ignoring further reviews +- Type \`@openai: ignore\` anywhere in the PR description to ignore further reviews from the bot. + --- ${