[snowpatch] [PATCH] Don't test pull requests
    Andrew Donnellan 
    andrew.donnellan at au1.ibm.com
       
    Tue Jul 24 20:02:03 AEST 2018
    
    
  
Testing pull request emails is a bit silly. Skip "patches" that have a pull
URL.
Closes: #35 ("Don't test pull requests")
Signed-off-by: Andrew Donnellan <andrew.donnellan at au1.ibm.com>
---
untested, but yolo, should work
---
 src/main.rs | 6 ++++++
 1 file changed, 6 insertions(+)
diff --git a/src/main.rs b/src/main.rs
index eb7ffc1ee36d..776aea299a79 100644
--- a/src/main.rs
+++ b/src/main.rs
@@ -429,6 +429,12 @@ fn main() {
                 continue;
             }
 
+            // Skip pull requests
+            if patch.pull_url.is_some() {
+                debug!("Skipping pull request {}", patch.name);
+                continue;
+            }
+
             // Skip if it's the wrong project
             if patch.project.link_name != args.flag_project {
                 warn!(
-- 
2.11.0
    
    
More information about the snowpatch
mailing list