Skip to main content
The Deno 2 Release Candidate is here
Learn more
Go to Latest
variable addCommitMutation
import { addCommitMutation } from "https://deno.land/x/kd_clients@v1.0.0-preview.12/core/GraphQl/Mutations/AddCommitMutation.ts";

Creates a GraphQL mutation to add a commit to a branch that matches the given branchName, in a repository with a name that matches the given repoName, and that is owned by a GitHub user with a login name that matches the given ownerName.

type

(
ownerName: string,
repoName: string,
branchName: string,
branchHeadOid: string,
commitMessage: string,
) => string