{"id":16452370,"url":"https://github.com/soulman-is-good/gitpub","last_synced_at":"2026-05-06T20:33:01.132Z","repository":{"id":73895054,"uuid":"44952233","full_name":"soulman-is-good/gitpub","owner":"soulman-is-good","description":"Git webhook watcher and publisher","archived":false,"fork":false,"pushed_at":"2016-11-07T06:07:04.000Z","size":7,"stargazers_count":1,"open_issues_count":4,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-02-10T02:23:53.492Z","etag":null,"topics":["continuous-integration","git","git-webhook","nodejs"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","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/soulman-is-good.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2015-10-26T07:18:19.000Z","updated_at":"2017-08-20T22:02:46.000Z","dependencies_parsed_at":null,"dependency_job_id":"9c95d7d8-d6c8-4cd0-b268-06295334244e","html_url":"https://github.com/soulman-is-good/gitpub","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/soulman-is-good%2Fgitpub","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/soulman-is-good%2Fgitpub/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/soulman-is-good%2Fgitpub/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/soulman-is-good%2Fgitpub/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/soulman-is-good","download_url":"https://codeload.github.com/soulman-is-good/gitpub/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247217222,"owners_count":20903009,"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":["continuous-integration","git","git-webhook","nodejs"],"created_at":"2024-10-11T10:12:06.432Z","updated_at":"2026-05-06T20:33:01.093Z","avatar_url":"https://github.com/soulman-is-good.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"Git web hook listener\n=========================\n\nHelps to manage git repositories listening for push events, with script executions\n\nInstall\n------------\nOne must clone this repository to be able to launch listener.\n\nOnce repo is cloned go to it's dir and just run app.js\n\n```bash\ngit clone https://github.com/soulman-is-good/gitpub.git\ncd gitpub\nnpm install\nnpm start\n```\n\nConfigure\n-------------\n\nOne must have configuration **json** file ready to be able to run this listener (in other words, listener must have an instruction for what to do if event occures)\n\nBy default *gitpub* looks for `GITPUB_CONFIG` environment variable, containing **full** path to configuration json file including filename, and then tries to look for `config.json` file in _repository_ folder.\n\nYou can take `config.template.json` file in repo dir for start.\n\nConfiguration looks like this:\n\n```json\n{\n  \"myrepo-name-as-is\": {\n    \"branch-name-for-example-master\": {\n      \"dir\": \"/home/user/myrepo-to-publish/\",\n      \"beforePull\": [],\n      \"afterPull\": [\n        [\"npm install\", \"bower install\"],\n        [\"gulp\", \"pm2 restart all\"]\n      ]\n    }\n  },\n  \"myotherrepo\": {\n    \"master\": {},\n    \"dev\": {},\n    \"RC\": {}\n  }\n}\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsoulman-is-good%2Fgitpub","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsoulman-is-good%2Fgitpub","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsoulman-is-good%2Fgitpub/lists"}