Skip to content

Commit

Permalink
Fix: Lead time accuracy
Browse files Browse the repository at this point in the history
  • Loading branch information
AlexSim93 committed May 14, 2024
1 parent a5e7b00 commit 316bc8b
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 12 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.8-blue) ![License](https://img.shields.io/badge/license-MIT-green)
![Version](https://img.shields.io/badge/version-2.2.9-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
10 changes: 5 additions & 5 deletions 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.8",
"version": "2.2.9",
"description": "Generates detailed PR analytics reports within GitHub, focusing on review efficiency and team performance.",
"main": "build/index.js",
"scripts": {
Expand Down
10 changes: 5 additions & 5 deletions src/converters/utils/preparePullRequestTimeline.ts
Original file line number Diff line number Diff line change
Expand Up @@ -89,19 +89,19 @@ export const preparePullRequestTimeline = (

return {
...collection,
timeToReview: timeToReview
timeToReview: typeof timeToReview === 'number'
? [...(collection?.timeToReview || []), timeToReview]
: collection.timeToReview,
timeToApprove: timeToApprove
timeToApprove: typeof timeToApprove === 'number'
? [...(collection?.timeToApprove || []), timeToApprove]
: collection.timeToApprove,
timeToMerge: timeToMerge
timeToMerge: typeof timeToMerge === 'number'
? [...(collection?.timeToMerge || []), timeToMerge]
: collection.timeToMerge,
timeToReviewRequest: timeToReviewRequest
timeToReviewRequest: typeof timeToReviewRequest === 'number'
? [...(collection?.timeToReviewRequest || []), timeToReviewRequest]
: collection.timeToReviewRequest,
timeInDraft: timeInDraft
timeInDraft: typeof timeInDraft === 'number'
? [...(collection?.timeInDraft || []), timeInDraft]
: collection.timeInDraft,
pullRequestsInfo: [
Expand Down

0 comments on commit 316bc8b

Please sign in to comment.