Skip to content

Commit cc07689

Browse files
committed
condition fix
Signed-off-by: Vedansh Saini <77830698+vedansh-5@users.noreply.github.com>
1 parent 10b5a5e commit cc07689

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/scripts/scrumHelper.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1424,14 +1424,13 @@ ${userReason}`;
14241424
itemCreatedDate.setHours(0,0,0,0);
14251425
const isCreatedToday = today.getTime() === itemCreatedDate.getTime();
14261426

1427-
const isNewPR = prCreatedDate == new Date();
1427+
const isNewPR = prCreatedDate >= startDateFilter && prCreatedDate << endDateFilter;
14281428
const prUpdatedDate = new Date(item.updated_at);
14291429
const isUpdatedInRange = prUpdatedDate >= startDateFilter && prUpdatedDate <= endDateFilter;
14301430

14311431
// Check if PR has commits in the date range
14321432
const hasCommitsInRange = item._allCommits && item._allCommits.length > 0;
14331433

1434-
log(`[PR DEBUG] PR #${number} - isNewPR: ${isNewPR}, isUpdatedInRange: ${isUpdatedInRange}, state: ${item.state}, hasCommitsInRange: ${hasCommitsInRange}, created: ${item.created_at}, updated: ${item.updated_at}`);
14351434

14361435
if (platform === 'github') {
14371436
// For existing PRs (not new), they must be open AND have commits in the date range

0 commit comments

Comments
 (0)