Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 4 additions & 3 deletions commit.go
Original file line number Diff line number Diff line change
Expand Up @@ -65,12 +65,13 @@ type CommitRequest struct {
// Message describing changes in the commit.
Message string `json:"message"`

// Changes is the list of changes' SHA that are part of the commit.
Changes []Change `json:"changes,omitempty"`
// Changes is the list of change requests to be committed.
// If not provided, all uncommitted changes will be included in the commit.
Changes []ChangeRequest `json:"changes,omitempty"`
}

// CommitConfiguration commits uncommitted changes with provided message.
func (cli *Client) CommitConfiguration(ctx context.Context, message string, changes ...Change) (*Commit, error) {
func (cli *Client) CommitConfiguration(ctx context.Context, message string, changes ...ChangeRequest) (*Commit, error) {
const path = "/api/v2/commit"

request := CommitRequest{
Expand Down
Loading