avoid deprecation warnings about moveProjectCard

Otherwise we get:
```
DEPRECATED (@octokit/rest): `projects.moveProjectCard()` is deprecated, use `projects.moveCard()`
DEPRECATED (@octokit/rest): "id" parameter has been renamed to "card_id"
```

Signed-off-by: Jakub Sokołowski <jakub@status.im>
This commit is contained in:
Jakub Sokołowski 2022-09-30 11:22:21 +02:00
parent bf35bd6c28
commit 9f8282fe3d
No known key found for this signature in database
GPG Key ID: 09AA5403E54D9931
1 changed files with 1 additions and 1 deletions

View File

@ -159,7 +159,7 @@ async function assignPullRequestToCorrectColumn (context, robot, repo, pullReque
robot.log.info(`${botName} - Would have moved card ${existingGHCard.id} to ${dstColumn.name} for PR #${prInfo.number}`) robot.log.info(`${botName} - Would have moved card ${existingGHCard.id} to ${dstColumn.name} for PR #${prInfo.number}`)
} else { } else {
// Found in the source column, let's move it to the destination column // Found in the source column, let's move it to the destination column
await github.projects.moveProjectCard({id: existingGHCard.id, position: 'bottom', column_id: dstColumn.id}) await github.projects.moveCard({card_id: existingGHCard.id, position: 'bottom', column_id: dstColumn.id})
robot.log.info(`${botName} - Moved card ${existingGHCard.id} to ${dstColumn.name} for PR #${prInfo.number}`) robot.log.info(`${botName} - Moved card ${existingGHCard.id} to ${dstColumn.name} for PR #${prInfo.number}`)
} }