{"id":20106238,"url":"https://github.com/himkt/check-edited","last_synced_at":"2026-03-06T17:04:21.579Z","repository":{"id":230749477,"uuid":"779881205","full_name":"himkt/check-edited","owner":"himkt","description":null,"archived":false,"fork":false,"pushed_at":"2024-04-03T13:30:43.000Z","size":15,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-03-02T17:48:41.516Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":null,"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/himkt.png","metadata":{"files":{"readme":"README.md","changelog":"NEWS","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-03-31T03:23:32.000Z","updated_at":"2024-03-31T03:23:32.000Z","dependencies_parsed_at":"2024-03-31T17:35:50.504Z","dependency_job_id":"befed41f-1dd1-4d5c-bf72-9ec3bd583d26","html_url":"https://github.com/himkt/check-edited","commit_stats":null,"previous_names":["himkt/check-edited"],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/himkt/check-edited","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/himkt%2Fcheck-edited","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/himkt%2Fcheck-edited/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/himkt%2Fcheck-edited/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/himkt%2Fcheck-edited/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/himkt","download_url":"https://codeload.github.com/himkt/check-edited/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/himkt%2Fcheck-edited/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":30186780,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-03-06T14:42:24.748Z","status":"ssl_error","status_checked_at":"2026-03-06T14:42:14.925Z","response_time":250,"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":[],"created_at":"2024-11-13T17:49:29.968Z","updated_at":"2026-03-06T17:04:21.495Z","avatar_url":"https://github.com/himkt.png","language":null,"funding_links":[],"categories":[],"sub_categories":[],"readme":"# Check Edited Action\nThis GitHub Action checks if the specified file(s) have been updated between two branches.\n\n## Inputs\n\n```yaml\n- uses: himkt/check-edited@main\n  with:\n    # The source remote repository.\n    # If source-remote is not empty, you must specify source-branch as well.\n    # If src-remote and src-branch are both empty,\n    # check-edited use $GITHUB_REF as a source refs.\n    # Default: ''\n    source-remote: ''\n\n    # The source branch to compare changes from.\n    # If source-branch is not empty, you must specify source-remote as well.\n    # If src-remote and src-branch are both empty,\n    # check-edited use $GITHUB_REF as a source refs.\n    # Default: ''\n    source-branch: ''\n\n    # The target remote repository.\n    # Default: 'origin'\n    target-remote: ''\n\n    # The target branch to compare changes to.\n    # Default: 'main'\n    target-branch: ''\n\n    # The file(s) to check for updates. Specify multiple files by separating them with commas\n    # (e.g., 'file1.txt,file2.txt').\n    # Required: Yes\n    target-file: ''\n```\n\n## Examples\n\n### check-edited action\n\nAction to check a specific file is modified on a pull request.\nIf you want to check if `NEWS` is modified, create a workflow like following:\n\n```yaml\nname: test\n\non: pull_request\n\njobs:\n  main:\n    runs-on: ubuntu-latest\n    steps:\n      - uses: actions/checkout@v4\n      - uses: himkt/check-edited@main\n        with:\n          target-file: NEWS\n```\n\n### Only run when specific files are modified\n\nIt checks NEWS only when files in `src` are modified.\n\n```yaml\nname: test with path filter\n\non:\n  pull_request\n    paths:\n      - 'src/**'\n\njobs:\n  main:\n    runs-on: ubuntu-latest\n    steps:\n      - uses: actions/checkout@v4\n      - uses: himkt/check-edited@main\n        with:\n          target-file: NEWS\n```\n\n### Skip if a specific label is added to a pull request\n\nIf `skip-check` is added to a pull request, contents check is skipped.\n\n```yaml\nname: test with skip\n\non: pull_request\n\njobs:\n  main:\n    if: ${{ !contains(github.event.pull_request.labels.*.name, 'skip-check') }}\n    runs-on: ubuntu-latest\n    steps:\n      - uses: actions/checkout@v4\n      - uses: himkt/check-edited@main\n        with:\n          target-file: LICENSE\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhimkt%2Fcheck-edited","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fhimkt%2Fcheck-edited","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhimkt%2Fcheck-edited/lists"}