Skip to content

Commit

Permalink
Added debug
Browse files Browse the repository at this point in the history
  • Loading branch information
jrbasso committed Feb 11, 2024
1 parent 5fa3b69 commit 8b4d90c
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 0 deletions.
11 changes: 11 additions & 0 deletions dist/index.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

12 changes: 12 additions & 0 deletions src/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -105,6 +105,18 @@ export async function run(): Promise<void> {
core.debug(`Match found`)
foundMatches = true
const side = line.startsWith('+') ? 'RIGHT' : 'LEFT'
const requestParams = {
owner,
repo,
pull_number: pullRequestNumber,
body: matchFoundMessage,
commit_id: context.payload.pull_request.head.sha,
path: currentFile,
side,
line: side === 'LEFT' ? oldLineNumber : newLineNumber
}
core.debug(JSON.stringify(requestParams))

await octokit.rest.pulls.createReviewComment({
owner,
repo,
Expand Down

0 comments on commit 8b4d90c

Please sign in to comment.