forked from jessfraz/jessfraz
-
Notifications
You must be signed in to change notification settings - Fork 0
139 lines (127 loc) · 4.38 KB
/
metrics.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
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
name: Metrics
on:
# Schedule updates (each hour)
schedule: [{cron: "0 * * * *"}]
# Lines below let you run workflow manually and on each commit (optional)
workflow_dispatch:
push: {branches: ["main"]}
jobs:
notable:
runs-on: ubuntu-latest
steps:
- uses: lowlighter/metrics@latest
with:
filename: notable.svg
token: ${{ secrets.METRICS_SECRET }}
committer_token: ${{ secrets.GITHUB_TOKEN }}
base: ""
plugin_notable: yes
plugin_notable_indepth: yes
plugin_notable_repositories: yes
github-metrics:
runs-on: ubuntu-latest
steps:
- uses: lowlighter/metrics@latest
with:
filename: header.svg
# You'll need to setup a personal token in your secrets.
token: ${{ secrets.METRICS_SECRET }}
# GITHUB_TOKEN is a special auto-generated token used for commits
committer_token: ${{ secrets.GITHUB_TOKEN }}
# Options
user: pvdrz
template: classic
base: header
config_timezone: ${{ secrets.USER_TIMEZONE }}
lines:
runs-on: ubuntu-latest
steps:
- uses: lowlighter/metrics@latest
with:
filename: lines-of-code.svg
token: ${{ secrets.METRICS_SECRET }}
committer_token: ${{ secrets.GITHUB_TOKEN }}
base: "repositories"
plugin_lines: yes
acti_comm:
runs-on: ubuntu-latest
steps:
- uses: lowlighter/metrics@latest
with:
filename: acti_comm.svg
# You'll need to setup a personal token in your secrets.
token: ${{ secrets.METRICS_SECRET }}
# GITHUB_TOKEN is a special auto-generated token used for commits
committer_token: ${{ secrets.GITHUB_TOKEN }}
# Options
user: pvdrz
template: classic
base: activity, community
config_timezone: ${{ secrets.USER_TIMEZONE }}
iso_calender:
runs-on: ubuntu-latest
steps:
- uses: lowlighter/metrics@latest
with:
filename: iso_calender.svg
# You'll need to setup a personal token in your secrets.
token: ${{ secrets.METRICS_SECRET }}
# GITHUB_TOKEN is a special auto-generated token used for commits
committer_token: ${{ secrets.GITHUB_TOKEN }}
# Options
user: pvdrz
template: classic
base: ""
config_timezone: ${{ secrets.USER_TIMEZONE }}
plugin_isocalendar: yes
plugin_isocalendar_duration: half-year
habits:
runs-on: ubuntu-latest
steps:
- uses: lowlighter/metrics@latest
with:
filename: github-habits.svg
token: ${{ secrets.METRICS_SECRET }}
committer_token: ${{ secrets.GITHUB_TOKEN }}
config_timezone: ${{ secrets.USER_TIMEZONE }} # Set timezone
user: pvdrz
base: ""
template: classic
plugin_habits: yes
plugin_habits_from: 200 # Use 200 events to compute habits
plugin_habits_days: 14 # Keep only events from last 14 days
plugin_habits_charts: yes # Display charts section
plugin_habits_trim: yes # Trim unused hours on daily chart
issue_pr_lang:
runs-on: ubuntu-latest
steps:
- uses: lowlighter/metrics@latest
with:
filename: issue_pr_lang.svg
# You'll need to setup a personal token in your secrets.
token: ${{ secrets.METRICS_SECRET }}
# GITHUB_TOKEN is a special auto-generated token used for commits
committer_token: ${{ secrets.GITHUB_TOKEN }}
# Options
user: pvdrz
template: classic
base: ""
config_timezone: ${{ secrets.USER_TIMEZONE }}
plugin_followup: yes
plugin_languages: yes
plugin_followup_sections: "user"
repositories:
runs-on: ubuntu-latest
steps:
- uses: lowlighter/metrics@latest
with:
filename: repositories.svg
# You'll need to setup a personal token in your secrets.
token: ${{ secrets.METRICS_SECRET }}
# GITHUB_TOKEN is a special auto-generated token used for commits
committer_token: ${{ secrets.GITHUB_TOKEN }}
# Options
user: pvdrz
template: classic
base: repositories
config_timezone: ${{ secrets.USER_TIMEZONE }}