Files
ghtracker/config.example.yaml
T
lukaszraczylo c79ecb728f feat(web): add automatic actions for open pull requests
A new pr_open alert carries the head commit SHA of each open, non-draft, same-repository pull request. An action with auto enabled sends its webhook once for each pull request and head commit. An authors list limits which pull requests trigger it. The alert never changes repository health.
2026-10-05 00:41:08 +01:00

43 lines
1.8 KiB
YAML

listen: ':8080'
refresh_interval: 6h # minimum 1m; each cycle costs roughly 6 + 2 per open PR requests per repo
manual_refresh: true # the Refresh button and POST /refresh, limited to once per 5m; false disables them
github:
app_id: 123456
private_key_file: /secrets/ghtracker.pem # or set $GHTRACKER_PRIVATE_KEY to the PEM contents
installation_id: 0 # 0 = discover per repo; needed when repos span several owners
api_url: https://api.github.com
thresholds: # negative disables a check
pr_warn_after: 48h # non-draft PR open this long = warning
pr_crit_after: 168h # critical
issue_stale_after: 720h # no activity this long = warning (aggregated per repo)
workflow_stuck_after: 6h # queued / in progress this long = warning
# Optional buttons on alerts. Each one POSTs the alert as JSON to a webhook. Omit the block to turn the feature off.
# actions:
# - id: rerun # [a-z0-9-]+
# label: Re-run # button text
# kinds: [workflow_failed] # omit for every alert kind
# webhook:
# url: https://example.internal/hooks/rerun
# token_env: ACTION_TOKEN # env var holding a bearer token; optional
# timeout: 10s
# status_url: https://example.internal/hooks/rerun/status # optional
# confirm: "Run this action for the selected alert?" # optional; omit for no dialog
# - id: review
# kinds: [pr_open] # required with auto; one alert per open, non-draft, non-fork PR
# auto: true # fire without a click, once per repo, PR and head commit
# authors: [lukaszraczylo] # optional; case-insensitive; omit for any author
# webhook:
# url: https://example.internal/hooks/review
# token_env: ACTION_TOKEN
max_items: 100 # per repo, issues and PRs
concurrency: 2
repos:
- lukaszraczylo/kubemirror
- lukaszraczylo/semver-generator
- lukaszraczylo/traefikoidc