Skip to content

Instantly share code, notes, and snippets.

View mvl's full-sized avatar

Michael VanLandingham mvl

View GitHub Profile
@mvl
mvl / GithubClient.gs
Last active December 30, 2021 12:13 — forked from pamelafox/GithubClient.gs
Google Apps Script for committing a file to Github Repo
/*
* GitHub Commits for Google App Script.
* Originally derived from https://gist.github.com/pamelafox/ea0474daa137f035b489bf78cc5797ea
* but now heavily modified.
* Provides functionality for much of the GitHub 'Git database' API:
* https://docs.github.com/en/rest/reference/git
*
* This allows some basic query and commit operations on a repository in GitHub without
* requiring a local git client. The functionality is currently limited to getting available
* branches, and the building blocks for constructing a commit. Since this is done via REST