-
Notifications
You must be signed in to change notification settings - Fork 15
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Define 'PATCHSTACK.MAIL.DECAY.THRESHOLD' as Duration object
Signed-off-by: Maximilian Löffler <[email protected]>
- Loading branch information
1 parent
646c01a
commit 7c525b9
Showing
1 changed file
with
3 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -25,7 +25,7 @@ | |
## Copyright 2021 by Johannes Hostert <[email protected]> | ||
## Copyright 2021 by Mirabdulla Yusifli <[email protected]> | ||
## Copyright 2022 by Jonathan Baumann <[email protected]> | ||
## Copyright 2022-2023 by Maximilian Löffler <[email protected]> | ||
## Copyright 2022-2024 by Maximilian Löffler <[email protected]> | ||
## Copyright 2024 by Leo Sendelbach <[email protected]> | ||
## All Rights Reserved. | ||
|
||
|
@@ -113,7 +113,7 @@ DATASOURCE.TO.ARTIFACT.COLUMN = list( | |
|
||
|
||
## the maximum time difference between subsequent mails of a patchstack | ||
PATCHSTACK.MAIL.DECAY.THRESHOLD = "30 seconds" | ||
PATCHSTACK.MAIL.DECAY.THRESHOLD = lubridate::as.duration("30 seconds") | ||
|
||
## configuration parameters that do not reset the environment when changed | ||
CONF.PARAMETERS.NO.RESET.ENVIRONMENT = c("commit.messages", | ||
|
@@ -283,8 +283,7 @@ ProjectData = R6::R6Class("ProjectData", | |
## of 'PATCHSTACK.MAIL.DECAY.THRESHOLD' | ||
while (i < nrow(thread) && running) { | ||
if (thread[1, "author.name"] == thread[i + 1, "author.name"] && | ||
thread[i + 1, "date"] - thread[i, "date"] <= | ||
lubridate::as.duration(PATCHSTACK.MAIL.DECAY.THRESHOLD)) { | ||
thread[i + 1, "date"] - thread[i, "date"] <= PATCHSTACK.MAIL.DECAY.THRESHOLD) { | ||
i = i + 1 | ||
} else { | ||
running = FALSE | ||
|