Skip to content

Add 'changes' and remove 'action' field from the Commit API payload - #81

Merged
piotrbulinski merged 2 commits into
mainfrom
add-changes-to-commit-method
Apr 24, 2026
Merged

Add 'changes' and remove 'action' field from the Commit API payload#81
piotrbulinski merged 2 commits into
mainfrom
add-changes-to-commit-method

Conversation

@piotrbulinski

Copy link
Copy Markdown
Contributor

This pull request updates the commit logic to allow specifying which changes are included in a commit, offering more granular control over the commit process. The main changes involve updating the CommitRequest structure and the CommitConfiguration method.

Enhancements to commit functionality:

  • Removed the Action field from the CommitRequest struct and the associated constant, simplifying the request structure.
  • Added a Changes field to the CommitRequest struct, allowing a list of Change objects (by SHA) to be included in a commit.
  • Modified the CommitConfiguration method to accept a variadic list of Change arguments, which are added to the request if provided.

@piotrbulinski
piotrbulinski force-pushed the add-changes-to-commit-method branch from ebdae65 to 81b89a5 Compare April 24, 2026 09:42
@piotrbulinski
piotrbulinski merged commit 04c5435 into main Apr 24, 2026
6 checks passed
@piotrbulinski
piotrbulinski deleted the add-changes-to-commit-method branch April 24, 2026 10:01
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