From fbbdb3626be62cbe6752db8c2d6b166c91a96abf Mon Sep 17 00:00:00 2001 From: Fabian Locker Date: Wed, 23 Oct 2024 12:52:06 +0200 Subject: [PATCH] chore: debug output --- package.json | 2 +- src/github.ts | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/package.json b/package.json index 435afba..44ef589 100644 --- a/package.json +++ b/package.json @@ -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", diff --git a/src/github.ts b/src/github.ts index 3b80aee..ac07c9a 100644 --- a/src/github.ts +++ b/src/github.ts @@ -26,7 +26,7 @@ export class GitHub { async getLabels(): Promise { 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', @@ -34,7 +34,7 @@ export class GitHub { pull_number: core.getInput('pull_request') } ) - + console.log(error) resolve(issue.labels.map((label: any) => label.name)) }) }