{"id":28512783,"url":"https://github.com/amezin/compare-commit-files-action","last_synced_at":"2026-05-17T17:01:37.310Z","repository":{"id":297846046,"uuid":"997926269","full_name":"amezin/compare-commit-files-action","owner":"amezin","description":"Check whether specific files were changed in a pull request or push","archived":false,"fork":false,"pushed_at":"2026-01-19T18:08:38.000Z","size":1976,"stargazers_count":0,"open_issues_count":3,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2026-01-20T00:36:52.635Z","etag":null,"topics":["action","actions","github-action","github-actions","github-api"],"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/amezin.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,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2025-06-07T13:49:28.000Z","updated_at":"2026-01-12T11:44:18.000Z","dependencies_parsed_at":"2026-01-01T06:04:49.185Z","dependency_job_id":null,"html_url":"https://github.com/amezin/compare-commit-files-action","commit_stats":null,"previous_names":["amezin/compare-commit-files-action"],"tags_count":9,"template":false,"template_full_name":null,"purl":"pkg:github/amezin/compare-commit-files-action","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/amezin%2Fcompare-commit-files-action","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/amezin%2Fcompare-commit-files-action/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/amezin%2Fcompare-commit-files-action/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/amezin%2Fcompare-commit-files-action/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/amezin","download_url":"https://codeload.github.com/amezin/compare-commit-files-action/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/amezin%2Fcompare-commit-files-action/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":33147339,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-17T09:28:26.183Z","status":"ssl_error","status_checked_at":"2026-05-17T09:27:52.702Z","response_time":107,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"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":["action","actions","github-action","github-actions","github-api"],"created_at":"2025-06-09T01:04:53.831Z","updated_at":"2026-05-17T17:01:37.275Z","avatar_url":"https://github.com/amezin.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Compare commits' files\n\nCheck whether the specified files were changed in a pull request or push\n(or between two arbitrary commits).\n\nThis action uses GitHub API and not `git` CLI,\nso it won't work for local commits that weren't pushed to GitHub.\n\nIntended use: skip jobs or steps if relevant files were not changed.\n\n## Inputs\n\n### `repository`\n\nThe owner and repository name, in `owner/name` format.\n\n**Default**: `${{ github.repository }}` -\nthe repository where the workflow was triggered.\n\n### `files`\n\nFile path/name glob patterns to check, one pattern per line.\nNo default value. Required input.\n\nPatterns starting with `!` exclude files.\nLast matched pattern determines whether to include or exclude the file.\n\nOnly files are matched. To include directories, use `dir/**` syntax.\n\nOnly Unix path separator `/` is used, even on Windows.\n\nSee [minimatch](https://www.npmjs.com/package/minimatch) documentation\nfor syntax details.\n\n### `base`\n\nBase commit/branch to compare.\n\n**Default**: Pull request/merge group base branch/commit.\nOr the previous branch head for `push` event.\n\n### `head`\n\nHead commit/branch to compare.\n\n**Default**: `${{ github.event.pull_request.merge_commit_sha }}` for `pull_request_target` event,\notherwise `${{ github.sha }}` - the \"current commit\" or merge commit for pull requests.\n\n\u003e [!NOTE]\n\u003e There is a special case for `pull_request_target` event -\n\u003e because `${{ github.sha }}` will be the head of the base branch for `pull_request_target`.\n\n### `github-token`\n\nGitHub API token to use.\n\n**Default**: `${{ github.token }}`\n\n## Outputs\n\n### `changed`\n\n`true` if a change in `files` was detected, `false` otherwise.\n\nThere is no output with a file list, because GitHub API can return\nan incomplete list of changed files (it returns up to 300 files) - see\nhttps://docs.github.com/en/rest/commits/commits?apiVersion=2022-11-28#compare-two-commits.\n\nWhen an incomplete list is detected, `changed` is always set to `true`,\neven if the list doesn't contain any file matching `files` input.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Famezin%2Fcompare-commit-files-action","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Famezin%2Fcompare-commit-files-action","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Famezin%2Fcompare-commit-files-action/lists"}