{"id":47770475,"url":"https://github.com/jaipilot/jaipilot-cli","last_synced_at":"2026-05-30T21:01:02.295Z","repository":{"id":345125005,"uuid":"1181029327","full_name":"JAIPilot/jaipilot-cli","owner":"JAIPilot","description":"JAIPilot - Auto Generate high coverage unit tests for Java code. ","archived":false,"fork":false,"pushed_at":"2026-04-20T17:53:48.000Z","size":501,"stargazers_count":1,"open_issues_count":12,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2026-04-20T19:37:29.649Z","etag":null,"topics":["claude-code","cursor","harness-framework","test-automation","testing","testing-tools","tests","unit-testing"],"latest_commit_sha":null,"homepage":"https://www.jaipilot.com","language":"Java","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/JAIPilot.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":"SECURITY.md","support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2026-03-13T17:10:21.000Z","updated_at":"2026-04-20T17:47:52.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/JAIPilot/jaipilot-cli","commit_stats":null,"previous_names":["skrcode/jaipilot-cli","jaipilot/jaipilot-cli"],"tags_count":43,"template":false,"template_full_name":null,"purl":"pkg:github/JAIPilot/jaipilot-cli","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/JAIPilot%2Fjaipilot-cli","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/JAIPilot%2Fjaipilot-cli/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/JAIPilot%2Fjaipilot-cli/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/JAIPilot%2Fjaipilot-cli/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/JAIPilot","download_url":"https://codeload.github.com/JAIPilot/jaipilot-cli/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/JAIPilot%2Fjaipilot-cli/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32084721,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-21T06:27:27.065Z","status":"ssl_error","status_checked_at":"2026-04-21T06:27:21.250Z","response_time":128,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["claude-code","cursor","harness-framework","test-automation","testing","testing-tools","tests","unit-testing"],"created_at":"2026-04-03T09:02:09.473Z","updated_at":"2026-05-30T21:01:02.271Z","avatar_url":"https://github.com/JAIPilot.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003cdiv align=\"center\"\u003e\n  \u003cimg src=\"docs/assets/jaipilot-logo.svg\" alt=\"JAIPilot logo\" width=\"160\" /\u003e\n  \u003ch1\u003eJAIPilot GitHub App\u003c/h1\u003e\n  \u003cp\u003e\u003cstrong\u003eAutomatically generate high-coverage Java unit tests on every pull request.\u003c/strong\u003e\u003c/p\u003e\n  \u003cp\u003e\n    \u003ca href=\"https://github.com/JAIPilot/jaipilot-cli/actions/workflows/ci.yml\"\u003e\n      \u003cimg src=\"https://github.com/JAIPilot/jaipilot-cli/actions/workflows/ci.yml/badge.svg?branch=main\" alt=\"CI\"\u003e\n    \u003c/a\u003e\n    \u003ca href=\"https://github.com/JAIPilot/jaipilot-cli/releases\"\u003e\n      \u003cimg src=\"https://img.shields.io/github/v/release/JAIPilot/jaipilot-cli\" alt=\"Release\"\u003e\n    \u003c/a\u003e\n    \u003ca href=\"LICENSE\"\u003e\n      \u003cimg src=\"https://img.shields.io/github/license/JAIPilot/jaipilot-cli\" alt=\"License\"\u003e\n    \u003c/a\u003e\n  \u003c/p\u003e\n  \u003cp\u003e\n    \u003ca href=\"#quick-start\"\u003e\u003cstrong\u003eQuick Start\u003c/strong\u003e\u003c/a\u003e\n    ·\n    \u003ca href=\"#how-it-works\"\u003e\u003cstrong\u003eHow It Works\u003c/strong\u003e\u003c/a\u003e\n  \u003c/p\u003e\n\u003c/div\u003e\n\n\u003cp align=\"center\"\u003e\n  This repository is focused on the JAIPilot GitHub App for PR automation.\n\u003c/p\u003e\n\n\u003chr /\u003e\n\nJAIPilot generates high-quality tests for changed Java production classes in pull requests and pushes the generated changes back to the PR branch.\n\n## Why This App\n\n- Generates and updates tests for changed Java production classes in a PR\n- Commits generated tests back to the PR branch automatically\n- Supports Maven and Gradle repositories\n- Exposes processed and failed class counts as workflow outputs\n\n## Prerequisites\n\n1. Install the JAIPilot GitHub App on the target repository.\n2. Ensure the app has repository permissions for:\n   - `Contents: Read and write`\n   - `Pull requests: Read and write`\n   - `Metadata: Read-only`\n3. Ensure the backend endpoints are deployed (JAIPilot cloud or self-hosted in `jaipilot-functions`):\n   - `POST /functions/v1/github-app-webhook`\n   - `POST /functions/v1/github-actions-token`\n\n## Quick Start\n\n1. Deploy JAIPilot backend endpoints (`github-app-webhook` and `github-actions-token`).\n2. Install the app on a repository.\n3. The app automatically creates or updates `.github/workflows/jaipilot-generate.yml`.\n4. On every PR (`opened`, `synchronize`, `reopened`), the managed workflow:\n   - requests a GitHub OIDC token (`id-token: write`)\n   - exchanges it with `POST /functions/v1/github-actions-token` for a short-lived JAIPilot runtime token\n   - runs `JAIPilot/jaipilot-cli@action-v1` with `jaipilot-auth-token`\n\n## How It Works\n\n- Resolves JAIPilot auth by preferring GitHub OIDC runtime token exchange when `id-token: write` is available; falls back to `jaipilot-auth-token` / `JAIPILOT_AUTH_TOKEN`.\n- Detects changed files from PR base branch (or previous commit for push events).\n- Filters to non-test `.java` production classes only.\n- Generates tests for each changed class.\n- Prints backend-provided coverage summaries in `jaipilot generate` logs when available.\n- Commits and pushes generated tests to the same branch.\n- Optionally fails the job when generation errors occur.\n\n## Local CLI Auth\n\nFor local CLI runs, sign in once with browser auth flow:\n\n```bash\njaipilot login\n```\n\n`jaipilot generate ...` will then use:\n\n1. `JAIPILOT_AUTH_TOKEN` (if set), otherwise\n2. the stored browser-login credentials (`~/.config/jaipilot/credentials.json`), otherwise\n3. the token saved by `jaipilot login \u003cjaipilot-auth-token\u003e`.\n\nIf no auth is available, `jaipilot generate ...` automatically starts the same browser login flow as `jaipilot login`.\nIf the backend returns `Unauthorized` and no other untried token source is available, `jaipilot generate ...` also\ntriggers a one-time browser login retry in local interactive runs (disabled in CI/GitHub Actions).\n\n## Action Publishing\n\nSee [docs/github-action-publishing.md](docs/github-action-publishing.md) for release tagging and publishing flow.\n\n## License\n\n[MIT](LICENSE)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjaipilot%2Fjaipilot-cli","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjaipilot%2Fjaipilot-cli","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjaipilot%2Fjaipilot-cli/lists"}