Skip to main content
Deno 2 is finally here 🎉️
Learn more
Module

x/kd_clients/mod.ts>RepoClient#createFile

Various HTTP clients for miscellaneous use.
Latest
method RepoClient.prototype.createFile
import { RepoClient } from "https://deno.land/x/kd_clients@v1.0.0-preview.14/mod.ts";

Creates a new file in a repository with a name that matches the given RepoClient.repoName, on a branch that matches the given branchName, at the given relativeFilePath, and with the given fileContent, with the given commitMessage.

Parameters

branchName: string

The name of the repository.

relativeFilePath: string

The name of the branch.

fileContent: string

The relative path of where to add the file.

commitMessage: string

The content of the file.

Returns

Promise<void>