Skip to content

Commit

Permalink
Test payload
Browse files Browse the repository at this point in the history
  • Loading branch information
rehlma committed Apr 12, 2024
1 parent 0aa3517 commit 949e3c0
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 2 deletions.
5 changes: 5 additions & 0 deletions dist/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -29018,6 +29018,11 @@ function run() {
try {
const token = core.getInput('token');
const octokit = github.getOctokit(token);
const payload = github.context.payload.pull_request_review_comment;
if (payload) {
console.log(JSON.stringify(payload));
return;
}
const editIssueId = core.getInput('edit-issue-id');
if (editIssueId) {
console.log('Edit issue id:', editIssueId);
Expand Down
2 changes: 1 addition & 1 deletion dist/index.js.map

Large diffs are not rendered by default.

7 changes: 6 additions & 1 deletion src/main.ts
Original file line number Diff line number Diff line change
@@ -1,13 +1,18 @@
import * as core from '@actions/core'
import * as github from '@actions/github'
import { PrDiff, Todo, InnerTodo } from './types'
import { start } from 'repl'

export async function run(): Promise<void> {
try {
const token = core.getInput('token')
const octokit = github.getOctokit(token)

const payload = github.context.payload.pull_request_review_comment
if (payload) {
console.log(JSON.stringify(payload))
return
}

const editIssueId = core.getInput('edit-issue-id')
if (editIssueId) {
console.log('Edit issue id:', editIssueId)
Expand Down

0 comments on commit 949e3c0

Please sign in to comment.