Shared Tree: Snapshot compatibility testing APIs #1004
Workflow file for this run
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: "pr-changeset-review" | |
| # This workflow runs lint-like checks against changesets in PRs. The linting tool used is called Vale. The worflow will | |
| # add comments for any warnings or errors that Vale finds in the changeset. | |
| # To run vale locally against changesets, you can use `pnpm run check:changesets`. | |
| on: | |
| pull_request: | |
| types: | |
| - opened # PR is created | |
| - synchronize # commits added to PR | |
| - reopened # closed PR re-opened | |
| branches: | |
| - main | |
| paths: | |
| - ".changeset/**" # Trigger only when changes are found under .changeset | |
| permissions: | |
| pull-requests: read | |
| jobs: | |
| vale: | |
| permissions: | |
| pull-requests: write # for errata-ai/vale-action to add comments to PRs | |
| name: vale | |
| runs-on: ubuntu-latest | |
| steps: | |
| # release notes: https://github.com/actions/checkout/releases/tag/v5.0.0 | |
| - uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # ratchet:actions/checkout@v5 | |
| with: | |
| persist-credentials: false | |
| - uses: errata-ai/vale-action@d89dee975228ae261d22c15adcd03578634d429c # ratchet:errata-ai/[email protected] | |
| with: | |
| files: .changeset | |
| vale_flags: "--glob=*-*-*.md" | |
| reporter: github-pr-review | |
| # Only run on added/changed files/lines. See https://github.com/reviewdog/reviewdog#filter-mode | |
| filter_mode: added |