Calculate simple PR statistics in your repository.
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).
Required Your workflow GITHUB_TOKEN
, allowing access to GitHub API
Comma-delimited list of labels to ignore. The stats will ignore all the PRs that are marked with any of the provided labels.
The stats will only include PRs between the date days_back
days ago and now. Does not have to be an integer.
Default: 30
If set to true
, the stats will include draft PRs.
Default: false
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