GIT Api创建发布

时间:2018-06-28 08:10:47

标签: github

我正在编写一个powershell脚本,该脚本将生成一个构建软件包,创建一个新的GitHub版本,并将该软件包作为资产上传到该版本中。

我当前所面临的问题是,发布发布时,API仅返回现有发布的数组。通过UI,我可以创建一个发行版,所以我认为这不是一个权利问题。

发布请求:

网址:http:// [github-instance] / api / v3 / repos / [owner] / [repository] ​​/ releases

身体:

{
  "tag_name": "v0.1.1",
  "target_commitish": "master",
  "name": "v0.1.1",
  "body": "Description of the release",
  "draft": false,
  "prerelease": true
}

重新放置标题:

Access-Control-Allow-Origin →*
Access-Control-Expose-Headers →ETag, Link, Retry-After, X-GitHub-OTP, X-                
RateLimit-Limit, X-RateLimit-Remaining, X-RateLimit-Reset, X-OAuth-Scopes, X- 
Accepted-OAuth-Scopes, X-Poll-Interval
Cache-Control →private, max-age=60, s-maxage=60
Content-Length →2
Content-Security-Policy →default-src 'none'
Content-Type →application/json; charset=utf-8
Date →Thu, 28 Jun 2018 08:04:12 GMT
ETag →"683f9876e78713e234cb4f8a08c1223f"
Server →GitHub.com
Status →200 OK
Strict-Transport-Security →max-age=31536000; includeSubdomains
Vary →Accept, Authorization, Cookie, X-GitHub-OTP
X-Accepted-OAuth-Scopes →
X-Content-Type-Options →nosniff
X-Frame-Options →deny
X-GitHub-Enterprise-Version →2.13.4
X-GitHub-Media-Type →github.v3; format=json
X-GitHub-Request-Id →f94c5fa8-cfd1-4fc8-b6d5-678785c17448
X-OAuth-Scopes →admin:pre_receive_hook, read:discussion, read:org, 
read:public_key, read:repo_hook, read:user, repo, user:email, user:follow
X-Runtime-rack →0.092114
X-XSS-Protection →1; mode=block

任何想法可能是什么问题?

0 个答案:

没有答案