如何使用GITLAB API将发布说明添加到TAG



使用

GET local/api/v4/projects/project_ID/repository/tags/TAG_NAME/

我可以得到关于TAG的信息。如何只询问此标签的发布说明?

如何将发布描述放在一个特定的标签上,它过去对我来说是这样的:

static async Task<string> add_tag_release_notes2(string repository, int appId, string tag_name, string notes_description) //PUT or POST last TAG notes description 
{
string req_path = which_repo(repository)[0] + "projects/" + appId + "/repository/tags/" + tag_name + "/release";
using (var request = new HttpRequestMessage(new HttpMethod("POST"), req_path)) //PUT won't work as well
{
request.Headers.TryAddWithoutValidation("PRIVATE-TOKEN", which_repo(repository)[1]);
request.Content = new StringContent(notes_description, System.Text.Encoding.UTF8, "application/json");
var response = await client.SendAsync(request);
var content = await response.Content.ReadAsStringAsync();
var add_tag_response = JsonConvert.DeserializeObject<Tag>(content);
string notes = response.StatusCode.ToString();
return notes;
} 

但现在我得到了回应:404未找到甚至

GET local/api/v4/projects/project_ID/repository/tags/TAG_NAME/release

不起作用:(

他们移动的版本在这里输入链接描述

相关内容

  • 没有找到相关文章

最新更新