Skip to content

Add PR metrics action #4

Add PR metrics action

Add PR metrics action #4

name: "PR Analytics"
on:
pull_request:
workflow_dispatch:
inputs:
report_date_start:
description: "Report date start (d/MM/yyyy)"
report_date_end:
description: "Report date end (d/MM/yyyy)"
jobs:
create-report:
name: "Create report"
runs-on: ubuntu-latest
steps:
- name: "Run script for analytics"
uses: AlexSim93/pull-request-analytics-action@v4
with:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # In the case of a personal access token, it needs to be added to the repository's secrets and used in this field.
GITHUB_REPO_FOR_ISSUE: cowprotocol/pm
GITHUB_OWNER_FOR_ISSUE: cowprotocol
GITHUB_OWNERS_REPOS: "cowprotocol/services"
CORE_HOURS_START: "9:00"
CORE_HOURS_END: "19:00"
TIMEZONE: "Europe/Berlin"
REPORT_DATE_START: ${{ inputs.report_date_start }}
REPORT_DATE_END: ${{ inputs.report_date_end }}
USE_CHARTS: true
SHOW_CORRELATION_GRAPHS: true
SHOW_ACTIVITY_TIME_GRAPHS: true
EXECUTION_OUTCOME: "markdown, new-issue"
REPORT_DATE_START: 01/01/2024

Check failure on line 32 in .github/workflows/pull-request-analytics.yml

View workflow run for this annotation

GitHub Actions / PR Analytics

Invalid workflow file

The workflow is not valid. .github/workflows/pull-request-analytics.yml (Line: 32, Col: 11): 'REPORT_DATE_START' is already defined .github/workflows/pull-request-analytics.yml (Line: 33, Col: 11): 'REPORT_DATE_END' is already defined
REPORT_DATE_END: 01/12/2024