Repository navigation
Add Copilot Automation group and task status tools - #75925
Conversation
Co-authored-by: pelikhan <[email protected]>
|
✅ PR Specification Reviewer completed successfully! PR Specification ReviewerOutcome: The agent completed and reported no action. A no-op output alone does not verify that all required work was completed or that publication was possible. Agent messages are omitted from this comment. The category uses structured run status, not interpretation of agent prose.
|
|
✅ Design Decision Gate 🏗️ completed the design decision gate check. See the comment below for the result and any generated ADR draft. Design Decision Gate 🏗️Outcome: The agent completed and reported no action. A no-op output alone does not verify that all required work was completed or that publication was possible. Agent messages are omitted from this comment. The category uses structured run status, not interpretation of agent prose.
|
|
✅ Test Quality Sentinel completed test quality analysis. Test Quality SentinelOutcome: The agent completed and reported no action. A no-op output alone does not verify that all required work was completed or that publication was possible. Agent messages are omitted from this comment. The category uses structured run status, not interpretation of agent prose.
|
|
🧠 Matt Pocock Skills Reviewer has completed the skills-based review. ✅
|
|
✅ PR Code Quality Reviewer completed the code quality review.
|
|
✅ Ponytail Reviewer completed successfully! Ponytail ReviewerOutcome: The agent completed and reported no action. A no-op output alone does not verify that all required work was completed or that publication was possible. Agent messages are omitted from this comment. The category uses structured run status, not interpretation of agent prose.
|
There was a problem hiding this comment.
Reviewed the changed toolset mapping, reference documentation, and coverage. I found no actionable correctness or regression issues in the changed lines. The new entries are consistently added to the JSON mapping, documentation, and membership test. Static review only; tests were not run per review constraints.
🔎 Code quality review by PR Code Quality Reviewer · copilot · gpt50 · ~2 AIC · ⌖ ~1 AIC · ⊞ 1.6K
Comment /review to run again
There was a problem hiding this comment.
🟢 Approval recommended
The five new tools are mapped, documented, and covered by regression tests, with no active review issues remaining.
No open issues 🎉
What changed in this PR
This pull request adds five remote Copilot Automation and task-status tools to the copilot toolset, updates the mapping metadata and documentation, and extends regression coverage.
Changes:
- Added
get_automation_group,list_automation_groups,get_automations_configuration_for_repository,get_copilot_task_status, andget_copilot_session_events. - Bumped the mapping version from 2.6 to 2.7.
- Documented the new tools, purposes, and key parameters.
- Extended tests to verify all five tools are mapped.
- Review note: Update
.github/aw/github-mcp-server.md:77so itscopilottoolset overview also mentions the newly added task-status tools.
| File | Description |
|---|---|
pkg/workflow/permissions_validator_json_test.go |
Verifies the five newly mapped Copilot tools are included. |
pkg/workflow/data/github_toolsets_permissions.json |
Adds the tools to the copilot mapping and updates its description and version. |
.github/aw/github-mcp-server-tools.md |
Documents the new tools, their purposes, parameters, and remote-service note. |
Review effort: Lite (auto)
There was a problem hiding this comment.
Skills-Based Review 🧠
Applied /tdd, /codebase-design, and /grill-with-docs. No blocking issues. The data sync is consistent: the JSON mapping, the doc table, and the test agree on the five added copilot tools, and TestGitHubMCPGovernanceAndAutomationToolsets plus the related permissions tests pass.
📋 Key Themes & Highlights
Key Themes
- Permission coupling:
write_permissionsis per toolset, so the new read-only tools inheritissues/pull-requestswrite scopes. Existing read-only tools already do this, so it is a follow-up rather than a blocker. - Test strictness: the test uses
assert.Contains, so it does not catch unexpected additions or JSON/doc drift. - Unverified parameters: the key-parameter names in the doc are not backed by anything in this repo.
Positive Highlights
- ✅ Mapping version bumped to 2.7 and the description updated consistently in both the JSON and the doc.
- ✅ The test was extended to cover all five new tools.
- ✅ The doc note was updated to cover task-status tools.
Notes
- I did not invoke the
pr-triageagent. The change is three small files, so I classified it directly from the diff. - Review is against PR head
a4e6dcc. The local checkout has an uncommitted edit to the doc that reverts the copilot section; it is not part of this PR and I did not change it.
@copilot please address the review comments above.
🧠 Reviewed using Matt Pocock's skills by Matt Pocock Skills Reviewer · copilot · routed: haiku55 xhigh · ~4 AIC · ⌖ ~2 AIC · ⊞ 5.4K
Comment /matt to run again
| "get_automation_revision", | ||
| "get_automations_configuration_for_repository", | ||
| "get_copilot_session_events", | ||
| "get_copilot_task_status", |
There was a problem hiding this comment.
[/codebase-design] get_copilot_task_status is read-only, but write_permissions (issues, pull-requests, line 32) applies to every tool in the copilot toolset, so enabling any read tool here now requires write scopes. The existing get_automation and list_automations already share this coupling, so it is not a blocker for this PR.
💡 Suggested follow-up
Track this separately: move read-only Automation and task-status tools into a toolset with read_permissions only, or document the coupling in the toolset description. Keeping this PR as a data sync avoids changing permission semantics for existing tools.
@copilot please address this.
There was a problem hiding this comment.
Documented the Copilot toolset-wide issues and pull-requests write-permission coupling in both the mapping description and tool reference. Permission semantics are unchanged. Commit: 5862a04f.
| | `get_automation_group` | Get a repository Automation group and its visible members | `owner`, `repo`, `group_id` | | ||
| | `get_automation_revision` | Get a Copilot Automation revision | `owner`, `repo`, `automation_id`, `revision_id` | | ||
| | `get_automations_configuration_for_repository` | Get Copilot Automations configuration for a repository | `owner`, `repo` | | ||
| | `get_copilot_session_events` | Read a chronological page of Copilot session events | `session_id`, `page_number` or `after`, `page_size` | |
There was a problem hiding this comment.
[/grill-with-docs] The key-parameter column for the new tools (here page_number or after, page_size; also group_id on get_automation_group, line 37) is not backed by anything in this repo. The note on line 49 says the placement is unconfirmed, and readers will likely treat these parameter names as authoritative.
💡 Suggested change
Cite the upstream schema in the PR description, or mark the parameter names as provisional in the note so readers know to verify them against the live MCP service.
@copilot please address this.
There was a problem hiding this comment.
Changed the new remote-only tool rows to Remote schema and clarified that this repository neither defines their parameters nor confirms their public upstream placement. Commit: 5862a04f.
| "get_automation_revision", | ||
| "get_automations_configuration_for_repository", | ||
| "get_copilot_session_events", | ||
| "get_copilot_task_status", |
There was a problem hiding this comment.
[/tdd] The expected list is hand-maintained and uses assert.Contains, so it catches removals but not unexpected additions. Nothing ties the list to the doc table either, so a drift between the JSON and .github/aw/github-mcp-server-tools.md would pass silently.
💡 Suggested change
Assert the exact set with assert.ElementsMatch(t, []string{...}, copilot.Tools). Optionally add a parity check that parses the copilot table in the doc and compares it with copilot.Tools.
@copilot please address this.
There was a problem hiding this comment.
Added a parity assertion that parses the Copilot reference table and compares its exact tool set with the JSON mapping; unexpected additions and documentation drift now fail. Commit: 5862a04f.
|
Copilot assignment requested for the following outstanding work:
Once you start work, post this work summary as a PR comment without the leading Copilot mention, including the Sous-chef head, work, and state lines below, to record that the assignment is running. Apply the necessary fixes on this PR's existing branch, reply to each listed review thread and resolve it when addressed. Ignore feedback already answered or resolved; stop when only human review or CI remains. Do not merge or trigger CI. Sous-chef requested-head: a4e6dcc
|
Sous-chef requested-head: a4e6dcc |
…-mcp-tools-mapping Co-authored-by: gh-aw-bot <[email protected]>
Co-authored-by: gh-aw-bot <[email protected]>
|
@copilot resolve the merge conflicts on this branch. |
…-mcp-tools-mapping # Conflicts: # pkg/workflow/awf_config_conformance_registry_formal_test.go Co-authored-by: pelikhan <[email protected]>
Resolved in |
|
🎉 This pull request is included in a new release. Release: |
The GitHub MCP toolset mapping was missing five remote Copilot tools. Add them to the
copilottoolset and document their purpose and key parameters.get_automation_group,list_automation_groups,get_automations_configuration_for_repository,get_copilot_task_status, andget_copilot_session_events; bump the mapping version to 2.7.