- 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
+1 -1
View File
@@ -195,7 +195,7 @@ export class PullRequests {
const firstCommit = commits[0]
const lastCommit = commits[commits.length - 1]
let fromDate = moment.min(lastCommit.authorDate, lastCommit.commitDate) // get the lower date (e.g. if commits are modified)
let fromDate = moment.min(firstCommit.authorDate, firstCommit.commitDate) // get the lower date (e.g. if commits are modified)
const toDate = moment.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