{"id":22941522,"url":"https://github.com/sanda0/puller","last_synced_at":"2025-04-01T20:48:59.575Z","repository":{"id":212071329,"uuid":"729596165","full_name":"sanda0/puller","owner":"sanda0","description":"GitLab Webhook Receiver","archived":false,"fork":false,"pushed_at":"2023-12-19T17:24:32.000Z","size":37922,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-02-07T13:44:15.548Z","etag":null,"topics":["golang","tool"],"latest_commit_sha":null,"homepage":"","language":"Go","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/sanda0.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":"2023-12-09T18:18:30.000Z","updated_at":"2024-04-18T02:48:19.000Z","dependencies_parsed_at":"2024-12-14T13:44:16.012Z","dependency_job_id":"de7817f6-e09d-4d64-902c-f3e372750072","html_url":"https://github.com/sanda0/puller","commit_stats":null,"previous_names":["sanda0/puller"],"tags_count":6,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sanda0%2Fpuller","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sanda0%2Fpuller/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sanda0%2Fpuller/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sanda0%2Fpuller/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/sanda0","download_url":"https://codeload.github.com/sanda0/puller/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246709914,"owners_count":20821298,"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":["golang","tool"],"created_at":"2024-12-14T13:44:08.954Z","updated_at":"2025-04-01T20:48:59.554Z","avatar_url":"https://github.com/sanda0.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Puller - GitLab Webhook Receiver\n\n## Overview\n\n\u003e This Go program serves as a webhook receiver for GitLab events. It is designed to handle incoming webhook requests, authenticate them using a secret token, and execute specified commands based on the received event type.\n\n## Table of Contents\n\n- [Configuration](#configuration)\n- [Logging](#logging)\n- [Usage](#usage)\n- [Todo](#todo)\n\n\n## Configuration\n\nThe program reads its configuration from a `config.json` file. Create a `config.json` file with the required configuration. \n\n\u003e Feel free to customize the configuration and commands in the `config.json` file to suit your specific project requirements.\n\n```json\n{\n    \"email\": \"email@example.com\",\n    \"email_password\": \"password\",\n    \"key\": \"\u003ckey\u003e\",\n    \"repos\": [\n        {\n            \"branch\": \"branch-name\",\n            \"events\": [\n                {\n                    \"commands\": [\n                        \"git pull\"\n                    ],\n                    \"type\": \"push\"\n                }\n            ],\n            \"name\": \"repo-name\",\n            \"path\": \"local-path\"\n        }\n    ],\n    \"smtp_host\": \"smtp.pramixit.com\",\n    \"smtp_port\": \"587\"\n}\n\n\n```\n\n## Logging\n\nThe `writeLogFile` function facilitates the logging of messages to the `app.log` file based on the message type (INFO or ERROR). This log file captures execution details, providing insights into the success or failure of the executed commands.\n\n## Usage\n\n```bash\n#download\nwget https://github.com/sanda0/puller/releases/download/v1.6/puller\n\n##\nsudo chmod +x puller\n\n### init\nsudo ./puller -i\n\n\n\n\n```\n\n## TODO List\n\n- [x] Logging the success or failure of the executed commands.\n- [x] E-mail notifications.\n- [ ] Discord notifications.\n\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsanda0%2Fpuller","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsanda0%2Fpuller","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsanda0%2Fpuller/lists"}