{"id":13539677,"url":"https://github.com/tj-actions/eslint-changed-files","last_synced_at":"2025-04-04T21:06:41.460Z","repository":{"id":36985573,"uuid":"266237395","full_name":"tj-actions/eslint-changed-files","owner":"tj-actions","description":":octocat: Github action to run ESLint on changed pull request files with support for reporting errors via Github checks.","archived":false,"fork":false,"pushed_at":"2025-03-23T12:11:32.000Z","size":7869,"stargazers_count":91,"open_issues_count":2,"forks_count":21,"subscribers_count":3,"default_branch":"main","last_synced_at":"2025-04-03T16:25:25.764Z","etag":null,"topics":["actions","changed-files","changedetection","code-quality","code-review","eslint","eslint-github-bot","github","github-action","github-actions","github-actions-javascript","github-annotations","github-checks","javascript","lint-action","pull-requests"],"latest_commit_sha":null,"homepage":"","language":"Shell","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/tj-actions.png","metadata":{"files":{"readme":"README.md","changelog":"HISTORY.md","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":"CODE_OF_CONDUCT.md","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},"funding":{"github":["jackton1"],"patreon":null,"open_collective":"tj-actions","ko_fi":null,"tidelift":null,"community_bridge":null,"liberapay":null,"issuehunt":null,"otechie":null,"custom":[]}},"created_at":"2020-05-23T01:00:53.000Z","updated_at":"2025-03-28T16:03:17.000Z","dependencies_parsed_at":"2023-12-16T02:43:12.130Z","dependency_job_id":"e86cf4ca-e12a-4ab7-9347-526c409047e9","html_url":"https://github.com/tj-actions/eslint-changed-files","commit_stats":{"total_commits":2320,"total_committers":15,"mean_commits":"154.66666666666666","dds":0.5646551724137931,"last_synced_commit":"74f98653675512158746d3136cd2d9326fbfb6e1"},"previous_names":[],"tags_count":140,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tj-actions%2Feslint-changed-files","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tj-actions%2Feslint-changed-files/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tj-actions%2Feslint-changed-files/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tj-actions%2Feslint-changed-files/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/tj-actions","download_url":"https://codeload.github.com/tj-actions/eslint-changed-files/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247249524,"owners_count":20908212,"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":["actions","changed-files","changedetection","code-quality","code-review","eslint","eslint-github-bot","github","github-action","github-actions","github-actions-javascript","github-annotations","github-checks","javascript","lint-action","pull-requests"],"created_at":"2024-08-01T09:01:30.304Z","updated_at":"2025-04-04T21:06:41.439Z","avatar_url":"https://github.com/tj-actions.png","language":"Shell","funding_links":["https://github.com/sponsors/jackton1","https://opencollective.com/tj-actions","https://www.buymeacoffee.com/jackton1"],"categories":["Shell"],"sub_categories":[],"readme":"[![Ubuntu](https://img.shields.io/badge/Ubuntu-E95420?style=for-the-badge\\\u0026logo=ubuntu\\\u0026logoColor=white)](https://docs.github.com/en/actions/reference/workflow-syntax-for-github-actions#jobsjob_idruns-on)\n[![Mac OS](https://img.shields.io/badge/mac%20os-000000?style=for-the-badge\\\u0026logo=macos\\\u0026logoColor=F0F0F0)](https://docs.github.com/en/actions/reference/workflow-syntax-for-github-actions#jobsjob_idruns-on)\n[![Public workflows that use this action.](https://img.shields.io/endpoint?style=for-the-badge\\\u0026url=https%3A%2F%2Fused-by.vercel.app%2Fapi%2Fgithub-actions%2Fused-by%3Faction%3Dtj-actions%2Feslint-changed-files%26badge%3Dtrue)](https://github.com/search?o=desc\\\u0026q=tj-actions+eslint-changed-files+language%3AYAML\\\u0026s=\\\u0026type=Code)\n\n[![Test](https://github.com/tj-actions/eslint-changed-files/actions/workflows/test.yml/badge.svg)](https://github.com/tj-actions/eslint-changed-files/actions/workflows/test.yml) [![Update release version.](https://github.com/tj-actions/eslint-changed-files/workflows/Update%20release%20version./badge.svg)](https://github.com/tj-actions/eslint-changed-files/actions?query=workflow%3A%22Update+release+version.%22)\n\n\u003c!-- ALL-CONTRIBUTORS-BADGE:START - Do not remove or modify this section --\u003e\n\n[![All Contributors](https://img.shields.io/badge/all_contributors-3-orange.svg?style=flat-square)](#contributors-)\n\n\u003c!-- ALL-CONTRIBUTORS-BADGE:END --\u003e\n\n# eslint-changed-files\n\nRun ESLint on either all files or selectively run ESLint on only changed files in a pull request with support for inline annotations of ESLint Warnings \u0026 Errors.\n\n![Screen Shot 2022-03-04 at 5 01 35 AM](https://user-images.githubusercontent.com/17484350/156742457-ff0c2da5-aca8-4260-9a3c-76ff3a273bd6.png)\n\n## Features\n\n*   Easy to debug\n*   Fast execution\n*   Fix ESlint errors\n*   [Glob pattern](https://docs.github.com/en/actions/learn-github-actions/workflow-syntax-for-github-actions#filter-pattern-cheat-sheet) extension filtering\n*   Excludes ignored files from change detection.\n*   Inline annotations of ESLint Warnings \u0026 Errors.\n*   Inline annotations with possible resolutions that can be applied to the Pull Request.\n*   Monorepo support.\n\n## Example\n\n![Screen Shot 2021-09-06 at 1 15 22 PM](https://user-images.githubusercontent.com/17484350/132248250-6998078b-de5d-453a-8225-f4a6e3793bbe.png)\n\n## Usage\n\n```yml\n\n...:\n    runs-on: ubuntu-latest\n\n    steps:\n      - uses: actions/checkout@v4\n\n      - uses: actions/setup-node@v4\n        with:\n          node-version: 20.x\n\n      - name: Install dependencies\n        run: npm ci  # OR: yarn install --frozen-lockfile\n\n      - name: Run eslint on changed files\n        uses: tj-actions/eslint-changed-files@v25\n        with:\n          config_path: \"/path/to/eslint.config.mjs\"\n          extra_args: \"--max-warnings=0\"\n```\n\nFor more working examples view the [test.yml](https://github.com/tj-actions/eslint-changed-files/blob/main/.github/workflows/test.yml)\n\nIf you feel generous and want to show some extra appreciation:\n\nSupport this project with a :star:\n\n[![Buy me a coffee][buymeacoffee-shield]][buymeacoffee]\n\n[buymeacoffee]: https://www.buymeacoffee.com/jackton1\n\n[buymeacoffee-shield]: https://www.buymeacoffee.com/assets/img/custom_images/orange_img.png\n\n## Inputs\n\n\u003c!-- AUTO-DOC-INPUT:START - Do not remove or modify this section --\u003e\n\n```yaml\n- uses: tj-actions/eslint-changed-files@v25\n  id: eslint-changed-files\n  with:\n    # Run [ESlint](https://eslint.org) on all matching \n    # files. \n    # Type: boolean\n    # Default: \"false\"\n    all_files: ''\n\n    # [ESLint](https://eslint.org/) [configuration file](https://eslint.org/docs/user-guide/configuring/). Optionally omit this \n    # input for Mono repositories. \n    # Type: string\n    config_path: ''\n\n    # Escaped changed file paths passed \n    # to ESLint. NOTE: This defaults \n    # to `true` to prevent command \n    # injection. \n    # Type: boolean\n    # Default: \"true\"\n    escape_paths: ''\n\n    # Extra arguments passed to [ESlint](https://eslint.org/docs/user-guide/command-line-interface)\n    # Type: string\n    extra_args: ''\n\n    # Exit code for reviewdog when \n    # errors are found. \n    # Type: boolean\n    # Default: \"true\"\n    fail_on_error: ''\n\n    # List of file extensions to \n    # watch for changes and run \n    # [ESlint](https://eslint.org/) against. \n    # Type: string\n    # Default: **/*.{ts,tsx,js,jsx}\n    #          \n    file_extensions: ''\n\n    # [Filter mode](https://github.com/reviewdog/reviewdog#filter-mode) for the reviewdog command \n    # (added, diff_context, file, nofilter). \n    # Type: string\n    # Default: \"added\"\n    filter_mode: ''\n\n    # When using [ESlint](https://eslint.org/) `v8.x` use \n    # this option to pass the \n    # .eslintignore file to silence ignore \n    # files warning [ignore file](https://eslint.org/docs/latest/use/configure/ignore-deprecated#using-an-alternate-file) \n    # Type: string\n    ignore_path: ''\n\n    # [ESLint](https://eslint.org/docs/latest/use/configure/ignore) [configuration file](https://eslint.org/docs/latest/use/configure/ignore#ignoring-files) ignores key. Optionally \n    # ignoring files in the `ignores` \n    # key from being passed to \n    # ESLint, this input would be \n    # ignored when `all_files` is set \n    # to `true`. \n    # Type: string\n    ignore_patterns: ''\n\n    # Report level for reviewdog (info,warning,error)\n    # Type: string\n    # Default: \"error\"\n    level: ''\n\n    # Relative path under GITHUB_WORKSPACE to \n    # the repository \n    # Type: string\n    # Default: \".\"\n    path: ''\n\n    # [Reporter](https://github.com/reviewdog/reviewdog#reporters) of reviewdog command (github-check, github-pr-review). \n    # github-pr-review can use Markdown and \n    # add a link to the \n    # rule page in reviewdog reports. \n    # Type: string\n    # Default: \"github-pr-review\"\n    reporter: ''\n\n    # Skip running reviewdog i.e don't \n    # add any annotations. \n    # Type: boolean\n    # Default: \"false\"\n    skip_annotations: ''\n\n    # Skip initially fetching additional history \n    # to improve performance for shallow \n    # repositories. NOTE: This could lead \n    # to errors with missing history. \n    # It's intended to be used \n    # when you've fetched all necessary \n    # history to perform the diff. \n    # Type: boolean\n    # Default: \"false\"\n    skip_initial_fetch: ''\n\n    # [GITHUB TOKEN](https://docs.github.com/en/free-pro-team@latest/actions/reference/authentication-in-a-workflow#using-the-github_token-in-a-workflow) or a repo scoped [Personal Access Token](https://docs.github.com/en/free-pro-team@latest/github/authenticating-to-github/creating-a-personal-access-token) \n    # Type: string\n    # Default: \"${{ github.token }}\"\n    token: ''\n\n    # Force the use of Github's \n    # REST API even when a \n    # local copy of the repository \n    # exists \n    # Type: boolean\n    # Default: \"false\"\n    use_rest_api: ''\n\n```\n\n\u003c!-- AUTO-DOC-INPUT:END --\u003e\n\n*   Free software: [MIT license](LICENSE)\n\n# Credits\n\n*   [reviewdog/reviewdog](https://github.com/reviewdog/reviewdog)\n*   [tj-actions/changed-files](https://github.com/tj-actions/changed-files)\n\n## Contributors ✨\n\nThanks goes to these wonderful people ([emoji key](https://allcontributors.org/docs/en/emoji-key)):\n\n\u003c!-- ALL-CONTRIBUTORS-LIST:START - Do not remove or modify this section --\u003e\n\n\u003c!-- prettier-ignore-start --\u003e\n\n\u003c!-- markdownlint-disable --\u003e\n\n\u003ctable\u003e\n  \u003ctbody\u003e\n    \u003ctr\u003e\n      \u003ctd align=\"center\" valign=\"top\" width=\"14.28%\"\u003e\u003ca href=\"https://dev.clintonblackburn.com\"\u003e\u003cimg src=\"https://avatars.githubusercontent.com/u/910510?v=4?s=100\" width=\"100px;\" alt=\"Clinton Blackburn\"/\u003e\u003cbr /\u003e\u003csub\u003e\u003cb\u003eClinton Blackburn\u003c/b\u003e\u003c/sub\u003e\u003c/a\u003e\u003cbr /\u003e\u003ca href=\"https://github.com/tj-actions/eslint-changed-files/commits?author=clintonb\" title=\"Code\"\u003e💻\u003c/a\u003e\u003c/td\u003e\n      \u003ctd align=\"center\" valign=\"top\" width=\"14.28%\"\u003e\u003ca href=\"https://github.com/sava-vidakovic\"\u003e\u003cimg src=\"https://avatars.githubusercontent.com/u/10528914?v=4?s=100\" width=\"100px;\" alt=\"Sava Vidakovic\"/\u003e\u003cbr /\u003e\u003csub\u003e\u003cb\u003eSava Vidakovic\u003c/b\u003e\u003c/sub\u003e\u003c/a\u003e\u003cbr /\u003e\u003ca href=\"https://github.com/tj-actions/eslint-changed-files/commits?author=sava-vidakovic\" title=\"Code\"\u003e💻\u003c/a\u003e \u003ca href=\"https://github.com/tj-actions/eslint-changed-files/commits?author=sava-vidakovic\" title=\"Tests\"\u003e⚠️\u003c/a\u003e \u003ca href=\"https://github.com/tj-actions/eslint-changed-files/commits?author=sava-vidakovic\" title=\"Documentation\"\u003e📖\u003c/a\u003e\u003c/td\u003e\n      \u003ctd align=\"center\" valign=\"top\" width=\"14.28%\"\u003e\u003ca href=\"https://github.com/codesculpture\"\u003e\u003cimg src=\"https://avatars.githubusercontent.com/u/63452117?v=4?s=100\" width=\"100px;\" alt=\"Aravind\"/\u003e\u003cbr /\u003e\u003csub\u003e\u003cb\u003eAravind\u003c/b\u003e\u003c/sub\u003e\u003c/a\u003e\u003cbr /\u003e\u003ca href=\"https://github.com/tj-actions/eslint-changed-files/commits?author=codesculpture\" title=\"Code\"\u003e💻\u003c/a\u003e \u003ca href=\"https://github.com/tj-actions/eslint-changed-files/commits?author=codesculpture\" title=\"Documentation\"\u003e📖\u003c/a\u003e\u003c/td\u003e\n    \u003c/tr\u003e\n  \u003c/tbody\u003e\n\u003c/table\u003e\n\n\u003c!-- markdownlint-restore --\u003e\n\n\u003c!-- prettier-ignore-end --\u003e\n\n\u003c!-- ALL-CONTRIBUTORS-LIST:END --\u003e\n\nThis project follows the [all-contributors](https://github.com/all-contributors/all-contributors) specification. Contributions of any kind welcome!\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftj-actions%2Feslint-changed-files","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftj-actions%2Feslint-changed-files","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftj-actions%2Feslint-changed-files/lists"}