reviewloop-ai 0.1.0__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- reviewloop_ai-0.1.0/.dockerignore +9 -0
- reviewloop_ai-0.1.0/.editorconfig +15 -0
- reviewloop_ai-0.1.0/.gitattributes +4 -0
- reviewloop_ai-0.1.0/.github/CODEOWNERS +1 -0
- reviewloop_ai-0.1.0/.github/ISSUE_TEMPLATE/bug_report.yml +36 -0
- reviewloop_ai-0.1.0/.github/ISSUE_TEMPLATE/config.yml +5 -0
- reviewloop_ai-0.1.0/.github/ISSUE_TEMPLATE/feature_request.yml +21 -0
- reviewloop_ai-0.1.0/.github/ISSUE_TEMPLATE/new_rule.yml +31 -0
- reviewloop_ai-0.1.0/.github/PULL_REQUEST_TEMPLATE.md +10 -0
- reviewloop_ai-0.1.0/.github/dependabot.yml +14 -0
- reviewloop_ai-0.1.0/.github/workflows/ci.yml +91 -0
- reviewloop_ai-0.1.0/.github/workflows/cla.yml +32 -0
- reviewloop_ai-0.1.0/.github/workflows/codeql.yml +26 -0
- reviewloop_ai-0.1.0/.github/workflows/docs.yml +47 -0
- reviewloop_ai-0.1.0/.github/workflows/eval.yml +65 -0
- reviewloop_ai-0.1.0/.github/workflows/release.yml +109 -0
- reviewloop_ai-0.1.0/.github/workflows/scorecard.yml +33 -0
- reviewloop_ai-0.1.0/.gitignore +16 -0
- reviewloop_ai-0.1.0/.gitlab-ci.yml +17 -0
- reviewloop_ai-0.1.0/.pre-commit-config.yaml +16 -0
- reviewloop_ai-0.1.0/.python-version +1 -0
- reviewloop_ai-0.1.0/.release-please-manifest.json +3 -0
- reviewloop_ai-0.1.0/.reviewloop.yml +11 -0
- reviewloop_ai-0.1.0/AGENTS.md +12 -0
- reviewloop_ai-0.1.0/CHANGELOG.md +50 -0
- reviewloop_ai-0.1.0/CLA.md +66 -0
- reviewloop_ai-0.1.0/CODE_OF_CONDUCT.md +84 -0
- reviewloop_ai-0.1.0/CONTRIBUTING.md +25 -0
- reviewloop_ai-0.1.0/Dockerfile +83 -0
- reviewloop_ai-0.1.0/GOVERNANCE.md +9 -0
- reviewloop_ai-0.1.0/LICENSE +661 -0
- reviewloop_ai-0.1.0/PKG-INFO +230 -0
- reviewloop_ai-0.1.0/README.md +203 -0
- reviewloop_ai-0.1.0/README.vi.md +207 -0
- reviewloop_ai-0.1.0/SECURITY.md +12 -0
- reviewloop_ai-0.1.0/action.yml +85 -0
- reviewloop_ai-0.1.0/docs/adr/0001-record-architecture-decisions.md +19 -0
- reviewloop_ai-0.1.0/docs/adr/0002-agent-tool-restriction.md +311 -0
- reviewloop_ai-0.1.0/docs/agents/claude-code.md +63 -0
- reviewloop_ai-0.1.0/docs/agents/codex.md +36 -0
- reviewloop_ai-0.1.0/docs/agents/cursor.md +45 -0
- reviewloop_ai-0.1.0/docs/assets/demo-findings.webp +0 -0
- reviewloop_ai-0.1.0/docs/assets/how-it-works-dark.svg +69 -0
- reviewloop_ai-0.1.0/docs/assets/how-it-works-light.svg +69 -0
- reviewloop_ai-0.1.0/docs/assets/logo-dark.svg +16 -0
- reviewloop_ai-0.1.0/docs/assets/logo.svg +22 -0
- reviewloop_ai-0.1.0/docs/comparison.md +211 -0
- reviewloop_ai-0.1.0/docs/configuration.md +112 -0
- reviewloop_ai-0.1.0/docs/faq.md +61 -0
- reviewloop_ai-0.1.0/docs/getting-started/bitbucket-cloud.md +61 -0
- reviewloop_ai-0.1.0/docs/getting-started/bitbucket-dc-jenkins.md +69 -0
- reviewloop_ai-0.1.0/docs/getting-started/github.md +126 -0
- reviewloop_ai-0.1.0/docs/getting-started/gitlab.md +143 -0
- reviewloop_ai-0.1.0/docs/index.md +49 -0
- reviewloop_ai-0.1.0/docs/maintainers/release.md +46 -0
- reviewloop_ai-0.1.0/docs/plans/2026-11-27-milestone-1.md +571 -0
- reviewloop_ai-0.1.0/docs/security.md +79 -0
- reviewloop_ai-0.1.0/docs/specs/2026-11-27-milestone-1-design.md +349 -0
- reviewloop_ai-0.1.0/eval/aacr.py +78 -0
- reviewloop_ai-0.1.0/eval/run.py +240 -0
- reviewloop_ai-0.1.0/eval/score.py +102 -0
- reviewloop_ai-0.1.0/eval/seeded/cs-firstordefault/before/Catalog.cs +8 -0
- reviewloop_ai-0.1.0/eval/seeded/cs-firstordefault/before/Shop.csproj +3 -0
- reviewloop_ai-0.1.0/eval/seeded/cs-firstordefault/case.json +3 -0
- reviewloop_ai-0.1.0/eval/seeded/cs-firstordefault/expected.json +7 -0
- reviewloop_ai-0.1.0/eval/seeded/cs-firstordefault/patch.diff +20 -0
- reviewloop_ai-0.1.0/eval/seeded/cs-static-dictionary/before/Sessions.cs +6 -0
- reviewloop_ai-0.1.0/eval/seeded/cs-static-dictionary/before/Shop.csproj +3 -0
- reviewloop_ai-0.1.0/eval/seeded/cs-static-dictionary/case.json +3 -0
- reviewloop_ai-0.1.0/eval/seeded/cs-static-dictionary/expected.json +7 -0
- reviewloop_ai-0.1.0/eval/seeded/cs-static-dictionary/patch.diff +19 -0
- reviewloop_ai-0.1.0/eval/seeded/django-delete-all/before/manage.py +3 -0
- reviewloop_ai-0.1.0/eval/seeded/django-delete-all/before/notes/tasks.py +15 -0
- reviewloop_ai-0.1.0/eval/seeded/django-delete-all/before/requirements.txt +1 -0
- reviewloop_ai-0.1.0/eval/seeded/django-delete-all/case.json +3 -0
- reviewloop_ai-0.1.0/eval/seeded/django-delete-all/expected.json +7 -0
- reviewloop_ai-0.1.0/eval/seeded/django-delete-all/patch.diff +14 -0
- reviewloop_ai-0.1.0/eval/seeded/django-no-owner-check/before/manage.py +3 -0
- reviewloop_ai-0.1.0/eval/seeded/django-no-owner-check/before/notes/views.py +10 -0
- reviewloop_ai-0.1.0/eval/seeded/django-no-owner-check/before/requirements.txt +1 -0
- reviewloop_ai-0.1.0/eval/seeded/django-no-owner-check/case.json +3 -0
- reviewloop_ai-0.1.0/eval/seeded/django-no-owner-check/expected.json +7 -0
- reviewloop_ai-0.1.0/eval/seeded/django-no-owner-check/patch.diff +14 -0
- reviewloop_ai-0.1.0/eval/seeded/go-map-race/before/cache/cache.go +7 -0
- reviewloop_ai-0.1.0/eval/seeded/go-map-race/before/go.mod +3 -0
- reviewloop_ai-0.1.0/eval/seeded/go-map-race/case.json +3 -0
- reviewloop_ai-0.1.0/eval/seeded/go-map-race/expected.json +7 -0
- reviewloop_ai-0.1.0/eval/seeded/go-map-race/patch.diff +21 -0
- reviewloop_ai-0.1.0/eval/seeded/go-nil-after-err/before/fetch/fetch.go +5 -0
- reviewloop_ai-0.1.0/eval/seeded/go-nil-after-err/before/go.mod +3 -0
- reviewloop_ai-0.1.0/eval/seeded/go-nil-after-err/case.json +3 -0
- reviewloop_ai-0.1.0/eval/seeded/go-nil-after-err/expected.json +7 -0
- reviewloop_ai-0.1.0/eval/seeded/go-nil-after-err/patch.diff +23 -0
- reviewloop_ai-0.1.0/eval/seeded/java-changed-status/before/pom.xml +4 -0
- reviewloop_ai-0.1.0/eval/seeded/java-changed-status/before/src/main/java/shop/OrderController.java +13 -0
- reviewloop_ai-0.1.0/eval/seeded/java-changed-status/case.json +3 -0
- reviewloop_ai-0.1.0/eval/seeded/java-changed-status/expected.json +7 -0
- reviewloop_ai-0.1.0/eval/seeded/java-changed-status/patch.diff +12 -0
- reviewloop_ai-0.1.0/eval/seeded/java-map-get-unboxing/before/pom.xml +4 -0
- reviewloop_ai-0.1.0/eval/seeded/java-map-get-unboxing/before/src/main/java/shop/Prices.java +11 -0
- reviewloop_ai-0.1.0/eval/seeded/java-map-get-unboxing/case.json +3 -0
- reviewloop_ai-0.1.0/eval/seeded/java-map-get-unboxing/expected.json +7 -0
- reviewloop_ai-0.1.0/eval/seeded/java-map-get-unboxing/patch.diff +14 -0
- reviewloop_ai-0.1.0/eval/seeded/java-shared-formatter/before/pom.xml +4 -0
- reviewloop_ai-0.1.0/eval/seeded/java-shared-formatter/before/src/main/java/shop/Dates.java +5 -0
- reviewloop_ai-0.1.0/eval/seeded/java-shared-formatter/case.json +3 -0
- reviewloop_ai-0.1.0/eval/seeded/java-shared-formatter/expected.json +7 -0
- reviewloop_ai-0.1.0/eval/seeded/java-shared-formatter/patch.diff +19 -0
- reviewloop_ai-0.1.0/eval/seeded/laravel-no-authorize/before/app/Http/Controllers/InvoiceController.php +14 -0
- reviewloop_ai-0.1.0/eval/seeded/laravel-no-authorize/before/composer.json +3 -0
- reviewloop_ai-0.1.0/eval/seeded/laravel-no-authorize/case.json +3 -0
- reviewloop_ai-0.1.0/eval/seeded/laravel-no-authorize/expected.json +7 -0
- reviewloop_ai-0.1.0/eval/seeded/laravel-no-authorize/patch.diff +15 -0
- reviewloop_ai-0.1.0/eval/seeded/laravel-truncate/before/app/Console/Commands/PruneSessions.php +10 -0
- reviewloop_ai-0.1.0/eval/seeded/laravel-truncate/before/composer.json +3 -0
- reviewloop_ai-0.1.0/eval/seeded/laravel-truncate/case.json +3 -0
- reviewloop_ai-0.1.0/eval/seeded/laravel-truncate/expected.json +7 -0
- reviewloop_ai-0.1.0/eval/seeded/laravel-truncate/patch.diff +21 -0
- reviewloop_ai-0.1.0/eval/seeded/nest-missing-guard/before/package.json +4 -0
- reviewloop_ai-0.1.0/eval/seeded/nest-missing-guard/before/src/auth.guard.ts +8 -0
- reviewloop_ai-0.1.0/eval/seeded/nest-missing-guard/before/src/orders.controller.ts +14 -0
- reviewloop_ai-0.1.0/eval/seeded/nest-missing-guard/before/src/orders.service.ts +14 -0
- reviewloop_ai-0.1.0/eval/seeded/nest-missing-guard/case.json +3 -0
- reviewloop_ai-0.1.0/eval/seeded/nest-missing-guard/expected.json +7 -0
- reviewloop_ai-0.1.0/eval/seeded/nest-missing-guard/patch.diff +20 -0
- reviewloop_ai-0.1.0/eval/seeded/nest-renamed-field/before/package.json +4 -0
- reviewloop_ai-0.1.0/eval/seeded/nest-renamed-field/before/src/dto/user.dto.ts +4 -0
- reviewloop_ai-0.1.0/eval/seeded/nest-renamed-field/before/src/users.controller.ts +10 -0
- reviewloop_ai-0.1.0/eval/seeded/nest-renamed-field/case.json +3 -0
- reviewloop_ai-0.1.0/eval/seeded/nest-renamed-field/expected.json +7 -0
- reviewloop_ai-0.1.0/eval/seeded/nest-renamed-field/patch.diff +22 -0
- reviewloop_ai-0.1.0/eval/seeded/php-null-user/before/composer.json +3 -0
- reviewloop_ai-0.1.0/eval/seeded/php-null-user/before/src/Repo.php +13 -0
- reviewloop_ai-0.1.0/eval/seeded/php-null-user/case.json +3 -0
- reviewloop_ai-0.1.0/eval/seeded/php-null-user/expected.json +7 -0
- reviewloop_ai-0.1.0/eval/seeded/php-null-user/patch.diff +15 -0
- reviewloop_ai-0.1.0/eval/seeded/py-null-match/before/pyproject.toml +3 -0
- reviewloop_ai-0.1.0/eval/seeded/py-null-match/before/tool/parse.py +3 -0
- reviewloop_ai-0.1.0/eval/seeded/py-null-match/case.json +3 -0
- reviewloop_ai-0.1.0/eval/seeded/py-null-match/expected.json +7 -0
- reviewloop_ai-0.1.0/eval/seeded/py-null-match/patch.diff +13 -0
- reviewloop_ai-0.1.0/eval/seeded/py-shared-counter/before/pyproject.toml +3 -0
- reviewloop_ai-0.1.0/eval/seeded/py-shared-counter/before/tool/stats.py +1 -0
- reviewloop_ai-0.1.0/eval/seeded/py-shared-counter/case.json +3 -0
- reviewloop_ai-0.1.0/eval/seeded/py-shared-counter/expected.json +7 -0
- reviewloop_ai-0.1.0/eval/seeded/py-shared-counter/patch.diff +23 -0
- reviewloop_ai-0.1.0/eval/seeded/py-truncate-first/before/pyproject.toml +3 -0
- reviewloop_ai-0.1.0/eval/seeded/py-truncate-first/before/tool/store.py +6 -0
- reviewloop_ai-0.1.0/eval/seeded/py-truncate-first/case.json +3 -0
- reviewloop_ai-0.1.0/eval/seeded/py-truncate-first/expected.json +7 -0
- reviewloop_ai-0.1.0/eval/seeded/py-truncate-first/patch.diff +13 -0
- reviewloop_ai-0.1.0/eval/seeded/react-draft-lost/before/package.json +5 -0
- reviewloop_ai-0.1.0/eval/seeded/react-draft-lost/before/src/Editor.tsx +6 -0
- reviewloop_ai-0.1.0/eval/seeded/react-draft-lost/case.json +3 -0
- reviewloop_ai-0.1.0/eval/seeded/react-draft-lost/expected.json +7 -0
- reviewloop_ai-0.1.0/eval/seeded/react-draft-lost/patch.diff +20 -0
- reviewloop_ai-0.1.0/eval/seeded/react-null-profile/before/package.json +5 -0
- reviewloop_ai-0.1.0/eval/seeded/react-null-profile/before/src/Header.tsx +7 -0
- reviewloop_ai-0.1.0/eval/seeded/react-null-profile/case.json +3 -0
- reviewloop_ai-0.1.0/eval/seeded/react-null-profile/expected.json +7 -0
- reviewloop_ai-0.1.0/eval/seeded/react-null-profile/patch.diff +14 -0
- reviewloop_ai-0.1.0/eval/seeded/ts-async-race/before/package.json +4 -0
- reviewloop_ai-0.1.0/eval/seeded/ts-async-race/before/src/counter.ts +5 -0
- reviewloop_ai-0.1.0/eval/seeded/ts-async-race/case.json +3 -0
- reviewloop_ai-0.1.0/eval/seeded/ts-async-race/expected.json +7 -0
- reviewloop_ai-0.1.0/eval/seeded/ts-async-race/patch.diff +14 -0
- reviewloop_ai-0.1.0/eval/seeded/ts-null-lookup/before/package.json +4 -0
- reviewloop_ai-0.1.0/eval/seeded/ts-null-lookup/before/src/users.ts +7 -0
- reviewloop_ai-0.1.0/eval/seeded/ts-null-lookup/case.json +3 -0
- reviewloop_ai-0.1.0/eval/seeded/ts-null-lookup/expected.json +7 -0
- reviewloop_ai-0.1.0/eval/seeded/ts-null-lookup/patch.diff +13 -0
- reviewloop_ai-0.1.0/examples/Jenkinsfile +67 -0
- reviewloop_ai-0.1.0/examples/bitbucket-pipelines.yml +24 -0
- reviewloop_ai-0.1.0/examples/github-workflow.yml +58 -0
- reviewloop_ai-0.1.0/examples/gitlab-ci.yml +26 -0
- reviewloop_ai-0.1.0/examples/reviewloop.yml +22 -0
- reviewloop_ai-0.1.0/mkdocs.yml +71 -0
- reviewloop_ai-0.1.0/pyproject.toml +77 -0
- reviewloop_ai-0.1.0/release-please-config.json +42 -0
- reviewloop_ai-0.1.0/scripts/check_skill_length.py +32 -0
- reviewloop_ai-0.1.0/src/reviewloop/__init__.py +3 -0
- reviewloop_ai-0.1.0/src/reviewloop/agents/__init__.py +0 -0
- reviewloop_ai-0.1.0/src/reviewloop/agents/base.py +28 -0
- reviewloop_ai-0.1.0/src/reviewloop/agents/claude_code.py +160 -0
- reviewloop_ai-0.1.0/src/reviewloop/agents/codex.py +108 -0
- reviewloop_ai-0.1.0/src/reviewloop/agents/cursor.py +96 -0
- reviewloop_ai-0.1.0/src/reviewloop/agents/git_guard.py +214 -0
- reviewloop_ai-0.1.0/src/reviewloop/agents/isolation.py +319 -0
- reviewloop_ai-0.1.0/src/reviewloop/agents/registry.py +32 -0
- reviewloop_ai-0.1.0/src/reviewloop/agents/runner.py +152 -0
- reviewloop_ai-0.1.0/src/reviewloop/anchor.py +154 -0
- reviewloop_ai-0.1.0/src/reviewloop/cli.py +226 -0
- reviewloop_ai-0.1.0/src/reviewloop/cli_snippets.py +197 -0
- reviewloop_ai-0.1.0/src/reviewloop/config.py +83 -0
- reviewloop_ai-0.1.0/src/reviewloop/diff.py +182 -0
- reviewloop_ai-0.1.0/src/reviewloop/errors.py +10 -0
- reviewloop_ai-0.1.0/src/reviewloop/models.py +134 -0
- reviewloop_ai-0.1.0/src/reviewloop/output/__init__.py +0 -0
- reviewloop_ai-0.1.0/src/reviewloop/output/json_out.py +13 -0
- reviewloop_ai-0.1.0/src/reviewloop/output/redact.py +43 -0
- reviewloop_ai-0.1.0/src/reviewloop/output/sarif.py +46 -0
- reviewloop_ai-0.1.0/src/reviewloop/output/summary.py +101 -0
- reviewloop_ai-0.1.0/src/reviewloop/pipeline/__init__.py +0 -0
- reviewloop_ai-0.1.0/src/reviewloop/pipeline/agent.py +124 -0
- reviewloop_ai-0.1.0/src/reviewloop/pipeline/context.py +98 -0
- reviewloop_ai-0.1.0/src/reviewloop/pipeline/engine.py +135 -0
- reviewloop_ai-0.1.0/src/reviewloop/pipeline/failures.py +19 -0
- reviewloop_ai-0.1.0/src/reviewloop/pipeline/findings.py +14 -0
- reviewloop_ai-0.1.0/src/reviewloop/pipeline/flows.py +86 -0
- reviewloop_ai-0.1.0/src/reviewloop/pipeline/git.py +17 -0
- reviewloop_ai-0.1.0/src/reviewloop/pipeline/prompts.py +107 -0
- reviewloop_ai-0.1.0/src/reviewloop/pipeline/review.py +45 -0
- reviewloop_ai-0.1.0/src/reviewloop/pipeline/split.py +58 -0
- reviewloop_ai-0.1.0/src/reviewloop/pipeline/steps/__init__.py +0 -0
- reviewloop_ai-0.1.0/src/reviewloop/pipeline/steps/follow_up/__init__.py +1 -0
- reviewloop_ai-0.1.0/src/reviewloop/pipeline/steps/follow_up/build_follow_up_context.py +12 -0
- reviewloop_ai-0.1.0/src/reviewloop/pipeline/steps/follow_up/follow_up_review.py +27 -0
- reviewloop_ai-0.1.0/src/reviewloop/pipeline/steps/follow_up/follow_up_summary.py +29 -0
- reviewloop_ai-0.1.0/src/reviewloop/pipeline/steps/follow_up/force_push_and_lineage.py +42 -0
- reviewloop_ai-0.1.0/src/reviewloop/pipeline/steps/follow_up/in_progress_comment.py +13 -0
- reviewloop_ai-0.1.0/src/reviewloop/pipeline/steps/follow_up/load_thread_inputs.py +80 -0
- reviewloop_ai-0.1.0/src/reviewloop/pipeline/steps/follow_up/post_follow_up_comments.py +29 -0
- reviewloop_ai-0.1.0/src/reviewloop/pipeline/steps/follow_up/resolve_target_turn.py +26 -0
- reviewloop_ai-0.1.0/src/reviewloop/pipeline/steps/follow_up/security_rescan.py +44 -0
- reviewloop_ai-0.1.0/src/reviewloop/pipeline/steps/initial/__init__.py +1 -0
- reviewloop_ai-0.1.0/src/reviewloop/pipeline/steps/initial/build_context.py +91 -0
- reviewloop_ai-0.1.0/src/reviewloop/pipeline/steps/initial/clean.py +20 -0
- reviewloop_ai-0.1.0/src/reviewloop/pipeline/steps/initial/detect_stack.py +33 -0
- reviewloop_ai-0.1.0/src/reviewloop/pipeline/steps/initial/fetch_previous_comments.py +11 -0
- reviewloop_ai-0.1.0/src/reviewloop/pipeline/steps/initial/get_diff.py +129 -0
- reviewloop_ai-0.1.0/src/reviewloop/pipeline/steps/initial/get_pr_info.py +18 -0
- reviewloop_ai-0.1.0/src/reviewloop/pipeline/steps/initial/init_context.py +14 -0
- reviewloop_ai-0.1.0/src/reviewloop/pipeline/steps/initial/initial_review.py +18 -0
- reviewloop_ai-0.1.0/src/reviewloop/pipeline/steps/initial/large_diff_review.py +83 -0
- reviewloop_ai-0.1.0/src/reviewloop/pipeline/steps/initial/load_config.py +49 -0
- reviewloop_ai-0.1.0/src/reviewloop/pipeline/steps/initial/post_comment.py +92 -0
- reviewloop_ai-0.1.0/src/reviewloop/pipeline/steps/initial/pr_overview.py +21 -0
- reviewloop_ai-0.1.0/src/reviewloop/pipeline/steps/initial/pre_review_comment.py +23 -0
- reviewloop_ai-0.1.0/src/reviewloop/pipeline/steps/initial/quality_gate.py +35 -0
- reviewloop_ai-0.1.0/src/reviewloop/pipeline/steps/initial/resolve_review_context.py +21 -0
- reviewloop_ai-0.1.0/src/reviewloop/pipeline/steps/initial/security_branch.py +83 -0
- reviewloop_ai-0.1.0/src/reviewloop/pipeline/steps/initial/security_merge.py +17 -0
- reviewloop_ai-0.1.0/src/reviewloop/pipeline/steps/initial/summarize_context.py +52 -0
- reviewloop_ai-0.1.0/src/reviewloop/pipeline/steps/initial/summary.py +21 -0
- reviewloop_ai-0.1.0/src/reviewloop/platform.py +73 -0
- reviewloop_ai-0.1.0/src/reviewloop/py.typed +0 -0
- reviewloop_ai-0.1.0/src/reviewloop/rules/common.md +47 -0
- reviewloop_ai-0.1.0/src/reviewloop/rules/csharp.md +52 -0
- reviewloop_ai-0.1.0/src/reviewloop/rules/django.md +44 -0
- reviewloop_ai-0.1.0/src/reviewloop/rules/go.md +53 -0
- reviewloop_ai-0.1.0/src/reviewloop/rules/java.md +48 -0
- reviewloop_ai-0.1.0/src/reviewloop/rules/laravel.md +52 -0
- reviewloop_ai-0.1.0/src/reviewloop/rules/nestjs.md +43 -0
- reviewloop_ai-0.1.0/src/reviewloop/rules/php.md +43 -0
- reviewloop_ai-0.1.0/src/reviewloop/rules/python.md +45 -0
- reviewloop_ai-0.1.0/src/reviewloop/rules/react.md +41 -0
- reviewloop_ai-0.1.0/src/reviewloop/rules/typescript.md +37 -0
- reviewloop_ai-0.1.0/src/reviewloop/security/__init__.py +0 -0
- reviewloop_ai-0.1.0/src/reviewloop/security/scanners.py +163 -0
- reviewloop_ai-0.1.0/src/reviewloop/skills/__init__.py +0 -0
- reviewloop_ai-0.1.0/src/reviewloop/skills/code-review/SKILL.md +63 -0
- reviewloop_ai-0.1.0/src/reviewloop/skills/follow-up/SKILL.md +44 -0
- reviewloop_ai-0.1.0/src/reviewloop/skills/output-contract/SKILL.md +61 -0
- reviewloop_ai-0.1.0/src/reviewloop/skills/pr-overview/SKILL.md +32 -0
- reviewloop_ai-0.1.0/src/reviewloop/skills/quality-gate/SKILL.md +60 -0
- reviewloop_ai-0.1.0/src/reviewloop/skills/schemas.py +98 -0
- reviewloop_ai-0.1.0/src/reviewloop/skills/security-review/SKILL.md +43 -0
- reviewloop_ai-0.1.0/src/reviewloop/skills/security-verify/SKILL.md +32 -0
- reviewloop_ai-0.1.0/src/reviewloop/skills/summarize-context/SKILL.md +33 -0
- reviewloop_ai-0.1.0/src/reviewloop/stacks.py +95 -0
- reviewloop_ai-0.1.0/src/reviewloop/state.py +53 -0
- reviewloop_ai-0.1.0/src/reviewloop/trackers/__init__.py +0 -0
- reviewloop_ai-0.1.0/src/reviewloop/trackers/_text.py +5 -0
- reviewloop_ai-0.1.0/src/reviewloop/trackers/base.py +14 -0
- reviewloop_ai-0.1.0/src/reviewloop/trackers/github_issues.py +33 -0
- reviewloop_ai-0.1.0/src/reviewloop/trackers/gitlab_issues.py +36 -0
- reviewloop_ai-0.1.0/src/reviewloop/trackers/jira.py +61 -0
- reviewloop_ai-0.1.0/src/reviewloop/trackers/registry.py +37 -0
- reviewloop_ai-0.1.0/src/reviewloop/vcs/__init__.py +0 -0
- reviewloop_ai-0.1.0/src/reviewloop/vcs/base.py +33 -0
- reviewloop_ai-0.1.0/src/reviewloop/vcs/bitbucket_cloud.py +309 -0
- reviewloop_ai-0.1.0/src/reviewloop/vcs/bitbucket_dc.py +314 -0
- reviewloop_ai-0.1.0/src/reviewloop/vcs/bitbucket_http.py +16 -0
- reviewloop_ai-0.1.0/src/reviewloop/vcs/common.py +43 -0
- reviewloop_ai-0.1.0/src/reviewloop/vcs/github.py +390 -0
- reviewloop_ai-0.1.0/src/reviewloop/vcs/gitlab.py +274 -0
- reviewloop_ai-0.1.0/templates/reviewloop.yml +69 -0
- reviewloop_ai-0.1.0/tests/conftest.py +206 -0
- reviewloop_ai-0.1.0/tests/e2e/README.md +85 -0
- reviewloop_ai-0.1.0/tests/e2e/conftest.py +56 -0
- reviewloop_ai-0.1.0/tests/e2e/e2e_support.py +75 -0
- reviewloop_ai-0.1.0/tests/e2e/test_claude_smoke.py +207 -0
- reviewloop_ai-0.1.0/tests/e2e/test_github.py +235 -0
- reviewloop_ai-0.1.0/tests/e2e/test_gitlab.py +185 -0
- reviewloop_ai-0.1.0/tests/fixtures/agents/fake_agent.py +89 -0
- reviewloop_ai-0.1.0/tests/fixtures/diffs/added.diff +9 -0
- reviewloop_ai-0.1.0/tests/fixtures/diffs/anchor.diff +35 -0
- reviewloop_ai-0.1.0/tests/fixtures/diffs/binary.diff +7 -0
- reviewloop_ai-0.1.0/tests/fixtures/diffs/deleted.diff +8 -0
- reviewloop_ai-0.1.0/tests/fixtures/diffs/mode_only.diff +3 -0
- reviewloop_ai-0.1.0/tests/fixtures/diffs/no_newline.diff +11 -0
- reviewloop_ai-0.1.0/tests/fixtures/diffs/renamed.diff +13 -0
- reviewloop_ai-0.1.0/tests/fixtures/github/comment_collaborator.json +17 -0
- reviewloop_ai-0.1.0/tests/fixtures/github/comment_issue.json +14 -0
- reviewloop_ai-0.1.0/tests/fixtures/github/comment_plain.json +17 -0
- reviewloop_ai-0.1.0/tests/fixtures/github/comment_review.json +17 -0
- reviewloop_ai-0.1.0/tests/fixtures/github/comment_unknown.json +17 -0
- reviewloop_ai-0.1.0/tests/fixtures/github/pr_draft.json +12 -0
- reviewloop_ai-0.1.0/tests/fixtures/github/pr_opened.json +12 -0
- reviewloop_ai-0.1.0/tests/fixtures/github/pr_ready.json +12 -0
- reviewloop_ai-0.1.0/tests/fixtures/gitlab/mr.json +1 -0
- reviewloop_ai-0.1.0/tests/fixtures/gitlab/note_hook.json +1 -0
- reviewloop_ai-0.1.0/tests/fixtures/gitlab/note_hook_issue.json +1 -0
- reviewloop_ai-0.1.0/tests/fixtures/sarif-schema-2.1.0.json +2915 -0
- reviewloop_ai-0.1.0/tests/integration/test_checkout_ownership.py +156 -0
- reviewloop_ai-0.1.0/tests/integration/test_follow_up_flow.py +385 -0
- reviewloop_ai-0.1.0/tests/integration/test_initial_flow.py +78 -0
- reviewloop_ai-0.1.0/tests/unit/agents/conftest.py +69 -0
- reviewloop_ai-0.1.0/tests/unit/agents/test_claude_code.py +328 -0
- reviewloop_ai-0.1.0/tests/unit/agents/test_codex.py +192 -0
- reviewloop_ai-0.1.0/tests/unit/agents/test_contract.py +104 -0
- reviewloop_ai-0.1.0/tests/unit/agents/test_cursor.py +110 -0
- reviewloop_ai-0.1.0/tests/unit/agents/test_git_wrapper.py +243 -0
- reviewloop_ai-0.1.0/tests/unit/agents/test_isolation.py +511 -0
- reviewloop_ai-0.1.0/tests/unit/agents/test_runner.py +146 -0
- reviewloop_ai-0.1.0/tests/unit/conftest.py +5 -0
- reviewloop_ai-0.1.0/tests/unit/output/test_output.py +203 -0
- reviewloop_ai-0.1.0/tests/unit/pipeline/test_engine.py +196 -0
- reviewloop_ai-0.1.0/tests/unit/pipeline/test_failures.py +26 -0
- reviewloop_ai-0.1.0/tests/unit/pipeline/test_split.py +285 -0
- reviewloop_ai-0.1.0/tests/unit/pipeline/test_steps.py +959 -0
- reviewloop_ai-0.1.0/tests/unit/security/test_scanners.py +279 -0
- reviewloop_ai-0.1.0/tests/unit/test_anchor.py +270 -0
- reviewloop_ai-0.1.0/tests/unit/test_cli.py +612 -0
- reviewloop_ai-0.1.0/tests/unit/test_config.py +83 -0
- reviewloop_ai-0.1.0/tests/unit/test_diff.py +213 -0
- reviewloop_ai-0.1.0/tests/unit/test_eval_run.py +275 -0
- reviewloop_ai-0.1.0/tests/unit/test_eval_score.py +86 -0
- reviewloop_ai-0.1.0/tests/unit/test_models.py +164 -0
- reviewloop_ai-0.1.0/tests/unit/test_skills.py +179 -0
- reviewloop_ai-0.1.0/tests/unit/test_smoke.py +33 -0
- reviewloop_ai-0.1.0/tests/unit/test_state.py +63 -0
- reviewloop_ai-0.1.0/tests/unit/trackers/test_trackers.py +127 -0
- reviewloop_ai-0.1.0/tests/unit/vcs/test_bitbucket_cloud.py +461 -0
- reviewloop_ai-0.1.0/tests/unit/vcs/test_bitbucket_dc.py +445 -0
- reviewloop_ai-0.1.0/tests/unit/vcs/test_common.py +49 -0
- reviewloop_ai-0.1.0/tests/unit/vcs/test_github.py +600 -0
- reviewloop_ai-0.1.0/tests/unit/vcs/test_gitlab.py +437 -0
- reviewloop_ai-0.1.0/tests/unit/vcs/test_marker_last.py +131 -0
- reviewloop_ai-0.1.0/uv.lock +2042 -0
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
root = true
|
|
2
|
+
|
|
3
|
+
[*]
|
|
4
|
+
charset = utf-8
|
|
5
|
+
end_of_line = lf
|
|
6
|
+
insert_final_newline = true
|
|
7
|
+
trim_trailing_whitespace = true
|
|
8
|
+
indent_style = space
|
|
9
|
+
indent_size = 4
|
|
10
|
+
|
|
11
|
+
[*.{yml,yaml,json,toml,md}]
|
|
12
|
+
indent_size = 2
|
|
13
|
+
|
|
14
|
+
[Makefile]
|
|
15
|
+
indent_style = tab
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
* @tpham1467
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
name: Bug report
|
|
2
|
+
description: Something does not work as documented
|
|
3
|
+
labels: [bug]
|
|
4
|
+
body:
|
|
5
|
+
- type: textarea
|
|
6
|
+
id: what
|
|
7
|
+
attributes:
|
|
8
|
+
label: What happened
|
|
9
|
+
description: Include what you expected instead.
|
|
10
|
+
validations:
|
|
11
|
+
required: true
|
|
12
|
+
- type: textarea
|
|
13
|
+
id: repro
|
|
14
|
+
attributes:
|
|
15
|
+
label: Steps to reproduce
|
|
16
|
+
validations:
|
|
17
|
+
required: true
|
|
18
|
+
- type: input
|
|
19
|
+
id: version
|
|
20
|
+
attributes:
|
|
21
|
+
label: reviewloop version
|
|
22
|
+
validations:
|
|
23
|
+
required: true
|
|
24
|
+
- type: dropdown
|
|
25
|
+
id: platform
|
|
26
|
+
attributes:
|
|
27
|
+
label: Code host
|
|
28
|
+
options: [GitHub, GitLab, Bitbucket, Local]
|
|
29
|
+
validations:
|
|
30
|
+
required: true
|
|
31
|
+
- type: textarea
|
|
32
|
+
id: logs
|
|
33
|
+
attributes:
|
|
34
|
+
label: Logs
|
|
35
|
+
description: Remove tokens and private code before pasting.
|
|
36
|
+
render: text
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
name: Feature request
|
|
2
|
+
description: Suggest an improvement
|
|
3
|
+
labels: [enhancement]
|
|
4
|
+
body:
|
|
5
|
+
- type: textarea
|
|
6
|
+
id: problem
|
|
7
|
+
attributes:
|
|
8
|
+
label: Problem
|
|
9
|
+
description: What are you trying to do that you cannot do today?
|
|
10
|
+
validations:
|
|
11
|
+
required: true
|
|
12
|
+
- type: textarea
|
|
13
|
+
id: proposal
|
|
14
|
+
attributes:
|
|
15
|
+
label: Proposed solution
|
|
16
|
+
validations:
|
|
17
|
+
required: true
|
|
18
|
+
- type: textarea
|
|
19
|
+
id: alternatives
|
|
20
|
+
attributes:
|
|
21
|
+
label: Alternatives considered
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
name: New review rule
|
|
2
|
+
description: Propose a rule or skill for the reviewer
|
|
3
|
+
labels: [rule]
|
|
4
|
+
body:
|
|
5
|
+
- type: input
|
|
6
|
+
id: name
|
|
7
|
+
attributes:
|
|
8
|
+
label: Rule name
|
|
9
|
+
validations:
|
|
10
|
+
required: true
|
|
11
|
+
- type: textarea
|
|
12
|
+
id: bad
|
|
13
|
+
attributes:
|
|
14
|
+
label: Code the rule should flag
|
|
15
|
+
render: text
|
|
16
|
+
validations:
|
|
17
|
+
required: true
|
|
18
|
+
- type: textarea
|
|
19
|
+
id: good
|
|
20
|
+
attributes:
|
|
21
|
+
label: Code the rule should accept
|
|
22
|
+
render: text
|
|
23
|
+
validations:
|
|
24
|
+
required: true
|
|
25
|
+
- type: textarea
|
|
26
|
+
id: why
|
|
27
|
+
attributes:
|
|
28
|
+
label: Why it matters
|
|
29
|
+
description: Link a reference or describe the real-world failure.
|
|
30
|
+
validations:
|
|
31
|
+
required: true
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
## What and why
|
|
2
|
+
|
|
3
|
+
<!-- What does this change and why? Link the issue. -->
|
|
4
|
+
|
|
5
|
+
## Checklist
|
|
6
|
+
|
|
7
|
+
- [ ] PR title follows Conventional Commits
|
|
8
|
+
- [ ] Tests added or updated
|
|
9
|
+
- [ ] `uv run pytest && uv run pyright && uv run ruff check` pass
|
|
10
|
+
- [ ] No secrets, no private or company content
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
version: 2
|
|
2
|
+
updates:
|
|
3
|
+
- package-ecosystem: github-actions
|
|
4
|
+
directory: /
|
|
5
|
+
schedule:
|
|
6
|
+
interval: weekly
|
|
7
|
+
commit-message:
|
|
8
|
+
prefix: "chore"
|
|
9
|
+
- package-ecosystem: uv
|
|
10
|
+
directory: /
|
|
11
|
+
schedule:
|
|
12
|
+
interval: weekly
|
|
13
|
+
commit-message:
|
|
14
|
+
prefix: "chore"
|
|
@@ -0,0 +1,91 @@
|
|
|
1
|
+
name: ci
|
|
2
|
+
|
|
3
|
+
on:
|
|
4
|
+
pull_request:
|
|
5
|
+
push:
|
|
6
|
+
branches: [main]
|
|
7
|
+
|
|
8
|
+
permissions:
|
|
9
|
+
contents: read
|
|
10
|
+
|
|
11
|
+
concurrency:
|
|
12
|
+
group: ci-${{ github.ref }}
|
|
13
|
+
cancel-in-progress: true
|
|
14
|
+
|
|
15
|
+
jobs:
|
|
16
|
+
lint:
|
|
17
|
+
runs-on: ubuntu-latest
|
|
18
|
+
steps:
|
|
19
|
+
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
|
|
20
|
+
with:
|
|
21
|
+
persist-credentials: false
|
|
22
|
+
- uses: astral-sh/setup-uv@1db35dd8eee11c5894872e0b383ae6c406cf738d # v10.4.0
|
|
23
|
+
with:
|
|
24
|
+
python-version: "3.12"
|
|
25
|
+
- run: uv sync --locked
|
|
26
|
+
- run: uv run ruff check
|
|
27
|
+
- run: uv run ruff format --check
|
|
28
|
+
- run: uv run pyright
|
|
29
|
+
- run: uv run python scripts/check_skill_length.py
|
|
30
|
+
|
|
31
|
+
test:
|
|
32
|
+
runs-on: ubuntu-latest
|
|
33
|
+
strategy:
|
|
34
|
+
fail-fast: false
|
|
35
|
+
matrix:
|
|
36
|
+
python-version: ["3.11", "3.12", "3.13"]
|
|
37
|
+
steps:
|
|
38
|
+
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
|
|
39
|
+
with:
|
|
40
|
+
persist-credentials: false
|
|
41
|
+
- uses: astral-sh/setup-uv@1db35dd8eee11c5894872e0b383ae6c406cf738d # v10.4.0
|
|
42
|
+
with:
|
|
43
|
+
python-version: ${{ matrix.python-version }}
|
|
44
|
+
- run: uv sync --locked
|
|
45
|
+
- run: uv run pytest
|
|
46
|
+
|
|
47
|
+
gitleaks:
|
|
48
|
+
runs-on: ubuntu-latest
|
|
49
|
+
steps:
|
|
50
|
+
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
|
|
51
|
+
with:
|
|
52
|
+
fetch-depth: 0
|
|
53
|
+
persist-credentials: false
|
|
54
|
+
# The CLI scans the full history; the action fails on a range that starts at the root commit.
|
|
55
|
+
# --log-opts=HEAD limits the scan to this commit's ancestry, not every fetched branch.
|
|
56
|
+
- name: Install gitleaks
|
|
57
|
+
env:
|
|
58
|
+
GITLEAKS_VERSION: "8.30.1"
|
|
59
|
+
GITLEAKS_SHA256: "551f6fc83ea457d62a0d98237cbad105af8d557003051f41f3e7ca7b3f2470eb"
|
|
60
|
+
run: |
|
|
61
|
+
curl -sSfL -o gitleaks.tar.gz "https://github.com/gitleaks/gitleaks/releases/download/v${GITLEAKS_VERSION}/gitleaks_${GITLEAKS_VERSION}_linux_x64.tar.gz"
|
|
62
|
+
echo "${GITLEAKS_SHA256} gitleaks.tar.gz" | sha256sum --check -
|
|
63
|
+
tar -xzf gitleaks.tar.gz gitleaks
|
|
64
|
+
- name: Scan history
|
|
65
|
+
run: ./gitleaks git --log-opts=HEAD --redact --exit-code 1 --verbose .
|
|
66
|
+
|
|
67
|
+
commitlint:
|
|
68
|
+
if: github.event_name == 'pull_request'
|
|
69
|
+
runs-on: ubuntu-latest
|
|
70
|
+
permissions:
|
|
71
|
+
pull-requests: read
|
|
72
|
+
steps:
|
|
73
|
+
- uses: amannn/action-semantic-pull-request@66e72920af32222769c386d81f89656ebcb6d6d5 # v6.1.4
|
|
74
|
+
env:
|
|
75
|
+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
|
76
|
+
|
|
77
|
+
actionlint:
|
|
78
|
+
runs-on: ubuntu-latest
|
|
79
|
+
steps:
|
|
80
|
+
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
|
|
81
|
+
with:
|
|
82
|
+
persist-credentials: false
|
|
83
|
+
- name: Install actionlint
|
|
84
|
+
env:
|
|
85
|
+
ACTIONLINT_VERSION: "1.7.12"
|
|
86
|
+
ACTIONLINT_SHA256: "8aca8db96f1b94770f1b0d72b6dddcb1ebb8123cb3712530b08cc387b349a3d8"
|
|
87
|
+
run: |
|
|
88
|
+
curl -sSfL -o actionlint.tar.gz "https://github.com/rhysd/actionlint/releases/download/v${ACTIONLINT_VERSION}/actionlint_${ACTIONLINT_VERSION}_linux_amd64.tar.gz"
|
|
89
|
+
echo "${ACTIONLINT_SHA256} actionlint.tar.gz" | sha256sum --check -
|
|
90
|
+
tar -xzf actionlint.tar.gz actionlint
|
|
91
|
+
- run: ./actionlint
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
name: CLA Assistant
|
|
2
|
+
|
|
3
|
+
on:
|
|
4
|
+
issue_comment:
|
|
5
|
+
types: [created]
|
|
6
|
+
# pull_request_target runs with write permissions: never check out or run PR code in this workflow.
|
|
7
|
+
pull_request_target:
|
|
8
|
+
types: [opened, closed, synchronize]
|
|
9
|
+
|
|
10
|
+
permissions:
|
|
11
|
+
actions: write
|
|
12
|
+
contents: write
|
|
13
|
+
pull-requests: write
|
|
14
|
+
statuses: write
|
|
15
|
+
|
|
16
|
+
jobs:
|
|
17
|
+
cla:
|
|
18
|
+
runs-on: ubuntu-latest
|
|
19
|
+
if: github.repository == 'tpham1467/reviewloop'
|
|
20
|
+
steps:
|
|
21
|
+
- name: CLA Assistant
|
|
22
|
+
if: github.event_name == 'pull_request_target' || github.event.comment.body == 'recheck' || github.event.comment.body == 'I have read the CLA Document and I hereby sign the CLA'
|
|
23
|
+
uses: contributor-assistant/github-action@ca4a40a7d1004f18d9960b404b97e5f30a505a08 # v2.6.1
|
|
24
|
+
env:
|
|
25
|
+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
|
26
|
+
with:
|
|
27
|
+
path-to-signatures: signatures/cla.json
|
|
28
|
+
path-to-document: https://github.com/tpham1467/reviewloop/blob/main/CLA.md
|
|
29
|
+
# Dedicated unprotected branch: the protect-main ruleset only covers the default branch.
|
|
30
|
+
branch: cla-signatures
|
|
31
|
+
allowlist: dependabot[bot],github-actions[bot],release-please[bot],tpham1467
|
|
32
|
+
custom-pr-sign-comment: I have read the CLA Document and I hereby sign the CLA
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
name: codeql
|
|
2
|
+
|
|
3
|
+
on:
|
|
4
|
+
pull_request:
|
|
5
|
+
push:
|
|
6
|
+
branches: [main]
|
|
7
|
+
schedule:
|
|
8
|
+
- cron: "17 4 * * 1"
|
|
9
|
+
|
|
10
|
+
permissions:
|
|
11
|
+
contents: read
|
|
12
|
+
|
|
13
|
+
jobs:
|
|
14
|
+
analyze:
|
|
15
|
+
runs-on: ubuntu-latest
|
|
16
|
+
permissions:
|
|
17
|
+
contents: read
|
|
18
|
+
security-events: write
|
|
19
|
+
steps:
|
|
20
|
+
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
|
|
21
|
+
with:
|
|
22
|
+
persist-credentials: false
|
|
23
|
+
- uses: github/codeql-action/init@915412ff23e8b7659517e607487dbeae018f2934 # v4.39.5
|
|
24
|
+
with:
|
|
25
|
+
languages: python
|
|
26
|
+
- uses: github/codeql-action/analyze@915412ff23e8b7659517e607487dbeae018f2934 # v4.39.5
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
name: docs
|
|
2
|
+
|
|
3
|
+
on:
|
|
4
|
+
pull_request:
|
|
5
|
+
paths: ["docs/**", "mkdocs.yml", ".github/workflows/docs.yml"]
|
|
6
|
+
push:
|
|
7
|
+
branches: [main]
|
|
8
|
+
paths: ["docs/**", "mkdocs.yml", ".github/workflows/docs.yml"]
|
|
9
|
+
workflow_dispatch:
|
|
10
|
+
|
|
11
|
+
permissions:
|
|
12
|
+
contents: read
|
|
13
|
+
|
|
14
|
+
concurrency:
|
|
15
|
+
group: docs-${{ github.ref }}
|
|
16
|
+
cancel-in-progress: true
|
|
17
|
+
|
|
18
|
+
jobs:
|
|
19
|
+
build:
|
|
20
|
+
runs-on: ubuntu-latest
|
|
21
|
+
steps:
|
|
22
|
+
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
|
|
23
|
+
with:
|
|
24
|
+
persist-credentials: false
|
|
25
|
+
- uses: astral-sh/setup-uv@1db35dd8eee11c5894872e0b383ae6c406cf738d # v10.4.0
|
|
26
|
+
with:
|
|
27
|
+
python-version: "3.12"
|
|
28
|
+
- run: uv sync --locked
|
|
29
|
+
- run: uv run mkdocs build --strict
|
|
30
|
+
- if: github.event_name != 'pull_request'
|
|
31
|
+
uses: actions/upload-pages-artifact@fc324d3547104276b827a68afc52ff2a11cc49c9 # v5.0.0
|
|
32
|
+
with:
|
|
33
|
+
path: site
|
|
34
|
+
|
|
35
|
+
deploy:
|
|
36
|
+
if: github.event_name != 'pull_request' && github.ref == 'refs/heads/main'
|
|
37
|
+
needs: build
|
|
38
|
+
runs-on: ubuntu-latest
|
|
39
|
+
permissions:
|
|
40
|
+
pages: write
|
|
41
|
+
id-token: write
|
|
42
|
+
environment:
|
|
43
|
+
name: github-pages
|
|
44
|
+
url: ${{ steps.deployment.outputs.page_url }}
|
|
45
|
+
steps:
|
|
46
|
+
- id: deployment
|
|
47
|
+
uses: actions/deploy-pages@368f82528645a54fb793d4d04e342629a3f51346 # v5.0.1
|
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
name: eval
|
|
2
|
+
|
|
3
|
+
on:
|
|
4
|
+
push:
|
|
5
|
+
branches-ignore: [main]
|
|
6
|
+
paths:
|
|
7
|
+
- "src/reviewloop/skills/**"
|
|
8
|
+
- "src/reviewloop/rules/**"
|
|
9
|
+
- "eval/**"
|
|
10
|
+
workflow_dispatch:
|
|
11
|
+
|
|
12
|
+
permissions:
|
|
13
|
+
contents: read
|
|
14
|
+
|
|
15
|
+
concurrency:
|
|
16
|
+
group: eval-${{ github.ref }}
|
|
17
|
+
cancel-in-progress: true
|
|
18
|
+
|
|
19
|
+
jobs:
|
|
20
|
+
eval:
|
|
21
|
+
# Pushes to branches of this repository only: a fork cannot push here, and the job needs a model credential.
|
|
22
|
+
if: github.repository == 'tpham1467/reviewloop'
|
|
23
|
+
# The `eval` environment holds ANTHROPIC_API_KEY or CLAUDE_CODE_OAUTH_TOKEN; maintainers can require reviewers on it in repository settings.
|
|
24
|
+
environment: eval
|
|
25
|
+
runs-on: ubuntu-latest
|
|
26
|
+
timeout-minutes: 90
|
|
27
|
+
steps:
|
|
28
|
+
- name: Check for an agent credential
|
|
29
|
+
id: credential
|
|
30
|
+
env:
|
|
31
|
+
ANTHROPIC_API_KEY: ${{ secrets.ANTHROPIC_API_KEY }}
|
|
32
|
+
CLAUDE_CODE_OAUTH_TOKEN: ${{ secrets.CLAUDE_CODE_OAUTH_TOKEN }}
|
|
33
|
+
run: |
|
|
34
|
+
if [ -z "$ANTHROPIC_API_KEY" ] && [ -z "$CLAUDE_CODE_OAUTH_TOKEN" ]; then
|
|
35
|
+
echo "::notice::eval skipped because no agent credential is configured (secret ANTHROPIC_API_KEY or CLAUDE_CODE_OAUTH_TOKEN in the eval environment)"
|
|
36
|
+
echo "run=false" >> "$GITHUB_OUTPUT"
|
|
37
|
+
else
|
|
38
|
+
echo "run=true" >> "$GITHUB_OUTPUT"
|
|
39
|
+
fi
|
|
40
|
+
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
|
|
41
|
+
if: steps.credential.outputs.run == 'true'
|
|
42
|
+
with:
|
|
43
|
+
persist-credentials: false
|
|
44
|
+
- uses: astral-sh/setup-uv@1db35dd8eee11c5894872e0b383ae6c406cf738d # v10.4.0
|
|
45
|
+
if: steps.credential.outputs.run == 'true'
|
|
46
|
+
- run: uv sync --frozen
|
|
47
|
+
if: steps.credential.outputs.run == 'true'
|
|
48
|
+
- name: Install the agent CLI
|
|
49
|
+
if: steps.credential.outputs.run == 'true'
|
|
50
|
+
run: npm install --global @anthropic-ai/claude-code@2.1.332
|
|
51
|
+
- name: Run the eval
|
|
52
|
+
if: steps.credential.outputs.run == 'true'
|
|
53
|
+
env:
|
|
54
|
+
ANTHROPIC_API_KEY: ${{ secrets.ANTHROPIC_API_KEY }}
|
|
55
|
+
CLAUDE_CODE_OAUTH_TOKEN: ${{ secrets.CLAUDE_CODE_OAUTH_TOKEN }}
|
|
56
|
+
run: |
|
|
57
|
+
check=()
|
|
58
|
+
if [ -f eval/baseline.json ]; then check=(--check eval/baseline.json); fi
|
|
59
|
+
uv run python eval/run.py --aacr 20 --out eval-metrics.json "${check[@]}"
|
|
60
|
+
- uses: actions/upload-artifact@cf430e030ddbb5b0abf93d22962f4752f3646cd9 # v7.0.2
|
|
61
|
+
if: always() && steps.credential.outputs.run == 'true'
|
|
62
|
+
with:
|
|
63
|
+
name: eval-metrics
|
|
64
|
+
path: eval-metrics.json
|
|
65
|
+
if-no-files-found: ignore
|
|
@@ -0,0 +1,109 @@
|
|
|
1
|
+
name: release
|
|
2
|
+
|
|
3
|
+
on:
|
|
4
|
+
push:
|
|
5
|
+
branches: [main]
|
|
6
|
+
|
|
7
|
+
permissions: {}
|
|
8
|
+
|
|
9
|
+
concurrency:
|
|
10
|
+
group: release
|
|
11
|
+
cancel-in-progress: false
|
|
12
|
+
|
|
13
|
+
jobs:
|
|
14
|
+
release-please:
|
|
15
|
+
runs-on: ubuntu-latest
|
|
16
|
+
permissions:
|
|
17
|
+
contents: write
|
|
18
|
+
pull-requests: write
|
|
19
|
+
outputs:
|
|
20
|
+
release_created: ${{ steps.rp.outputs.release_created }}
|
|
21
|
+
tag_name: ${{ steps.rp.outputs.tag_name }}
|
|
22
|
+
version: ${{ steps.rp.outputs.version }}
|
|
23
|
+
major: ${{ steps.rp.outputs.major }}
|
|
24
|
+
steps:
|
|
25
|
+
- id: rp
|
|
26
|
+
uses: googleapis/release-please-action@45996ed1f6d02564a971a2fa1b5860e934307cf7 # v5.0.0
|
|
27
|
+
with:
|
|
28
|
+
config-file: release-please-config.json
|
|
29
|
+
manifest-file: .release-please-manifest.json
|
|
30
|
+
|
|
31
|
+
pypi:
|
|
32
|
+
needs: release-please
|
|
33
|
+
if: needs.release-please.outputs.release_created == 'true'
|
|
34
|
+
runs-on: ubuntu-latest
|
|
35
|
+
environment: pypi
|
|
36
|
+
permissions:
|
|
37
|
+
contents: read
|
|
38
|
+
id-token: write
|
|
39
|
+
steps:
|
|
40
|
+
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
|
|
41
|
+
with:
|
|
42
|
+
ref: ${{ needs.release-please.outputs.tag_name }}
|
|
43
|
+
persist-credentials: false
|
|
44
|
+
- uses: astral-sh/setup-uv@1db35dd8eee11c5894872e0b383ae6c406cf738d # v10.4.0
|
|
45
|
+
with:
|
|
46
|
+
python-version: "3.12"
|
|
47
|
+
- run: uv build
|
|
48
|
+
- uses: pypa/gh-action-pypi-publish@7245906fb61fa33a13554f9d5fb856fe61758086 # v1.14.3
|
|
49
|
+
|
|
50
|
+
image:
|
|
51
|
+
needs: release-please
|
|
52
|
+
if: needs.release-please.outputs.release_created == 'true'
|
|
53
|
+
runs-on: ubuntu-latest
|
|
54
|
+
permissions:
|
|
55
|
+
contents: read
|
|
56
|
+
packages: write
|
|
57
|
+
id-token: write
|
|
58
|
+
env:
|
|
59
|
+
IMAGE: ghcr.io/tpham1467/reviewloop
|
|
60
|
+
steps:
|
|
61
|
+
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
|
|
62
|
+
with:
|
|
63
|
+
ref: ${{ needs.release-please.outputs.tag_name }}
|
|
64
|
+
persist-credentials: false
|
|
65
|
+
- uses: docker/setup-qemu-action@99012661954931238ded8c8b007157a8430204e1 # v4.4.0
|
|
66
|
+
- uses: docker/setup-buildx-action@f87e5991a6d7451dcb8d9637bfbc97413f497069 # v4.4.1
|
|
67
|
+
- uses: docker/login-action@8aa5831fb8d48d8f76594c7ddde61ae58019f550 # v4.8.0
|
|
68
|
+
with:
|
|
69
|
+
registry: ghcr.io
|
|
70
|
+
username: ${{ github.actor }}
|
|
71
|
+
password: ${{ secrets.GITHUB_TOKEN }}
|
|
72
|
+
- id: build
|
|
73
|
+
uses: docker/build-push-action@c3c9e263c25d99ce0380d002d59b67737d91b0dc # v7.4.0
|
|
74
|
+
with:
|
|
75
|
+
context: .
|
|
76
|
+
platforms: linux/amd64,linux/arm64
|
|
77
|
+
push: true
|
|
78
|
+
provenance: mode=max
|
|
79
|
+
sbom: true
|
|
80
|
+
tags: |
|
|
81
|
+
${{ env.IMAGE }}:${{ needs.release-please.outputs.version }}
|
|
82
|
+
${{ env.IMAGE }}:${{ needs.release-please.outputs.major }}
|
|
83
|
+
- uses: sigstore/cosign-installer@881c63bd87e38389154debd8331404ce7ca8a3ab # v4.1.4
|
|
84
|
+
- name: Sign image by digest
|
|
85
|
+
env:
|
|
86
|
+
DIGEST: ${{ steps.build.outputs.digest }}
|
|
87
|
+
run: cosign sign --yes "${IMAGE}@${DIGEST}"
|
|
88
|
+
|
|
89
|
+
move-major-tag:
|
|
90
|
+
needs: [release-please, pypi, image]
|
|
91
|
+
runs-on: ubuntu-latest
|
|
92
|
+
permissions:
|
|
93
|
+
contents: write
|
|
94
|
+
steps:
|
|
95
|
+
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
|
|
96
|
+
with:
|
|
97
|
+
ref: ${{ needs.release-please.outputs.tag_name }}
|
|
98
|
+
persist-credentials: false
|
|
99
|
+
- name: Move v<major> tag
|
|
100
|
+
env:
|
|
101
|
+
MAJOR: ${{ needs.release-please.outputs.major }}
|
|
102
|
+
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
|
103
|
+
REPO: ${{ github.repository }}
|
|
104
|
+
run: |
|
|
105
|
+
auth=$(printf 'x-access-token:%s' "${GH_TOKEN}" | base64 -w0)
|
|
106
|
+
echo "::add-mask::${auth}"
|
|
107
|
+
git tag -f "v${MAJOR}"
|
|
108
|
+
git -c "http.https://github.com/.extraheader=Authorization: Basic ${auth}" \
|
|
109
|
+
push --force "https://github.com/${REPO}.git" "refs/tags/v${MAJOR}"
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
name: scorecard
|
|
2
|
+
|
|
3
|
+
on:
|
|
4
|
+
push:
|
|
5
|
+
branches: [main]
|
|
6
|
+
schedule:
|
|
7
|
+
- cron: "41 5 * * 2"
|
|
8
|
+
|
|
9
|
+
permissions: read-all
|
|
10
|
+
|
|
11
|
+
jobs:
|
|
12
|
+
analysis:
|
|
13
|
+
runs-on: ubuntu-latest
|
|
14
|
+
permissions:
|
|
15
|
+
security-events: write
|
|
16
|
+
id-token: write
|
|
17
|
+
steps:
|
|
18
|
+
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
|
|
19
|
+
with:
|
|
20
|
+
persist-credentials: false
|
|
21
|
+
- uses: ossf/scorecard-action@23f22cd43608bae7a1f1fa2603d7314dee9538a5 # v2.6.0
|
|
22
|
+
with:
|
|
23
|
+
results_file: results.sarif
|
|
24
|
+
results_format: sarif
|
|
25
|
+
publish_results: true
|
|
26
|
+
- uses: actions/upload-artifact@cf430e030ddbb5b0abf93d22962f4752f3646cd9 # v7.0.2
|
|
27
|
+
with:
|
|
28
|
+
name: scorecard-sarif
|
|
29
|
+
path: results.sarif
|
|
30
|
+
retention-days: 5
|
|
31
|
+
- uses: github/codeql-action/upload-sarif@915412ff23e8b7659517e607487dbeae018f2934 # v4.39.5
|
|
32
|
+
with:
|
|
33
|
+
sarif_file: results.sarif
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
# Only job here: create the GitLab release that publishes the CI/CD Catalog component.
|
|
2
|
+
# Runs on the gitlab.com mirror; see docs/maintainers/release.md.
|
|
3
|
+
stages: [release]
|
|
4
|
+
|
|
5
|
+
release:
|
|
6
|
+
stage: release
|
|
7
|
+
image: registry.gitlab.com/gitlab-org/release-cli:v0.24.0@sha256:3f52d526f48e8d10625c722fa6d6423ee82aadeae1b1aa91f07b62551d96dacf
|
|
8
|
+
rules:
|
|
9
|
+
- if: $CI_COMMIT_TAG =~ /^v\d+\.\d+\.\d+$/
|
|
10
|
+
script:
|
|
11
|
+
- echo "Releasing $CI_COMMIT_TAG"
|
|
12
|
+
# The Catalog takes semantic versions (`1.0.0`, not `v1.0.0`), so the release goes under the tag without its `v`;
|
|
13
|
+
# GitLab creates that tag at this commit. `release:` runs as a glab command in the job shell, which expands
|
|
14
|
+
# `${CI_COMMIT_TAG#v}`. The new tag does not match the rule above, so it starts no second release.
|
|
15
|
+
release:
|
|
16
|
+
tag_name: ${CI_COMMIT_TAG#v}
|
|
17
|
+
description: "reviewloop $CI_COMMIT_TAG. See CHANGELOG.md."
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
repos:
|
|
2
|
+
- repo: https://github.com/pre-commit/pre-commit-hooks
|
|
3
|
+
rev: v6.0.0
|
|
4
|
+
hooks:
|
|
5
|
+
- id: end-of-file-fixer
|
|
6
|
+
- id: trailing-whitespace
|
|
7
|
+
- repo: https://github.com/astral-sh/ruff-pre-commit
|
|
8
|
+
rev: v0.17.6
|
|
9
|
+
hooks:
|
|
10
|
+
- id: ruff-check
|
|
11
|
+
args: [--fix]
|
|
12
|
+
- id: ruff-format
|
|
13
|
+
- repo: https://github.com/gitleaks/gitleaks
|
|
14
|
+
rev: v8.30.1
|
|
15
|
+
hooks:
|
|
16
|
+
- id: gitleaks
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
3.12
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
# AGENTS.md
|
|
2
|
+
|
|
3
|
+
Guidance for AI coding tools working in this repository.
|
|
4
|
+
|
|
5
|
+
- Everything is in English: code, comments, docs, commit messages, issues. No emoji.
|
|
6
|
+
- Clean-room rule: this is a public personal project. Never add any company, employer, internal host or previous
|
|
7
|
+
product name, and no content copied from private code.
|
|
8
|
+
- Before every commit run: `uv run pytest && uv run pyright && uv run ruff check`
|
|
9
|
+
(also `uv run ruff format --check`).
|
|
10
|
+
- Commits follow Conventional Commits (`feat:`, `fix:`, `chore:`, `docs:`, `test:`, `refactor:`).
|
|
11
|
+
- Never commit secrets. gitleaks runs in pre-commit and CI.
|
|
12
|
+
- Package manager is `uv`; dependencies live in `pyproject.toml` and `uv.lock`.
|