mirror of
https://github.com/actions/setup-node.git
synced 2025-12-17 19:01:41 +08:00
.
This commit is contained in:
4
node_modules/@actions/github/lib/github.js
generated
vendored
4
node_modules/@actions/github/lib/github.js
generated
vendored
@@ -18,8 +18,8 @@ const Context = __importStar(require("./context"));
|
||||
rest_1.default.prototype = new rest_1.default();
|
||||
exports.context = new Context.Context();
|
||||
class GitHub extends rest_1.default {
|
||||
constructor(token) {
|
||||
super({ auth: `token ${token}` });
|
||||
constructor(token, opts = {}) {
|
||||
super(Object.assign(Object.assign({}, opts), { auth: `token ${token}` }));
|
||||
this.graphql = graphql_1.defaults({
|
||||
headers: { authorization: `token ${token}` }
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user