@@ -56,18 +56,18 @@ async function addReviewers(ghClient, issueNum, reviewers) {
5656 owner: github.context.repo.owner,
5757 repo: github.context.repo.repo,
5858 pull_number: issueNum,
59- reviewers: reviewers
59+ reviewers: reviewers,
6060 });
6161}
6262function readComponentOwners(configPath) {
63- const componentOwners = yaml.load(fs.readFileSync(configPath, ' utf8' ));
63+ const componentOwners = yaml.load(fs.readFileSync(configPath, " utf8" ));
6464 return componentOwners;
6565}
6666async function main() {
6767 try {
68- const token = "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"; // core.getInput("repo-token", { required: true });
69- const configPath = "/home/naren/Developer/py/pytorch_org/tensorrt/.github/code-owners.yml"; // core.getInput("config-path", { required: true });
70- const issueNum = 1069; // getIssueNum();
68+ const token = core.getInput("repo-token", { required: true });
69+ const configPath = core.getInput("config-path", { required: true });
70+ const issueNum = getIssueNum();
7171 if (!issueNum) {
7272 console.log("Could not retrive issue number from context, exiting");
7373 return;
@@ -104,7 +104,7 @@ async function main() {
104104 console.log(assignees);
105105 }
106106 }
107- assignees = assignees.filter(i => { var _a; return i !== ((_a = issue.user) === null || _a === void 0 ? void 0 : _a.login); });
107+ assignees = assignees.filter((i) => { var _a; return i !== ((_a = issue.user) === null || _a === void 0 ? void 0 : _a.login); });
108108 if (assignees.length > 0) {
109109 if (!issue.pull_request) {
110110 core.debug(`Assigning ${assignees} to issue #${issueNum}`);
0 commit comments