mirror of
https://github.com/golangci/golangci-lint-action.git
synced 2025-12-14 23:11:14 +00:00
feat: add pull_request_review event type for only-new-issues
This commit is contained in:
parent
8032b26298
commit
71aaca6547
3 changed files with 6 additions and 0 deletions
2
dist/post_run/index.js
generated
vendored
2
dist/post_run/index.js
generated
vendored
|
|
@ -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
2
dist/run/index.js
generated
vendored
|
|
@ -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}`);
|
||||
|
|
|
|||
|
|
@ -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}`)
|
||||
|
|
|
|||
Loading…
Reference in a new issue