Skip to content

✨ push: add support for pushing draft pull requests#167

Merged
Ongy merged 1 commit into
mainfrom
feat-push-draft
Jun 16, 2026
Merged

✨ push: add support for pushing draft pull requests#167
Ongy merged 1 commit into
mainfrom
feat-push-draft

Conversation

@Tobias-Pe

@Tobias-Pe Tobias-Pe commented Jun 16, 2026

Copy link
Copy Markdown
Collaborator

Introduce --draft CLI flag and spr.push.draft configuration to allow pushing pull requests in draft state.

Why

Support pushing draft pull requests using the --draft CLI flag or spr.push.draft configuration.

The code changes include:

  • Add draft field to PushConfig and default it to false.
  • Add draft field to PullRequest model and update GraphQL query to fetch isDraft.
  • Update real and fakes GitHub adapters to support draft status.
  • Add draft option to PushOptions CLI options.
  • Update push command to resolve draft status and pass it to new_pull_request.
  • Add unit and integration tests for CLI parsing and push draft behavior.

go/traj/47f0453c-c152-4121-90cc-ac82c8774421
TESTED=manually
RELNOTES=NONE
TAG=agy
CONV=4ef8c914-cbfd-45b5-a0fd-661a9cba8365

Introduce --draft CLI flag and spr.push.draft configuration to allow pushing pull requests in draft state.

#### Why

Support pushing draft pull requests using the --draft CLI flag or spr.push.draft configuration.

#### The code changes include:

- Add `draft` field to `PushConfig` and default it to `false`.
- Add `draft` field to `PullRequest` model and update GraphQL query to fetch `isDraft`.
- Update `real` and `fakes` GitHub adapters to support `draft` status.
- Add `draft` option to `PushOptions` CLI options.
- Update `push` command to resolve draft status and pass it to `new_pull_request`.
- Add unit and integration tests for CLI parsing and push draft behavior.

go/traj/47f0453c-c152-4121-90cc-ac82c8774421
TESTED=UNITTESTS
RELNOTES=NONE
TAG=agy
CONV=4ef8c914-cbfd-45b5-a0fd-661a9cba8365
@Tobias-Pe Tobias-Pe self-assigned this Jun 16, 2026
@Tobias-Pe
Tobias-Pe requested a review from Ongy June 16, 2026 12:39
@Tobias-Pe
Tobias-Pe marked this pull request as ready for review June 16, 2026 13:46
@Ongy
Ongy merged commit ee3f1e8 into main Jun 16, 2026
1 check passed
@Ongy
Ongy deleted the feat-push-draft branch June 16, 2026 14:30
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