diff --git a/.github/workflows/report_weekly_app_kpis.yml b/.github/workflows/report_weekly_app_kpis.yml deleted file mode 100644 index de727b058be5..000000000000 --- a/.github/workflows/report_weekly_app_kpis.yml +++ /dev/null @@ -1,123 +0,0 @@ -name: 'KPI Report Generation' -on: - # makes this workflow reusable - workflow_call: - secrets: - TRIAGE_BOARD_TOKEN: - required: true - - workflow_dispatch: - inputs: - start-date: - description: 'Beginning date of query (ex. 2023-06-01)' - required: false - end-date: - description: 'Ending date of query (ex. 2023-06-01)' - required: false - default-other-repos: - description: "Comma separated list of repos you want to query" - required: false - default: '["cypress-documentation", "circleci-orb", "github-action", "cypress-docker-images", "cypress-chrome-recorder-extension", "cypress-chrome-recorder", "cypress-recorder-extension", "cypress-example-kitchensink", "cypress-origin-providers", "release-automations", "cypress-test-tiny", "eslint-plugin-cypress", "netlify-plugin-cypress", "cypress-support-internal", "cypress-realworld-app", "code-coverage"]' - default-mono-repo: - description: "The Cypress mono repo" - required: false - default: '["cypress"]' - - schedule: - - cron: '0 18 * * 5' # this will run weekly on Friday at 2PM EST (the github workflow runners are on UTC) - -jobs: - run-kpi-reporting: - runs-on: ubuntu-latest - steps: - - name: Checkout code - uses: actions/checkout@v3 - with: - repository: 'cypress-io/release-automations' - ref: 'master' - ssh-key: ${{ secrets.WORKFLOW_DEPLOY_KEY }} - - name: Set up Node.js - uses: actions/setup-node@v3 - with: - node-version: 'lts/*' - - name: Generate Non-mono Repo Open / Closed KPIs - id: non-mono-repo-open-closed-metrics - uses: actions/github-script@v6 - env: - DEFAULT_REPOS: ${{ github.event.inputs.default-other-repos || '["cypress-documentation", "circleci-orb", "github-action", "cypress-docker-images", "cypress-chrome-recorder-extension", "cypress-chrome-recorder", "cypress-recorder-extension", "cypress-example-kitchensink", "cypress-origin-providers", "release-automations", "cypress-test-tiny", "eslint-plugin-cypress", "netlify-plugin-cypress", "cypress-support-internal", "cypress-realworld-app", "code-coverage"]' }} - with: - github-token: ${{ secrets.TRIAGE_BOARD_TOKEN }} - script: | - const script = require('./scripts/reports/open-vs-closed-issues.js') - await script.getOpenAndClosedIssueMetrics(github, context, core, ${{ env.DEFAULT_REPOS }}); - - name: Generate Cypress Mono Repo Open / Closed KPIs - id: mono-repo-open-closed-metrics - uses: actions/github-script@v6 - env: - DEFAULT_MONO_REPO: ${{ github.event.inputs.default-mono-repo || '["cypress"]' }} - with: - github-token: ${{ secrets.TRIAGE_BOARD_TOKEN }} - script: | - const script = require('./scripts/reports/open-vs-closed-issues.js') - await script.getOpenAndClosedIssueMetrics(github, context, core, ${{ env.DEFAULT_MONO_REPO }}); - - name: Generate Triage Throughput KPIs - id: triage-metrics - uses: actions/github-script@v6 - env: - START_DATE: ${{ github.event.inputs.start-date }} - END_DATE: ${{ github.event.inputs.end-date }} - PROJECT_BOARD_NUMBER: 9 - with: - github-token: ${{ secrets.TRIAGE_BOARD_TOKEN }} - script: | - const script = require('./scripts/reports/triage_throughput_kpis.js') - await script.getTriageIssueMetrics(github, context, core, "${{ env.START_DATE }}", "${{ env.END_DATE }}", "${{ env.PROJECT_BOARD_NUMBER }}"); - - name: Generate Mitigation KPIs - id: mitigation-metrics - uses: actions/github-script@v6 - env: - START_DATE: ${{ github.event.inputs.start-date }} - END_DATE: ${{ github.event.inputs.end-date }} - PROJECT_BOARD_NUMBER: 9 - with: - github-token: ${{ secrets.TRIAGE_BOARD_TOKEN }} - script: | - const script = require('./scripts/reports/triage_mitigation_kpis.js') - await script.getIssueMitigationMetrics(github, context, core, "${{ env.START_DATE }}", "${{ env.END_DATE }}", "${{ env.PROJECT_BOARD_NUMBER }}"); - - name: Generate Feature Request KPIs - id: feature-metrics - uses: actions/github-script@v6 - env: - START_DATE: ${{ github.event.inputs.start-date }} - END_DATE: ${{ github.event.inputs.end-date }} - PROJECT_BOARD_NUMBER: 9 - with: - github-token: ${{ secrets.TRIAGE_BOARD_TOKEN }} - script: | - const script = require('./scripts/reports/triage_feature_requests_metrics.js') - await script.getFeatureRequestMetrics(github, context, core, "${{ env.START_DATE }}", "${{ env.END_DATE }}", "${{ env.PROJECT_BOARD_NUMBER }}"); - - name: Generate Feature Review KPIs - id: feature-review-metrics - uses: actions/github-script@v6 - env: - START_DATE: ${{ github.event.inputs.start-date }} - END_DATE: ${{ github.event.inputs.end-date }} - PROJECT_BOARD_NUMBER: 9 - with: - github-token: ${{ secrets.TRIAGE_BOARD_TOKEN }} - script: | - const script = require('./scripts/reports/triage_feature_review_metrics.js') - await script.getFeatureReviewMetrics(github, context, core, "${{ env.START_DATE }}", "${{ env.END_DATE }}", "${{ env.PROJECT_BOARD_NUMBER }}"); - - name: Generate KPI Report - id: generate-report - uses: actions/github-script@v6 - env: - START_DATE: ${{ github.event.inputs.start-date }} - END_DATE: ${{ github.event.inputs.end-date }} - PROJECT_BOARD_NUMBER: 9 - with: - github-token: ${{ secrets.TRIAGE_BOARD_TOKEN }} - script: | - const script = require('./scripts/reports/generate_kpi_report.js') - await script.generateKPIReport(github, context, core, ${{ steps.non-mono-repo-open-closed-metrics.outputs.results }}, ${{ steps.mono-repo-open-closed-metrics.outputs.results }}, ${{ steps.triage-metrics.outputs.results }}, ${{ steps.mitigation-metrics.outputs.results }}, ${{ steps.feature-metrics.outputs.results }}, ${{ steps.feature-review-metrics.outputs.results }} ); - \ No newline at end of file