简体   繁体   English

有没有办法使用 GitHub Api 只获取没有特定标签的问题

[英]Is there a way of getting only the issues without a certain label using the GitHub Api

I have the following我有以下

  -H "Accept: application/vnd.github.v3+json" \ 
  -H "Authorization: token <TOKEN>" \
  https://api.github.com/repos/OWNER/REPO/issues?labels=label

Currently I am only able to get the issues that have a certain label using the GitHub api, is there a way to get all the issues that doesn't have a specific label using the GitHub api?目前我只能使用 GitHub api 获取具有特定标签的问题,有没有办法使用 GitHub api 获取所有没有特定标签的问题?

Based on github DOC , It's not possible基于 github DOC ,这是不可能的

labels                             string
A list of comma separated label names. Example: bug,ui,@high

One solution would be to implement it.一种解决方案是实施它。 You can get all the issue then iterate using a loop to remove the issue that has the specific label您可以获取所有问题,然后使用循环进行迭代以删除具有特定标签的问题

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM