You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When I ran issue-metrics v3 against a repository with several GitHub issues that utilize labels, I noticed a few of the "time label applied" measurements are reported as negative time, for example -1 day, 9:07:12. This should not be possible.
Negative time is reported for labels where they have moved from labeled, to unlabeled, to labeled on a given issue. This line skips labels that have been labeled but were at one point unlabeled causing this issue.
To Reproduce
Here is the Issue and respective Issue events for the given label where it displays negative time spent on label.
Describe the bug
Thank you for this repository.
When I ran issue-metrics
v3
against a repository with several GitHub issues that utilize labels, I noticed a few of the "time label applied" measurements are reported as negative time, for example-1 day, 9:07:12
. This should not be possible.Negative time is reported for labels where they have moved from
labeled
, tounlabeled
, tolabeled
on a given issue. This line skips labels that have beenlabeled
but were at one pointunlabeled
causing this issue.To Reproduce
Here is the Issue and respective Issue events for the given label where it displays negative time spent on label.
Issue data:
Issue label events data::
This can also be reproduced in
TestLabels
if you add an additionallabeled
event for the labelbug
, it shows a negative number:Result:
Expected behavior
A "time label applied" measurement should not be reported as a negative time duration.
Screenshots
No response
Additional context
No response
The text was updated successfully, but these errors were encountered: