Skip to content

[AISOS-2083] Forge: support draft pull requests from repository metadata#120

Merged
eshulman2 merged 3 commits into
forge-sdlc:mainfrom
forgeSmith-bot:forge/aisos-2083
Jul 12, 2026
Merged

[AISOS-2083] Forge: support draft pull requests from repository metadata#120
eshulman2 merged 3 commits into
forge-sdlc:mainfrom
forgeSmith-bot:forge/aisos-2083

Conversation

@forgeSmith-bot

@forgeSmith-bot forgeSmith-bot commented Jul 2, 2026

Copy link
Copy Markdown
Collaborator

This Pull Request implements task takeover for ticket [AISOS-2083].

Ticket Description

Problem Statement:
Forge currently opens generated GitHub pull requests as regular non-draft PRs. Some repositories need generated PRs to start as drafts so maintainers can inspect generated changes, adjust branch state, or decide when the PR is ready for formal review.

Proposed Solution/Approach:
Extend Forge's existing Jira repository metadata configuration with a per-repository boolean option that controls whether generated pull requests should be opened as drafts. Resolve the option when Forge creates a PR for that repository and pass GitHub's draft PR option when enabled. Preserve existing behavior when the option is omitted or false.

Acceptance Criteria:

  • Repository metadata supports a boolean option for opening generated PRs as drafts.

  • When enabled for a repo, Forge creates the initial GitHub PR as a draft.

  • When disabled or omitted, Forge creates a normal non-draft PR as it does today.

  • The option is documented in repository metadata configuration docs or examples.

  • Unit tests cover draft and non-draft PR creation behavior.

Forge and others added 3 commits July 12, 2026 15:50
Auto-committed by Forge container fallback.
… pull requests

Detailed description:
- Added comprehensive unit tests in tests/unit/workflow/nodes/test_pr_creation_draft.py to verify draft and non-draft PR creation behavior across JiraClient, GitHubClient, and the PR creation node.
- Updated mock configurations in existing test suites (test_code_review.py and test_pr_creation_pr_number.py) to include mock implementations of is_repo_draft.
- Expanded docs/reference/config.md to document the structured repository configuration object schema, illustrating how to enable draft PRs under the 'forge.repos' project property.

Closes: AISOS-2083
@eshulman2 eshulman2 merged commit c4d459b into forge-sdlc:main Jul 12, 2026
2 checks passed
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