Skip to content

Commit

Permalink
Fix: Filtering invalid graphs for month comparison
Browse files Browse the repository at this point in the history
  • Loading branch information
AlexSim93 committed Apr 20, 2024
1 parent 1181ffc commit e40c6a7
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 4 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Pull request analytics action

![Version](https://img.shields.io/badge/version-2.2.7-blue) ![License](https://img.shields.io/badge/license-MIT-green)
![Version](https://img.shields.io/badge/version-2.2.8-blue) ![License](https://img.shields.io/badge/license-MIT-green)

**pull-request-analytics-action**: A powerful tool for analyzing the effectiveness of both teams and individual developers. This action generates reports based on data from pull requests, code reviews, and comments, enabling you to identify your team's strengths as well as areas needing improvement. The statistics collected by this GitHub Action can be displayed in the form of tables and graphs or passed on for further operations as markdown or a data collection.

Expand Down
4 changes: 3 additions & 1 deletion build/index.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "pull-request-analytics-action",
"version": "2.2.7",
"version": "2.2.8",
"description": "Generates detailed PR analytics reports within GitHub, focusing on review efficiency and team performance.",
"main": "build/index.js",
"scripts": {
Expand Down
4 changes: 3 additions & 1 deletion src/view/utils/createTimelineMonthComparisonChart.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,9 @@ export const createTimelineMonthComparisonChart = (
(user) =>
Object.values(data[user]).filter(
(value) =>
value.timeToReview && value.timeToApprove && value.timeToMerge
value[type as StatsType]?.timeToReview &&
value[type as StatsType]?.timeToApprove &&
value[type as StatsType]?.timeToMerge
).length > 2
)
.map((user) =>
Expand Down

0 comments on commit e40c6a7

Please sign in to comment.