Add GitHub Copilot accessor and GitHub API-based issue tracking integration#56
Add GitHub Copilot accessor and GitHub API-based issue tracking integration#56Copilot wants to merge 4 commits into
Conversation
Co-authored-by: JPrier <24302717+JPrier@users.noreply.github.com>
Co-authored-by: JPrier <24302717+JPrier@users.noreply.github.com>
JPrier
left a comment
There was a problem hiding this comment.
@copilot
This misses the mark I wanted something that only acted as an accessor but instead you created an entirely new CLI tool but I wanted was the accessor to use the existing CLI tools because there's currently no API to create github agentic tasks which would then handle the creation of issues and code and the response of the accessor would be the issue id that was created.
Then I wanted you to create a tool similar to what you did that would then utilize the GitHub API not the CLI. This with an abstract the use of that API, like getting the issue information, adding comments, Etc.
Please remove the custom c l i tool that you added and do the previously mentioned changes
| @@ -0,0 +1,134 @@ | |||
| # GitHub Copilot Integration | |||
There was a problem hiding this comment.
I don't know if I like adding random markdown files to the Root of the repo. Delete this file
There was a problem hiding this comment.
Done. Deleted the GITHUB_COPILOT_INTEGRATION.md file in commit 6bac6af.
- Remove custom CLI tool (gh-copilot-agent-task) - Update accessor to use gh copilot agent-task create for agentic tasks - Accessor now returns issue ID as response - Rewrite GitHub tools to use GitHub API instead of CLI - Update tests to match new implementation - Remove GITHUB_COPILOT_INTEGRATION.md documentation file Co-authored-by: JPrier <24302717+JPrier@users.noreply.github.com>
I've made the requested changes in commit 6bac6af:
The accessor now properly calls |
This PR adds comprehensive GitHub Copilot integration to TreeAgent, enabling AI-assisted development with GitHub issue tracking capabilities.
New GitHub Copilot Accessor
Added
GITHUB_COPILOTas a new model accessor type that interfaces with GitHub Copilot via thegh copilot agent-task createCLI command. The accessor creates agentic tasks that handle code generation and issue creation, returning the issue ID in the response.The accessor:
gh copilot agent-task createto create GitHub agentic tasksGitHub Issue Tracking Tools (API-based)
Implemented a complete suite of GitHub issue management tools using the GitHub REST API:
All tools use the GitHub REST API via the
requestslibrary for direct, authenticated operations. No CLI dependency required for tools.Key Benefits
Prerequisites
gh) installed and authenticated, GitHub Copilot CLI extension installed (gh extension install github/gh-copilot)GITHUB_TOKENorGH_TOKENenvironment variable set (create at https://github.com/settings/tokens)The implementation includes comprehensive tests to ensure reliability and ease of use.
Original prompt
💬 Share your feedback on Copilot coding agent for the chance to win a $200 gift card! Click here to start the survey.