From ec956e700390776c8dbaa7f33aadc34a22b6f35c Mon Sep 17 00:00:00 2001 From: Mark Goddard Date: Mon, 4 Dec 2023 13:40:28 +0000 Subject: [PATCH 1/6] Add PR stats workflow --- .github/workflows/pr-stats.yml | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 .github/workflows/pr-stats.yml diff --git a/.github/workflows/pr-stats.yml b/.github/workflows/pr-stats.yml new file mode 100644 index 00000000..4bdf2cc8 --- /dev/null +++ b/.github/workflows/pr-stats.yml @@ -0,0 +1,18 @@ +name: Pull Request Stats + +on: + pull_request: + types: [opened] + +jobs: + stats: + runs-on: ubuntu-latest + steps: + - name: Run pull request stats + uses: flowwer-dev/pull-request-stats@master + with: + organization: 'stackhpc' + period: 7 + charts: true + disableLinks: true + sortBy: 'COMMENTS' From 39316a98739ef2b4bdd7f9f36a68646ba922517c Mon Sep 17 00:00:00 2001 From: Mark Goddard Date: Mon, 4 Dec 2023 13:45:17 +0000 Subject: [PATCH 2/6] PR Stats: 90 days --- .github/workflows/pr-stats.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/pr-stats.yml b/.github/workflows/pr-stats.yml index 4bdf2cc8..c63f9636 100644 --- a/.github/workflows/pr-stats.yml +++ b/.github/workflows/pr-stats.yml @@ -12,7 +12,7 @@ jobs: uses: flowwer-dev/pull-request-stats@master with: organization: 'stackhpc' - period: 7 + period: 90 charts: true disableLinks: true sortBy: 'COMMENTS' From 28da68a779ebbc8d9dbda4293ba8bbe5cbcd3444 Mon Sep 17 00:00:00 2001 From: Mark Goddard Date: Mon, 4 Dec 2023 13:47:27 +0000 Subject: [PATCH 3/6] PR stats: run on all PR events --- .github/workflows/pr-stats.yml | 1 - 1 file changed, 1 deletion(-) diff --git a/.github/workflows/pr-stats.yml b/.github/workflows/pr-stats.yml index c63f9636..45b21298 100644 --- a/.github/workflows/pr-stats.yml +++ b/.github/workflows/pr-stats.yml @@ -2,7 +2,6 @@ name: Pull Request Stats on: pull_request: - types: [opened] jobs: stats: From b3ed7c8986e2967f200d879eda762fd6c543afc9 Mon Sep 17 00:00:00 2001 From: Mark Goddard Date: Mon, 4 Dec 2023 13:54:20 +0000 Subject: [PATCH 4/6] Display markdown --- .github/workflows/pr-stats.yml | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/.github/workflows/pr-stats.yml b/.github/workflows/pr-stats.yml index 45b21298..61c067d6 100644 --- a/.github/workflows/pr-stats.yml +++ b/.github/workflows/pr-stats.yml @@ -8,10 +8,14 @@ jobs: runs-on: ubuntu-latest steps: - name: Run pull request stats + id: stats uses: flowwer-dev/pull-request-stats@master with: organization: 'stackhpc' period: 90 charts: true - disableLinks: true + #disableLinks: true sortBy: 'COMMENTS' + + - name: Display markdown + run: echo '${{ steps.stats.outputs.resultsMd }}' From 4df459c6729179b8dd48d0f63e06c7ae2a09b76b Mon Sep 17 00:00:00 2001 From: Mark Goddard Date: Wed, 13 Dec 2023 13:50:04 +0000 Subject: [PATCH 5/6] Stats on workflow dispatch --- .github/workflows/pr-stats.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/pr-stats.yml b/.github/workflows/pr-stats.yml index 61c067d6..965cbc18 100644 --- a/.github/workflows/pr-stats.yml +++ b/.github/workflows/pr-stats.yml @@ -2,6 +2,7 @@ name: Pull Request Stats on: pull_request: + workflow_dispatch: jobs: stats: From 6de7139c29791a28e9b2dcb31c9429db3f2929a2 Mon Sep 17 00:00:00 2001 From: Mark Goddard Date: Wed, 13 Dec 2023 13:50:42 +0000 Subject: [PATCH 6/6] Stats on push --- .github/workflows/pr-stats.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/pr-stats.yml b/.github/workflows/pr-stats.yml index 965cbc18..92e7a64e 100644 --- a/.github/workflows/pr-stats.yml +++ b/.github/workflows/pr-stats.yml @@ -3,6 +3,7 @@ name: Pull Request Stats on: pull_request: workflow_dispatch: + push: jobs: stats: