{"id":15061777,"url":"https://github.com/lareii/autopull","last_synced_at":"2025-04-10T09:45:38.167Z","repository":{"id":210582415,"uuid":"726900701","full_name":"lareii/autopull","owner":"lareii","description":"🔄 A real-time GitHub auto-sync tool.","archived":false,"fork":false,"pushed_at":"2024-01-02T18:02:46.000Z","size":302,"stargazers_count":13,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2024-09-30T07:21:47.098Z","etag":null,"topics":["auto","automation","gin","gin-gonic","git","git-sync","go","golang","sync","synchronisation"],"latest_commit_sha":null,"homepage":"","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/lareii.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,"governance":null,"roadmap":null,"authors":null}},"created_at":"2023-12-03T18:21:39.000Z","updated_at":"2024-02-20T00:39:09.000Z","dependencies_parsed_at":"2024-01-02T19:24:46.952Z","dependency_job_id":"d9808dd8-b9cd-451a-8413-e3e45b770d0c","html_url":"https://github.com/lareii/autopull","commit_stats":null,"previous_names":["lareii/autopull"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lareii%2Fautopull","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lareii%2Fautopull/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lareii%2Fautopull/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lareii%2Fautopull/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/lareii","download_url":"https://codeload.github.com/lareii/autopull/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":219855641,"owners_count":16556163,"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":["auto","automation","gin","gin-gonic","git","git-sync","go","golang","sync","synchronisation"],"created_at":"2024-09-24T23:25:00.618Z","updated_at":"2024-10-12T22:03:54.599Z","avatar_url":"https://github.com/lareii.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003cimg width=\"300\" src=\"./assets/logo.png\" alt=\"autopull Logo\"\u003e\n\n![Github Build Status](https://github.com/lareii/autopull/actions/workflows/build.yml/badge.svg)\n[![Go Report Card](https://goreportcard.com/badge/github.com/lareii/autopull)](https://goreportcard.com/report/github.com/lareii/autopull)\n![GitHub Contributors](https://img.shields.io/github/contributors/lareii/autopull?style=flat)\n![GitHub Repo Stars](https://img.shields.io/github/stars/lareii/autopull?style=flat\u0026color=yellow)\n![GitHub Repo Size](https://img.shields.io/github/repo-size/lareii/autopull?style=flat)\n\n🔄 A real-time GitHub auto-sync tool.\n\nA simple HTTP server written in Go that monitors pushes to your GitHub repository in real-time, and pulls them from your GitHub repository.\n\n![autopull Schema](./assets/schema.png)\n\n## Getting Started\n### Prerequisites\n- Go \u003e= 1.19\n- Git\n\n### Install autopull\nYou can install it via `go install` command.\n```\ngo install github.com/lareii/autopull@latest\n```\n\nYou can add the tool to path for quick access. (optional)\n\n### Set Webhook\n1. Choose a repository and click on the \"Settings\" tab at the top of the repository page.\n\n2. Locate the \"Webhooks\" section in the left-hand sidebar.\n\n3. In the Webhooks section, there is typically a button labeled \"Add webhook\" or \"New webhook\". Click on it to start creating a new webhook.\n\n4. In the \"Payload URL\" field, enter the URL where you want GitHub to send the payload when an event occurs.\n\n5. In the \"Content type\" field, select `application/json`.\n\n6. Scroll down to the \"Secret\" section. Generate a secure secret key and enter it in the \"Secret\" field. This key will be used to secure the communication between GitHub and your server.\n\n7. Select \"Just the push event.\" as the event that should trigger the webhook.\n\n8. After configuring the webhook settings, scroll down and click on the \"Add webhook\" or \"Create webhook\" button to save your changes.\n\n9. Once the webhook is added, GitHub will send a test payload to the provided URL. Ensure that your server can receive and process this payload.\n\n10. Back in the Webhooks section, you should see your newly added webhook. Verify that the \"Recent Deliveries\" section shows a successful delivery status.\n\n### Usage\n```\nautopull \u003crepo_path\u003e \u003csecret\u003e\n```\n\nExample usage:\n```\nautopull ~/website \"mysupersecretoken\"\n```\n\n🎉 Ta-da! Ready to use. Try to push something.\n\n## Contributing\nContributions are welcome! To contribute, simply fork the repository, make your desired changes, and submit a pull request.\n\n## License\nThis project is licensed under the MIT License. For more information, see the [LICENSE file](./LICENSE).","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flareii%2Fautopull","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Flareii%2Fautopull","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flareii%2Fautopull/lists"}