Skip to content

Commit 987b120

Browse files
authored
Merge pull request #39593 from Expensify/beaman-fixGithubCommenting
[NO QA] Fix GitHub action commenting
2 parents 6dc4b64 + ce26492 commit 987b120

File tree

4 files changed

+30
-7
lines changed

4 files changed

+30
-7
lines changed

.github/actions/javascript/authorChecklist/categories/newComponentCategory.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
import {parse} from '@babel/parser';
33
import traverse from '@babel/traverse';
44
import CONST from '@github/libs/CONST';

.github/actions/javascript/authorChecklist/index.js

Lines changed: 25 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16738,12 +16738,35 @@ exports["default"] = generateDynamicChecksAndCheckForCompletion;
1673816738

1673916739
"use strict";
1674016740

16741+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
16742+
if (k2 === undefined) k2 = k;
16743+
var desc = Object.getOwnPropertyDescriptor(m, k);
16744+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
16745+
desc = { enumerable: true, get: function() { return m[k]; } };
16746+
}
16747+
Object.defineProperty(o, k2, desc);
16748+
}) : (function(o, m, k, k2) {
16749+
if (k2 === undefined) k2 = k;
16750+
o[k2] = m[k];
16751+
}));
16752+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
16753+
Object.defineProperty(o, "default", { enumerable: true, value: v });
16754+
}) : function(o, v) {
16755+
o["default"] = v;
16756+
});
16757+
var __importStar = (this && this.__importStar) || function (mod) {
16758+
if (mod && mod.__esModule) return mod;
16759+
var result = {};
16760+
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
16761+
__setModuleDefault(result, mod);
16762+
return result;
16763+
};
1674116764
var __importDefault = (this && this.__importDefault) || function (mod) {
1674216765
return (mod && mod.__esModule) ? mod : { "default": mod };
1674316766
};
1674416767
Object.defineProperty(exports, "__esModule", ({ value: true }));
1674516768
exports.detectReactComponent = void 0;
16746-
const github_1 = __importDefault(__nccwpck_require__(5438));
16769+
const github = __importStar(__nccwpck_require__(5438));
1674716770
const parser_1 = __nccwpck_require__(5026);
1674816771
const traverse_1 = __importDefault(__nccwpck_require__(1380));
1674916772
const CONST_1 = __importDefault(__nccwpck_require__(9873));
@@ -16810,7 +16833,7 @@ async function detectReactComponentInFile(filename) {
1681016833
owner: CONST_1.default.GITHUB_OWNER,
1681116834
repo: CONST_1.default.APP_REPO,
1681216835
path: filename,
16813-
ref: github_1.default.context.payload.pull_request?.head.ref,
16836+
ref: github.context.payload.pull_request?.head.ref,
1681416837
};
1681516838
try {
1681616839
const { data } = await GithubUtils_1.default.octokit.repos.getContent(params);

.github/actions/javascript/getDeployPullRequestList/getDeployPullRequestList.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import * as core from '@actions/core';
2-
import github from '@actions/github';
2+
import * as github from '@actions/github';
33
import {getJSONInput} from '@github/libs/ActionUtils';
44
import GithubUtils from '@github/libs/GithubUtils';
55
import GitUtils from '@github/libs/GitUtils';

.github/actions/javascript/getDeployPullRequestList/index.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11498,7 +11498,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
1149811498
};
1149911499
Object.defineProperty(exports, "__esModule", ({ value: true }));
1150011500
const core = __importStar(__nccwpck_require__(2186));
11501-
const github_1 = __importDefault(__nccwpck_require__(5438));
11501+
const github = __importStar(__nccwpck_require__(5438));
1150211502
const ActionUtils_1 = __nccwpck_require__(6981);
1150311503
const GithubUtils_1 = __importDefault(__nccwpck_require__(9296));
1150411504
const GitUtils_1 = __importDefault(__nccwpck_require__(1547));
@@ -11509,8 +11509,8 @@ async function run() {
1150911509
const deployEnv = isProductionDeploy ? 'production' : 'staging';
1151011510
console.log(`Looking for PRs deployed to ${deployEnv} in ${inputTag}...`);
1151111511
const completedDeploys = (await GithubUtils_1.default.octokit.actions.listWorkflowRuns({
11512-
owner: github_1.default.context.repo.owner,
11513-
repo: github_1.default.context.repo.repo,
11512+
owner: github.context.repo.owner,
11513+
repo: github.context.repo.repo,
1151411514
// eslint-disable-next-line @typescript-eslint/naming-convention
1151511515
workflow_id: 'platformDeploy.yml',
1151611516
status: 'completed',

0 commit comments

Comments
 (0)