Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit 20a9ed0

Browse files
committedFeb 25, 2020
fix: branch is undefined
1 parent c0cd146 commit 20a9ed0

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed
 

‎index.js

+4-1
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,10 @@ async function run() {
5555
} else {
5656
core.info("comment : disabled");
5757
}
58-
const pull = await octokit.pulls.get(context.issue.number)
58+
const pull = await octokit.pulls.get({
59+
...context.repo,
60+
pull_number: context.payload.pull_request.number
61+
})
5962
core.info(pull)
6063
core.info(`ref : ${context.payload.pull_request.html_url}`)
6164
}

0 commit comments

Comments
 (0)
Please sign in to comment.