Skip to content

Commit

Permalink
chore(ci): destructure assignment
Browse files Browse the repository at this point in the history
  • Loading branch information
heitorlessa committed Aug 29, 2022
1 parent d0b3851 commit 9faa1a2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/scripts/comment_on_large_pr.js
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
module.exports = async ({github, context, core}) => {
/** @type {string[]} */
const labels = await github.rest.issues.listLabelsOnIssue({
const { data: labels } = await github.rest.issues.listLabelsOnIssue({
owner: context.repo.owner,
repo: context.repo.repo,
issue_number: process.env.PR_NUMBER,
})

console.log(labels.data)
console.log(labels)
return labels
}

0 comments on commit 9faa1a2

Please sign in to comment.