Repository navigation
add create automation tag tool - #3563
Open
notapopsicle wants to merge 3 commits into
Open
notapopsicle wants to merge 3 commits into
notapopsicle wants to merge 3 commits into
Conversation
Contributor
There was a problem hiding this comment.
🔵 Needs a closer look
The new write endpoint’s live REST contract and permission behavior still need human verification beyond mocked tests.
No open issues 🎉
What changed in this PR
Adds create_automation_tag to the opt-in copilot_automations toolset, extending existing tag listing and retrieval with tag creation without executing automations.
Changes:
- Registers the write tool with required repository and name inputs,
reposcope requirements, and exclusion from read-only mode. - Generates a fresh idempotency key per call and documents that retries can create additional tags.
- Adds documentation, a schema snapshot, and mocked discovery and call tests across both protocol modes.
| File | Description |
|---|---|
| README.md | Documents the new tool and its parameters. |
| pkg/github/tools.go | Registers CreateAutomationTag in the tool inventory. |
| pkg/github/automation_tags.go | Implements the schema, validation, REST request, and response handling. |
| pkg/github/automation_tags_test.go | Tests discovery, payloads, unique keys, errors, and protocol output. |
| pkg/github/__toolsnaps__/create_automation_tag.snap | Records the tool’s schema and annotations. |
Review effort: Max
notapopsicle
added this pull request to stack #3570
October 23, 2026 19:44
notapopsicle
removed this pull request from stack #3570
October 23, 2026 20:04
Calls through ServerTool.Handler skip input schema validation, so check owner and repo before sending the request.
Apply the same filters as list and get results to the created tag.
notapopsicle
force-pushed
the
notapopsicle/create-automation-tag
branch
from
October 23, 2026 20:52
33089d8 to
8b003ae
Compare
notapopsicle
added this pull request to stack #3571
October 23, 2026 21:26
notapopsicle
marked this pull request as ready for review
October 23, 2026 23:03
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Add
create_automation_tagto create a repository automation tag through public REST.Why
Agents need to create tags to organize automations. Creating a tag doesn't execute an automation. The tool stays opt-in and is excluded from read-only mode; live REST availability and permission behavior still need integration testing.
What changed
MCP impact
create_automation_tagincopilot_automations, with requiredowner,repoandnameand an optionaldescription.Prompts tested (tool changes only)
No natural-language prompts or live API calls were tested. Automated tests exercise MCP discovery and
CallToolwith mocked REST responses in both supported protocol modes.Security / limits
reposcope filter, and excludes the tool from read-only discovery.Tool renaming
Lint & tests
./script/lint./script/testPassed
env -u UPDATE_TOOLSNAPS go test ./pkg/github -run '^Test_CreateAutomationTag$' -count=1 -json(package: 1.040s). The named test ran, including snapshot, discovery, HTTP payload, unique-key and exact-dot regression assertions. Full lint and the full suite were left for CI.Docs
Related
Stacked on github/github-mcp-server#3562. Reuses the tag model and toolset from github/github-mcp-server#3561.