avoid deprecation warnings about listForRepo
``` DEPRECATED (@octokit/rest): `issues.getForRepo()` is deprecated, use `issues.listForRepo()` ``` Signed-off-by: Jakub Sokołowski <jakub@status.im>
This commit is contained in:
parent
9b726b326b
commit
2441f3c6cc
|
@ -54,7 +54,7 @@ async function greetNewContributor (context, robot) {
|
||||||
robot.log(`${botName} - Handling Pull Request #${prInfo.number} on repo ${repoInfo.owner}/${repoInfo.repo}`)
|
robot.log(`${botName} - Handling Pull Request #${prInfo.number} on repo ${repoInfo.owner}/${repoInfo.repo}`)
|
||||||
|
|
||||||
try {
|
try {
|
||||||
const ghissuesPayload = await github.issues.getForRepo({
|
const ghissuesPayload = await github.issues.listForRepo({
|
||||||
...repoInfo,
|
...repoInfo,
|
||||||
state: 'all',
|
state: 'all',
|
||||||
creator: payload.pull_request.user.login
|
creator: payload.pull_request.user.login
|
||||||
|
|
Loading…
Reference in New Issue