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