- use the right commit for from date

This commit is contained in:
Mike Penz
2023-07-28 07:49:48 +00:00
committed by GitHub
parent b1ec88d831
commit 985ee60688
3 changed files with 3 additions and 3 deletions
Generated Vendored
+1 -1
View File
@@ -26900,7 +26900,7 @@ class PullRequests {
}
const firstCommit = commits[0];
const lastCommit = commits[commits.length - 1];
let fromDate = moment_1.default.min(lastCommit.authorDate, lastCommit.commitDate); // get the lower date (e.g. if commits are modified)
let fromDate = moment_1.default.min(firstCommit.authorDate, firstCommit.commitDate); // get the lower date (e.g. if commits are modified)
const toDate = moment_1.default.max(lastCommit.authorDate, lastCommit.commitDate); // ensure we get the higher date (e.g. in case of rebases)
const maxDays = configuration.max_back_track_time_days;
const maxFromDate = toDate.clone().subtract(maxDays, 'days');
Generated Vendored
+1 -1
View File
File diff suppressed because one or more lines are too long