Commit Graph

2794 Commits

Author SHA1 Message Date
Kamil Trzciński 04d07cc5b4 Merge branch 'feature/runner-per-group' into 'master'
Shared CI runners for groups

See merge request gitlab-org/gitlab-ce!9646
2018-05-04 09:44:05 +00:00
Rémy Coutable e50bed7eff
Fix lambda arguments in Grape entities
Signed-off-by: Rémy Coutable <remy@rymai.me>
2018-05-03 18:16:27 +02:00
Dylan Griffith d39b3d4b8d Merge branch 'master' into feature/runner-per-group 2018-05-03 09:54:12 +02:00
Jan Provaznik 7a76caa5a8 Merge request and commit discussions API 2018-05-01 12:39:44 +00:00
Roger Rüttimann bc7877e8c1 show only groups an admin is a member of in dashboards/grops 2018-05-01 09:24:21 +00:00
Dylan Griffith e2b62f6e44 Remove API changes for assigning group runner to project
Since we are going to handle the API stuff later we can just leave this as error case since the model validations will stop this
2018-04-30 17:27:21 +04:00
Dylan Griffith 0d30b00de8 Start persisting runner_type when creating runners 2018-04-30 17:01:35 +04:00
Dylan Griffith 5652ff953c Rename Runner#group? -> #assigned_to_group? and Runner#project? -> #assigned_to_project? 2018-04-30 10:43:29 +04:00
James Ramsay b65fcc320d Add sha filter to list pipelines
To find the pipeline for a specific sha requires scanning the list of
all pipelines for a ref that contains the sha. This makes it hard to
find the pipeline id needed to access a trace for a specific job run
in the pipeline using the API.
2018-04-27 11:00:52 +01:00
Dylan Griffith 51cc01b6c9 Merge branch 'master' into siemens-runner-per-group 2018-04-24 17:26:08 +10:00
Lin Jen-Shin ab286656b2 Resolve "Namespace factory is problematic" 2018-04-23 15:48:26 +00:00
Rémy Coutable eb1cb7bed6 Merge branch '45576-fix-create-project-for-user-endpoint' into 'master'
Resolve "Upgrading to API V4 Project Creation for user Fails"

Closes #45576

See merge request gitlab-org/gitlab-ce!18518
2018-04-23 10:04:10 +00:00
Dmitriy Zaporozhets c87c55bb35 Add 2FA filter to users API for admins only
Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
2018-04-23 11:54:45 +03:00
Mark Fletcher 5716167775 Fix project creation for user endpoint bug
In this endpoint the `jobs_enabled` parameter must be
translated to `builds_enabled` before being passed to
the `Projects::CreateService`.
2018-04-23 08:22:16 +01:00
Alexis Reigel cc4bc22ae4
runner can't be assigned to more than 1 group
therefore we don't need the api check.
2018-04-23 09:21:55 +02:00
Alexis Reigel d0842d2075
disallow group runners to become project runners 2018-04-23 09:21:43 +02:00
Alexis Reigel 32a9c85bd9
revert support for v3 api 2018-04-23 09:21:43 +02:00
Alexis Reigel b55c3a7bc4
support group runners in existing API endpoints 2018-04-23 09:21:43 +02:00
Nick Thomas 672733aa66
Add an API endpoint to download git repository snapshots 2018-04-19 17:25:01 +01:00
🙈 jacopo beschi 🙉 c6b1043e9d Resolve "Make a Rubocop that forbids returning from a block" 2018-04-18 09:19:40 +00:00
Nick Thomas f13d5da2ae Merge branch '45363-optional-params-on-api-endpoint-produce-invalid-pagination-header-links' into 'master'
Fix URLs in the `Link` header for `GET /projects/:id/repository/contributors`   when no value is passed for `order_by` or `sort`

Closes #45363

See merge request gitlab-org/gitlab-ce!18393
2018-04-17 14:51:06 +00:00
Rémy Coutable 422aa5a62d
[API] Fix URLs in the 'Link' header for 'GET /projects/:id/repository/contributors' when no value is passed for 'order_by' or 'sort'
Signed-off-by: Rémy Coutable <remy@rymai.me>
2018-04-17 15:20:07 +02:00
Andreas Brandl c4e4258721 Validate project path prior to hitting the database.
Closes #45247.
2018-04-13 15:59:45 +02:00
Roger Rüttimann e467a11ec7 Feature/add language in repository to api 2018-04-13 08:06:04 +00:00
Bob Van Landuyt 71ccfde322 Correct permissions for creating merge requests from issues
This could only be possible for users that can create merge requests
within a project.

So they need to be a allowed to create a branch and create a merge request.
2018-04-11 10:51:17 +02:00
Andrew Beresford 3a4086e22f Expose the target commit ID through the tag API
This is useful for annotated tags, where the deferenced target is not the same as the tag object. At the moment there is no way to differentiate the two through the tag API.

