Add project command to create GitHub Projects V2#12697
Merged
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
AI
changed the title
[WIP] Revive command with --project for GitHub Projects
Add project command to create GitHub Projects V2
Jan 30, 2026
Contributor
|
@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>
Contributor
Author
Renamed to |
Contributor
|
@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>
Contributor
Author
Added comprehensive documentation in commit c98a58c: CLI Reference (setup/cli.md):
Tokens Reference (reference/tokens.md):
|
mnkiefer
approved these changes
Jan 30, 2026
7 tasks
2 tasks
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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.