sync
authorAlan Knowles <alan@roojs.com>
Mon, 5 Nov 2018 06:41:21 +0000 (14:41 +0800)
committerAlan Knowles <alan@roojs.com>
Mon, 5 Nov 2018 06:41:21 +0000 (14:41 +0800)
GitMonitor.vala
GitMonitorQueue.vala
RooTicket.vala

index d6fd736..17dedfc 100644 (file)
@@ -224,6 +224,17 @@ public class GitMonitor : Monitor
                if (this.paused || this.queue.size < 1 ) {
                        return;
                }
+               
+               foreach(var q in this.queue) {
+                       if (!q.shouldIgnore() && !q.repo.is_wip_branch()) {
+                               NewBranch.singleton().show(q.repo);
+                               return;
+                       }
+               
+               }
+               
+                
+               
                GLib.debug("GitMonitor.runQueue\n");
 
                this.queueRunning = true;
index 15683df..00ab465 100644 (file)
@@ -44,9 +44,7 @@ public class GitMonitorQueue : MonitorNamePathDir {
                        this.repo = GitRepo.get(this.gitpath);
                        
                        // trigger the suggestion to start a new branch
-                       if (!this.shouldIgnore() && !this.repo.is_wip_branch()) {
-                               NewBranch.singleton().show(this.repo);
-                       }
+                       
                }
 
 
index 0858d1f..7ea316b 100644 (file)
@@ -77,6 +77,7 @@ public class RooTicket : Object
  
        }
 
+
        public RooTicket? loadTicket(string id)
        {
        
@@ -127,8 +128,7 @@ public class RooTicket : Object
                
                var table = new GLib.HashTable<string, string>(str_hash, str_equal);
         
-               table.insert("query[viewtype]","active");
-               table.insert("developer_id","494");
+               table.insert("query[viewtype]","me");
                table.insert("limit","999");
                table.insert("sort","summary");
                table.insert("dir","ASC");