From aa1bd202d4e7cc5ee279009ef1d4998b5ca5e994 Mon Sep 17 00:00:00 2001 From: wenqian Date: Thu, 25 Jan 2024 15:02:18 +0800 Subject: [PATCH] fix(github): Use correct head format to filter fork PR (#93) --- src/api/github.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/api/github.rs b/src/api/github.rs index 80a58ab..4468969 100644 --- a/src/api/github.rs +++ b/src/api/github.rs @@ -104,7 +104,7 @@ impl From for PullRequestOptions { let (head, head_search, owner, name) = match upstream { Some(upstream) => { let head = format!("{owner}:{source}"); - let head_search = format!("{owner}/{source}"); + let head_search = format!("{owner}/{name}:{source}"); (head, head_search, upstream.owner, upstream.name) } None => {