feat: add pull_request_review event type for only-new-issues

This commit is contained in:
Akshat Agarwal 2024-06-09 23:21:22 +05:30
parent 8032b26298
commit 71aaca6547
3 changed files with 6 additions and 0 deletions

2
dist/post_run/index.js generated vendored
View file

@ -85290,6 +85290,7 @@ async function fetchPatch() {
switch (ctx.eventName) {
case `pull_request`:
case `pull_request_target`:
case `pull_request_review`:
return await fetchPullRequestPatch(ctx);
case `push`:
return await fetchPushPatch(ctx);
@ -85439,6 +85440,7 @@ async function runLint(lintPath, patchPath) {
switch (ctx.eventName) {
case `pull_request`:
case `pull_request_target`:
case `pull_request_review`:
case `push`:
if (patchPath) {
addedArgs.push(`--new-from-patch=${patchPath}`);

2
dist/run/index.js generated vendored
View file

@ -85290,6 +85290,7 @@ async function fetchPatch() {
switch (ctx.eventName) {
case `pull_request`:
case `pull_request_target`:
case `pull_request_review`:
return await fetchPullRequestPatch(ctx);
case `push`:
return await fetchPushPatch(ctx);
@ -85439,6 +85440,7 @@ async function runLint(lintPath, patchPath) {
switch (ctx.eventName) {
case `pull_request`:
case `pull_request_target`:
case `pull_request_review`:
case `push`:
if (patchPath) {
addedArgs.push(`--new-from-patch=${patchPath}`);

View file

@ -37,6 +37,7 @@ async function fetchPatch(): Promise<string> {
switch (ctx.eventName) {
case `pull_request`:
case `pull_request_target`:
case `pull_request_review`:
return await fetchPullRequestPatch(ctx)
case `push`:
return await fetchPushPatch(ctx)
@ -222,6 +223,7 @@ async function runLint(lintPath: string, patchPath: string): Promise<void> {
switch (ctx.eventName) {
case `pull_request`:
case `pull_request_target`:
case `pull_request_review`:
case `push`:
if (patchPath) {
addedArgs.push(`--new-from-patch=${patchPath}`)