forge
Explore
Log in

Don't you dare go Hollow

New and imported repositories default to public

Browse files at this commit

10991855c74abfffa3d1677a871fb295c5385ac8Ahmet Kaan GümüşParent: ec20c04
  • ux
    • new and imported repositories default to public
Show full message
🚸 ux: new and imported repositories default to public
crates/forge-web/src/pages/import.rsmodified+2 -2
@@ -241,7 +241,7 @@ impl Draft {
241 owner: String::new(),241 owner: String::new(),
242 name: String::new(),242 name: String::new(),
243 description: String::new(),243 description: String::new(),
244- private: true,244+ private: false,
245 opts: ImportOptions {245 opts: ImportOptions {
246 labels: true,246 labels: true,
247 issues: true,247 issues: true,
@@ -818,7 +818,7 @@ async fn bulk_submit(cx: &Cx, Form(form): Form<BulkForm>) -> Result<impl View> {
818 token: form.token.trim().to_owned(),818 token: form.token.trim().to_owned(),
819 from: from.to_owned(),819 from: from.to_owned(),
820 owner: form.owner.trim().to_owned(),820 owner: form.owner.trim().to_owned(),
821- private: true,821+ private: false,
822 opts: ImportOptions {822 opts: ImportOptions {
823 labels: true,823 labels: true,
824 issues: true,824 issues: true,
crates/forge-web/src/pages/new_repo.rsmodified+1 -1
@@ -75,7 +75,7 @@ impl Draft {
75 owner: String::new(),75 owner: String::new(),
76 name: String::new(),76 name: String::new(),
77 description: String::new(),77 description: String::new(),
78- private: true,78+ private: false,
79 default_branch: DEFAULT_BRANCH.into(),79 default_branch: DEFAULT_BRANCH.into(),
80 default_labels: true,80 default_labels: true,
81 mirror_url: String::new(),81 mirror_url: String::new(),