Skip to content

Commit acfbece

Browse files
committed
✨ Allow adding forks to github
1 parent 36f9bc6 commit acfbece

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/sentry/integrations/github/integration.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -161,7 +161,7 @@ class GithubInstallationInfo(TypedDict):
161161

162162
def build_repository_query(metadata: Mapping[str, Any], name: str, query: str) -> bytes:
163163
account_type = "user" if metadata["account_type"] == "User" else "org"
164-
return f"{account_type}:{name} {query}".encode()
164+
return f"{account_type}:{name} fork:true {query}".encode()
165165

166166

167167
def error(

tests/sentry/integrations/github/test_integration.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -586,7 +586,7 @@ def test_get_repositories_search_param(self):
586586
with self.tasks():
587587
self.assert_setup_flow()
588588

589-
querystring = urlencode({"q": "org:Test Organization ex"})
589+
querystring = urlencode({"q": "org:Test Organization fork:true ex"})
590590
responses.add(
591591
responses.GET,
592592
f"{self.base_url}/search/repositories?{querystring}",

0 commit comments

Comments
 (0)