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
issue created on day 0
label assigned on day 5
label unassigned on day 10
issue closed on day 15
The answer for that label should be 5 but according to this code it is going to be 20 since we add issue_closed_time - issue_created_time to the label time if the issue is closed.
Can someone let me know if I missed something?
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
-
As you can see here:
https://github.com/github/issue-metrics/blob/main/labels.py#L86-L90
If the issue is closed we add the entire time the issue was open to the time the label was assigned to an item. The seems wrong to me for example if:
issue created on day 0
label assigned on day 5
label unassigned on day 10
issue closed on day 15
The answer for that label should be
5
but according to this code it is going to be20
since we addissue_closed_time - issue_created_time
to the label time if the issue is closed.Can someone let me know if I missed something?
Beta Was this translation helpful? Give feedback.
All reactions