diff --git a/main.ts b/main.ts index 20973ca..3d6bb6a 100644 --- a/main.ts +++ b/main.ts @@ -17,8 +17,9 @@ const extractCommits = async (): Promise => { } // For PRs, we need to get a list of commits via the GH API: - const prCommitsUrl = typeof get(context, "payload.pull_request.commits_url"); + const prCommitsUrl = get(context, "payload.pull_request.commits_url"); console.log('ide check URL-a') + console.log(context.payload) if (prCommitsUrl) { try { const { body } = await got.get(prCommitsUrl, {