{"id":16143884,"url":"https://github.com/callumacrae/if_changed","last_synced_at":"2025-10-06T09:30:40.612Z","repository":{"id":31549300,"uuid":"35113938","full_name":"callumacrae/if_changed","owner":"callumacrae","description":":inbox_tray: Run commands on git pull","archived":false,"fork":false,"pushed_at":"2015-07-27T09:26:07.000Z","size":148,"stargazers_count":17,"open_issues_count":2,"forks_count":2,"subscribers_count":4,"default_branch":"master","last_synced_at":"2025-01-20T01:58:08.128Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Shell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/callumacrae.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2015-05-05T17:28:18.000Z","updated_at":"2023-09-08T16:57:22.000Z","dependencies_parsed_at":"2022-09-01T00:21:55.962Z","dependency_job_id":null,"html_url":"https://github.com/callumacrae/if_changed","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/callumacrae%2Fif_changed","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/callumacrae%2Fif_changed/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/callumacrae%2Fif_changed/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/callumacrae%2Fif_changed/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/callumacrae","download_url":"https://codeload.github.com/callumacrae/if_changed/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":235515428,"owners_count":19002481,"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":[],"created_at":"2024-10-10T00:10:28.408Z","updated_at":"2025-10-06T09:30:35.352Z","avatar_url":"https://github.com/callumacrae.png","language":"Shell","funding_links":[],"categories":[],"sub_categories":[],"readme":"# if_changed [![Build Status](https://travis-ci.org/callumacrae/if_changed.svg?branch=master)](https://travis-ci.org/callumacrae/if_changed)\n\nRuns commands when files are changed on git pull: for example, when package.json\nis changed, `npm install` will be ran, installing the dependency updates.\n\nSee [the source] for a full list—it's pretty readable. Please send a pull\nrequest if your technology or desired command is missing!\n\n## Setup\n\nYou can either run this script manually every time you pull, or you can set it\nup on the post-merge git hook so that it runs automatically.\n\nAs of 1.0.0, you can install this over npm.\n\n```\n$ npm install -g if_changed\n```\n\nThen to run the script:\n\n```\n$ if_changed\n```\n\nAnd to install itself into the post-merge hook:\n\n```\n$ if_changed install\n```\n\n### Manual install\n\nTo run every time, download if_changed.sh and run it.\n\nTo run automatically on the post-merge hook, move the if_changed.sh file to\n`.git/hooks/post-merge` in your repository (where post-merge is the name of\nthe file, not a containing directory), and make it executable using\n`chmod +x post-merge`.\n\nSee [this document][git hooks] to learn more about git hooks.\n\n## License\n\nReleased under the MIT license.\n\n[the source]: if_changed.sh\n[git hooks]: http://git-scm.com/book/en/v2/Customizing-Git-Git-Hooks\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcallumacrae%2Fif_changed","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcallumacrae%2Fif_changed","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcallumacrae%2Fif_changed/lists"}