Skip to content

Commit

Permalink
fix: update GitHub API calls
Browse files Browse the repository at this point in the history
  • Loading branch information
dessant committed Jul 9, 2021
1 parent ee062b1 commit a3ccc71
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -46,15 +46,15 @@ class App {

if (lockComment) {
core.debug(`Commenting (${type}: ${issue.issue_number})`);
await this.client.issues.createComment({
await this.client.rest.issues.createComment({
...issue,
body: lockComment
});
}

if (lockLabels) {
core.debug(`Labeling (${type}: ${issue.issue_number})`);
await this.client.issues.addLabels({
await this.client.rest.issues.addLabels({
...issue,
labels: lockLabels
});
Expand All @@ -73,7 +73,7 @@ class App {
} else {
params = issue;
}
await this.client.issues.lock(params);
await this.client.rest.issues.lock(params);

threads.push(issue);
}
Expand Down Expand Up @@ -109,7 +109,7 @@ class App {

core.debug(`Searching (${type}s)`);
const results = (
await this.client.search.issuesAndPullRequests({
await this.client.rest.search.issuesAndPullRequests({
q: query,
sort: 'updated',
order: 'desc',
Expand Down

0 comments on commit a3ccc71

Please sign in to comment.