forked from AlexSim93/pull-request-analytics-action
-
Notifications
You must be signed in to change notification settings - Fork 0
/
action.yml
117 lines (116 loc) · 3.89 KB
/
action.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
name: "Pull Request Analytics"
author: "Aleksei Simatov"
description: "Generates detailed PR analytics reports within GitHub, focusing on review efficiency and team performance."
branding:
icon: "trending-up"
color: "orange"
inputs:
GITHUB_TOKEN:
description: "Github token"
required: true
GITHUB_REPO_FOR_ISSUE:
description: "Github repo for issue"
required: false
GITHUB_OWNER_FOR_ISSUE:
description: "Github owner for issue"
required: false
GITHUB_OWNERS_REPOS:
description: "Github owner/repository list separated by comma"
required: false
ORGANIZATIONS:
description: "Github organizations separated by comma"
required: false
SHOW_STATS_TYPES:
description: "Stats types that should be displayed in report. Values must be separated by comma. Can take values: 'timeline', 'workload', 'pr-quality', 'code-review-engagement'"
required: false
default: "timeline, workload, pr-quality, code-review-engagement"
AMOUNT:
description: "Amount of PRs"
required: false
default: "100"
REPORT_DATE_START:
description: "Start date for report(d/MM/yyyy)"
required: false
REPORT_DATE_END:
description: "End date for report(d/MM/yyyy)"
required: false
REPORT_PERIOD:
description: "Report period from now. Values format [unit]:value separated by commas. Supported units: 'years', 'months', 'weeks', 'days', 'hours', 'minutes', 'seconds'. Example: 'weeks:2'"
required: false
CORE_HOURS_START:
description: "Start time of core hours(HH:mm)"
required: false
CORE_HOURS_END:
description: "End time of core hours(HH:mm)"
required: false
HOLIDAYS:
description: "Holidays separated by comma(d/MM/yyyy)"
required: false
PERCENTILE:
description: "Percentile value for timeline"
required: false
default: "75"
TOP_LIST_AMOUNT:
description: "Amount of items in lists"
required: false
default: "5"
REVIEW_TIME_INTERVALS:
description: "Intervals for determining review times distribution"
required: false
APPROVAL_TIME_INTERVALS:
description: "Intervals for determining approval times distribution"
required: false
MERGE_TIME_INTERVALS:
description: "Intervals for determining merge times distribution"
required: false
PERIOD_SPLIT_UNIT:
description: "Unit for time segmentation. Can take values: 'years', 'quarters', 'months', 'none'"
required: false
default: "months"
LABELS:
description: "Multiple labels for issue separated by comma"
required: false
ASSIGNEES:
description: "Multiple assignees for issue separated by comma"
required: false
ISSUE_TITLE:
description: "Title for issue"
required: false
AGGREGATE_VALUE_METHODS:
description: "Aggregate value methods separated by comma. Can take values: 'percentile', 'average', 'median'"
required: false
default: "percentile"
HIDE_USERS:
description: "Hidden users separated by comma"
required: false
SHOW_USERS:
descriptions: "Shown users separated by comma"
required: false
INCLUDE_LABELS:
description: "Includes only PRs with mentioned labels. Values should be separated by comma"
required: false
EXCLUDE_LABELS:
description: "Excludes PRs with mentioned labels. Values should be separated by comma"
required: false
TIMEZONE:
description: "Timezone to use in action"
required: false
EXECUTION_OUTCOME:
description: "Outcome format separated by comma. Can take values: 'markdown', 'new-issue', 'collection', 'existing-issue'"
required: false
default: "new-issue"
ISSUE_NUMBER:
description: "Issue number"
required: false
ALLOW_ANALYTICS:
description: "Allows sending non-sensitive inputs to mixpanel"
required: false
default: true
outputs:
JSON_COLLECTION:
description: "JSON string with stats"
MARKDOWN:
description: "Markdown text with a report"
runs:
using: "node20"
main: "build/index.js"