{"id":17360671,"url":"https://github.com/certik/spilka-hooks","last_synced_at":"2025-03-27T16:27:51.289Z","repository":{"id":1054465,"uuid":"886943","full_name":"certik/spilka-hooks","owner":"certik","description":null,"archived":false,"fork":false,"pushed_at":"2011-02-23T19:41:57.000Z","size":94,"stargazers_count":2,"open_issues_count":0,"forks_count":1,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-02-01T20:13:24.379Z","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/certik.png","metadata":{"files":{"readme":"README.rst","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":"2010-09-04T00:14:34.000Z","updated_at":"2014-05-06T23:33:36.000Z","dependencies_parsed_at":"2022-08-16T11:55:16.575Z","dependency_job_id":null,"html_url":"https://github.com/certik/spilka-hooks","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/certik%2Fspilka-hooks","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/certik%2Fspilka-hooks/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/certik%2Fspilka-hooks/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/certik%2Fspilka-hooks/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/certik","download_url":"https://codeload.github.com/certik/spilka-hooks/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245881491,"owners_count":20687730,"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-15T19:27:22.208Z","updated_at":"2025-03-27T16:27:51.267Z","avatar_url":"https://github.com/certik.png","language":"Shell","funding_links":[],"categories":[],"sub_categories":[],"readme":"Github Hooks for Spilka\n=======================\n\nThese hooks setup the following addresses:\n\nhttp://hooks.hpfem.org/all-update.py\n\nhttp://hooks.hpfem.org/hermes-update.py\n\nThat you then put into the ``Admin``/``Service Hooks``/``Post-Receive URLs`` of\nyour repository at github and github then access those URLs wheneve someone\npushes something into that repository at github.\n\nThese URLs are served at Spilka, so apache launches the ``all-update.py`` or\n``hermes-update.py`` scripts (see this git repo) and they update the local git\nrepositories (mirrors) at Spilka as well as update the docs or anything else\nthat is needed.\n\nSetup\n-----\n\nRedirect ``hooks.hpfem.org`` to your server. Add this to your apache config::\n\n  \u003cVirtualHost *\u003e\n      ServerName hooks.hpfem.org\n      ServerAdmin ondrej@certik.cz\n      DocumentRoot /var/www3/hooks\n      \u003cDirectory /var/www3/hooks\u003e\n          Options ExecCGI +FollowSymLinks\n          Allow from all\n          AllowOverride all\n          Order allow,deny\n          AddHandler cgi-script cgi py\n      \u003c/Directory\u003e\n\n      ErrorLog /var/log/apache2/gitweb_error.log\n  \u003c/VirtualHost\u003e\n\nAnd create ``/var/www3/hooks/hermes-update.py`` (with the contents of the file from this git repo).\n\nAnd then put this into your ``sudoers`` file::\n\n  www-data ALL=NOPASSWD: /bin/su git -c /bin/sh update-repos.sh\n  www-data ALL=NOPASSWD: /bin/su git -c /bin/sh update-hermes-repo.sh\n\nand create the ``update-repos.sh`` and ``update-hermes-repo.sh`` scripts (take them from this git repo).\n\nThen just setup the ``origin`` remote in the ``/home/git/repositories/hermes.git`` to point to the github repo you want to pull from::\n\n  git remote add origin git://github.com/hpfem/hermes.git\n\nThen add the url ``http://hooks.hpfem.org/hermes-update.py`` to the Post-Receive URLs in the admin site.\n\nYou can test it by accessing the url http://hooks.hpfem.org/hermes-update.py, it should print::\n\n  Running update script.\n    Done.\n  Output:\n  Running as:\n  uid=1009(git) gid=1009(git) groups=1009(git),1011(h2dev),1012(femhubdev)\n  Updating repository...\n    Done.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcertik%2Fspilka-hooks","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcertik%2Fspilka-hooks","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcertik%2Fspilka-hooks/lists"}