mirror of
https://github.com/Dasemu/Grove.git
synced 2026-11-26 23:36:11 +00:00
fix(providers): GitHub internal repos are not private
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
5184cc9a95
commit
15cd03aedf
2 files changed
+19
-1
No files matched your search
@@ -348,4 +348,16 @@ fn get_repo_reports_visibility_on_both_forges() {
|
||||
let gh = GitHub::new(&url, "t".into());
|
||||
assert!(!gh.get_repo("o", "r").unwrap().private);
|
||||
assert!(rx.recv().unwrap().starts_with("GET /repos/o/r "));
|
||||
|
||||
// An internal repo reports `private: true` but is not private.
|
||||
let (url, _rx) = mock(vec![(
|
||||
200,
|
||||
r#"{"name":"r","private":true,"visibility":"internal","owner":{"login":"o"}}"#,
|
||||
)]);
|
||||
assert!(
|
||||
!GitHub::new(&url, "t".into())
|
||||
.get_repo("o", "r")
|
||||
.unwrap()
|
||||
.private
|
||||
);
|
||||
}
|
||||
Reference in new issue
Block a user