mirror of
https://github.com/n8n-io/n8n
synced 2026-04-21 15:47:20 +00:00
Some checks are pending
CI: Master (Build, Test, Lint) / Build for Github Cache (push) Waiting to run
CI: Master (Build, Test, Lint) / Unit tests (push) Waiting to run
CI: Master (Build, Test, Lint) / Lint (push) Waiting to run
CI: Master (Build, Test, Lint) / Performance (push) Waiting to run
CI: Master (Build, Test, Lint) / Notify Slack on failure (push) Blocked by required conditions
41 lines
1.4 KiB
YAML
41 lines
1.4 KiB
YAML
name: 'QA: Metrics PR Comment'
|
|
|
|
on:
|
|
workflow_call:
|
|
inputs:
|
|
metrics:
|
|
description: 'Comma-separated list of metric names to report'
|
|
required: true
|
|
type: string
|
|
baseline-days:
|
|
description: 'Number of days for the rolling baseline'
|
|
required: false
|
|
type: number
|
|
default: 14
|
|
|
|
jobs:
|
|
post-comment:
|
|
name: Post Metrics Comment
|
|
if: >-
|
|
github.event_name == 'pull_request' &&
|
|
!github.event.pull_request.head.repo.fork &&
|
|
github.repository == 'n8n-io/n8n'
|
|
runs-on: ubuntu-slim
|
|
continue-on-error: true
|
|
permissions:
|
|
pull-requests: write
|
|
steps:
|
|
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
|
|
with:
|
|
sparse-checkout: .github/scripts/post-qa-metrics-comment.mjs
|
|
sparse-checkout-cone-mode: false
|
|
- name: Post QA metrics comparison
|
|
env:
|
|
QA_METRICS_COMMENT_WEBHOOK_URL: ${{ secrets.QA_METRICS_COMMENT_WEBHOOK_URL }}
|
|
QA_METRICS_WEBHOOK_USER: ${{ secrets.QA_METRICS_WEBHOOK_USER }}
|
|
QA_METRICS_WEBHOOK_PASSWORD: ${{ secrets.QA_METRICS_WEBHOOK_PASSWORD }}
|
|
GITHUB_TOKEN: ${{ github.token }}
|
|
run: |
|
|
node .github/scripts/post-qa-metrics-comment.mjs \
|
|
--metrics "${{ inputs.metrics }}" \
|
|
--baseline-days "${{ inputs.baseline-days }}"
|