Skip to content

Add --workflow option to init for post-bootstrap workflow execution#2825

Draft
Copilot wants to merge 3 commits into
mainfrom
copilot/allow-post-init-workflow-execution
Draft

Add --workflow option to init for post-bootstrap workflow execution#2825
Copilot wants to merge 3 commits into
mainfrom
copilot/allow-post-init-workflow-execution

Conversation

Copy link
Copy Markdown
Contributor

Copilot AI commented Jun 2, 2026

Adds a --workflow flag to specify init that automatically runs a specified workflow YAML file after project bootstrapping completes.

specify init . --integration copilot --workflow myinit.yml
specify init my-project --integration claude --workflow /path/to/setup.yml

Changes

  • src/specify_cli/commands/init.py: Added --workflow parameter. After successful init, resolves the workflow file path, loads/validates/executes it via WorkflowEngine against the initialized project root. Exits non-zero on workflow failure.
  • tests/test_init_workflow.py: Tests for missing file error, successful execution (shell step creates marker file), failing workflow exit code, and backward compatibility without the flag.

Copilot AI requested review from Copilot and removed request for Copilot June 2, 2026 22:59
Copilot AI linked an issue Jun 2, 2026 that may be closed by this pull request
Copilot AI requested review from Copilot and removed request for Copilot June 2, 2026 23:03
Copilot AI requested review from Copilot and removed request for Copilot June 2, 2026 23:05
Copilot AI changed the title [WIP] Add support for --workflow input-file.yml in initialization Add --workflow option to init for post-bootstrap workflow execution Jun 2, 2026
Copilot finished work on behalf of mnriem June 2, 2026 23:05
Copilot AI requested a review from mnriem June 2, 2026 23:05
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.

Allow a post init workflow execution

2 participants