Skip to content

Add API support for creating a PR with an empty commit - #180

Merged
bluekeyes merged 2 commits into
bluekeyes:masterfrom
nmiyake:nmiyake/add-empty-commit-support
Sep 30, 2026
Merged

bluekeyes merged 2 commits into
bluekeyes:masterfrom
nmiyake:nmiyake/add-empty-commit-support

Conversation

@nmiyake

@nmiyake nmiyake commented Sep 30, 2026 •

Copy link
Copy Markdown
Contributor

Adds a new "SetAllowEmptyCommits" option that, when provided to the Applier with a value of "true", makes the Applier accept empty commits.

Empty commits are valid and can be expressed as patches, so the new behavior is conceptually consistent. The option approach is taken to preserve backwards compatibility for existing behavior.

Note that this PR only adds support for this to the API: this option/functionality is not exposed in the CLI.

Adds a new "SetAllowEmptyCommits" option that, when provided to
the Applier with a value of "true", makes the Applier accept
empty commits.

Empty commits are valid and can be expressed as patches, so the
new behavior is conceptually consistent. The option approach is
taken to preserve backwards compatibility for existing behavior.
@nmiyake nmiyake changed the title Add support for empty commits Add API support for creating a PR with an empty commit Sep 30, 2026
@bluekeyes
bluekeyes merged commit 36d4e57 into bluekeyes:master Sep 30, 2026
1 check 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