Skip to content

Commit 32ba7b0

Browse files
committed
Chore: Improve create_issue tool to enforce proposal workflow #7639
1 parent e88fe06 commit 32ba7b0

1 file changed

Lines changed: 9 additions & 6 deletions

File tree

ai/mcp/server/github-workflow/openapi.yaml

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -572,12 +572,15 @@ paths:
572572
Creates a new issue on GitHub. This is the authoritative first step for creating a new ticket.
573573
574574
**Workflow:**
575-
1. Call this tool (`create_issue`) to create the issue on GitHub.
576-
2. Call the `sync_all` tool to create the corresponding local Markdown file.
577-
578-
**Important:**
579-
The `labels` array must only contain labels that already exist in the repository.
580-
If you are unsure about the available labels, use the `list_labels` tool first.
575+
1. **Formulate:** Determine the appropriate `title`, `body`, and `labels` for the issue.
576+
2. **Call Tool:** Call the `create_issue` tool with the complete content. The user will approve/decline the final tool call. Do NOT ask for confirmation beforehand.
577+
3. **Sync:** After the issue is created, call the `sync_all` tool to create the corresponding local Markdown file.
578+
579+
**Labeling Rules (VERY IMPORTANT):**
580+
- You MUST include the `ai` label on all tickets you create.
581+
- You SHOULD also include one of the primary labels (`epic`, `enhancement`, `bug`) whenever applicable. Most tickets will fit into one of these categories.
582+
- For other cases, like `documentation`, use the most appropriate label.
583+
- Before using any labels, verify they exist by using the `list_labels` tool.
581584
tags: [Issues]
582585
requestBody:
583586
required: true

0 commit comments

Comments
 (0)