Skip to content

Conversation

Copy link

Copilot AI commented May 22, 2025

  • Create GraphQL query files
    • Create getResourceId.query for URL to resource ID translation
    • Create projectInfo.query for retrieving project info without items
    • Create addItemToProject.mutant for adding items to a project
  • Implement driver functions in driver_gh.ps1
    • Implement Invoke-GitHubGetResourceId function
    • Implement Invoke-GitHubGetProjectInfo function
    • Implement Invoke-GitHubAddItemToProject function
  • Create Add-ItemToProject.ps1 function
    • Implement main Add-ItemToProject function
  • Add tests
    • Create mock files for tests
    • Create tests for each function
  • Verify functionality works end-to-end

The implementation is now complete. We've created:

  1. GraphQL query files for resource ID translation, project info retrieval, and adding items to projects
  2. Driver functions to interact with the GitHub GraphQL API
  3. The main Add-ItemToProject function that combines these operations
  4. Tests with mock responses to verify functionality

Fixes #2.


💡 You can make Copilot smarter by setting up custom instructions, customizing its development environment and configuring Model Context Protocol (MCP) servers. Learn more Copilot coding agent tips in the docs.

Copilot finished work on behalf of rulasg May 22, 2025 08:44
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.

Create a command called Add-ItemToProject

2 participants