You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@airflow.apache.org by po...@apache.org on 2020/12/27 13:52:28 UTC

[airflow-cancel-workflow-runs] 12/44: Also filteer non pr and push events

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 <ja...@redhat.com>
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
     }