From 712e06445b4a482567fc69186a8b02ba0c4f3fc7 Mon Sep 17 00:00:00 2001 From: Max Wilfinger <6246609+maxwxyz@users.noreply.github.com> Date: Fri, 15 Mar 2024 09:37:08 +0100 Subject: [PATCH 1/3] Update issue-metrics.yml change from full last month to the 15th as report date. --- .github/workflows/issue-metrics.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/issue-metrics.yml b/.github/workflows/issue-metrics.yml index 76c947c4f2..0286a31d06 100644 --- a/.github/workflows/issue-metrics.yml +++ b/.github/workflows/issue-metrics.yml @@ -19,7 +19,7 @@ jobs: shell: bash run: | # Calculate the first day of the previous month - first_day=$(date -d "last month" +%Y-%m-01) + first_day=$(date -d "last month" +%Y-%m-15) # Calculate the last day of the previous month last_day=$(date -d "$first_day +1 month -1 day" +%Y-%m-%d) @@ -40,4 +40,4 @@ jobs: title: Monthly issue metrics report token: ${{ secrets.GITHUB_TOKEN }} content-filepath: ./issue_metrics.md - assignees: maxwxyz \ No newline at end of file + assignees: maxwxyz From 8e3e3cbeccffddb485c72cac296b514e58d4449a Mon Sep 17 00:00:00 2001 From: Max Wilfinger <6246609+maxwxyz@users.noreply.github.com> Date: Fri, 15 Mar 2024 10:02:46 +0100 Subject: [PATCH 2/3] also include closed as not planned --- .github/workflows/issue-metrics.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/issue-metrics.yml b/.github/workflows/issue-metrics.yml index 0286a31d06..239d0e92db 100644 --- a/.github/workflows/issue-metrics.yml +++ b/.github/workflows/issue-metrics.yml @@ -32,7 +32,7 @@ jobs: uses: github/issue-metrics@v2 env: GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} - SEARCH_QUERY: 'repo:FreeCAD/FreeCAD is:issue created:${{ env.last_month }} -reason:"not planned"' + SEARCH_QUERY: 'repo:FreeCAD/FreeCAD is:issue created:${{ env.last_month }}' - name: Create issue uses: peter-evans/create-issue-from-file@v4 From 3dc2c2c7a7c38afc3f86f56b7105c06da3e637ea Mon Sep 17 00:00:00 2001 From: Max Wilfinger <6246609+maxwxyz@users.noreply.github.com> Date: Sat, 16 Mar 2024 07:25:30 +0100 Subject: [PATCH 3/3] only run on FreeCAD repo --- .github/workflows/issue-metrics.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/issue-metrics.yml b/.github/workflows/issue-metrics.yml index 239d0e92db..e080fbf405 100644 --- a/.github/workflows/issue-metrics.yml +++ b/.github/workflows/issue-metrics.yml @@ -12,6 +12,7 @@ jobs: build: name: issue metrics runs-on: ubuntu-latest + if: github.repository_owner == 'FreeCAD' steps: