Skip to content

Commit

Permalink
edit for joneslab repo
Browse files Browse the repository at this point in the history
  • Loading branch information
ntolley committed Jun 12, 2024
1 parent 423f0bf commit 0fa60a9
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions .github/workflows/issue-metrics.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,9 @@ name: Monthly issue metrics
# - cron: '3 2 1 * *'
on:
push:
branches: [issue_metrics]
branches: [master]
pull_request:
branches: [issue_metrics]
branches: [master]

permissions:
contents: read
Expand All @@ -27,10 +27,10 @@ jobs:
shell: bash
run: |
# Calculate the first day of the previous month
first_day=$(date -d "last month -5 year" +%Y-%m-01)
first_day=$(date -d "last month" +%Y-%m-01)
# Calculate the last day of the previous month
last_day=$(date -d "$first_day +10 year +1 month -1 day" +%Y-%m-%d)
last_day=$(date -d "$first_day +1 month -1 day" +%Y-%m-%d)
#Set an environment variable with the date range
echo "$first_day..$last_day"
Expand All @@ -40,7 +40,8 @@ jobs:
uses: github/issue-metrics@v3
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
SEARCH_QUERY: 'repo:${{ github.repository }} created:${{ env.last_month }}'
# SEARCH_QUERY: 'repo:${{ github.repository }} created:${{ env.last_month }}'
SEARCH_QUERY: 'repo:jonescompneurolab/hnn-core is:issue created:${{ env.last_month }}'

- name: Create issue
uses: peter-evans/create-issue-from-file@v4
Expand Down

0 comments on commit 0fa60a9

Please sign in to comment.