{"id":31642209,"url":"https://github.com/elementsinteractive/lgtm-ai-action","last_synced_at":"2025-10-07T03:57:24.032Z","repository":{"id":309696616,"uuid":"1037206723","full_name":"elementsinteractive/lgtm-ai-action","owner":"elementsinteractive","description":"GitHub Action to run lgtm-ai (https://github.com/elementsinteractive/lgtm-ai)","archived":false,"fork":false,"pushed_at":"2025-09-29T07:09:17.000Z","size":12,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-09-29T09:10:08.918Z","etag":null,"topics":["actions","ai","code-review","dev-tools"],"latest_commit_sha":null,"homepage":"","language":null,"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/elementsinteractive.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":"CODEOWNERS","security":null,"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":"2025-08-13T08:17:03.000Z","updated_at":"2025-09-29T07:06:10.000Z","dependencies_parsed_at":"2025-08-13T10:29:14.862Z","dependency_job_id":"6ff11abb-1f16-4c03-9fc2-a71e90ec937f","html_url":"https://github.com/elementsinteractive/lgtm-ai-action","commit_stats":null,"previous_names":["elementsinteractive/lgtm-ai-action"],"tags_count":3,"template":false,"template_full_name":null,"purl":"pkg:github/elementsinteractive/lgtm-ai-action","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/elementsinteractive%2Flgtm-ai-action","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/elementsinteractive%2Flgtm-ai-action/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/elementsinteractive%2Flgtm-ai-action/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/elementsinteractive%2Flgtm-ai-action/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/elementsinteractive","download_url":"https://codeload.github.com/elementsinteractive/lgtm-ai-action/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/elementsinteractive%2Flgtm-ai-action/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":278717450,"owners_count":26033542,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-10-07T02:00:06.786Z","response_time":59,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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":["actions","ai","code-review","dev-tools"],"created_at":"2025-10-07T03:57:13.582Z","updated_at":"2025-10-07T03:57:24.022Z","avatar_url":"https://github.com/elementsinteractive.png","language":null,"funding_links":[],"categories":[],"sub_categories":[],"readme":"# lgtm-ai-action\n\nGitHub Action to run [lgtm-ai](https://github.com/elementsinteractive/lgtm-ai).\n\nThis action can be used to perform automatic code-reviews or write reviewer guides using LLMs, thanks to lgtm-ai.\n\n## Usage\n\n| Input | Description | Required | Default |\n|-------|-------------|----------|---------|\n| `ai-api-key` | API key for AI service (OpenAI, Anthropic, Google, etc.) | ✅ | - |\n| `git-api-key` | API key for GitHub (you can use GITHUB_TOKEN) | ✅ | - |\n| `pr-number` | Pull request number to review | ✅ | - |\n| `model` | AI model to use (e.g. gpt-4o, claude-3-5-sonnet-latest, gemini-2.0-flash) | ❌ | *Uses config file or tool default* |\n| `version` | LGTM AI version (latest, v0.7.2, etc.) | ❌ | `latest` |\n| `publish` | Whether to publish the review as PR comments | ❌ | `true` |\n| `exclude` | File patterns to exclude (e.g. '*.md *.json package-lock.json') | ❌ | `\"\"` (none) |\n| `config` | Path to lgtm.toml configuration file (e.g. '.lgtm.toml') | ❌ | `\"\"` (none) |\n| `output-format` | Output format for the review (pretty, json, markdown) | ❌ | `pretty` |\n| `issues-platform` | Platform of the issues/user stories (github, gitlab, jira) | ❌ | `\"\"` (none) |\n| `issues-url` | Base URL of the issues/user stories | ❌ | `\"\"` (none) |\n| `issues-api-key` | API Key to connect to the issues platform. Can be ommited even if issues integration is set, then `git-api-key` will be used | ❌ | `\"\"` (none) |\n| `verbose` | Enable extra verbose output (-vv instead of -v) | ❌ | `false` |\n\n### Quick Usage\n\n```yaml\n- name: AI Code Review\n  uses: elementsinteractive/lgtm-ai-action@v1\n  with:\n    ai-api-key: ${{ secrets.AI_API_KEY }}\n    git-api-key: ${{ secrets.GITHUB_TOKEN }}\n    model: 'gpt-5'\n    pr-number: ${{ github.event.issue.number }}\n```\n\n### Full Workflow Example\n\nThis simple workflow will perform a review whenever someone comments `/lgtm review` in a pull request.\n\n```yaml\nname: LGTM Review\n\non:\n  issue_comment:\n    types: [created]\n\njobs:\n  lgtm-review:\n    if: |\n      github.event.issue.pull_request \u0026\u0026\n      startsWith(github.event.comment.body, '/lgtm review')\n    runs-on: ubuntu-latest\n    steps:\n      - name: Checkout PR code\n        uses: actions/checkout@v4\n        with:\n          ref: refs/pull/${{ github.event.issue.number }}/merge\n\n      - name: Run LGTM Review\n        uses: elementsinteractive/lgtm-ai-action@v1\n        with:\n          ai-api-key: ${{ secrets.AI_API_KEY }}\n          git-api-key: ${{ secrets.GITHUB_TOKEN }}\n          pr-number: ${{ github.event.issue.number }}\n          model: 'gpt-5'\n```\n\n\u003e [!TIP]\n\u003e The action will autodiscover any `lgtm.toml` file in your repository so you can \n\u003e fully configure `lgtm-ai`. For that, you will need to use the `actions/checkout` action in your workflow. See the [configuration documentation](https://github.com/elementsinteractive/lgtm-ai?tab=readme-ov-file#configuration) for more information about how to configure `lgtm-ai`.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Felementsinteractive%2Flgtm-ai-action","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Felementsinteractive%2Flgtm-ai-action","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Felementsinteractive%2Flgtm-ai-action/lists"}