Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
1
Merge Requests
1
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
gitlab-ce
Commits
1b5188a4
Commit
1b5188a4
authored
May 11, 2020
by
Robert Speicher
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add keep_divergent_refs API documentation
parent
14a8d94e
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
0 deletions
+5
-0
doc/api/remote_mirrors.md
doc/api/remote_mirrors.md
+5
-0
No files found.
doc/api/remote_mirrors.md
View file @
1b5188a4
...
...
@@ -33,6 +33,7 @@ Example response:
"last_update_at"
:
"2020-01-06T17:32:02.823Z"
,
"last_update_started_at"
:
"2020-01-06T17:31:55.864Z"
,
"only_protected_branches"
:
true
,
"keep_divergent_refs"
:
true
,
"update_status"
:
"finished"
,
"url"
:
"https://*****:*****@gitlab.com/gitlab-org/security/gitlab.git"
}
...
...
@@ -58,6 +59,7 @@ POST /projects/:id/remote_mirrors
|
`url`
| String | yes | The URL of the remote repository to be mirrored. |
|
`enabled`
| Boolean | no | Determines if the mirror is enabled. |
|
`only_protected_branches`
| Boolean | no | Determines if only protected branches are mirrored. |
|
`keep_divergent_refs`
| Boolean | no | Determines if divergent refs are skipped. |
Example request:
...
...
@@ -76,6 +78,7 @@ Example response:
"last_update_at"
:
null
,
"last_update_started_at"
:
null
,
"only_protected_branches"
:
false
,
"keep_divergent_refs"
:
false
,
"update_status"
:
"none"
,
"url"
:
"https://*****:*****@example.com/gitlab/example.git"
}
...
...
@@ -97,6 +100,7 @@ PUT /projects/:id/remote_mirrors/:mirror_id
|
`mirror_id`
| Integer | yes | The remote mirror ID. |
|
`enabled`
| Boolean | no | Determines if the mirror is enabled. |
|
`only_protected_branches`
| Boolean | no | Determines if only protected branches are mirrored. |
|
`keep_divergent_refs`
| Boolean | no | Determines if divergent refs are skipped. |
Example request:
...
...
@@ -115,6 +119,7 @@ Example response:
"last_update_at"
:
"2020-01-06T17:32:02.823Z"
,
"last_update_started_at"
:
"2020-01-06T17:31:55.864Z"
,
"only_protected_branches"
:
true
,
"keep_divergent_refs"
:
true
,
"update_status"
:
"finished"
,
"url"
:
"https://*****:*****@gitlab.com/gitlab-org/security/gitlab.git"
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment