From cae6ac4f5344e157c7e8f5fe755ee5a6df3b7ee3 Mon Sep 17 00:00:00 2001 From: Joseph H Kennedy Date: Fri, 4 Oct 2024 13:28:47 -0800 Subject: [PATCH 1/2] Update issue-metrics.yml --- .github/workflows/issue-metrics.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/issue-metrics.yml b/.github/workflows/issue-metrics.yml index 087f2560..3fac9563 100644 --- a/.github/workflows/issue-metrics.yml +++ b/.github/workflows/issue-metrics.yml @@ -37,6 +37,7 @@ jobs: - name: Create issue uses: peter-evans/create-issue-from-file@v5 with: - title: Monthly issue metrics report + title: "Monthly issue metrics report: ${{ env.last_month }}" + labels: metrics token: ${{ secrets.GITHUB_TOKEN }} content-filepath: ./issue_metrics.md From e9c671f3530d36e4c3f8c6202cc8bc636a4fcec4 Mon Sep 17 00:00:00 2001 From: Joseph H Kennedy Date: Fri, 4 Oct 2024 13:41:26 -0800 Subject: [PATCH 2/2] Update issue-metrics.yml --- .github/workflows/issue-metrics.yml | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/.github/workflows/issue-metrics.yml b/.github/workflows/issue-metrics.yml index 3fac9563..f0c7cbd9 100644 --- a/.github/workflows/issue-metrics.yml +++ b/.github/workflows/issue-metrics.yml @@ -35,9 +35,15 @@ jobs: SEARCH_QUERY: 'repo:${{ github.repository }} is:issue created:${{ env.last_month }} -reason:"not planned"' - name: Create issue + id: create_issue uses: peter-evans/create-issue-from-file@v5 with: title: "Monthly issue metrics report: ${{ env.last_month }}" labels: metrics token: ${{ secrets.GITHUB_TOKEN }} content-filepath: ./issue_metrics.md + + - name: Close Issue + run: gh issue close "${{steps.create_issue.outputs.issue-number}}" --reason "not planned" + env: + GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}