Skip to content

Instantly share code, notes, and snippets.

@sondt2709
sondt2709 / octokit-push-commit.js
Created May 11, 2021 18:37
Octokit push commit
// Source: https://dev.to/lucis/how-to-push-files-programatically-to-a-repository-using-octokit-with-typescript-1nj0
const { Octokit } = require('@octokit/rest')
const glob = require('globby')
const path = require('path')
const { readFile } = require('fs-extra')
// org or owner
const ORGANIZATION = process.env.ORGANIZATION