-
Notifications
You must be signed in to change notification settings - Fork 0
Add GitHub Copilot accessor and GitHub API-based issue tracking integration #56
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Conversation
Co-authored-by: JPrier <[email protected]>
Co-authored-by: JPrier <[email protected]>
JPrier
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@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
GITHUB_COPILOT_INTEGRATION.md
Outdated
| @@ -0,0 +1,134 @@ | |||
| # GitHub Copilot Integration | |||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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 <[email protected]>
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.