Automated data quality review for Pull Requests and Merge Requests.
When a developer opens or updates a PR/MR, this action:
- Sends the repository name and branch to the Elementary API
- Elementary fetches the diff, analyses test results, active incidents, and downstream lineage
- Posts a summary comment to the PR/MR (updates it on reruns - no spam)
Prerequisites: Connect your code repository in the Elementary Cloud UI.
# .github/workflows/elementary-review.yml
name: Elementary Data Quality Review
on:
pull_request:
jobs:
elementary-review:
runs-on: ubuntu-latest
steps:
- uses: elementary-data/elementary-ci@v1
with:
elementary-api-key: ${{ secrets.ELEMENTARY_API_KEY }}| Input | Default | Description |
|---|---|---|
elementary-api-key |
required | Elementary Cloud API key |
| Secret | Description |
|---|---|
ELEMENTARY_API_KEY |
Elementary Cloud API key |
GITHUB_TOKEN is provided automatically by GitHub Actions.
# .gitlab-ci.yml
include:
- component: gitlab.com/elementary-data/ci-components/mr-review@v1Set these in Settings > CI/CD > Variables (mark sensitive ones as masked):
| Variable | Description |
|---|---|
ELEMENTARY_API_KEY |
Elementary Cloud API key |
CI_JOB_TOKEN is provided automatically. Optionally set GITLAB_API_TOKEN (project/group token with api scope) if CI_JOB_TOKEN lacks comment permissions.