ci: use latest octokit API inside close stale theme PRs workflow (#3213)

This commit is contained in:
Alexandr Garbuzov 2023-09-11 22:57:08 +03:00 committed by GitHub
parent d6852d932b
commit def5c9c997
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -156,13 +156,13 @@ const run = async () => {
for (const prNumber of staleThemePRsNumbers) {
debug(`Closing #${prNumber} because it is stale...`);
if (!dryRun) {
await octokit.issues.createComment({
await octokit.rest.issues.createComment({
owner,
repo,
issue_number: prNumber,
body: CLOSING_COMMENT,
});
await octokit.pulls.update({
await octokit.rest.pulls.update({
owner,
repo,
pull_number: prNumber,