Skip to content

Instantly share code, notes, and snippets.

@shawn111
Last active November 23, 2017 14:12
Show Gist options
  • Save shawn111/e98c0d2f3a3d03e7553ea52f0e42ada2 to your computer and use it in GitHub Desktop.
Save shawn111/e98c0d2f3a3d03e7553ea52f0e42ada2 to your computer and use it in GitHub Desktop.
SERVER="http://xxx:3000"
REPO="foo"
ORG="foo"
#API="user/repos"
API="org/$ORG/repos"
TOKEN="b2a36575cffaf2b291863f023e2027c26e87b3c9"
curl -H 'content-type: application/json' -H \'Authorization: token $TOKEN\' -d \'{"name":"$REPO"}\' -X POST "$SERVER/api/v1/$API"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment