我试图置于版本控制之下的应用程序将其版本号存储为时间戳......
2019-12-28T05:13:47Z
.
当我尝试使用 API将此时间戳添加为Github 版本tag_name
时...
{
"tag_name": "2019-12-28T05:13:47Z",
"target_commitish": "master",
"name": "2019-12-28T05:13:47Z",
"body": "LATEST RELEASE",
"draft": false,
"prerelease": false
}
我收到状态 422 错误...
{
"message": "Validation Failed",
"errors": [
{
"resource": "Release",
"code": "custom",
"field": "tag_name",
"message": "tag_name is not a valid tag"
},
{
"resource": "Release",
"code": "custom",
"field": "tag_name",
"message": "tag_name is not well-formed"
},
{
"resource": "Release",
"code": "custom",
"message": "Published releases must have a valid tag"
}
],
"documentation_url": "https://developer.github.com/v3/repos/releases/#create-a-release"
}
如果我将标签更改为v1
或类似,则没有错误。
API 文档没有说明 release 的语法tag_name
,但显然有。有谁知道它的记录在哪里?