git-sync

command
v0.0.0-...-f3f1ec7 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 9, 2023 License: Apache-2.0 Imports: 17 Imported by: 0

README

git-sync

git-sync pulls source code from a git repository periodically and calls external webhook automatically when there are changes.

Install

$ go get github.com/ebay/releaser/cmd/git-sync

Github

$ git-sync --branch=master --repo=https://github.com/ebay/releaser \
    --one-time --password-file=/home/stack/tmp/github-pwd --rev=HEAD \
    --username=tess-bot --wait=10 --root=/home/stack/tmp --one-time

Gitlab

$ git-sync --branch=master --repo=https://github.com/ebay/releaser.git \
    --one-time --password-file=/home/stack/tmp/gitlab-pwd --rev=HEAD \
    --username=oauth2 --wait=10 --root=/home/stack/tmp --one-time

Checkout Pull Request

$ git-sync --branch=master --repo=https://github.com/ebay/releaser \
    --one-time --password-file=/home/stack/tmp/github-pwd \
    --rev=refs/remotes/origin/pr/${PR}/merge \
    --username=tess-bot --wait=10 --root=/home/stack/tmp --one-time

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL