Skip to content

Instantly share code, notes, and snippets.

@metajack
Created August 31, 2015 18:33
Show Gist options
  • Save metajack/59c258c6a400601aece3 to your computer and use it in GitHub Desktop.
Save metajack/59c258c6a400601aece3 to your computer and use it in GitHub Desktop.
homu helper scripts and data
{
"name": "travis",
"active": true,
"events": [
"push",
"pull_request",
"issue_comment",
"public",
"member"
],
"config": {
"user": "bors-servo",
"token": "SECRET!",
"domain": "notify.travis-ci.org"
}
}
{
"name": "web",
"active": true,
"events": [
"issue_comment",
"pull_request",
"push"
],
"config": {
"url": "http://build.servo.org:54856/github",
"content_type": "json",
"insecure_ssl": "0",
"secret": "SECRET!"
}
}
#!/bin/bash
owner=servo
repo=$1
user=metajack
notravis=$2
curl -i -u $user -X POST https://api.github.com/repos/$owner/$repo/hooks --data @homu-web.json
if [ -z "$2" ]; then
curl -i -u $user -X POST https://api.github.com/repos/$owner/$repo/hooks --data @homu-travis.json
fi
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment