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