Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/m6w6/gh-mirror
Github mirror webhook
https://github.com/m6w6/gh-mirror
Last synced: 2 days ago
JSON representation
Github mirror webhook
- Host: GitHub
- URL: https://github.com/m6w6/gh-mirror
- Owner: m6w6
- License: bsd-2-clause
- Created: 2015-10-01T15:06:11.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2019-01-23T16:09:01.000Z (almost 6 years ago)
- Last Synced: 2025-01-03T13:12:03.282Z (5 days ago)
- Language: PHP
- Size: 4.88 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Contributing: CONTRIBUTING.md
- License: LICENSE
- Authors: AUTHORS
Awesome Lists containing this project
README
# gh-mirror
Simple PHP webhook to mirror github repositories.
## Requirements
* [pecl/http](https://github.com/m6w6/ext-http)
## Configuration
```php
$mirror = getenv("mirror") ?: "/var/github/mirror";
$secret = getenv("secret") ?: trim(file_get_contents("$mirror/.secret"));
$owners = explode(",", getenv("owners") ?: trim(file_get_contents("$mirror/.owners")));
```## License
gh-mirror is licensed under the 2-Clause-BSD license, which can be found in
the accompanying [LICENSE](./LICENSE) file.## Contributing
All forms of contribution are welcome! Please see the bundled
[CONTRIBUTING](./CONTRIBUTING.md) note for the general principles followed.The list of past and current contributors is maintained in [THANKS](./THANKS).