@@ -22,13 +22,23 @@ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (
2222}) : function(o, v) {
2323 o["default"] = v;
2424});
25- var __importStar = (this && this.__importStar) || function (mod) {
26- if (mod && mod.__esModule) return mod;
27- var result = {};
28- if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
29- __setModuleDefault(result, mod);
30- return result;
31- };
25+ var __importStar = (this && this.__importStar) || (function () {
26+ var ownKeys = function(o) {
27+ ownKeys = Object.getOwnPropertyNames || function (o) {
28+ var ar = [];
29+ for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
30+ return ar;
31+ };
32+ return ownKeys(o);
33+ };
34+ return function (mod) {
35+ if (mod && mod.__esModule) return mod;
36+ var result = {};
37+ if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
38+ __setModuleDefault(result, mod);
39+ return result;
40+ };
41+ })();
3242var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
3343 function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
3444 return new (P || (P = Promise))(function (resolve, reject) {
@@ -46,7 +56,7 @@ var __asyncValues = (this && this.__asyncValues) || function (o) {
4656 function settle(resolve, reject, d, v) { Promise.resolve(v).then(function(v) { resolve({ value: v, done: d }); }, reject); }
4757};
4858Object.defineProperty(exports, "__esModule", ({ value: true }));
49- exports.createOrUpdateCommitComment = void 0 ;
59+ exports.createOrUpdateCommitComment = createOrUpdateCommitComment ;
5060const core = __importStar(__nccwpck_require__(7484));
5161const github = __importStar(__nccwpck_require__(3228));
5262const utils = __importStar(__nccwpck_require__(9277));
@@ -198,30 +208,25 @@ function getAuthenticatedUser(octokit) {
198208 });
199209}
200210function getCommentReactionsForUser(octokit, owner, repo, commentId, user) {
201- var _a, e_1, _b, _c;
202211 return __awaiter(this, void 0, void 0, function* () {
212+ var _a, e_1, _b, _c;
203213 const userReactions = [];
204214 try {
205215 for (var _d = true, _e = __asyncValues(octokit.paginate.iterator(octokit.rest.reactions.listForCommitComment, {
206216 owner,
207217 repo,
208218 comment_id: commentId,
209219 per_page: 100
210- })), _f; _f = yield _e.next(), _a = _f.done, !_a;) {
220+ })), _f; _f = yield _e.next(), _a = _f.done, !_a; _d = true ) {
211221 _c = _f.value;
212222 _d = false;
213- try {
214- const { data: reactions } = _c;
215- const filteredReactions = reactions
216- .filter(reaction => reaction.user.login === user)
217- .map(reaction => {
218- return { id: reaction.id, content: reaction.content };
219- });
220- userReactions.push(...filteredReactions);
221- }
222- finally {
223- _d = true;
224- }
223+ const { data: reactions } = _c;
224+ const filteredReactions = reactions
225+ .filter(reaction => reaction.user.login === user)
226+ .map(reaction => {
227+ return { id: reaction.id, content: reaction.content };
228+ });
229+ userReactions.push(...filteredReactions);
225230 }
226231 }
227232 catch (e_1_1) { e_1 = { error: e_1_1 }; }
@@ -256,7 +261,6 @@ function createOrUpdateCommitComment(inputs, body) {
256261 }
257262 });
258263}
259- exports.createOrUpdateCommitComment = createOrUpdateCommitComment;
260264
261265
262266/***/ }),
@@ -282,13 +286,23 @@ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (
282286}) : function(o, v) {
283287 o["default"] = v;
284288});
285- var __importStar = (this && this.__importStar) || function (mod) {
286- if (mod && mod.__esModule) return mod;
287- var result = {};
288- if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
289- __setModuleDefault(result, mod);
290- return result;
291- };
289+ var __importStar = (this && this.__importStar) || (function () {
290+ var ownKeys = function(o) {
291+ ownKeys = Object.getOwnPropertyNames || function (o) {
292+ var ar = [];
293+ for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
294+ return ar;
295+ };
296+ return ownKeys(o);
297+ };
298+ return function (mod) {
299+ if (mod && mod.__esModule) return mod;
300+ var result = {};
301+ if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
302+ __setModuleDefault(result, mod);
303+ return result;
304+ };
305+ })();
292306var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
293307 function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
294308 return new (P || (P = Promise))(function (resolve, reject) {
@@ -414,33 +428,42 @@ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (
414428}) : function(o, v) {
415429 o["default"] = v;
416430});
417- var __importStar = (this && this.__importStar) || function (mod) {
418- if (mod && mod.__esModule) return mod;
419- var result = {};
420- if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
421- __setModuleDefault(result, mod);
422- return result;
423- };
431+ var __importStar = (this && this.__importStar) || (function () {
432+ var ownKeys = function(o) {
433+ ownKeys = Object.getOwnPropertyNames || function (o) {
434+ var ar = [];
435+ for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
436+ return ar;
437+ };
438+ return ownKeys(o);
439+ };
440+ return function (mod) {
441+ if (mod && mod.__esModule) return mod;
442+ var result = {};
443+ if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
444+ __setModuleDefault(result, mod);
445+ return result;
446+ };
447+ })();
424448Object.defineProperty(exports, "__esModule", ({ value: true }));
425- exports.getErrorMessage = exports.getStringAsArray = exports.getInputAsArray = void 0;
449+ exports.getInputAsArray = getInputAsArray;
450+ exports.getStringAsArray = getStringAsArray;
451+ exports.getErrorMessage = getErrorMessage;
426452const core = __importStar(__nccwpck_require__(7484));
427453function getInputAsArray(name, options) {
428454 return getStringAsArray(core.getInput(name, options));
429455}
430- exports.getInputAsArray = getInputAsArray;
431456function getStringAsArray(str) {
432457 return str
433458 .split(/[\n,]+/)
434459 .map(s => s.trim())
435460 .filter(x => x !== '');
436461}
437- exports.getStringAsArray = getStringAsArray;
438462function getErrorMessage(error) {
439463 if (error instanceof Error)
440464 return error.message;
441465 return String(error);
442466}
443- exports.getErrorMessage = getErrorMessage;
444467
445468
446469/***/ }),
0 commit comments