This is an automated email from the ASF dual-hosted git repository. potiuk pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/airflow-cancel-workflow-runs.git
commit 70e4efc68f49a9d920814ec5182ac049db2d77af Author: Jason T. Greene <[email protected]> AuthorDate: Tue Feb 18 23:00:27 2020 -0600 Also filteer non pr and push events --- src/main.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main.ts b/src/main.ts index 2321b22..35ae27f 100644 --- a/src/main.ts +++ b/src/main.ts @@ -111,7 +111,7 @@ async function cancelDuplicates( if ( 'completed' === element.status.toString() || - !['push', 'pull_request'].includes(element.event.toString) + !['push', 'pull_request'].includes(element.event.toString()) ) { continue }
