Skip to content

simple-pr-stats

Actions

About

Calculate simple PR statistics
v0.2
Latest
Star (2)

simple-pr-stats

Calculate simple PR statistics in your repository.

Output

The stats contain:

  • average time of PR completion
  • minimum time of PR completion (with a link to the PR)
  • maximum time of PR completion (with a link to the PR)

The information is shown as workflow run annotations in the Actions tab and (optionally) in the Pull Request view (if a pull_request trigger was chosen to run the action).

Inputs

token

Required Your workflow GITHUB_TOKEN, allowing access to GitHub API

labels_to_ignore

Comma-delimited list of labels to ignore. The stats will ignore all the PRs that are marked with any of the provided labels.

days_back

The stats will only include PRs between the date days_back days ago and now. Does not have to be an integer.

Default: 30

include_drafts

If set to true, the stats will include draft PRs.

Default: false

Example usage

on:
  schedule:
    - cron: '0 8 * * *'

jobs:
  calculate-stats:
    runs-on: ubuntu-latest
    steps:
      - name: Run simple-pr-stats
        uses: akwodkiewicz/[email protected]
        with:
          token: ${{ secrets.GITHUB_TOKEN }}
          labels_to_ignore: label with spaces, release

simple-pr-stats is not certified by GitHub. It is provided by a third-party and is governed by separate terms of service, privacy policy, and support documentation.

About

Calculate simple PR statistics
v0.2
Latest

simple-pr-stats is not certified by GitHub. It is provided by a third-party and is governed by separate terms of service, privacy policy, and support documentation.