卷曲命令行以在描述中多行引发GITHUB问题

时间:2018-12-04 10:23:01

标签: git curl github devops

Curl命令行无法将多行文本添加到git问题描述中。

curl -H 'Content-Type: application/json' -X POST -d '{ "title": "images found in repositories", "body": "Checking  image status


Table
=========================

XXX

OK
", "labels": ["bug"]}' https://****:****@github.****.com/api/v3/repos/<Project>/<Repository>/issues

错误:

{
  "message": "Problems parsing JSON",
  "documentation_url": "https://developer.github.com/enterprise/2.14/v3/issues/#create-an-issue"
}

0 个答案:

没有答案