| 1 |
name: Build Dashboard |
| 2 |
|
| 3 |
on: |
| 4 |
schedule: |
| 5 |
- cron: '0 0 * * 1-5' |
| 6 |
jobs: |
| 7 |
build: |
| 8 |
|
| 9 |
if: contains(github.repository, 'aws/s2n-tls') |
| 10 |
runs-on: ubuntu-latest |
| 11 |
permissions: |
| 12 |
contents: write |
| 13 |
steps: |
| 14 |
- name: Check out repository |
| 15 |
uses: actions/checkout@v7 |
| 16 |
- name: Check out GitHub Pages branch |
| 17 |
uses: actions/checkout@v7 |
| 18 |
with: |
| 19 |
ref: 'gh-pages' |
| 20 |
|
| 21 |
- name: 'Generate Dashboard' |
| 22 |
uses: ethomson/issue-dashboard@v1 |
| 23 |
with: |
| 24 |
config: | |
| 25 |
title: s2n-tls Dashboard |
| 26 |
description: | |
| 27 |
Issues and PRs for s2n-tls |
| 28 |
output: |
| 29 |
format: html |
| 30 |
filename: dashboard/index.html |
| 31 |
sections: |
| 32 |
- title: 'Issues Age stats' |
| 33 |
description: 'Open issues by age.' |
| 34 |
widgets: |
| 35 |
- type: 'graph' |
| 36 |
title: 'Age' |
| 37 |
elements: |
| 38 |
- title: '<7 days' |
| 39 |
issue_query: 'repo:aws/s2n-tls is:open is:issue created:>{{ date("-7 days") }}' |
| 40 |
color: 'green' |
| 41 |
- title: '8-90 days' |
| 42 |
issue_query: 'repo:aws/s2n-tls is:open is:issue created:{{ date("-90 days") }}..{{ date("-7 days") }}' |
| 43 |
color: 'yellow' |
| 44 |
- title: '>1 year labeled type/api' |
| 45 |
issue_query: 'repo:aws/s2n-tls is:open is:issue label:type/api created:<{{ date("-365 days") }}' |
| 46 |
color: 'red' |
| 47 |
- title: '>1 year labeled type/test' |
| 48 |
issue_query: 'repo:aws/s2n-tls is:open is:issue label:type/test created:<{{ date("-365 days") }}' |
| 49 |
color: 'red' |
| 50 |
- title: '>1 year labeled type/build' |
| 51 |
issue_query: 'repo:aws/s2n-tls is:open is:issue label:type/build created:<{{ date("-365 days") }}' |
| 52 |
color: 'red' |
| 53 |
- title: '>1 year labeled CBMC' |
| 54 |
issue_query: 'repo:aws/s2n-tls is:open is:issue label:cbmc created:<{{ date("-365 days") }}' |
| 55 |
color: 'red' |
| 56 |
|
| 57 |
- title: 'Issues' |
| 58 |
description: 'Issues with no comments' |
| 59 |
widgets: |
| 60 |
- type: 'number' |
| 61 |
title: 'Issues with zero comments (external)' |
| 62 |
issue_query: 'repo:aws/s2n-tls is:open is:issue comments:0 -label:s2n-core' |
| 63 |
color: 'yellow' |
| 64 |
- type: 'number' |
| 65 |
title: 'Issues with updates in the last 14 days (external)' |
| 66 |
issue_query: 'repo:aws/s2n-tls is:issue is:open updated:>{{ date("-14 days") }} -label:s2n-core' |
| 67 |
color: 'yellow' |
| 68 |
|
| 69 |
- title: 'Pull Requests' |
| 70 |
widgets: |
| 71 |
- type: 'number' |
| 72 |
title: 'Ready to merge' |
| 73 |
issue_query: 'repo:aws/s2n-tls is:open is:pr review:approved -label:do_not_merge' |
| 74 |
color: 'green' |
| 75 |
- type: 'number' |
| 76 |
title: 'No review (external) last 14 days' |
| 77 |
issue_query: 'repo:aws/s2n-tls is:open is:pr comments:0 review:none -label:status/stale -label:s2n-core created:>{{ date("-14 days") }}' |
| 78 |
color: 'red' |
| 79 |
- type: 'number' |
| 80 |
title: 'PRs with changes requested (external)' |
| 81 |
issue_query: 'repo:aws/s2n-tls is:open is:pr review:changes_requested sort:created-asc -label:status/stale -label:s2n-core' |
| 82 |
color: 'blue' |
| 83 |
- type: 'number' |
| 84 |
title: 'PRs with zero interactions (external)' |
| 85 |
issue_query: 'repo:aws/s2n-tls is:open is:pr interactions:0 sort:created-asc -label:status/stale -label:s2n-core' |
| 86 |
color: 'blue' |
| 87 |
- type: 'number' |
| 88 |
title: 'Stale PRs' |
| 89 |
issue_query: 'repo:aws/s2n-tls is:open is:pr label:status/stale' |
| 90 |
color: 'black' |
| 91 |
- type: 'table' |
| 92 |
title: '15 Oldest Pull Requests without review' |
| 93 |
fields: |
| 94 |
- title: 'PR' |
| 95 |
property: 'number' |
| 96 |
- title: 'Description' |
| 97 |
property: 'title' |
| 98 |
issue_query: 'repo:aws/s2n-tls is:open is:pr review:none sort:created-asc' |
| 99 |
limit: 15 |
| 100 |
token: ${{ github.token }} |
| 101 |
|
| 102 |
- name: Publish Documentation |
| 103 |
uses: JamesIves/github-pages-deploy-action@v4 |
| 104 |
with: |
| 105 |
folder: . |
| 106 |
git-config-name: 'GitHub Actions' |
| 107 |
git-config-email: '[email protected]' |