{"id":16226283,"url":"https://github.com/ghostdevv/svelte-check-action","last_synced_at":"2025-03-19T13:30:32.002Z","repository":{"id":255920806,"uuid":"826526431","full_name":"ghostdevv/svelte-check-action","owner":"ghostdevv","description":"run svelte-check on the files that change in a pull request and have the errors commented","archived":false,"fork":false,"pushed_at":"2025-01-21T20:33:56.000Z","size":643,"stargazers_count":14,"open_issues_count":5,"forks_count":1,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-17T07:11:23.253Z","etag":null,"topics":["lint","svelte","svelte-check"],"latest_commit_sha":null,"homepage":"","language":"TypeScript","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/ghostdevv.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}},"created_at":"2024-07-09T22:00:15.000Z","updated_at":"2025-03-12T04:04:06.000Z","dependencies_parsed_at":"2024-09-07T21:35:47.364Z","dependency_job_id":"a649de31-7b30-4752-b930-c68a9f677a2b","html_url":"https://github.com/ghostdevv/svelte-check-action","commit_stats":null,"previous_names":["ghostdevv/svelte-check-action"],"tags_count":12,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ghostdevv%2Fsvelte-check-action","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ghostdevv%2Fsvelte-check-action/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ghostdevv%2Fsvelte-check-action/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ghostdevv%2Fsvelte-check-action/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ghostdevv","download_url":"https://codeload.github.com/ghostdevv/svelte-check-action/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":244434671,"owners_count":20452230,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","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":["lint","svelte","svelte-check"],"created_at":"2024-10-10T12:48:38.968Z","updated_at":"2025-03-19T13:30:31.997Z","avatar_url":"https://github.com/ghostdevv.png","language":"TypeScript","readme":"# Svelte Check Action\n\nThis action runs [svelte-check](http://npmjs.com/svelte-check) on the files that change in a PR (by default), then adds a comment which reports any errors in those files. The inspiration came from wanting to have svelte-check run in CI without failing, so that we can progressively fix a codebase with a lot of issues.\n\nWorks with svelte-check version 3 \u0026 4. The action runs using Node 20.\n\n## Example\n\n```yaml\nname: Svelte Check\n\non:\n    - pull_request\n\njobs:\n    demo:\n        runs-on: ubuntu-latest\n        steps:\n            - name: Checkout\n              uses: actions/checkout@v4\n\n            # You can replace these steps with your specific setup steps\n            # This example assumes Node 22 and pnpm 8\n            - name: Setup Node 22\n              uses: actions/setup-node@v4\n              with:\n                  node-version: 22\n                  registry-url: https://registry.npmjs.org/\n\n            - name: Setup PNPM\n              uses: pnpm/action-setup@v3.0.0\n              with:\n                  version: 8.12.1\n\n            - name: Install\n              run: pnpm install\n\n            # Run the svelte check action\n            - name: Svelte Check\n              uses: ghostdevv/svelte-check-action@v1\n              env:\n                  GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}\n```\n\nThis will add a comment to your PRs with any errors, for example:\n\n![example comment](./.github/example-comment.png)\n\n## Options\n\n| Option          | Description                                                                                                                                                                                                              | Default  |\n| --------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | -------- |\n| `paths`         | The folder(s) to run svelte-check in, one per line. It'll only run svelte-check if files in that folder have changed. `svelte-kit sync` will be ran before diagnostics if SvelteKit is found at the folder package.json. | `.`      |\n| `filterChanges` | When true only the files that change (in the pull request) will be checked                                                                                                                                               | `true`   |\n| `failOnError`   | Should we cause CI to fail if there is a Svelte Check error?                                                                                                                                                             | `false`  |\n| `failOnWarning` | Should we cause CI to fail if there is a Svelte Check warning?                                                                                                                                                           | `false`  |\n| `failFilter`    | When failFilter is set and either failOnError or failOnWarning is enabled, the action will only fail for issues that occur in paths matching these globes.                                                               | Disabled |\n\nYou can configure the action by passing the options under the `with` key, for example:\n\n```yaml\n- name: Svelte Check\n  uses: ghostdevv/svelte-check-action@v1\n  with:\n      paths: |\n          ./packages/app\n  env:\n      GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}\n```\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fghostdevv%2Fsvelte-check-action","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fghostdevv%2Fsvelte-check-action","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fghostdevv%2Fsvelte-check-action/lists"}