Skip to content

Instantly share code, notes, and snippets.

View freegroup's full-sized avatar

man from earth freegroup

  • -free-
View GitHub Profile
@lilmuckers
lilmuckers / commit.js
Last active February 10, 2023 08:07
A node.js script that utilises the githubber node.js GitHub API integration module to commit changes to a repository
//set up the object with the api details
function GitHubCommit(api, owner, repo, ref)
{
this.api = api;
this.repo = {
owner: owner,
repo: repo,
ref: ref
}
}
@StephanHoyer
StephanHoyer / github.js
Last active February 13, 2024 14:19
Commiting multiple files to github over API
'use strict';
var Octokat = require('octokat');
var extend = require('lodash/object/assign');
var defaults = {
branchName: 'master',
token: '',
username: '',
reponame: ''