Hacktoberfest 2026:维护者为十月标记出来的 issue,仍然开放、适合新手。 浏览 Hacktoberfest issue

Add bulk/batch issue label operations

未关闭
#2,412 0 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

还没有人认领这个 Issue。

评估

难度
5/5
预计耗时
一周以上
新手友好度
35/100
Issue 类型
功能
描述清晰度
需要澄清
活跃度
冷清
技术栈
go
领域
api, tooling

调研方向

审查现有的 issue_write MCP 工具以及用于向 issue 添加 labels 的 GitHub REST 端点。比较提议的 batch_update_issues 工具与扩展 issue_write 的方案,然后定义单次调用应如何通过添加和移除操作处理多个 issue 编号,并验证已记录的工作流。

由索引模型根据 Issue 内容生成。

描述

request ai review

[!Note]
Responses generated with Claude

Describe the feature or problem you'd like to solve

There is no way to add labels to multiple issues in a single MCP tool call. The current issue_write tool supports labeling one issue at a time, but common workflows require labeling dozens of issues matching a search query (e.g., "label all issues from milestone X as priority/high").

This forces MCP clients to either:

  1. Make N sequential issue_write calls (slow, noisy)
  2. Fall back to gh CLI with scripting (breaks MCP-first pattern)
Proposed solution

Add a batch labeling capability — either as:

Option A: A new batch_update_issues tool that accepts a list of issue numbers and label operations:

{
  "owner": "org",
  "repo": "repo",
  "issue_numbers": [1, 2, 3, 4, 5],
  "add_labels": ["priority/high"],
  "remove_labels": ["needs-triage"]
}

Option B: Extend issue_write with a batch method that accepts multiple issue numbers.

Example prompts or workflows
  1. "Add the stale label to all issues that haven't been updated in 90 days"
  2. "Label issues #10, #15, #20, #25 as sprint-42"
  3. "Move all needs-triage issues to triaged after review"
  4. "Add breaking-change label to all issues in the v3.0 milestone"
Additional context

The GitHub REST API supports adding labels to individual issues via POST /repos/{owner}/{repo}/issues/{issue_number}/labels. A batch tool would simply iterate internally, but having it as a single MCP call reduces round-trips and permission prompts for MCP clients like Claude Code.

主要语言
Go
星标
33.1k
派生
5k
平均合并
2 天 1 小时
30 天内合并 PR
25

贡献指南

打开贡献指南

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

github/github-mcp-server 的其他 Issue

查看 github/github-mcp-server 的全部 Issue

相似的 Issue

更多 Go Issue

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。