Last active
December 15, 2015 03:39
-
-
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)
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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 | |
#"} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{"title": "curl Issue","body": "the body (with linebreaks)\n | |
yes with linebreaks.\n | |
just don't forget the backslash n at the end\n | |
"} |
Author
helllth
commented
Mar 19, 2013
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment