浏览代码

fix bug that is:pr also got issues

Niko Matsakis 3 年之前
父节点
当前提交
106bbb225d
共有 1 个文件被更改,包括 3 次插入3 次删除
  1. 3 3
      src/github.rs

+ 3 - 3
src/github.rs

@@ -766,10 +766,10 @@ impl Repository {
             .iter()
             .any(|&(key, value)| key == "is" && value == "pr");
         // negating filters can only be handled by the search api
-        let url = if use_issues {
-            self.build_issues_url(filters, include_labels)
-        } else if is_pr {
+        let url = if is_pr {
             self.build_pulls_url(filters, include_labels)
+        } else if use_issues {
+            self.build_issues_url(filters, include_labels)
         } else {
             self.build_search_issues_url(filters, include_labels, exclude_labels)
         };