{"id":22202165,"url":"https://github.com/rumkin/anyhook","last_synced_at":"2025-03-25T00:59:19.248Z","repository":{"id":57181000,"uuid":"62895291","full_name":"rumkin/anyhook","owner":"rumkin","description":"Emit console scripts on webhook request","archived":false,"fork":false,"pushed_at":"2017-01-27T20:08:14.000Z","size":20,"stargazers_count":1,"open_issues_count":0,"forks_count":1,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-03-01T06:35:01.892Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/rumkin.png","metadata":{"files":{"readme":"readme.md","changelog":"changelog.md","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2016-07-08T14:38:28.000Z","updated_at":"2017-12-29T12:30:38.000Z","dependencies_parsed_at":"2022-09-26T17:00:36.771Z","dependency_job_id":null,"html_url":"https://github.com/rumkin/anyhook","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/rumkin%2Fanyhook","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rumkin%2Fanyhook/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rumkin%2Fanyhook/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rumkin%2Fanyhook/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/rumkin","download_url":"https://codeload.github.com/rumkin/anyhook/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245377988,"owners_count":20605377,"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-12-02T16:12:37.163Z","updated_at":"2025-03-25T00:59:19.216Z","avatar_url":"https://github.com/rumkin.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Anyhook\n\nCapture web hooks from github and bitbucket and call associated bash scripts.\n\n## Installation\n\nInstall via npm:\n```bash\nnpm i anyhook -g\n```\n\n## Usage\n\nCreate `webhook.json`:\n```json\n{\n    \"repoName\": {\n        \"token\": \"8ecc7e51-b2d6-4f75-ad32-2971ca04a76f\",\n        \"enabled\": true,\n        \"branch\": \"master\",\n        \"exec\": [\n            \"echo \\\"Updated: $WEBHOOK_REPO\\\" \u003e /var/log/repo-name.log\",\n            {\n                \"cmd\": \"bash\",\n                \"args\": [\"-c\", \"echo \\\"Updated: $WEBHOOK_REPO\\\"\"],\n                \"stdio\": \"/var/log/repo-name.log\",\n            }\n        ]\n    }\n}\n```\n\n**NOTE** Both commands in example are equivalent.\n\nThen run anyhook app:\n```bash\nanyhook --port=8080\n```\n\nNow it will listen `0.0.0.0:8080` address. Webhooks URL is\n`/api/webhook/:repoName`.\n\n## License\n\nMIT.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frumkin%2Fanyhook","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frumkin%2Fanyhook","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frumkin%2Fanyhook/lists"}