This change adds a "target" property and leaves the existing "commit" property alone so that existing behaviour is not altered.
2018-04-08 20:59:03 +01:00
Francisco Javier López 31dd86b636 Projects and groups badges settings UI 2018-04-08 10:20:05 +00:00
Francisco Javier López f20912df03 Extend API for importing a project export with overwrite support 2018-04-06 15:23:49 +00:00
Douwe Maan 44f4a674e2 Merge branch 'jramsay-38830-tarball' into 'master'
Add alternative archive route

Closes #38830

See merge request gitlab-org/gitlab-ce!17225
2018-04-06 14:14:39 +00:00
Sean McGivern fdffe54b30 Merge branch 'issue_42443' into 'master'
Include subgroup issues when searching for group issues using the API

Closes #42443

See merge request gitlab-org/gitlab-ce!18068
2018-04-06 08:47:26 +00:00
Grzegorz Bizon dd271e2460 Merge branch 'direct-upload-of-artifacts' into 'master'
Direct upload of artifacts

See merge request gitlab-org/gitlab-ce!18160
2018-04-05 20:59:40 +00:00
Felipe Artur b9dfd071ed Include subgroup issues when searching for group issues using the API 2018-04-05 17:19:52 -03:00
Douwe Maan 082bf1c6ee Merge branch 'bvl-override-import-params' into 'master'
Allow passing params to import API to override project attributes

Closes gitlab-ee#4788

See merge request gitlab-org/gitlab-ce!18086
2018-04-05 15:18:49 +00:00
Kamil Trzciński 678620cce6 Add `direct_upload` setting for artifacts 2018-04-05 15:01:14 +02:00
Douwe Maan 52967b107b
Merge branch 'jej/mattermost-notification-confidentiality-10-6' into 'security-10-6'
[10.6] Prevent notes on confidential issues from being sent to chat

See merge request gitlab/gitlabhq!2366
# Conflicts:
#	app/helpers/services_helper.rb
2018-04-05 08:41:56 +02:00
James Ramsay 0b1b9c409d Add option to suppress archive commit sha
Repository archives are always named `<project>-<ref>-<sha>` even if
the ref is a commit. A consequence of always including the sha even
for tags is that packaging a release is more difficult because both
the ref and sha must be known by the packager.

- add append_sha option (defaults true) to provide a method for
toggling this feature.

Support added to GitLab Workhorse by gitlab-org/gitlab-workhorse!232
2018-04-04 16:56:18 -04:00
Bob Van Landuyt e40c0085ef Store override params as import data on projects
This means import data doesn't necessarily have to have an import_url
anymore.

The `ProjectImportData` could just contain the override data in it's
serialized data attribute.

The import data is automatically cleaned up after it is finished by
the state machine.
2018-04-04 19:49:48 +02:00
Bob Van Landuyt 11a9fbe65b Make the API project params reusable 2018-04-04 19:49:48 +02:00
Felipe Artur ad7148d9ea Allow assigning and filtering issuables by ancestor group labels 2018-04-04 15:40:29 +00:00
Douwe Maan e43c01e6b8 Merge branch 'zj-feature-gate-remove-http-api' into 'master'
Allow feature gate removal through the API

See merge request gitlab-org/gitlab-ce!18146
2018-04-04 13:13:44 +00:00
Jan f6d58310fc Resolve "Allow the configuration of a project's merge method via the API" 2018-04-04 09:56:38 +00:00
Zeger-Jan van de Weg caca8f34ff
Allow feature gate removal through the API
Features could be listed and added through the api, now also removed.
This was needed in the case of gitlab.com as the number of gates that
were ever used just grows and cleaning up is hard.
2018-04-03 16:39:08 +02:00
Shinya Maeda 61c8093b26 Store metadata checksum for artifacts 2018-04-03 20:42:51 +09:00
Francisco Javier López 22b05a1ff7 Extend API for exporting a project with direct upload URL 2018-03-30 15:45:59 +00:00
Sean McGivern 7c36e8561c Merge branch '41967_issue_api_closed_by_info' into 'master'
Add closed by information to issue API

See merge request gitlab-org/gitlab-ce!17042
2018-03-30 15:43:45 +00:00
Jacob Vosmaer (GitLab) b942462788 Remove support for absolute dirs from Git::Env 2018-03-30 09:19:46 +00:00
Kamil Trzciński 8b37ce6f7f Merge branch 'add-per-runner-job-timeout' into 'master'
Add per runner job timeout

Closes #43426

See merge request gitlab-org/gitlab-ce!17221
2018-03-29 10:54:06 +00:00
Sean McGivern 869b7b31cf Merge branch 'dm-deploy-keys-default-user' into 'master'
Ensure hooks run when a deploy key without a user pushes

Closes #44317

See merge request gitlab-org/gitlab-ce!18057
2018-03-29 09:30:10 +00:00
Douwe Maan 59d910f2a1 Set user when adding deploy key to project using API 2018-03-28 18:53:52 +02:00
Rémy Coutable fffa19cbb6 Merge branch 'expose-commits-mr-api' into 'master'
Allow merge requests related to a commit to be found via API

See merge request gitlab-org/gitlab-ce!18004
2018-03-28 14:24:05 +00:00