Skip to content

Instantly share code, notes, and snippets.

@ssherar
Last active August 29, 2015 14:17
Show Gist options
  • Save ssherar/259ca2b66160d2a74586 to your computer and use it in GitHub Desktop.
Save ssherar/259ca2b66160d2a74586 to your computer and use it in GitHub Desktop.
Config for a hook receive library
default:
all:
return: "Request worked"
on_error: "Shit failed {error_msg}"
create:
pulL_repo: true
delete:
pull_repo: true
pull_request:
pull_repo: true
ping:
pull_repo: false
return: "PONG: {datetime}"
push:
pull_repo: true
simple:
dir: "/var/www/simple"
push:
actions:
- "cd dir"
- "git pull"
- "jekyll build"
extended:
dir: "/var/www/extended"
push:
actions:
- "jekyll build"
return: "Push handler for extended worked! "
on_error: "extended failed. Reason: {error_msg}"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment