Skip to main content
Using Deno in production at your company? Earn free Deno merch.
Give us feedback
Module

x/kd_clients/mod.ts>RepoClient#updateFile

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

Updates the content of a 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, with the given fileContent, and with the given commitMessage.

Parameters

branchName: string

The name of the branch.

relativeFilePath: string

The relative path of where to add the file.

fileContent: string

The content of the file.

commitMessage: string

The commit message.

Returns

Promise<void>