From c24764ad9135a8fd04fc8340c28ebb4fd3cdba46 Mon Sep 17 00:00:00 2001 From: Doug Chapman <54039637+dougch@users.noreply.github.com> Date: Tue, 6 Aug 2024 14:34:53 -0700 Subject: [PATCH 1/5] docs(gh dashboard): Static issue/pr dashboard --- .github/workflows/dashboard.yml | 104 ++++++++++++++++++++++++++++++++ 1 file changed, 104 insertions(+) create mode 100644 .github/workflows/dashboard.yml diff --git a/.github/workflows/dashboard.yml b/.github/workflows/dashboard.yml new file mode 100644 index 0000000000..28d5a7a563 --- /dev/null +++ b/.github/workflows/dashboard.yml @@ -0,0 +1,104 @@ +name: Dashboard + +on: + # TOOD: Remove before PR is out of draft + push: + branches: ["main"] + schedule: + - cron: '0 0 * * 1-5' +jobs: + build: + # This should only run in one place. + # TOOD: Change org before PR is out of draft + if: contains(github.repository, 'dougch/s2n-quic') + 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-quic Issue/PR Dashboard + description: | + Issues and PRs for s2n-quic + 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-quic is:open is:issue created:>{{ date("-7 days") }}' + color: 'green' + - title: '8-90 days' + issue_query: 'repo:aws/s2n-quic is:open is:issue created:{{ date("-90 days") }}..{{ date("-7 days") }}' + color: 'yellow' + - title: '>1 year labeled api' + issue_query: 'repo:aws/s2n-quic is:open is:issue label:api created:<{{ date("-365 days") }}' + color: 'red' + - title: '>1 year labeled test' + issue_query: 'repo:aws/s2n-quic is:open is:issue label:test created:<{{ date("-365 days") }}' + color: 'red' + - title: '>1 year labeled ci' + issue_query: 'repo:aws/s2n-quic is:open is:issue label:ci created:<{{ date("-365 days") }}' + color: 'red' + + - title: 'Issues' + description: 'Issues with no comments' + widgets: + - type: 'number' + title: 'All Issues with zero comments' + issue_query: 'repo:aws/s2n-quic is:open is:issue comments:0' + color: 'yellow' + - type: 'number' + title: 'Issues with updates in the last 14 days' + issue_query: 'repo:aws/s2n-quic is:issue is:open updated:>{{ date("-14 days") }}' + color: 'yellow' + + - title: 'Pull Requests' + widgets: + - type: 'number' + title: 'Ready to merge' + issue_query: 'repo:aws/s2n-quic is:open is:pr review:approved' + color: 'green' + - type: 'number' + title: 'No reviews- from dependatbot PRs' + issue_query: 'repo:aws/s2n-quic is:open is:pr review:none author:app/dependabot' + color: 'red' + - type: 'number' + title: 'PRs with changes requested' + issue_query: 'repo:aws/s2n-quic is:open is:pr review:changes_requested sort:created-asc -is:draft' + color: 'blue' + - type: 'number' + title: 'PRs with zero interactions (opened by a human)' + issue_query: 'repo:aws/s2n-quic is:open is:pr interactions:0 sort:created-asc -author:app/dependabot -is:draft' + color: 'blue' + - type: 'table' + title: '15 Oldest Pull Requests created by a human without a review' + fields: + - title: 'PR' + property: 'number' + - title: 'Description' + property: 'title' + issue_query: 'repo:aws/s2n-quic is:open is:pr review:none sort:created-asc -is:draft' + 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: 'nobody@github.com' From 3a11d1567d1e7b6d1cd6ecbc97e1a7dc0cd2ee36 Mon Sep 17 00:00:00 2001 From: Doug Chapman Date: Mon, 12 Aug 2024 18:30:34 +0000 Subject: [PATCH 2/5] add issues without an assigned priority to the dashboard --- .github/workflows/dashboard.yml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/.github/workflows/dashboard.yml b/.github/workflows/dashboard.yml index 28d5a7a563..c38abbf2c6 100644 --- a/.github/workflows/dashboard.yml +++ b/.github/workflows/dashboard.yml @@ -66,6 +66,10 @@ jobs: title: 'Issues with updates in the last 14 days' issue_query: 'repo:aws/s2n-quic is:issue is:open updated:>{{ date("-14 days") }}' color: 'yellow' + - type: 'number' + title: 'Issues without an assigned priority' + issue_query: 'repo:aws/s2n-quic is:issue is:open -label:priority/low -label:priority/medium -label:priority/high -label:MSRV' + color: 'yellow' - title: 'Pull Requests' widgets: From 7ba79ccd75472e7fac3d53f8fa661586ee0fa7ac Mon Sep 17 00:00:00 2001 From: Doug Chapman <54039637+dougch@users.noreply.github.com> Date: Fri, 16 Aug 2024 14:38:00 -0700 Subject: [PATCH 3/5] Remove testing repo --- .github/workflows/dashboard.yml | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/.github/workflows/dashboard.yml b/.github/workflows/dashboard.yml index c38abbf2c6..7aa452743e 100644 --- a/.github/workflows/dashboard.yml +++ b/.github/workflows/dashboard.yml @@ -1,7 +1,6 @@ name: Dashboard on: - # TOOD: Remove before PR is out of draft push: branches: ["main"] schedule: @@ -9,8 +8,7 @@ on: jobs: build: # This should only run in one place. - # TOOD: Change org before PR is out of draft - if: contains(github.repository, 'dougch/s2n-quic') + if: contains(github.repository, 'aws/s2n-quic') runs-on: ubuntu-latest permissions: contents: write From a59b9f618ae3ee1a5d5d2c5abf8ac171f039871c Mon Sep 17 00:00:00 2001 From: Doug Chapman <54039637+dougch@users.noreply.github.com> Date: Tue, 20 Aug 2024 13:11:27 -0700 Subject: [PATCH 4/5] Update .github/workflows/dashboard.yml Co-authored-by: Wesley Rosenblum <55108558+WesleyRosenblum@users.noreply.github.com> --- .github/workflows/dashboard.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/dashboard.yml b/.github/workflows/dashboard.yml index 7aa452743e..4901c2a7a3 100644 --- a/.github/workflows/dashboard.yml +++ b/.github/workflows/dashboard.yml @@ -76,7 +76,7 @@ jobs: issue_query: 'repo:aws/s2n-quic is:open is:pr review:approved' color: 'green' - type: 'number' - title: 'No reviews- from dependatbot PRs' + title: 'No reviews- from dependabot PRs' issue_query: 'repo:aws/s2n-quic is:open is:pr review:none author:app/dependabot' color: 'red' - type: 'number' From b3bb60eb0d2eff2a3e9709cdf14f82664a2af7ee Mon Sep 17 00:00:00 2001 From: Doug Chapman <54039637+dougch@users.noreply.github.com> Date: Tue, 20 Aug 2024 13:11:37 -0700 Subject: [PATCH 5/5] Update .github/workflows/dashboard.yml Co-authored-by: Wesley Rosenblum <55108558+WesleyRosenblum@users.noreply.github.com> --- .github/workflows/dashboard.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/dashboard.yml b/.github/workflows/dashboard.yml index 4901c2a7a3..fea8ebdb28 100644 --- a/.github/workflows/dashboard.yml +++ b/.github/workflows/dashboard.yml @@ -65,7 +65,7 @@ jobs: issue_query: 'repo:aws/s2n-quic is:issue is:open updated:>{{ date("-14 days") }}' color: 'yellow' - type: 'number' - title: 'Issues without an assigned priority' + title: 'Issues needing prioritization' issue_query: 'repo:aws/s2n-quic is:issue is:open -label:priority/low -label:priority/medium -label:priority/high -label:MSRV' color: 'yellow'