Skip to content

Commit

Permalink
chore: debug output
Browse files Browse the repository at this point in the history
  • Loading branch information
FabiLo22 committed Oct 23, 2024
1 parent 214f663 commit fbbdb36
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "typescript-action",
"description": "Givve Automatic Deployment",
"version": "v0.0.9",
"version": "v0.0.10",
"author": "PL Gutscheinsysteme GmbH",
"private": true,
"homepage": "https://github.com/actions/typescript-action",
4 changes: 2 additions & 2 deletions src/github.ts
Original file line number Diff line number Diff line change
@@ -26,15 +26,15 @@ export class GitHub {

async getLabels(): Promise<string[]> {
return new Promise(async (resolve, reject) => {
const { data: issue } = await this.requestWithAuth(
const { data: issue, error: error } = await this.requestWithAuth(
'GET /repos/{owner}/{repo}/issues/{pull_number}',
{
owner: 'givve',
repo: 'givve',
pull_number: core.getInput('pull_request')
}
)

console.log(error)
resolve(issue.labels.map((label: any) => label.name))
})
}

0 comments on commit fbbdb36

Please sign in to comment.