Skip to content

Commit 3b6164c

Browse files
committed
commits only for exisiting PRs
Signed-off-by: Vedansh Saini <[email protected]>
1 parent e44d0fb commit 3b6164c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/scripts/scrumHelper.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -952,7 +952,7 @@ ${userReason}`;
952952
li = `<li><i>(${project})</i> - ${prAction} (#${number}) - <a href='${html_url}'>${title}</a> ${pr_draft_button}</li>`;
953953
} else if (item.state === 'open') {
954954
li = `<li><i>(${project})</i> - ${prAction} (#${number}) - <a href='${html_url}'>${title}</a> ${pr_open_button}`;
955-
if (showCommits && item._allCommits && item._allCommits.length) {
955+
if (showCommits && item._allCommits && item._allCommits.length && !isNewPR) {
956956
item._allCommits.forEach(commit => {
957957
li += `<li style="list-style: disc; margin: 0 0 0 20px; padding: 0; color: #666;"><span style="color:#2563eb;">${commit.messageHeadline}</span><span style="color:#666; font-size: 11px;"> (${new Date(commit.committedDate).toLocaleString()})</span></li>`;
958958
});

0 commit comments

Comments
 (0)