mirror of
https://github.com/thomiceli/opengist.git
synced 2026-06-19 07:36:56 +00:00
2946de2505
* Apply `topics` push option in post-receive hook The `topics` value was parsed into the push-options map but never read by the hook, silently discarding any topics passed via `git push -o topics=...`. Mirror the existing `title`/`description` handling and reuse the `gisttopics` validator. * Docs Signed-off-by: Thomas Miceli <tho.miceli@gmail.com> --------- Signed-off-by: Thomas Miceli <tho.miceli@gmail.com> Co-authored-by: Thomas Miceli <tho.miceli@gmail.com>
729 B
729 B
Push Options
Opengist has support for a few Git push options.
These options are passed to git push command and can be used to change the metadata of a gist.
Set URL
git push -o url=mygist # Will set the URL to https://opengist.example.com/user/mygist
Change title
git push -o title=Gist123
git push -o title="My Gist 123"
Change description
git push -o description="This is my gist description"
Change visibility
git push -o visibility=public
git push -o visibility=unlisted
git push -o visibility=private
Change topics
git push -o topics="golang devops"