mirror of
https://github.com/lukaszraczylo/ghtracker.git
synced 2026-10-12 00:45:38 +00:00
External contributors open pull requests from forks. The pr_open alert now covers them, so the review action sees them. The consumer must treat fork pull requests as untrusted.
43 lines
1.8 KiB
YAML
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 PR, forks included; consumers must treat fork PRs as untrusted
|
|
# 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
|