Automattic / ghactivity

WordPress plugin. Build reports of all your GitHub activity.
https://wordpress.org/plugins/ghactivity/
6 stars 2 forks source link

Attempt to fix a AverageLabelTime issues #36

Closed brbrr closed 5 years ago

brbrr commented 5 years ago

AverageLabelTime for multiple labels is not reliable due to a few reasons:

  1. Not all issues are synced up with GitHub;
  2. Initial implementation of multiple labeled ALT (#30) wasn't really smart for cases when one of the labels was unlabeled;
  3. GitHub Events API returns historical events, meaning label names in these events matching to original values, and does not include updated (renamed) label names.

This PR is fixing the first two points, while the third point can be only fixed manually via re-labeling.

What is done is this PR: