-
Notifications
You must be signed in to change notification settings - Fork 705
107 lines (102 loc) · 4.43 KB
/
dashboard.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
name: Build Dashboard
on:
schedule:
- cron: '0 0 * * 1-5'
jobs:
build:
# This should only run in one place.
if: contains(github.repository, 'aws/s2n-tls')
runs-on: ubuntu-latest
permissions:
contents: write
steps:
- name: Check out repository
uses: actions/checkout@v3
- name: Check out GitHub Pages branch
uses: actions/checkout@v3
with:
ref: 'gh-pages'
- name: 'Generate Dashboard'
uses: ethomson/issue-dashboard@v1
with:
config: |
title: s2n-tls Dashboard
description: |
Issues and PRs for s2n-tls
output:
format: html
filename: dashboard/index.html
sections:
- title: 'Issues Age stats'
description: 'Open issues by age.'
widgets:
- type: 'graph'
title: 'Age'
elements:
- title: '<7 days'
issue_query: 'repo:aws/s2n-tls is:open is:issue created:>{{ date("-7 days") }}'
color: 'green'
- title: '8-90 days'
issue_query: 'repo:aws/s2n-tls is:open is:issue created:{{ date("-90 days") }}..{{ date("-7 days") }}'
color: 'yellow'
- title: '>1 year labeled type/api'
issue_query: 'repo:aws/s2n-tls is:open is:issue label:type/api created:<{{ date("-365 days") }}'
color: 'red'
- title: '>1 year labeled type/test'
issue_query: 'repo:aws/s2n-tls is:open is:issue label:type/test created:<{{ date("-365 days") }}'
color: 'red'
- title: '>1 year labeled type/build'
issue_query: 'repo:aws/s2n-tls is:open is:issue label:type/build created:<{{ date("-365 days") }}'
color: 'red'
- title: '>1 year labeled CBMC'
issue_query: 'repo:aws/s2n-tls is:open is:issue label:cbmc created:<{{ date("-365 days") }}'
color: 'red'
- title: 'Issues'
description: 'Issues with no comments'
widgets:
- type: 'number'
title: 'Issues with zero comments (external)'
issue_query: 'repo:aws/s2n-tls is:open is:issue comments:0 -label:s2n-core'
color: 'yellow'
- type: 'number'
title: 'Issues with updates in the last 14 days (external)'
issue_query: 'repo:aws/s2n-tls is:issue is:open updated:>{{ date("-14 days") }} -label:s2n-core'
color: 'yellow'
- title: 'Pull Requests'
widgets:
- type: 'number'
title: 'Ready to merge'
issue_query: 'repo:aws/s2n-tls is:open is:pr review:approved -label:do_not_merge'
color: 'green'
- type: 'number'
title: 'No review (external) last 14 days'
issue_query: 'repo:aws/s2n-tls is:open is:pr review:none -label:status/stale -label:s2n-core created:>{{ date("-14 days") }}'
color: 'red'
- type: 'number'
title: 'PRs with changes requested (external)'
issue_query: 'repo:aws/s2n-tls is:open is:pr review:changes_requested sort:created-asc -label:status/stale -label:s2n-core'
color: 'blue'
- type: 'number'
title: 'PRs with zero interactions (external)'
issue_query: 'repo:aws/s2n-tls is:open is:pr interactions:0 sort:created-asc -label:status/stale -label:s2n-core'
color: 'blue'
- type: 'number'
title: 'Stale PRs'
issue_query: 'repo:aws/s2n-tls is:open is:pr label:status/stale'
color: 'black'
- type: 'table'
title: '15 Oldest Pull Requests without review'
fields:
- title: 'PR'
property: 'number'
- title: 'Description'
property: 'title'
issue_query: 'repo:aws/s2n-tls is:open is:pr review:none sort:created-asc'
limit: 15
token: ${{ github.token }}
- name: Publish Documentation
uses: JamesIves/github-pages-deploy-action@v4
with:
folder: .
git-config-name: 'GitHub Actions'
git-config-email: '[email protected]'