Skip to content

Commit 5ce16ff

Browse files
aaronpowellCopilot
andauthored
Enhance approval comment suggestion criteria
Add check for staged comment in approval suggestion logic. Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
1 parent 38956b7 commit 5ce16ff

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

  • .github/extensions/open-pr-board/public

‎.github/extensions/open-pr-board/public/app.js‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -368,7 +368,7 @@ function stagedComment(item) {
368368

369369
function canSuggestApprovalComment(item) {
370370
return item?.column === "approve" && !item.decision && item.reviewStatus !== "queued" &&
371-
!bulkBusy && !decisionsInFlight.has(item.number) && !el.comment.value.trim();
371+
!bulkBusy && !decisionsInFlight.has(item.number) && !el.comment.value.trim() && !stagedComment(item).trim();
372372
}
373373

374374
function stageDraftComment() {

0 commit comments

Comments
 (0)