UNPKG

github

Version:
24 lines (19 loc) 453 B
"use strict"; var Client = require("./../lib/index"); var testAuth = require("./../testAuth.json"); var github = new Client({ debug: true }); github.authenticate({ type: "oauth", token: testAuth["token"] }); github.gitdata.updateReference({ owner: "kaizensoze", repo: "test2", ref: "heads/master", sha: "81c559e2e8551982235bc86594cd86ffb135b053", // force: true }, function(err, res) { console.log(err, res); });