Skip to content

Potential bug in getAverageReviewInterval #31

Open
@wontonst

Description

@wontonst

Looking at function getAverageReviewInterval (callback)

This logic doesn't look right to me

                    reviewCreateTime = moment(mergedReviewsList[review].created);
                    reviewUpdateTime = moment(mergedReviewsList[review].updated);

                    interval = reviewUpdateTime.diff(reviewCreateTime, TIME_PERIOD_TYPE);

A commit that has been merged can still be commented on, and adding a comment changes the last updated timestamp. This shows the time between create and last updated but what we want is time between create and merge.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions