From 65fa82cf566efcbe6148df626fa335774eedfbb0 Mon Sep 17 00:00:00 2001 From: Andrei <122784628+andrei-near@users.noreply.github.com> Date: Sat, 18 Nov 2023 10:14:15 +0000 Subject: [PATCH] GH metrics adjustments (#10209) Add GH_TOKEN environment. Required by the action even though the repo is public Report example: https://github.com/near/nearcore/issues/10208 --- .github/workflows/issue-metrics.yml | 9 +++++---- gh_metrics/.gitkeep | 0 2 files changed, 5 insertions(+), 4 deletions(-) delete mode 100644 gh_metrics/.gitkeep diff --git a/.github/workflows/issue-metrics.yml b/.github/workflows/issue-metrics.yml index 99e79c00307..1065168cc56 100644 --- a/.github/workflows/issue-metrics.yml +++ b/.github/workflows/issue-metrics.yml @@ -9,8 +9,8 @@ permissions: issues: write jobs: - build: - name: issue metrics + monthly-issue-metrics: + name: past month issue metrics runs-on: ubuntu-latest steps: - name: Get dates for last month @@ -30,11 +30,12 @@ jobs: - name: Run issue-metrics tool uses: github/issue-metrics@v2 env: - SEARCH_QUERY: 'repo:owner/repo is:issue created: ${{ steps.last-month.outputs.LAST_MONTH }} -reason:"not planned"' + GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} + SEARCH_QUERY: 'repo:near/nearcore is:issue created:${{ steps.last-month.outputs.LAST_MONTH }}' - name: Create issue uses: peter-evans/create-issue-from-file@v4 with: title: Monthly issue metrics report token: ${{ secrets.GITHUB_TOKEN }} - content-filepath: ./gh_metrics/issue_metrics.md + content-filepath: ./issue_metrics.md diff --git a/gh_metrics/.gitkeep b/gh_metrics/.gitkeep deleted file mode 100644 index e69de29bb2d..00000000000