/action-report-git-metrics

GitHub Action to report git-metrics diff in pull request

GitHub Action to report git-metrics diff

This action will take out the result of git-metrics diff origin/$GITHUB_BASE_REF..HEAD and add it to a comment in the pull request. This allows to track changes between the main branch and the latest commit of the current branch.

Usage

steps:
  - name: Checkout
    id: checkout
    uses: actions/checkout@v4

  - name: Install git-metrics
    uses: jdrouet/action-install-git-metrics@main

  - name: Execute git-metrics
    uses: jdrouet/action-execute-git-metrics@main # or with a specific version
    with:
      pull: 'true'
      script: add my-metric --tag "foo: bar" 12.34

  - name: Comment git-metrics diff
    uses: jdrouet/action-report-git-metrics@main