-
Notifications
You must be signed in to change notification settings - Fork 43
Add project command to create GitHub Projects V2 #12697
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
Conversation
- Implement gh aw project new command to create GitHub Projects V2 - Support user (@me) and organization ownership - Add --repo flag to link projects to repositories - Add --description flag for project descriptions - Include comprehensive help text with token requirements - Add unit tests for command and helper functions - All tests passing, linting passing Co-authored-by: mnkiefer <8320933+mnkiefer@users.noreply.github.com>
…rted fields - Escape all user inputs (owner, repo) in GraphQL queries for security - Remove unused Description and Views fields from ProjectConfig - Remove --description flag (not supported by GitHub Projects V2 API) - Add capitalizeFirst helper to avoid deprecated strings.Title - Update tests and documentation - All tests passing, linting passing Co-authored-by: mnkiefer <8320933+mnkiefer@users.noreply.github.com>
|
@copilot Maybe rename |
Changed the --repo flag to --link (short form -l) to make it clearer that the flag is used to link the project to a repository. Updated all examples and documentation to reflect this change. Addresses feedback from @mnkiefer Co-authored-by: mnkiefer <8320933+mnkiefer@users.noreply.github.com>
Renamed to |
|
@copilot Be sure to document this feature in docs |
- Added project command documentation to CLI reference - Updated tokens reference to mention project new command - Included usage examples and token requirements - Cross-referenced with tokens documentation Addresses feedback from @mnkiefer Co-authored-by: mnkiefer <8320933+mnkiefer@users.noreply.github.com>
Added comprehensive documentation in commit c98a58c: CLI Reference (setup/cli.md):
Tokens Reference (reference/tokens.md):
|
Add
projectcommand to create GitHub ProjectsAdds
gh aw project newcommand to create GitHub Projects V2 owned by users or organizations. Replaces project creation functionality removed with campaign command in #12638.Command Structure
--owner @mefor user-owned projects--owner orgnamefor organization projects--linkoptional, links project to repository (renamed from--repofor clarity)Implementation
createProjectV2mutation withlinkProjectV2ToRepositoryfor repo linkingescapeGraphQLString()to prevent injectionprojectscope; fine-grained: Organization→Projects RW), surfaces permission errors with actionable guidanceworkflow.RunGH()for API calls, console formatting for output, follows existing CLI command structureToken Requirements
Default
GITHUB_TOKENlacks Projects V2 permissions. Users must configure PAT viaGH_AW_PROJECT_GITHUB_TOKENor gh CLI auth. Error messages include setup instructions.Documentation
Comprehensive documentation added:
gh aw project newwith examples and token requirementsGH_AW_PROJECT_GITHUB_TOKENsectionExample
💡 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.