diff --git a/README.md b/README.md index 385178d..5114ab5 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,6 @@ # Pull request analytics action -![Version](https://img.shields.io/badge/version-2.2.2-blue) ![License](https://img.shields.io/badge/license-MIT-green) +![Version](https://img.shields.io/badge/version-2.2.3-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. diff --git a/build/index.js b/build/index.js index aec1654..ffc45eb 100644 --- a/build/index.js +++ b/build/index.js @@ -2932,7 +2932,7 @@ const createTimelineGanttBar = (data, type, users, date) => { return ""; } return (0, common_1.createGanttBar)({ - title: `Pull requests timeline(${type === "percentile" ? parseInt((0, utils_1.getValueAsIs)("PERCENTILE")) : ""}th ${type}) ${date} / minutes`, + title: `Pull requests timeline(${type === "percentile" ? parseInt((0, utils_1.getValueAsIs)("PERCENTILE")) : ""}${type === "percentile" ? "th" : ""} ${type}) ${date} / minutes`, sections: users .filter((user) => data[user]?.[date]?.[type]?.timeToReview && data[user]?.[date]?.[type]?.timeToApprove && @@ -3121,7 +3121,7 @@ const createTimelineTable = (data, type, users, date) => { ]; }); const pullRequestTimeLine = (0, common_1.createTable)({ - title: `Pull requests timeline(${type === "percentile" ? parseInt((0, utils_1.getValueAsIs)("PERCENTILE")) : ""}th ${type}) ${date}`, + title: `Pull requests timeline(${type === "percentile" ? parseInt((0, utils_1.getValueAsIs)("PERCENTILE")) : ""}${type === "percentile" ? "th" : ""} ${type}) ${date}`, description: "**Time to review** - time from PR creation to first review. \n**Time to approve** - time from PR creation to first approval without requested changes. \n**Time to merge** - time from PR creation to merge.", table: { headers: [ diff --git a/package.json b/package.json index 182cbd7..0178db0 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "pull-request-analytics-action", - "version": "2.2.2", + "version": "2.2.3", "description": "Generates detailed PR analytics reports within GitHub, focusing on review efficiency and team performance.", "main": "build/index.js", "scripts": { diff --git a/src/view/utils/createTimelineGanttBar.ts b/src/view/utils/createTimelineGanttBar.ts index aaaab6c..ce3a601 100644 --- a/src/view/utils/createTimelineGanttBar.ts +++ b/src/view/utils/createTimelineGanttBar.ts @@ -30,7 +30,7 @@ export const createTimelineGanttBar = ( return createGanttBar({ title: `Pull requests timeline(${ type === "percentile" ? parseInt(getValueAsIs("PERCENTILE")) : "" - }th ${type}) ${date} / minutes`, + }${type === "percentile" ? "th" : ""} ${type}) ${date} / minutes`, sections: users .filter( (user) => diff --git a/src/view/utils/createTimelineTable.ts b/src/view/utils/createTimelineTable.ts index dfa6015..33fc084 100644 --- a/src/view/utils/createTimelineTable.ts +++ b/src/view/utils/createTimelineTable.ts @@ -37,7 +37,7 @@ export const createTimelineTable = ( const pullRequestTimeLine = createTable({ title: `Pull requests timeline(${ type === "percentile" ? parseInt(getValueAsIs("PERCENTILE")) : "" - }th ${type}) ${date}`, + }${type === "percentile" ? "th" : ""} ${type}) ${date}`, description: "**Time to review** - time from PR creation to first review. \n**Time to approve** - time from PR creation to first approval without requested changes. \n**Time to merge** - time from PR creation to merge.", table: {