c825ed82e9
FreeCAD master CI / Prepare (push) Has been cancelled
CodeQL Advanced / Analyze (actions) (push) Has been cancelled
CodeQL Advanced / Analyze (python) (push) Has been cancelled
Scorecard supply-chain security / Scorecard analysis (push) Has been cancelled
FreeCAD master CI / Pixi (push) Has been cancelled
FreeCAD master CI / Ubuntu (push) Has been cancelled
FreeCAD master CI / Windows (push) Has been cancelled
FreeCAD master CI / Lint (push) Has been cancelled
FreeCAD master CI / WrapUp (push) Has been cancelled
Stale Issues / stale (push) Has been cancelled
CodeQL Advanced (c-cpp) / Analyze (c-cpp) (push) Has been cancelled
Push Crowdin Translations / update-crowdin (push) Has been cancelled
Fetch Crowdin Translations / update-crowdin (push) Has been cancelled
Monthly issue metrics / issue metrics (push) Has been cancelled
Build Release / upload_src (push) Has been cancelled
Build Release / build (10.13, macos-15-intel, osx-64) (push) Has been cancelled
Build Release / build (11.0, macos-latest, osx-arm64) (push) Has been cancelled
Build Release / build (15.0, macos-latest, osx-arm64) (push) Has been cancelled
Build Release / build (ubuntu-22.04, linux-64) (push) Has been cancelled
Build Release / build (ubuntu-22.04-arm, linux-arm64) (push) Has been cancelled
Build Release / build (windows-latest, win-64) (push) Has been cancelled
Bumps [github/issue-metrics](https://github.com/github/issue-metrics) from 4.2.1 to 4.2.2. - [Release notes](https://github.com/github/issue-metrics/releases) - [Commits](https://github.com/github/issue-metrics/compare/7bee6e691468e996f6701b0638a5238b1490014e...c9e9838147fd355dace335ba787f01b6641a400a) --- updated-dependencies: - dependency-name: github/issue-metrics dependency-version: 4.2.2 dependency-type: direct:production update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] <support@github.com>
50 lines
1.4 KiB
YAML
50 lines
1.4 KiB
YAML
name: Monthly issue metrics
|
|
on:
|
|
workflow_dispatch:
|
|
schedule:
|
|
- cron: '0 0 15 * *'
|
|
|
|
permissions:
|
|
issues: write
|
|
pull-requests: read
|
|
|
|
jobs:
|
|
build:
|
|
name: issue metrics
|
|
runs-on: ubuntu-latest
|
|
if: github.repository_owner == 'FreeCAD'
|
|
|
|
steps:
|
|
|
|
- name: Harden the runner (Audit all outbound calls)
|
|
uses: step-security/harden-runner@fe104658747b27e96e4f7e80cd0a94068e53901d # v2.16.1
|
|
with:
|
|
egress-policy: audit
|
|
|
|
- name: Get dates for last month
|
|
shell: bash
|
|
run: |
|
|
# Calculate the first day of the previous month
|
|
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)
|
|
|
|
#Set an environment variable with the date range
|
|
echo "$first_day..$last_day"
|
|
echo "last_month=$first_day..$last_day" >> "$GITHUB_ENV"
|
|
|
|
- name: Run issue-metrics tool
|
|
uses: github/issue-metrics@c9e9838147fd355dace335ba787f01b6641a400a # v4.2.2
|
|
env:
|
|
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
|
SEARCH_QUERY: 'repo:FreeCAD/FreeCAD is:issue created:${{ env.last_month }}'
|
|
|
|
- name: Create issue
|
|
uses: peter-evans/create-issue-from-file@fca9117c27cdc29c6c4db3b86c48e4115a786710 # v6.0.0
|
|
with:
|
|
title: Monthly issue metrics report
|
|
token: ${{ secrets.GITHUB_TOKEN }}
|
|
content-filepath: ./issue_metrics.md
|
|
assignees: maxwxyz
|