Skip to content

Commit

Permalink
GH metrics adjustments (#10209)
Browse files Browse the repository at this point in the history
Add GH_TOKEN environment. Required by the action even though the repo is
public

Report example: #10208
  • Loading branch information
andrei-near authored Nov 18, 2023
1 parent 87cca9a commit 65fa82c
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions .github/workflows/issue-metrics.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Empty file removed gh_metrics/.gitkeep
Empty file.

0 comments on commit 65fa82c

Please sign in to comment.