{"id":47622605,"url":"https://github.com/elementary-data/elementary-ci","last_synced_at":"2026-04-01T22:24:00.683Z","repository":{"id":344766022,"uuid":"423745012","full_name":"elementary-data/elementary-ci","owner":"elementary-data","description":"CI/CD solutions for data teams","archived":false,"fork":false,"pushed_at":"2026-03-27T19:00:47.000Z","size":34,"stargazers_count":0,"open_issues_count":1,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2026-03-28T02:35:34.760Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Shell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/elementary-data.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"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":"2021-11-02T07:27:22.000Z","updated_at":"2026-03-16T10:10:40.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/elementary-data/elementary-ci","commit_stats":null,"previous_names":["elementary-data/elementary-ci"],"tags_count":8,"template":false,"template_full_name":null,"purl":"pkg:github/elementary-data/elementary-ci","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/elementary-data%2Felementary-ci","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/elementary-data%2Felementary-ci/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/elementary-data%2Felementary-ci/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/elementary-data%2Felementary-ci/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/elementary-data","download_url":"https://codeload.github.com/elementary-data/elementary-ci/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/elementary-data%2Felementary-ci/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31292639,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-01T21:15:39.731Z","status":"ssl_error","status_checked_at":"2026-04-01T21:15:34.046Z","response_time":53,"last_error":"SSL_read: 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":[],"created_at":"2026-04-01T22:24:00.148Z","updated_at":"2026-04-01T22:24:00.670Z","avatar_url":"https://github.com/elementary-data.png","language":"Shell","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Elementary CI\n\nAutomated data quality review for Pull Requests and Merge Requests.\n\nWhen a developer opens or updates a PR/MR touching dbt models, this action:\n1. Detects changed models via `git diff`\n2. Queries the Elementary MCP server for test results, active incidents, and downstream lineage\n3. Posts a summary comment to the PR/MR (updates it on reruns - no spam)\n\n---\n\n## GitHub Actions\n\n### Quick start\n\n```yaml\n# .github/workflows/elementary-review.yml\nname: Elementary Data Quality Review\n\non:\n  pull_request:\n    paths:\n      - \"models/**/*.sql\"\n      - \"models/**/*.yml\"\n      - \"dbt_project.yml\"\n\njobs:\n  elementary-review:\n    runs-on: ubuntu-latest\n    steps:\n      - uses: actions/checkout@v4\n        with:\n          fetch-depth: 0          # required for git diff across branches\n\n      - uses: elementary-data/elementary-ci@v1\n        with:\n          anthropic-api-key: ${{ secrets.ANTHROPIC_API_KEY }}\n```\n\n### Inputs\n\n| Input | Default | Description |\n|---|---|---|\n| `anthropic-api-key` | required | Anthropic API key for Claude |\n| `models-path` | `models/` | Path to dbt models directory |\n| `diff-filter` | `ACM` | git diff filter (A=added, C=copied, M=modified) |\n| `edr-version` | latest | Pin to a specific `elementary-data` version |\n| `claude-model` | `claude-haiku-4-5-20251001` | Claude model ID |\n| `mcp-config-path` | `.mcp.json` | Path to MCP config file |\n| `base-ref` | PR base branch | Branch to diff against |\n\n### Required secrets\n\n| Secret | Description |\n|---|---|\n| `ANTHROPIC_API_KEY` | Anthropic API key |\n| Warehouse credentials | Whatever `edr` needs to connect (e.g. `SNOWFLAKE_PASSWORD`) |\n\n`GITHUB_TOKEN` is provided automatically by GitHub Actions.\n\n---\n\n## GitLab CI/CD Component\n\n### Quick start\n\n```yaml\n# .gitlab-ci.yml\ninclude:\n  - component: gitlab.com/elementary-data/ci-components/mr-review@v1\n```\n\nThat's it. Override inputs only if needed:\n\n```yaml\ninclude:\n  - component: gitlab.com/elementary-data/ci-components/mr-review@v1\n    inputs:\n      models_path: \"dbt/models/\"\n      edr_version: \"0.15.0\"\n      claude_model: \"claude-sonnet-4-6\"\n      stage: \"data-quality\"\n```\n\n### Inputs\n\n| Input | Default | Description |\n|---|---|---|\n| `stage` | `test` | Pipeline stage |\n| `models_path` | `models/` | Path to dbt models directory |\n| `diff_filter` | `ACM` | git diff filter |\n| `edr_version` | latest | Pin to a specific `elementary-data` version |\n| `claude_model` | `claude-haiku-4-5-20251001` | Claude model ID |\n| `mcp_config_path` | `.mcp.json` | Path to MCP config file |\n| `allow_failure` | `true` | Whether to block the MR on job failure |\n\n### Required CI/CD variables\n\nSet these in **Settings \u003e CI/CD \u003e Variables** (mark sensitive ones as masked):\n\n| Variable | Description |\n|---|---|\n| `ANTHROPIC_API_KEY` | Anthropic API key |\n| `GITLAB_API_TOKEN` | Project/group token with `api` scope |\n| Warehouse credentials | Whatever `edr` needs (e.g. `SNOWFLAKE_PASSWORD`) |\n\n---\n\n## MCP config\n\nBoth integrations require a `.mcp.json` file checked into your repo:\n\n```json\n{\n  \"mcpServers\": {\n    \"elementary\": {\n      \"command\": \"edr\",\n      \"args\": [\"run-mcp\"]\n    }\n  }\n}\n```\n\nAdjust the `command` and `args` to match your `edr` version. Run `edr --help` to confirm the MCP subcommand name.\n\n---\n\n## Model selection\n\nThe `claude-model` / `claude_model` input accepts any Anthropic model ID.\nSee the [Anthropic models documentation](https://docs.anthropic.com/en/docs/about-claude/models) for available options.\n\n| Model | When to use |\n|---|---|\n| `claude-haiku-4-5-20251001` | Default - fast and cost-efficient for routine reviews |\n| `claude-sonnet-4-6` | Richer analysis, better reasoning about complex lineage |\n| `claude-opus-4-6` | Deep investigation on critical models |\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Felementary-data%2Felementary-ci","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Felementary-data%2Felementary-ci","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Felementary-data%2Felementary-ci/lists"}