{"id":19494734,"url":"https://github.com/ceejbot/jthooks","last_synced_at":"2025-04-25T21:32:06.546Z","repository":{"id":22271509,"uuid":"25605758","full_name":"ceejbot/jthooks","owner":"ceejbot","description":"create a github webhook from the command-line","archived":false,"fork":false,"pushed_at":"2017-05-02T18:29:12.000Z","size":51,"stargazers_count":19,"open_issues_count":36,"forks_count":5,"subscribers_count":3,"default_branch":"master","last_synced_at":"2024-10-06T07:37:31.873Z","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":"isc","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/ceejbot.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}},"created_at":"2014-10-22T21:39:45.000Z","updated_at":"2022-01-10T09:35:15.000Z","dependencies_parsed_at":"2022-08-21T01:01:01.388Z","dependency_job_id":null,"html_url":"https://github.com/ceejbot/jthooks","commit_stats":null,"previous_names":[],"tags_count":7,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ceejbot%2Fjthooks","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ceejbot%2Fjthooks/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ceejbot%2Fjthooks/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ceejbot%2Fjthooks/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ceejbot","download_url":"https://codeload.github.com/ceejbot/jthooks/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":224018528,"owners_count":17242077,"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-11-10T21:32:44.009Z","updated_at":"2024-11-10T21:33:09.078Z","avatar_url":"https://github.com/ceejbot.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# jthooks\n\nCreate a github webhook from the command line. Pronounced \"ji-thooks\", as one would say if pronouncing \"githooks\" with a soft G, instead of the more common hard-G \"gih-thooks\".\n\n[![on npm](http://img.shields.io/npm/v/jthooks.svg?style=flat)](https://www.npmjs.org/package/jthooks)  [![Tests](http://img.shields.io/travis/ceejbot/jthooks.svg?style=flat)](http://travis-ci.org/ceejbot/jthooks)  ![Coverage](http://img.shields.io/badge/coverage-71%25-red.svg?style=flat)   [![Dependencies](http://img.shields.io/david/ceejbot/jthooks.svg?style=flat)](https://david-dm.org/ceejbot/jthooks)\n\n## Usage\n\nFirst, create a Github oauth token that has permission to read \u0026 write webhooks. Full admin permission is not required. Keep a record of the token somewhere secure.\n\n```shell\njthooks [add|remove] user/repo https://example.com/hook shared-sekrit\n\nCommands:\n  add \u003crepo\u003e \u003chook\u003e \u003csecret\u003e  add a hook to the given repo with the shared\n                              secret\n  remove \u003crepo\u003e \u003chook\u003e        delete the given webhook; can pass id instead of\n                              url\n\nOptions:\n  --auth, -a   auth token (can also be set in GITHUB_AUTH_TOKEN or\n               GITHUB_API_TOKEN)\n  --url, -u    full URL of github API to use (optional)\n  --quiet, -q  only log errors\n  --id         id of existing hook to update (optional)\n  --help       show this help                                          [boolean]\n\nExamples:\n  jthooks add foo/bar https://example.com/hook sooper-sekrit -a auth-token   add a webhook\n  jthooks remove foo/bar https://example.com/hook  remove a hook by url\n  jthooks remove foo/bar 123456                    remove a hook by id\n```\n\nIf you want to update an existing webhook, run the script with `--id`. Otherwise the script will attempt to find an existing hook with the same url \u0026 update that in place. If no match is found, a hook is created.\n\nSet the `--url` option if you're not running against github.com but instead wish to change a repo on your Github Enterprise installation.\n\n## TODO\n\nDelete a hook.\n\nMore than merely cursory tests.\n\n## License\n\nISC; see included LICENSE file.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fceejbot%2Fjthooks","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fceejbot%2Fjthooks","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fceejbot%2Fjthooks/lists"}