@@ -56,18 +56,18 @@ async function addReviewers(ghClient, issueNum, reviewers) {
56
56
owner: github.context.repo.owner,
57
57
repo: github.context.repo.repo,
58
58
pull_number: issueNum,
59
- reviewers: reviewers
59
+ reviewers: reviewers,
60
60
});
61
61
}
62
62
function readComponentOwners(configPath) {
63
- const componentOwners = yaml.load(fs.readFileSync(configPath, ' utf8' ));
63
+ const componentOwners = yaml.load(fs.readFileSync(configPath, " utf8" ));
64
64
return componentOwners;
65
65
}
66
66
async function main() {
67
67
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();
71
71
if (!issueNum) {
72
72
console.log("Could not retrive issue number from context, exiting");
73
73
return;
@@ -104,7 +104,7 @@ async function main() {
104
104
console.log(assignees);
105
105
}
106
106
}
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); });
108
108
if (assignees.length > 0) {
109
109
if (!issue.pull_request) {
110
110
core.debug(`Assigning ${assignees} to issue #${issueNum}`);
0 commit comments