repobuddy/Visual Snapshot PR bot
Update Visual Snapshot baselines (`vitest-plugin-vis` / `storybook-addon-vis`)
View on GitHubTrust Signals
- Scorecard Score
- not yet scored
- Maintenance Recency
- Stale
- License
- None
Inputs
| name | description | required | default |
|---|---|---|---|
| update-command | Shell command that updates Visual Snapshot baselines (e.g. `pnpm exec vitest run -u`). Runs with `bash -c` on Linux/macOS runners. | yes | — |
| target-branch | Branch to push commits to. Defaults to the pull_request head ref when the event is pull_request, otherwise bot/update-snapshots. | no | "" |
| base-branch | Base branch for the PR and for syncing before updates. Defaults to the pull_request base ref when applicable, otherwise the repository default branch. | no | "" |
| token | Token with contents and pull-requests write (typically github.token). | no | ${{ github.token }} |
| commit-message | Git commit message when Visual Snapshot baselines change. | no | chore(vis): update image baselines |
| pr-title | Title for the pull request when a new one is created. | no | chore(vis): update image baselines |
| pr-body | Body for the pull request when a new one is created. | no | Automated update of Visual Snapshot baselines. Review diffs and merge when intentional. |
| git-user-name | Author name for the Visual Snapshot baseline commit. | no | github-actions[bot] |
| git-user-email | Author email for the Visual Snapshot baseline commit. | no | github-actions[bot]@users.noreply.github.com |
| paths-to-add | Space- or newline-separated paths for git add (e.g. `__vis__`). Empty means `git add -A` (all changes). | no | "" |
Outputs
| name | description |
|---|---|
| updated | true if Visual Snapshot baseline files changed and were committed, false if the tree stayed clean. |
| pr-number | Number of the PR created this run (empty if no new PR was opened). |
| commit-sha | SHA of the Visual Snapshot baseline commit (empty if updated is false). |