{"id":48029494,"url":"https://github.com/amezin/detect-changes-action","last_synced_at":"2026-07-05T02:00:44.633Z","repository":{"id":334101524,"uuid":"1140062495","full_name":"amezin/detect-changes-action","owner":"amezin","description":"  Check whether any files matching the specified glob pattern(s) were changed in a pull request or push (or between two arbitrary commits)","archived":false,"fork":false,"pushed_at":"2026-06-29T04:13:11.000Z","size":3379,"stargazers_count":0,"open_issues_count":4,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2026-06-29T06:12:44.572Z","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":"2026-01-22T19:24:34.000Z","updated_at":"2026-06-23T19:41:18.000Z","dependencies_parsed_at":null,"dependency_job_id":"9f9ec406-f70a-436f-9346-f0f4d5eac02c","html_url":"https://github.com/amezin/detect-changes-action","commit_stats":null,"previous_names":["amezin/detect-changes-action"],"tags_count":17,"template":false,"template_full_name":null,"purl":"pkg:github/amezin/detect-changes-action","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/amezin%2Fdetect-changes-action","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/amezin%2Fdetect-changes-action/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/amezin%2Fdetect-changes-action/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/amezin%2Fdetect-changes-action/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/amezin","download_url":"https://codeload.github.com/amezin/detect-changes-action/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/amezin%2Fdetect-changes-action/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":35141083,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-07-05T02:00:06.290Z","response_time":100,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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":"2026-04-04T13:54:04.277Z","updated_at":"2026-07-05T02:00:44.593Z","avatar_url":"https://github.com/amezin.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Detect changes\n\nCheck whether files matching the specified glob patterns were changed\nin a pull request or push (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.sha }}` - the \"current commit\" or merge commit for pull requests.\n\n\u003e [!WARNING]\n\u003e The default value won't work correctly for `pull_request_target` event.\n\u003e To check changed files of a pull request in `pull_request_target` event,\n\u003e you have to get merge commit SHA from GitHub API first, because it's not\n\u003e provided in `github.event.pull_request.merge_commit_sha` anymore:\n\n```yml\n- id: get-merge-sha\n  if: ${{ github.event.pull_request }}\n  run: |\n    sha=\"$(curl -s \"$URL\" | jq -r .merge_commit_sha)\"\n    echo \"sha=$sha\" | tee \"$GITHUB_OUTPUT\"\n  env:\n    URL: ${{ github.event.pull_request.url }}\n\n- uses: amezin/detect-changes-action@v2\n  with:\n    head: ${{ steps.get-merge-sha.outputs.sha || github.sha }}\n```\n\n### `ignore-removed`\n\nIgnore removed files - return `false` if all changes are just removals.\n\n**Default**: `false`\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%2Fdetect-changes-action","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Famezin%2Fdetect-changes-action","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Famezin%2Fdetect-changes-action/lists"}