Skip to content

Commit 31eae32

Browse files
author
omgitsbillryan
committed
build the dang thing
1 parent 01bedb0 commit 31eae32

1 file changed

Lines changed: 7 additions & 3 deletions

File tree

dist/index.js

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,13 +21,14 @@ async function run() {
2121
, parserSeparator = getRequiredInputValue('separator')
2222
, parserMarkerStart = getRequiredInputValue('label_marker_start')
2323
, parserMarkerEnd = getRequiredInputValue('label_marker_end')
24+
, repository = getRequiredInputValue('repository')
2425
;
2526

2627
const issueUtil = new IssueUtil(githubToken)
2728
, parser = new Parser(parserSeparator, parserMarkerStart, parserMarkerEnd)
2829
;
2930

30-
const issueBody = await issueUtil.getIssueBody(issueId);
31+
const issueBody = await issueUtil.getIssueBody(issueId, repository);
3132

3233
const parsed = parser.parse(issueBody);
3334
if (parsed !== undefined) {
@@ -5885,9 +5886,11 @@ module.exports = class IssueUtil {
58855886
this.octokit = github.getOctokit(token);
58865887
}
58875888

5888-
getIssueBody(id) {
5889+
getIssueBody(id, repository) {
5890+
const [owner, repo] = repository.split('/');
5891+
58895892
return this.octokit.issues.get({
5890-
...github.context.repo,
5893+
...{owner, repo},
58915894
issue_number: id
58925895
}).then(result => {
58935896
if (result.status !== 200) {
@@ -5900,6 +5903,7 @@ module.exports = class IssueUtil {
59005903
}
59015904
}
59025905

5906+
59035907
/***/ }),
59045908

59055909
/***/ 657:

0 commit comments

Comments
 (0)