Updates will be applied on October 27th between 12pm - 12:45pm EDT (UTC-0400). Gitlab may be slow during the maintenance window.

Commit c103490a authored by Ben Boeckel's avatar Ben Boeckel
Browse files

api/projects: use Into for `import_url`

parent b9df4173
......@@ -27,6 +27,8 @@ been added.
* The `api::projects::repository::CreateFile` endpoint now properly upgrades
the encoding when attempting to encode binary contents using
`Encoding::Text`.
* The `api::projects::CreateProject` and `api::projects::EditProject`
endpoints now accepts plain strings in its `import_url` field.
## Changes
......
......@@ -458,7 +458,7 @@ pub struct CreateProject<'a> {
#[builder(default)]
visibility: Option<VisibilityLevel>,
/// A URL to import the repository from.
#[builder(default)]
#[builder(setter(into), default)]
import_url: Option<Cow<'a, str>>,
/// Whether job results are visible to non-project members or not.
#[builder(default)]
......
......@@ -82,7 +82,7 @@ pub struct EditProject<'a> {
#[builder(default)]
visibility: Option<VisibilityLevel>,
/// A URL to import the repository from.
#[builder(default)]
#[builder(setter(into), default)]
import_url: Option<Cow<'a, str>>,
/// Whether job results are visible to non-project members or not.
#[builder(default)]
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment