mirror of
https://code.forgejo.org/actions/setup-node.git
synced 2025-06-03 11:11:12 +00:00
.
This commit is contained in:
parent
beb1329f9f
commit
2b95e76931
7736 changed files with 1874747 additions and 51184 deletions
node_modules/@actions/github/lib
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}` }
|
||||
});
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue