Skip to content

fixup! TODO: 後で消す #8

fixup! TODO: 後で消す

fixup! TODO: 後で消す #8

Workflow file for this run

name: "PR Analytics"
on:
workflow_dispatch:
inputs:
report_date_start:
description: "Report date start(d/MM/yyyy)"
required: false
report_date_end:
description: "Report date end(d/MM/yyyy)"
required: false
push:
permissions:
issues: write
jobs:
create-report:
name: "Create report"
runs-on: ubuntu-latest
steps:
- name: 1 ヶ月前の範囲を取得 # 例: 7 月に実行した場合、2023-06-01..2023-06-30 のようになる
shell: bash
id: days
run: |
# Calculate the first day of the previous month
first_day=$(date -d "last month" +1/%m/%Y) >> $GITHUB_OUTPUT
# Calculate the last day of the previous month
last_day=$(date -d "$first_day +1 month -1 day" +%d/%m/%Y) >> $GITHUB_OUTPUT
echo $first_day
echo $last_day
- name: "Run script for analytics"
uses: AlexSim93/pull-request-analytics-action@v1.12.5
with:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
GITHUB_OWNERS_REPOS: ${{ github.repository }}
GITHUB_REPO_FOR_ISSUE: ${{ github.event.repository.name }}
GITHUB_OWNER_FOR_ISSUE: ${{ github.repository_owner }}
CORE_HOURS_START: "10:00"
CORE_HOURS_END: "19:00"
TIMEZONE: "Asia/Tokyo"
REPORT_DATE_START: ${{ inputs.report_date_start || steps.days.outputs.first_day }}
REPORT_DATE_END: ${{ inputs.report_date_end || steps.days.outputs.last_day }}
HIDE_USERS: "github-actions[bot],renovate[bot]"