1.0.1 • Published 3 years ago

@r0bl0x10501050/nodegithub v1.0.1

Weekly downloads
-
License
ISC
Repository
-
Last release
3 years ago

Installation

// CommonJS compatible
const NodeGitHub = require('@r0bl0x10501050/nodegithub');
const gh = new NodeGitHub('username', 'repo', process.env.GH_TOKEN);

// ES6 compatible
import { NodeGitHub } from '@r0bl0x10501050/nodegithub';
const gh = new NodeGitHub('username', 'repo', process.env.GH_TOKEN);

Usage

gh.commit(branch: string, changes: Object, message: string)

branch - Branch name

changes - File changes in the form of {fileName: newContent}

message - Commit message :D

Credits

@r0bl0x10501050 - Lead Maintainer