{"id":50569772,"url":"https://github.com/getlark/lark-github-actions-app","last_synced_at":"2026-06-04T17:30:37.494Z","repository":{"id":358991602,"uuid":"1243980294","full_name":"getlark/lark-github-actions-app","owner":"getlark","description":null,"archived":false,"fork":false,"pushed_at":"2026-05-19T22:52:52.000Z","size":13,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2026-05-20T01:49:56.151Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"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/getlark.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":null,"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":"2026-05-19T21:15:30.000Z","updated_at":"2026-05-20T01:13:07.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/getlark/lark-github-actions-app","commit_stats":null,"previous_names":["getlark/lark-github-actions-app"],"tags_count":4,"template":false,"template_full_name":null,"purl":"pkg:github/getlark/lark-github-actions-app","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/getlark%2Flark-github-actions-app","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/getlark%2Flark-github-actions-app/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/getlark%2Flark-github-actions-app/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/getlark%2Flark-github-actions-app/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/getlark","download_url":"https://codeload.github.com/getlark/lark-github-actions-app/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/getlark%2Flark-github-actions-app/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":33916319,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-06-04T02:00:06.755Z","response_time":64,"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":[],"created_at":"2026-06-04T17:30:36.898Z","updated_at":"2026-06-04T17:30:37.476Z","avatar_url":"https://github.com/getlark.png","language":null,"funding_links":[],"categories":[],"sub_categories":[],"readme":"# Lark GitHub Actions\n\nGitHub composite action that proposes end-to-end [Lark](https://getlark.ai) tests for each pull request and creates them on demand. Drop it into a workflow and Lark will draft suggestions, post them as a PR comment, and — when a maintainer replies `/create-workflows` — materialize the approved subset as real Lark workflows.\n\nUnder the hood, Claude Code reads the diff and discovers your existing coverage by calling the [Lark MCP server](https://docs.getlark.ai/mcp-quickstart) — searching workflows by name and inspecting their steps before proposing anything new, then using the same MCP server's `create_workflow` tool to materialize each approved proposal.\n\n## How it works\n\nThe action runs in two phases off the same `getlark/lark-github-actions-app@v1` step — it branches internally on `github.event_name`:\n\n1. **Propose** (on `pull_request` open/reopen) — Claude drafts test proposals, the action posts them as a PR comment with a hidden JSON marker, and labels the PR `lark:tests-proposed`.\n2. **Create** (on `issue_comment` with body `/create-workflows` or `/create-workflows 1 3 …`) — only repo collaborators with `write`, `maintain`, or `admin` permission can trigger this. The action re-reads the most recent proposals comment, filters by the listed 1-based indices (or takes all of them), and asks Claude to create one Lark workflow per entry. A new PR comment lists the created workflow ids and dashboard links.\n\n## Usage\n\n```yaml\n# .github/workflows/lark.yml\nname: Lark — propose and create tests\n\non:\n  pull_request:\n    types: [opened, reopened]\n  issue_comment:\n    types: [created]\n\npermissions:\n  id-token: write\n  pull-requests: write\n  contents: read\n\njobs:\n  lark:\n    # Skip PRs from forks — they cannot mint OIDC tokens with our trusted audience.\n    # For comment events we additionally guard on `issue.pull_request != null` so\n    # the job never runs on plain issue comments.\n    if: \u003e-\n      (github.event_name == 'pull_request' \u0026\u0026 github.event.pull_request.head.repo.full_name == github.repository) ||\n      (github.event_name == 'issue_comment' \u0026\u0026 github.event.issue.pull_request != null)\n    runs-on: ubuntu-latest\n    steps:\n      - uses: getlark/lark-github-actions-app@v1\n        with:\n          anthropic-api-key: ${{ secrets.ANTHROPIC_API_KEY }}\n```\n\n## Inputs\n\n| Name | Required | Default | Description |\n| --- | --- | --- | --- |\n| `anthropic-api-key` | yes | — | Anthropic API key used by `claude-code-action` to draft proposals. Pass via `${{ secrets.ANTHROPIC_API_KEY }}` so GitHub masks it in logs. |\n| `lark-api-base-url` | no | `https://api.getlark.ai` | Override to point at staging. Production customers should leave the default. |\n| `claude-model` | no | `sonnet` | Claude model passed to `claude-code-action` via `--model`. Override to e.g. `opus` for higher-fidelity proposals. |\n\n## Required workflow permissions\n\n| Permission | Why |\n| --- | --- |\n| `id-token: write` | Mint the OIDC token that Lark exchanges for a scoped API token. |\n| `pull-requests: write` | Post the proposals/results comments, manage the `lark:*` labels, and add reactions to `/create-workflows` comments. |\n| `contents: read` | Check out the PR head so Claude Code can diff against the base. |\n\n## Releases \u0026 tagging convention\n\nThis action follows the GitHub Actions standard floating-major-tag pattern:\n\n- **Immutable point releases**: every release gets an immutable annotated tag, e.g. `v1.0.0`, `v1.0.1`, `v1.1.0`.\n- **Floating major tag**: `v1` is a lightweight tag that is **force-moved** to the latest `v1.x.x` commit on every release. Customers pin `getlark/lark-github-actions-app@v1` and automatically pick up patch and minor releases.\n- **Breaking changes** bump the major tag — `v2.0.0` ships alongside a new floating `v2` tag. The old `v1` keeps pointing at the last `v1.x.x` so existing customer workflows do not break.\n\n### Cutting a release\n\n```bash\n# 1. Tag the new immutable version.\ngit tag -a v1.0.1 -m \"v1.0.1\"\ngit push origin v1.0.1\n\n# 2. Re-point the floating major tag.\ngit tag -f v1 v1.0.1\ngit push origin v1 --force\n```\n\nAlways create the immutable tag first and push it before moving the floating tag — that way the floating tag never points at a commit that is not also reachable from a permanent tag.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgetlark%2Flark-github-actions-app","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fgetlark%2Flark-github-actions-app","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgetlark%2Flark-github-actions-app/lists"}