Skip to content

Commit ed2fa9e

Browse files
committed
fix(app): update github imports
1 parent af57762 commit ed2fa9e

File tree

2 files changed

+23
-7
lines changed

2 files changed

+23
-7
lines changed

dist/index.js

Lines changed: 22 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,25 @@ const resolver_1 = __nccwpck_require__(7409);
5757

5858
"use strict";
5959

60+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
61+
if (k2 === undefined) k2 = k;
62+
Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
63+
}) : (function(o, m, k, k2) {
64+
if (k2 === undefined) k2 = k;
65+
o[k2] = m[k];
66+
}));
67+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
68+
Object.defineProperty(o, "default", { enumerable: true, value: v });
69+
}) : function(o, v) {
70+
o["default"] = v;
71+
});
72+
var __importStar = (this && this.__importStar) || function (mod) {
73+
if (mod && mod.__esModule) return mod;
74+
var result = {};
75+
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
76+
__setModuleDefault(result, mod);
77+
return result;
78+
};
6079
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
6180
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
6281
return new (P || (P = Promise))(function (resolve, reject) {
@@ -66,12 +85,9 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
6685
step((generator = generator.apply(thisArg, _arguments || [])).next());
6786
});
6887
};
69-
var __importDefault = (this && this.__importDefault) || function (mod) {
70-
return (mod && mod.__esModule) ? mod : { "default": mod };
71-
};
7288
Object.defineProperty(exports, "__esModule", ({ value: true }));
7389
exports.resolveRefs = void 0;
74-
const github_1 = __importDefault(__nccwpck_require__(5438));
90+
const github = __importStar(__nccwpck_require__(5438));
7591
const ISSUE_TYPES = ['issue_comment'];
7692
const getPrUrl = (context) => {
7793
if (ISSUE_TYPES.includes(context.eventName)) {
@@ -80,8 +96,8 @@ const getPrUrl = (context) => {
8096
throw new Error(`Unsupported event type: ${context.eventName}`);
8197
};
8298
const resolveRefs = (token) => __awaiter(void 0, void 0, void 0, function* () {
83-
const prUrl = getPrUrl(github_1.default.context);
84-
const octokit = github_1.default.getOctokit(token);
99+
const prUrl = getPrUrl(github.context);
100+
const octokit = github.getOctokit(token);
85101
const prDetails = yield octokit.request(`GET ${prUrl}`);
86102
const status = prDetails.status;
87103
const headRef = prDetails.data.head.ref;

src/resolver.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import github from '@actions/github';
1+
import * as github from '@actions/github';
22

33
const ISSUE_TYPES = ['issue_comment'];
44

0 commit comments

Comments
 (0)