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:
Jakub Sokołowski 2022-09-30 11:35:36 +02:00
parent 9b726b326b
commit 2441f3c6cc
No known key found for this signature in database
GPG Key ID: 09AA5403E54D9931
1 changed files with 1 additions and 1 deletions

View File

@ -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