Commit a38da605 authored by Amy Qualls's avatar Amy Qualls Committed by Suzanne Selhorn

Small style updates to various Create pages

parent bf1d0bd3
...@@ -156,7 +156,7 @@ Parameters: ...@@ -156,7 +156,7 @@ Parameters:
| `id` | integer/string | yes | The ID or [URL-encoded path of the project](README.md#namespaced-path-encoding) | | `id` | integer/string | yes | The ID or [URL-encoded path of the project](README.md#namespaced-path-encoding) |
| `issue_iid` | integer | yes | The IID of an issue | | `issue_iid` | integer | yes | The IID of an issue |
| `body` | string | yes | The content of the thread | | `body` | string | yes | The content of the thread |
| `created_at` | string | no | Date time string, ISO 8601 formatted, e.g. 2016-03-11T03:45:40Z (requires administrator or project/group owner rights) | | `created_at` | string | no | Date time string, ISO 8601 formatted, such as `2016-03-11T03:45:40Z` (requires administrator or project/group owner rights) |
```shell ```shell
curl --request POST --header "PRIVATE-TOKEN: <your_access_token>" "https://gitlab.example.com/api/v4/projects/5/issues/11/discussions?body=comment" curl --request POST --header "PRIVATE-TOKEN: <your_access_token>" "https://gitlab.example.com/api/v4/projects/5/issues/11/discussions?body=comment"
...@@ -167,7 +167,7 @@ curl --request POST --header "PRIVATE-TOKEN: <your_access_token>" "https://gitla ...@@ -167,7 +167,7 @@ curl --request POST --header "PRIVATE-TOKEN: <your_access_token>" "https://gitla
Adds a new note to the thread. This can also [create a thread from a single comment](../user/discussions/#start-a-thread-by-replying-to-a-standard-comment). Adds a new note to the thread. This can also [create a thread from a single comment](../user/discussions/#start-a-thread-by-replying-to-a-standard-comment).
**WARNING** **WARNING**
Notes can be added to other items than comments (system notes, etc.) making them threads. Notes can be added to other items than comments, such as system notes, making them threads.
```plaintext ```plaintext
POST /projects/:id/issues/:issue_iid/discussions/:discussion_id/notes POST /projects/:id/issues/:issue_iid/discussions/:discussion_id/notes
...@@ -182,7 +182,7 @@ Parameters: ...@@ -182,7 +182,7 @@ Parameters:
| `discussion_id` | integer | yes | The ID of a thread | | `discussion_id` | integer | yes | The ID of a thread |
| `note_id` | integer | yes | The ID of a thread note | | `note_id` | integer | yes | The ID of a thread note |
| `body` | string | yes | The content of the note/reply | | `body` | string | yes | The content of the note/reply |
| `created_at` | string | no | Date time string, ISO 8601 formatted, e.g. 2016-03-11T03:45:40Z (requires administrator or project/group owner rights) | | `created_at` | string | no | Date time string, ISO 8601 formatted, such as `2016-03-11T03:45:40Z` (requires administrator or project/group owner rights) |
```shell ```shell
curl --request POST --header "PRIVATE-TOKEN: <your_access_token>" "https://gitlab.example.com/api/v4/projects/5/issues/11/discussions/6a9c1750b37d513a43987b574953fceb50b03ce7/notes?body=comment" curl --request POST --header "PRIVATE-TOKEN: <your_access_token>" "https://gitlab.example.com/api/v4/projects/5/issues/11/discussions/6a9c1750b37d513a43987b574953fceb50b03ce7/notes?body=comment"
...@@ -365,7 +365,7 @@ Parameters: ...@@ -365,7 +365,7 @@ Parameters:
| `id` | integer/string | yes | The ID or [URL-encoded path of the project](README.md#namespaced-path-encoding) | | `id` | integer/string | yes | The ID or [URL-encoded path of the project](README.md#namespaced-path-encoding) |
| `snippet_id` | integer | yes | The ID of an snippet | | `snippet_id` | integer | yes | The ID of an snippet |
| `body` | string | yes | The content of a discussion | | `body` | string | yes | The content of a discussion |
| `created_at` | string | no | Date time string, ISO 8601 formatted, e.g. 2016-03-11T03:45:40Z (requires administrator or project/group owner rights) | | `created_at` | string | no | Date time string, ISO 8601 formatted, such as `2016-03-11T03:45:40Z` (requires administrator or project/group owner rights) |
```shell ```shell
curl --request POST --header "PRIVATE-TOKEN: <your_access_token>" "https://gitlab.example.com/api/v4/projects/5/snippets/11/discussions?body=comment" curl --request POST --header "PRIVATE-TOKEN: <your_access_token>" "https://gitlab.example.com/api/v4/projects/5/snippets/11/discussions?body=comment"
...@@ -388,7 +388,7 @@ Parameters: ...@@ -388,7 +388,7 @@ Parameters:
| `discussion_id` | integer | yes | The ID of a thread | | `discussion_id` | integer | yes | The ID of a thread |
| `note_id` | integer | yes | The ID of a thread note | | `note_id` | integer | yes | The ID of a thread note |
| `body` | string | yes | The content of the note/reply | | `body` | string | yes | The content of the note/reply |
| `created_at` | string | no | Date time string, ISO 8601 formatted, e.g. 2016-03-11T03:45:40Z (requires administrator or project/group owner rights) | | `created_at` | string | no | Date time string, ISO 8601 formatted, such as `2016-03-11T03:45:40Z` (requires administrator or project/group owner rights) |
```shell ```shell
curl --request POST --header "PRIVATE-TOKEN: <your_access_token>" "https://gitlab.example.com/api/v4/projects/5/snippets/11/discussions/6a9c1750b37d513a43987b574953fceb50b03ce7/notes?body=comment" curl --request POST --header "PRIVATE-TOKEN: <your_access_token>" "https://gitlab.example.com/api/v4/projects/5/snippets/11/discussions/6a9c1750b37d513a43987b574953fceb50b03ce7/notes?body=comment"
...@@ -572,7 +572,7 @@ Parameters: ...@@ -572,7 +572,7 @@ Parameters:
| `id` | integer/string | yes | The ID or [URL-encoded path of the group](README.md#namespaced-path-encoding) | | `id` | integer/string | yes | The ID or [URL-encoded path of the group](README.md#namespaced-path-encoding) |
| `epic_id` | integer | yes | The ID of an epic | | `epic_id` | integer | yes | The ID of an epic |
| `body` | string | yes | The content of the thread | | `body` | string | yes | The content of the thread |
| `created_at` | string | no | Date time string, ISO 8601 formatted, e.g. 2016-03-11T03:45:40Z (requires administrator or project/group owner rights) | | `created_at` | string | no | Date time string, ISO 8601 formatted, such as `2016-03-11T03:45:40Z` (requires administrator or project/group owner rights) |
```shell ```shell
curl --request POST --header "PRIVATE-TOKEN: <your_access_token>" "https://gitlab.example.com/api/v4/groups/5/epics/11/discussions?body=comment" curl --request POST --header "PRIVATE-TOKEN: <your_access_token>" "https://gitlab.example.com/api/v4/groups/5/epics/11/discussions?body=comment"
...@@ -596,7 +596,7 @@ Parameters: ...@@ -596,7 +596,7 @@ Parameters:
| `discussion_id` | integer | yes | The ID of a thread | | `discussion_id` | integer | yes | The ID of a thread |
| `note_id` | integer | yes | The ID of a thread note | | `note_id` | integer | yes | The ID of a thread note |
| `body` | string | yes | The content of the note/reply | | `body` | string | yes | The content of the note/reply |
| `created_at` | string | no | Date time string, ISO 8601 formatted, e.g. 2016-03-11T03:45:40Z (requires administrator or project/group owner rights) | | `created_at` | string | no | Date time string, ISO 8601 formatted, such as `2016-03-11T03:45:40Z` (requires administrator or project/group owner rights) |
```shell ```shell
curl --request POST --header "PRIVATE-TOKEN: <your_access_token>" "https://gitlab.example.com/api/v4/groups/5/epics/11/discussions/6a9c1750b37d513a43987b574953fceb50b03ce7/notes?body=comment" curl --request POST --header "PRIVATE-TOKEN: <your_access_token>" "https://gitlab.example.com/api/v4/groups/5/epics/11/discussions/6a9c1750b37d513a43987b574953fceb50b03ce7/notes?body=comment"
...@@ -847,7 +847,7 @@ Parameters for all comments: ...@@ -847,7 +847,7 @@ Parameters for all comments:
| `merge_request_iid` | integer | yes | The IID of a merge request | | `merge_request_iid` | integer | yes | The IID of a merge request |
| `body` | string | yes | The content of the thread | | `body` | string | yes | The content of the thread |
| `commit_id` | string | no | SHA referencing commit to start this thread on | | `commit_id` | string | no | SHA referencing commit to start this thread on |
| `created_at` | string | no | Date time string, ISO 8601 formatted, e.g. 2016-03-11T03:45:40Z (requires administrator or project/group owner rights) | | `created_at` | string | no | Date time string, ISO 8601 formatted, such as `2016-03-11T03:45:40Z` (requires administrator or project/group owner rights) |
| `position` | hash | no | Position when creating a diff note | | `position` | hash | no | Position when creating a diff note |
| `position[base_sha]` | string | yes | Base commit SHA in the source branch | | `position[base_sha]` | string | yes | Base commit SHA in the source branch |
| `position[start_sha]` | string | yes | SHA referencing commit in target branch | | `position[start_sha]` | string | yes | SHA referencing commit in target branch |
...@@ -902,7 +902,7 @@ To create a new thread: ...@@ -902,7 +902,7 @@ To create a new thread:
"previous versions are here" "previous versions are here"
] ]
``` ```
1. Create a new diff thread. This example creates a thread on an added line: 1. Create a new diff thread. This example creates a thread on an added line:
```shell ```shell
...@@ -981,7 +981,7 @@ Parameters: ...@@ -981,7 +981,7 @@ Parameters:
| `discussion_id` | integer | yes | The ID of a thread | | `discussion_id` | integer | yes | The ID of a thread |
| `note_id` | integer | yes | The ID of a thread note | | `note_id` | integer | yes | The ID of a thread note |
| `body` | string | yes | The content of the note/reply | | `body` | string | yes | The content of the note/reply |
| `created_at` | string | no | Date time string, ISO 8601 formatted, e.g. 2016-03-11T03:45:40Z (requires administrator or project/group owner rights) | | `created_at` | string | no | Date time string, ISO 8601 formatted, such as `2016-03-11T03:45:40Z` (requires administrator or project/group owner rights) |
```shell ```shell
curl --request POST --header "PRIVATE-TOKEN: <your_access_token>" "https://gitlab.example.com/api/v4/projects/5/merge_requests/11/discussions/6a9c1750b37d513a43987b574953fceb50b03ce7/notes?body=comment" curl --request POST --header "PRIVATE-TOKEN: <your_access_token>" "https://gitlab.example.com/api/v4/projects/5/merge_requests/11/discussions/6a9c1750b37d513a43987b574953fceb50b03ce7/notes?body=comment"
...@@ -1216,7 +1216,7 @@ Parameters: ...@@ -1216,7 +1216,7 @@ Parameters:
| `id` | integer/string | yes | The ID or [URL-encoded path of the project](README.md#namespaced-path-encoding) | | `id` | integer/string | yes | The ID or [URL-encoded path of the project](README.md#namespaced-path-encoding) |
| `commit_id` | integer | yes | The ID of a commit | | `commit_id` | integer | yes | The ID of a commit |
| `body` | string | yes | The content of the thread | | `body` | string | yes | The content of the thread |
| `created_at` | string | no | Date time string, ISO 8601 formatted, e.g. 2016-03-11T03:45:40Z (requires administrator or project/group owner rights) | | `created_at` | string | no | Date time string, ISO 8601 formatted, such as `2016-03-11T03:45:40Z` (requires administrator or project/group owner rights) |
| `position` | hash | no | Position when creating a diff note | | `position` | hash | no | Position when creating a diff note |
| `position[base_sha]` | string | yes | Base commit SHA in the source branch | | `position[base_sha]` | string | yes | Base commit SHA in the source branch |
| `position[start_sha]` | string | yes | SHA referencing commit in target branch | | `position[start_sha]` | string | yes | SHA referencing commit in target branch |
...@@ -1252,7 +1252,7 @@ Parameters: ...@@ -1252,7 +1252,7 @@ Parameters:
| `discussion_id` | integer | yes | The ID of a thread | | `discussion_id` | integer | yes | The ID of a thread |
| `note_id` | integer | yes | The ID of a thread note | | `note_id` | integer | yes | The ID of a thread note |
| `body` | string | yes | The content of the note/reply | | `body` | string | yes | The content of the note/reply |
| `created_at` | string | no | Date time string, ISO 8601 formatted, e.g. 2016-03-11T03:45:40Z (requires administrator or project/group owner rights) | | `created_at` | string | no | Date time string, ISO 8601 formatted, such `2016-03-11T03:45:40Z` (requires administrator or project/group owner rights) |
```shell ```shell
curl --request POST --header "PRIVATE-TOKEN: <your_access_token>" "https://gitlab.example.com/api/v4/projects/5/commits/11/discussions/6a9c1750b37d513a43987b574953fceb50b03ce7/notes?body=comment curl --request POST --header "PRIVATE-TOKEN: <your_access_token>" "https://gitlab.example.com/api/v4/projects/5/commits/11/discussions/6a9c1750b37d513a43987b574953fceb50b03ce7/notes?body=comment
......
...@@ -68,8 +68,8 @@ Example response: ...@@ -68,8 +68,8 @@ Example response:
## Create a project alias ## Create a project alias
Add a new alias for a project. Responds with a 201 when successful, Add a new alias for a project. When successful, responds with `201 Created`.
400 when there are validation errors (e.g. alias already exists): When there are validation errors, for example, when the alias already exists, responds with `400 Bad Request`:
```plaintext ```plaintext
POST /project_aliases POST /project_aliases
......
...@@ -18,7 +18,7 @@ See also: ...@@ -18,7 +18,7 @@ See also:
Start a new export. Start a new export.
The endpoint also accepts an `upload` parameter. This parameter is a hash that contains The endpoint also accepts an `upload` parameter. This parameter is a hash. It contains
all the necessary information to upload the exported project to a web server or all the necessary information to upload the exported project to a web server or
to any S3-compatible platform. At the moment we only support binary to any S3-compatible platform. At the moment we only support binary
data file uploads to the final server. data file uploads to the final server.
...@@ -70,23 +70,14 @@ curl --header "PRIVATE-TOKEN: <your_access_token>" "https://gitlab.example.com/a ...@@ -70,23 +70,14 @@ curl --header "PRIVATE-TOKEN: <your_access_token>" "https://gitlab.example.com/a
Status can be one of: Status can be one of:
- `none` - `none`: No exports _queued_, _started_, _finished_, or _being regenerated_.
- `queued` - `queued`: The request for export is received, and is in the queue to be processed.
- `started` - `started`: The export process has started and is in progress. It includes:
- `finished` - The process of exporting.
- `regeneration_in_progress` - Actions performed on the resulting file, such as sending an email notifying
the user to download the file, or uploading the exported file to a web server.
`queued` state represents the request for export is received, and is currently in the queue to be processed. - `finished`: After the export process has completed and the user has been notified.
- `regeneration_in_progress`: An export file is available to download, and a request to generate a new export is in process.
The `started` state represents that the export process has started and is currently in progress.
It includes the process of exporting, actions performed on the resultant file such as sending
an email notifying the user to download the file, uploading the exported file to a web server, etc.
`finished` state is after the export process has completed and the user has been notified.
`regeneration_in_progress` is when an export file is available to download, and a request to generate a new export is in process.
`none` is when there are no exports _queued_, _started_, _finished_, or _being regenerated_
`_links` are only present when export has finished. `_links` are only present when export has finished.
...@@ -288,7 +279,7 @@ NOTE: ...@@ -288,7 +279,7 @@ NOTE:
An element's `id` field in `failed_relations` references the failure record, not the relation. An element's `id` field in `failed_relations` references the failure record, not the relation.
NOTE: NOTE:
The `failed_relations` array is currently capped to 100 items. The `failed_relations` array is capped to 100 items.
```json ```json
{ {
......
...@@ -253,7 +253,7 @@ error message. Possible causes for a failed commit include: ...@@ -253,7 +253,7 @@ error message. Possible causes for a failed commit include:
user tried to make an empty commit; user tried to make an empty commit;
- the branch was updated by a Git push while the file edit was in progress. - the branch was updated by a Git push while the file edit was in progress.
Currently GitLab Shell has a boolean return code, preventing GitLab from specifying the error. GitLab Shell has a boolean return code, preventing GitLab from specifying the error.
## Delete existing file in repository ## Delete existing file in repository
......
...@@ -8,7 +8,7 @@ disqus_identifier: 'https://docs.gitlab.com/ee/workflow/repository_mirroring.htm ...@@ -8,7 +8,7 @@ disqus_identifier: 'https://docs.gitlab.com/ee/workflow/repository_mirroring.htm
# Repository mirroring **(FREE)** # Repository mirroring **(FREE)**
Repository mirroring allows for the mirroring of repositories to and from external sources. You Repository mirroring allows for the mirroring of repositories to and from external sources. You
can use it to mirror branches, tags, and commits between repositories. It's useful when you want to use can use it to mirror branches, tags, and commits between repositories. It helps you use
a repository outside of GitLab. a repository outside of GitLab.
A repository mirror at GitLab updates automatically. You can also manually trigger an update A repository mirror at GitLab updates automatically. You can also manually trigger an update
...@@ -36,7 +36,7 @@ Maintainer or Owner permissions to the mirrored project. ...@@ -36,7 +36,7 @@ Maintainer or Owner permissions to the mirrored project.
The following are some possible use cases for repository mirroring: The following are some possible use cases for repository mirroring:
- You migrated to GitLab but still need to keep your project in another source. In that case, you - You migrated to GitLab but still need to keep your project in another source. In that case, you
can simply set it up to mirror to GitLab (pull) and all the essential history of commits, tags, can set it up to mirror to GitLab (pull) and all the essential history of commits, tags,
and branches are available in your GitLab instance. **(PREMIUM)** and branches are available in your GitLab instance. **(PREMIUM)**
- You have old projects in another source that you don't use actively anymore, but don't want to - You have old projects in another source that you don't use actively anymore, but don't want to
remove for archiving purposes. In that case, you can create a push mirror so that your active remove for archiving purposes. In that case, you can create a push mirror so that your active
...@@ -105,7 +105,7 @@ reflects that `develop` has diverged and was skipped, and be marked as a failed ...@@ -105,7 +105,7 @@ reflects that `develop` has diverged and was skipped, and be marked as a failed
update. update.
NOTE: NOTE:
After the mirror is created, this option can currently only be modified via the [API](../../../api/remote_mirrors.md). After the mirror is created, this option can only be modified via the [API](../../../api/remote_mirrors.md).
### Setting up a push mirror from GitLab to GitHub ### Setting up a push mirror from GitLab to GitHub
...@@ -122,11 +122,15 @@ The repository pushes shortly thereafter. To force a push, select the **Update n ...@@ -122,11 +122,15 @@ The repository pushes shortly thereafter. To force a push, select the **Update n
### Setting up a push mirror from GitLab to AWS CodeCommit ### Setting up a push mirror from GitLab to AWS CodeCommit
AWS CodeCommit push mirroring is currently the best way to connect GitLab repositories to AWS CodePipeline, as GitLab isn't yet supported as one of their Source Code Management (SCM) providers. AWS CodeCommit push mirroring is the best way to connect GitLab repositories to
AWS CodePipeline, as GitLab isn't yet supported as one of their Source Code Management (SCM) providers.
Each new AWS CodePipeline needs significant AWS infrastructure setup. It also requires an individual pipeline per branch. Each new AWS CodePipeline needs significant AWS infrastructure setup. It also
requires an individual pipeline per branch.
If AWS CodeDeploy is the final step of a CodePipeline, you can, instead, leverage GitLab CI/CD pipelines and simply use the AWS CLI in the final job in `.gitlab-ci.yml` to deploy to CodeDeploy. If AWS CodeDeploy is the final step of a CodePipeline, you can, instead, leverage
GitLab CI/CD pipelines and use the AWS CLI in the final job in `.gitlab-ci.yml`
to deploy to CodeDeploy.
NOTE: NOTE:
GitLab-to-AWS-CodeCommit push mirroring cannot use SSH authentication until [GitLab issue 34014](https://gitlab.com/gitlab-org/gitlab/-/issues/34014) is resolved. GitLab-to-AWS-CodeCommit push mirroring cannot use SSH authentication until [GitLab issue 34014](https://gitlab.com/gitlab-org/gitlab/-/issues/34014) is resolved.
...@@ -214,10 +218,9 @@ If it isn't working correctly, a red `error` tag appears and shows the error mes ...@@ -214,10 +218,9 @@ If it isn't working correctly, a red `error` tag appears and shows the error mes
You can set up a repository to automatically have its branches, tags, and commits updated from an You can set up a repository to automatically have its branches, tags, and commits updated from an
upstream repository. upstream repository.
This is useful when a repository you're interested in is located on a different server, and you want If a repository you're interested in is located on a different server, and you want
to be able to browse its content and its activity using the familiar GitLab interface. to browse its content and its activity using the GitLab interface, you can configure
mirror pulling:
To configure mirror pulling for an existing project:
1. If you [configured two-factor authentication (2FA)](https://docs.github.com/en/github/authenticating-to-github/securing-your-account-with-two-factor-authentication-2fa) 1. If you [configured two-factor authentication (2FA)](https://docs.github.com/en/github/authenticating-to-github/securing-your-account-with-two-factor-authentication-2fa)
for GitHub, create a [personal access token for GitHub](https://docs.github.com/en/github/authenticating-to-github/creating-a-personal-access-token) for GitHub, create a [personal access token for GitHub](https://docs.github.com/en/github/authenticating-to-github/creating-a-personal-access-token)
...@@ -244,7 +247,7 @@ Because GitLab is now set to pull changes from the upstream repository, you shou ...@@ -244,7 +247,7 @@ Because GitLab is now set to pull changes from the upstream repository, you shou
directly to the repository on GitLab. Instead, any commits should be pushed to the remote repository. directly to the repository on GitLab. Instead, any commits should be pushed to the remote repository.
Changes pushed to the remote repository are pulled into the GitLab repository, either: Changes pushed to the remote repository are pulled into the GitLab repository, either:
- Automatically within a certain period of time. - Automatically in a certain period of time.
- When a [forced update](#forcing-an-update) is initiated. - When a [forced update](#forcing-an-update) is initiated.
WARNING: WARNING:
...@@ -254,7 +257,7 @@ Deleted branches and tags in the upstream repository are not reflected in the Gi ...@@ -254,7 +257,7 @@ Deleted branches and tags in the upstream repository are not reflected in the Gi
### How it works ### How it works
Once the pull mirroring feature has been enabled for a repository, the repository is added to a queue. After the pull mirroring feature has been enabled for a repository, the repository is added to a queue.
Once per minute, a Sidekiq cron job schedules repository mirrors to update, based on: Once per minute, a Sidekiq cron job schedules repository mirrors to update, based on:
...@@ -556,7 +559,7 @@ Bidirectional mirroring should not be used as a permanent configuration. Refer t ...@@ -556,7 +559,7 @@ Bidirectional mirroring should not be used as a permanent configuration. Refer t
[Git Fusion](https://www.perforce.com/manuals/git-fusion/#Git-Fusion/section_avy_hyc_gl.html) provides a Git interface [Git Fusion](https://www.perforce.com/manuals/git-fusion/#Git-Fusion/section_avy_hyc_gl.html) provides a Git interface
to [Perforce Helix](https://www.perforce.com/products) which can be used by GitLab to bidirectionally to [Perforce Helix](https://www.perforce.com/products) which can be used by GitLab to bidirectionally
mirror projects with GitLab. This may be useful in some situations when migrating from Perforce Helix mirror projects with GitLab. This can help you in some situations when migrating from Perforce Helix
to GitLab where overlapping Perforce Helix workspaces cannot be migrated simultaneously to GitLab. to GitLab where overlapping Perforce Helix workspaces cannot be migrated simultaneously to GitLab.
If using mirroring with Perforce Helix, you should only mirror protected branches. Perforce Helix If using mirroring with Perforce Helix, you should only mirror protected branches. Perforce Helix
......
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