diff --git a/.github/workflows/issue-metrics.yml b/.github/workflows/issue-metrics.yml index 76c947c4f2..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: @@ -19,7 +20,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) @@ -32,7 +33,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 @@ -40,4 +41,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