Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions .github/CODEOWNERS
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
# CM-010. GitHub does not require CODEOWNER review (require_codeowner_review: false).
* @keyskey
17 changes: 17 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
name: CI
on:
pull_request:
branches: [main]
push:
branches: [main]

jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-go@v5
with:
go-version: '1.26.4'
cache: true
- run: make test
6 changes: 3 additions & 3 deletions kao.local.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
# Usage:
# docker compose up -d
# make migrate
# export GITHUB_TOKEN=ghp_...
# export GITHUB_TOKEN=$(gh auth token)
# export DATABASE_URL='postgres://kao:kao@localhost:5432/kao?sslmode=disable'
# make build && ./bin/kao run daily --config kao.local.yaml --date 2026-06-05

Expand Down Expand Up @@ -39,8 +39,8 @@ controls:
repo_control:
branch_protection:
enabled: true
required_reviews: 1
require_codeowner_review: true
required_reviews: 0
require_codeowner_review: false
allow_force_push: false
allow_branch_deletion: false
codeowners:
Expand Down
2 changes: 1 addition & 1 deletion testdata/repo_control.jsonl
Original file line number Diff line number Diff line change
@@ -1 +1 @@
{"schema_version":"v1","type":"repo_control","provider":"github","repository":"kao","default_branch":"main","branch_protection":{"enabled":true,"required_reviews":1,"require_codeowner_review":true,"allow_force_push":false,"allow_branch_deletion":false},"codeowners":{"exists":true,"path":".github/CODEOWNERS","rules":[{"pattern":"*","owners":[{"type":"user","name":"@alice","resolved_users":["alice"]}]}]},"collected_at":"2026-06-06T00:00:00Z"}
{"schema_version":"v1","type":"repo_control","provider":"github","repository":"kao","default_branch":"main","branch_protection":{"enabled":true,"required_reviews":0,"require_codeowner_review":false,"allow_force_push":false,"allow_branch_deletion":false},"codeowners":{"exists":true,"path":".github/CODEOWNERS","rules":[{"pattern":"*","owners":[{"type":"user","name":"@keyskey","resolved_users":["keyskey"]}]}]},"collected_at":"2026-06-06T00:00:00Z"}
Loading