Skip to content

Allow add-wizard to write workflows without creating a PR - #53643

Merged
mnkiefer merged 10 commits into
mainfrom
copilot/add-wizard-workflows-without-pr
Aug 18, 2026
Merged

Allow add-wizard to write workflows without creating a PR#53643
mnkiefer merged 10 commits into
mainfrom
copilot/add-wizard-workflows-without-pr

Conversation

CopilotAI commented Aug 18, 2026

Copy link
Copy Markdown
Contributor

gh aw add-wizard previously treated declining PR creation as cancellation, so no workflow files were written locally. Users can now install workflow bundles locally without opening a pull request.

  • Local write path

    • Changed the final add-wizard prompt to choose between PR creation and local file writes.
    • Writes workflow files locally when PR creation is declined.
    • Allows local writes in a dirty worktree.
  • PR path

    • Keeps clean-worktree validation only when creating a PR.
    • Collects repository secrets only after the user chooses the PR path.
  • Follow-up behavior

    • Skips remote-only steps for local writes, including secret upload, status polling, and dispatch.
    • Prints bootstrap TODOs for local installs when a package declares bootstrap actions.

Example prompt behavior:

Do you want to create a pull request with these changes?
Yes, create pull request
No, write files locally

CopilotAIand others added 6 commits August 18, 2026 11:09
Co-authored-by: mnkiefer <8320933+mnkiefer@users.noreply.github.com>
Co-authored-by: mnkiefer <8320933+mnkiefer@users.noreply.github.com>
Co-authored-by: mnkiefer <8320933+mnkiefer@users.noreply.github.com>
Co-authored-by: mnkiefer <8320933+mnkiefer@users.noreply.github.com>
Co-authored-by: mnkiefer <8320933+mnkiefer@users.noreply.github.com>
Co-authored-by: mnkiefer <8320933+mnkiefer@users.noreply.github.com>
CopilotAI changed the title [WIP] Add wizard support for adding workflows without requiring a PRAllow add-wizard to write workflows without creating a PRAug 18, 2026
CopilotAI requested a review from mnkieferAugust 18, 2026 11:24
@github-actions

Copy link
Copy Markdown
Contributor

PR Triage

Category: feature | Risk: medium | Priority: low (score 30)

  • Impact 20/50 — allows add-wizard to write workflows without a PR, moderate scope
  • Urgency 5/30 — draft, no reviews yet, CI pending
  • Quality 5/20 — still draft/WIP

Recommended action: defer until ready for review (undraft)

Generated by 🔧 PR Triage Agent · auto · 53.1 AIC · ⌖ 2.52 AIC · ⊞ 8.3K ·

@mnkiefer

Copy link
Copy Markdown
Collaborator

@pelikhan Can we allow for the behavior to still add the files but not commit/push to PR? This would also be more consistent with some of the other CLI behaviors we already have.

@pelikhan

Copy link
Copy Markdown
Collaborator

LGTM

@mnkiefer
mnkiefer marked this pull request as ready for review August 18, 2026 13:27
CopilotAI balanced review requested due to automatic review settings August 18, 2026 13:27

CopilotAI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Adds a local-write path to gh aw add-wizard when users decline PR creation.

Changes:

  • Adds PR-versus-local confirmation.
  • Defers PR-only follow-up operations.
  • Adds local-write coverage and updates prompt text.
Show a summary per file
FileDescription
pkg/cli/add_wizard_tuistory_integration_test.goUpdates expected prompt text.
pkg/cli/add_wizard_command.goDocuments local workflow writing.
pkg/cli/add_interactive_orchestrator.goBranches orchestration between local and PR paths.
pkg/cli/add_interactive_orchestrator_test.goTests local writing in a dirty worktree.
pkg/cli/add_interactive_git.goMakes PR creation optional and relocates cleanliness validation.
pkg/cli/add_interactive_engine.goUpdates renamed-function reference.

Review details

💡 Add a code-review agent skill for context-aware, tailored reviews. Learn more in the docs.

  • Files reviewed: 6/6 changed files
  • Comments generated: 4
  • Review effort level: Balanced

Comment threadpkg/cli/add_interactive_orchestrator.go Outdated
Comment threadpkg/cli/add_interactive_orchestrator.go Outdated
Comment threadpkg/cli/add_interactive_orchestrator_test.go
Comment threadpkg/cli/add_interactive_git.go Outdated
@mnkiefer

Copy link
Copy Markdown
Collaborator

@copilot Please address the remaining merge blockers on this PR, then run the pr-finisher skill and report back with validation results and any remaining blockers.

CopilotAIand others added 2 commits August 18, 2026 14:10
…dering
Co-authored-by: mnkiefer <8320933+mnkiefer@users.noreply.github.com>
Co-authored-by: mnkiefer <8320933+mnkiefer@users.noreply.github.com>
@mnkiefer
mnkiefer merged commit 8ae9c54 into mainAug 18, 2026
@mnkiefer
mnkiefer deleted the copilot/add-wizard-workflows-without-pr branch August 18, 2026 16:45
@github-actions

Copy link
Copy Markdown
Contributor

🎉 This pull request is included in a new release.

Release: v0.87.1

Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add wizard should support adding workflows without requiring a PR

4 participants

@mnkiefer@pelikhan