cloudflare/pint
Publicmirrored fromhttps://github.com/cloudflare/pintAvailable
docs/examples/ci.hcl
19lines · modecode
| 1 | # This is an example config to be used when running pint as a CI job |
| 2 | # to validate pull requests. |
| 3 | |
| 4 | parser { |
| 5 | # Check all files inside rules/alerting and rules/recording dirs. |
| 6 | include = ["rules/(alerting|recording)/.+"] |
| 7 | |
| 8 | # Ignore all *.md and *.txt files. |
| 9 | exclude = [".+.md", ".+.txt"] |
| 10 | } |
| 11 | |
| 12 | ci { |
| 13 | # Don't run pint if there are more than 50 commits on current branch. |
| 14 | maxCommits = 50 |
| 15 | |
| 16 | # When running 'pint ci' compare current branch with origin/main |
| 17 | # to get the list of modified files. |
| 18 | baseBranch = "origin/main" |
| 19 | } |
| 20 | |