Commit 9aedc05e authored by Steve Azzopardi's avatar Steve Azzopardi

Fix documentation for list runners

We are specifying that we will only return the shared runners on two
condition; 1 if project has any available 2 if shared runners are
enabled.

2 is not correct. In the admin UI, when the user press "disable shared
runners" we still show the runners to show what kind of runners are
available when the user enables them. We want the API to mimic this
behavior from the UI.

closes https://gitlab.com/gitlab-org/gitlab-ce/issues/52918
parent c67e978f
...@@ -340,8 +340,7 @@ Example response: ...@@ -340,8 +340,7 @@ Example response:
## List project's runners ## List project's runners
List all runners (specific and shared) available in the project. Shared runners List all runners (specific and shared) available in the project. Shared runners
are listed if at least one shared runner is defined **and** shared runners are listed if at least one shared runner is defined.
usage is enabled in the project's settings.
``` ```
GET /projects/:id/runners GET /projects/:id/runners
......
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