Skip to content

Commit

Permalink
🐛 client.<rest call> -> client.rest.<rest call>
Browse files Browse the repository at this point in the history
  • Loading branch information
foosel committed Feb 14, 2022
1 parent 5bbb8eb commit 8feb75e
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion pr-validation/dist/index.js

Large diffs are not rendered by default.

8 changes: 4 additions & 4 deletions pr-validation/src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ function getPrNumber() {
}

async function fetchContent(client, path) {
const response = await client.repos.getContent({
const response = await client.rest.repos.getContent({
owner: github.context.repo.owner,
repo: github.context.repo.repo,
path: path
Expand Down Expand Up @@ -222,7 +222,7 @@ async function run() {

if (config.create_review) {
// create a review
client.pulls.createReview({
client.rest.pulls.createReview({
owner: owner,
repo: repo,
pull_number: number,
Expand Down Expand Up @@ -253,7 +253,7 @@ async function run() {
}

if (setLabels) {
client.issues.setLabels({
client.rest.issues.setLabels({
owner: owner,
repo: repo,
issue_number: number,
Expand All @@ -279,7 +279,7 @@ async function run() {
}

if (setLabels) {
client.issues.setLabels({
client.rest.issues.setLabels({
owner: owner,
repo: repo,
issue_number: number,
Expand Down

0 comments on commit 8feb75e

Please sign in to comment.