Skip to content

Conversation

@majiayu000
Copy link
Contributor

Summary

Change the parameter name in assign_copilot_to_issue tool from issueNumber (camelCase) to issue_number (snake_case) to match the naming convention used by all other tools in the issues toolset.

Problem

As noted in #1239, there are inconsistencies in parameter naming across tools. The assign_copilot_to_issue tool uses issueNumber while all other issue-related tools use issue_number.

Changes

  • Changed parameter name from issueNumber to issue_number in:
    • Tool input schema definition
    • Struct field with mapstructure tag
  • Updated corresponding test cases
  • Updated toolsnap file

Testing

  • All existing tests pass
  • Linter passes with 0 issues

Fixes #1239

Change the parameter name in assign_copilot_to_issue tool from
'issueNumber' (camelCase) to 'issue_number' (snake_case) to match
the naming convention used by all other tools in the issues toolset.

This improves API consistency and makes the tool parameters more
predictable for users and AI models.

Fixes github#1239

Signed-off-by: majiayu000 <1835304752@qq.com>
@majiayu000 majiayu000 requested a review from a team as a code owner December 30, 2025 13:31
@SamMorrowDrums
Copy link
Collaborator

@majiayu000 this change is good, but the generate docs script needs to be run to auto-update the README.md

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Refactor argument names to ensure consistency

2 participants