DSACMS / metrics

Experimentations in Open Source Repository Metrics
https://dsacms.github.io/metrics/
Other
6 stars 2 forks source link

Fix Report Colors not Having Correct Color Connotation #105

Closed IsaacMilarky closed 3 months ago

IsaacMilarky commented 3 months ago

Fix Report Colors not Having Correct Color Connotation

Closes #73

Problem

Some key values (such as Open PRs) were displaying as red when their value would go down. This is not the intended behavior for the reports.

Solution

Now, each heading in the report has a corresponding desired behavior i.e. commits have a desired behavior of INCREASE because we want to see more commits in the repository. A corresponding enumeration data structure has been created to represent the values of INCREASE and DECREASE.

Result

Reports generation now takes into account the desired report behavior of each report value when deciding the change in colors.