commit 23e831d: [Test] Skip notification on pull requests

Andrew Lewis nerf at judo.za.org
Sat Sep 30 12:07:04 UTC 2023


Author: Andrew Lewis
Date: 2023-09-29 22:13:17 +0200
URL: https://github.com/rspamd/rspamd/commit/23e831d4bb81ef2b1ef415bcbd17856fd72d210e (refs/pull/4621/head)

[Test] Skip notification on pull requests

---
 .drone.jsonnet | 14 ++++++++------
 .drone.yml     | 19 ++++++++++++-------
 2 files changed, 20 insertions(+), 13 deletions(-)

diff --git a/.drone.jsonnet b/.drone.jsonnet
index 0f453343c..694a63ef2 100644
--- a/.drone.jsonnet
+++ b/.drone.jsonnet
@@ -3,14 +3,15 @@ local docker_pipeline = {
   type: 'docker',
 };
 
+local default_trigger_events_ex_pr = [
+  'push',
+  'tag',
+  'custom',
+];
+
 local default_trigger = {
   trigger: {
-    event: [
-      'push',
-      'tag',
-      'pull_request',
-      'custom',
-    ],
+    event: default_trigger_events_ex_pr + ['pull_request'],
   },
 };
 
@@ -66,6 +67,7 @@ local notify_pipeline = {
     },
   ],
   trigger: {
+    event: default_trigger_events_ex_pr,
     status: [
       'failure',
     ],
diff --git a/.drone.yml b/.drone.yml
index 4ec75e663..74231368a 100644
--- a/.drone.yml
+++ b/.drone.yml
@@ -203,8 +203,8 @@
       "event": [
          "push",
          "tag",
-         "pull_request",
-         "custom"
+         "custom",
+         "pull_request"
       ]
    },
    "type": "docker",
@@ -420,8 +420,8 @@
       "event": [
          "push",
          "tag",
-         "pull_request",
-         "custom"
+         "custom",
+         "pull_request"
       ]
    },
    "type": "docker",
@@ -505,8 +505,8 @@
       "event": [
          "push",
          "tag",
-         "pull_request",
-         "custom"
+         "custom",
+         "pull_request"
       ]
    },
    "type": "docker"
@@ -540,6 +540,11 @@
       }
    ],
    "trigger": {
+      "event": [
+         "push",
+         "tag",
+         "custom"
+      ],
       "status": [
          "failure"
       ]
@@ -548,7 +553,7 @@
 }
 ---
 {
-   "hmac": "0000000000000000000000000000000000000000000000000000000000000000",
+   "hmac": "3f01ceb14c7dd3ba2f5343fc52216843f72212e1cb25f944c2366d57e78d2b79",
    "kind": "signature"
 }
 ...


More information about the Commits mailing list