Creates a new commit in a repository.
func (
r *CommitService) New(ctx context.Context,
owner string,
repo string,
body CommitNewParams,
opts ...option.RequestOption) (res *CommitNewResponse,
err error
)Creates a new commit in a repository. Requires authentication and write access to the repository.
| Name | Type | Description |
|---|---|---|
ctx* | context.Context | |
owner* | string | |
repo* | string | |
body* | CommitNewParams | |
opts* | ...option.RequestOption |