{"id":13295950,"url":"https://github.com/max-lt/github-hook","last_synced_at":"2025-03-10T08:31:48.960Z","repository":{"id":143778021,"uuid":"184594018","full_name":"max-lt/github-hook","owner":"max-lt","description":"Server that execute CI script when called from Github.","archived":true,"fork":false,"pushed_at":"2024-03-07T10:43:47.000Z","size":42,"stargazers_count":0,"open_issues_count":2,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2024-07-29T17:44:10.850Z","etag":null,"topics":["continuous-deployment","continuous-integration","github","github-api"],"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/max-lt.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":"2019-05-02T14:17:34.000Z","updated_at":"2024-03-07T10:43:59.000Z","dependencies_parsed_at":"2024-10-23T10:04:56.983Z","dependency_job_id":"4afc25b1-6224-4caf-b913-b82f6b20d15a","html_url":"https://github.com/max-lt/github-hook","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/max-lt%2Fgithub-hook","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/max-lt%2Fgithub-hook/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/max-lt%2Fgithub-hook/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/max-lt%2Fgithub-hook/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/max-lt","download_url":"https://codeload.github.com/max-lt/github-hook/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":242819238,"owners_count":20190400,"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-deployment","continuous-integration","github","github-api"],"created_at":"2024-07-29T17:18:10.418Z","updated_at":"2025-03-10T08:31:48.635Z","avatar_url":"https://github.com/max-lt.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Github hook server\n\nThis repository will be archived as it has been rewritten is rust! [Check it out](https://github.com/max-lt/github-hook-rs) \n\n## Install\n\nCopy / fork source somewhere (for example in `/opt/github-hook`).\n\nCreate '/etc/systemd/system/github-hook.service'\n```\n[Unit]\nDescription=Github Webhook Server\nAfter=network.target\n\n[Service]\nExecStart=/usr/bin/node /opt/github-hook/src/index.js\n# Required on some systems\n#WorkingDirectory=/opt/nodeserver\nRestart=always\n# Restart service after 10 seconds if node service crashes\nRestartSec=10\n# Output to syslog\nStandardOutput=syslog\nStandardError=syslog\nSyslogIdentifier=github-hook\n#User=\u003calternate user\u003e\n#Group=\u003calternate group\u003e\nEnvironment=NODE_ENV=production PORT=8080 CONFIG=/home/me/my-config.yml\n\n[Install]\nWantedBy=multi-user.target\n```\n\n## Start\n```\nsystemctl start github-hook\n```\n\n## Example of config file\n\n```yml\nrepositories:\n  project1:\n    secret: project1secret\n    script: /some/path/script.sh\n  project2:\n    secret: project2secret\n    script: /another/path/script.sh --some-argument\n  project3:\n    secret: project1secret\n    script: /some/path/script.sh\n    branch: master # optional\n```\n\n# Configure your github project: \n\n\u003e Note that this is an example for the \"project1\" repository.\n\nGo into your project's settings \u003e webhooks\n\nSet `Payload URL` to `http://example.com:8080/github-hook/project1`\n\nSet `Content type` to `application/json`\n\nSet `Secret` to `project1secret`\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmax-lt%2Fgithub-hook","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmax-lt%2Fgithub-hook","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmax-lt%2Fgithub-hook/lists"}