有没有办法使用 GitHub 的 API 获取特定回购中排除特定标签的所有问题?

Is there a way to grab all issues in a specific repo that exclude a certain label using GitHub's API?

您目前可以通过搜索 UI 使用类似 -label:bug 的语法来执行此操作,但它 看起来 不像有一种简单的方法这直接来自 API

使用 /search/issues 及其 q 参数:

The q search term can also contain any combination of the supported issue search qualifiers:

labels Filters issues or pull requests based on their labels.

labels supports - as you have described.