Skip to content

Conversation

Copy link
Contributor

Copilot AI commented Jan 25, 2026

Adds --project flag to gh aw campaign new for automated GitHub Project creation with standard campaign views and fields. Provides direct CLI alternative to the issue-based create-agentic-campaign workflow.

Changes

  • New functionality: pkg/campaign/project.go

    • CreateCampaignProject() - orchestrates project creation via GitHub CLI
    • UpdateSpecWithProjectURL() - injects project URL into campaign spec
    • Creates 3 views (Progress Board, Task Tracker, Campaign Roadmap)
    • Creates 6 fields (Campaign Id, Worker Workflow, Priority, Size, Start/End Date)
  • Command enhancement: pkg/campaign/command.go

    • Added --project flag to campaign new subcommand
    • Added --owner flag (required with --project, accepts @me or org name)
    • Added --verbose flag for detailed output
  • Tests: pkg/campaign/project_test.go

    • URL replacement logic
    • Error handling for missing files
    • GitHub CLI availability check

Usage

# Create campaign with project board (personal)
gh aw campaign new security-audit --project --owner @me

# Create for organization
gh aw campaign new security-q1-2025 --project --owner myorg

The command requires GitHub CLI with project scope. Project creation uses the same field/view structure as the automated campaign generator workflow.

Original prompt

Add a cmd line option to create a campaign project board (with view and fields). Also offer an option comparative to the one we have currently on issue submission with label create-agentic-campaign. Look at custom agent create-agentic-workflow and create a similar experience for campaigns.


✨ Let Copilot coding agent set things up for you — coding agent works faster and does higher quality work when set up for your repo.

Copilot AI and others added 2 commits January 25, 2026 17:36
Co-authored-by: mnkiefer <8320933+mnkiefer@users.noreply.github.com>
Co-authored-by: mnkiefer <8320933+mnkiefer@users.noreply.github.com>
@mnkiefer mnkiefer marked this pull request as ready for review January 25, 2026 17:42
Copilot AI changed the title [WIP] Add cmd line option to create a campaign project board Add CLI command to create campaign project boards Jan 25, 2026
Copilot AI requested a review from mnkiefer January 25, 2026 17:42
@mnkiefer mnkiefer merged commit 1fe0799 into main Jan 25, 2026
86 checks passed
@mnkiefer mnkiefer deleted the copilot/add-campaign-project-board-option branch January 25, 2026 17:48
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.

2 participants