https://github.com/neos/slicer
Some code to keep read-only package repositories updated
https://github.com/neos/slicer
Last synced: 7 months ago
JSON representation
Some code to keep read-only package repositories updated
- Host: GitHub
- URL: https://github.com/neos/slicer
- Owner: neos
- Created: 2015-08-19T09:10:35.000Z (over 10 years ago)
- Default Branch: main
- Last Pushed: 2025-05-15T14:22:53.000Z (8 months ago)
- Last Synced: 2025-05-15T15:43:49.391Z (8 months ago)
- Language: PHP
- Size: 108 KB
- Stars: 3
- Watchers: 6
- Forks: 1
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# slicer
_Some code to keep read-only package repositories updated._
This is inspired by https://github.com/dflydev/dflydev-git-subsplit-github-webhook, thanks!
It uses `splitsh-lite` (and expects it in the path!)
## Configuration
See `config.json`.
The `allowedRefsPattern` can be given per project. If it does not match an incoming `ref`
in the payload, processing of the split is skipped.
## Setting up Jenkins
* Create parameterized job
* Have it clone slicer
* Add a string parameter called "payload"
* Add a shell build step running `php slicer.php "${payload}"`
## Manual invocation
Use a payload like `{"ref":"…","repository":{"clone_url":"https://github.com/…"}}`
and replace `ref` and `clone_url` values as needed:
`php slicer.php '{"ref":"refs/heads/8.2","repository":{"clone_url":"https://github.com/neos/flow-development-collection.git"}}'`
To split a tag, just use
`php slicer.php '{"ref":"refs/tags/1.2.3","repository":{"clone_url":"https://github.com/…"}}'`