Skip to content

Instantly share code, notes, and snippets.

@helllth
Last active December 15, 2015 03:39
Show Gist options
  • Save helllth/5195955 to your computer and use it in GitHub Desktop.
Save helllth/5195955 to your computer and use it in GitHub Desktop.
a command to create an issue on github (even with line breaks in the body)
#!/bin/sh
curl -X POST -u '[user]:[pass]' -d @jsonFileLikeTheCommentsBelow.json https://api.github.com/repos/[user]/[reponame]/issues
#{"title": "curl Issue","body": "the body (with linebreaks)\n
# yes with linebreaks.\n
# just don't forget the backslash n at the end\n
#"}
{"title": "curl Issue","body": "the body (with linebreaks)\n
yes with linebreaks.\n
just don't forget the backslash n at the end\n
"}
@helllth
Copy link
Author

helllth commented Mar 19, 2013

Bildschirmfoto 2013-03-19 um 14 00 46

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment