Skip to content

Commit

Permalink
Update README based on comments in kubernetes#110
Browse files Browse the repository at this point in the history
  • Loading branch information
jacksontj committed Jan 22, 2019
1 parent 39ca0a2 commit 5c63dc9
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ this, it uses a git worktree in a subdirectory of the `--root` and flips a
symlink.

git-sync can also be configured to make webhook call upon sucessful git repo syncronisation. The call is made when right after the symlink is updated.

## Usage

```
Expand All @@ -35,11 +36,12 @@ docker run -d \

## Example of webhooks usage
**Webhook config example**
A webhook config must be valid JSON. If ```success``` is not specified in the config, git-sync will not wait for a response.
A webhook config must be valid JSON. If `success` is not specified in the config, git-sync will continue regardless of response code (including errors).

```json
{
"url": "http://localhost:9090/-/reload",
"method": "POST|GET",
"method": "POST",
"success": 200
}
```
Expand Down

0 comments on commit 5c63dc9

Please sign in to comment.