http method github GET /api/v3/repos/cloudflare/pint/pulls/1/reviews 200 []
http method github POST /api/v3/repos/cloudflare/pint/pulls/1/reviews 200 {}
http method github GET /api/v3/repos/cloudflare/pint/pulls/1/comments 200 []
http method github POST /api/v3/repos/cloudflare/pint/pulls/1/comments 200 {}
http start github 127.0.0.1:6118

mkdir testrepo
cd testrepo
exec git init --initial-branch=main .

mkdir my/dir/rules
cp ../src/rules.yml my/dir/rules/rules.yml
exec ln -s my/dir/rules v1dir
cp ../src/.pint.hcl .
env GIT_AUTHOR_NAME=pint
env GIT_AUTHOR_EMAIL=pint@example.com
env GIT_COMMITTER_NAME=pint
env GIT_COMMITTER_EMAIL=pint@example.com
exec git add .
exec git commit -am 'import rules and config'

exec git checkout -b v2
exec git mv v1dir v2dir
exec git commit -am 'v2'

env GITHUB_AUTH_TOKEN=12345
env GITHUB_PULL_REQUEST_NUMBER=1
pint.ok -l debug --no-color ci --dev
! stdout .
stderr 'level=info msg="Pull request review created" status="200 OK"'
stderr 'msg="Skipping directory entry change"'

-- src/rules.yml --
groups:
- name: foo
  rules:
  - alert: rule1
    expr: rate(errors_total[5m]) > 0
  - alert: rule2
    expr: rate(errors_total[5m]) > 0

-- src/.pint.hcl --
ci {
  baseBranch = "main"
}
repository {
  github {
    baseuri   = "http://127.0.0.1:6118"
	uploaduri = "http://127.0.0.1:6118"
    owner     = "cloudflare"
    repo      = "pint"
  }
}
