Commit Graph

1556 Commits

Author SHA1 Message Date
Alexander Randa c4be3460c2 Fix API group/issues default state filter 2017-03-28 17:43:55 +03:00
Toon Claes add5cd996f API: Make the /notes endpoint work with noteable iid instead of id
In API V4 all endpoints were changed so Merge Requests and Issues
should be referred by iid, instead of id. Except the /notes endpoint
was forgotten. So change the endpoints from:

- /projects/:id/issues/:issue_id/notes
- /projects/:id/merge_requests/:merge_request_id/notes

To:

- /projects/:id/issues/:issue_iid/notes
- /projects/:id/merge_requests/:merge_request_iid/notes

For Project Snippets nothing changes.
2017-03-27 15:29:37 +02:00
George Andrinopoulos 7c74a0209b Implement new service for creating user 2017-03-27 09:37:24 +00:00
Toon Claes d536d9590b Remove `:id/merge_requests/:merge_request_iid/comments` endpoints
Comments for a merge request should be obtained to the `notes` endpoint.
2017-03-27 10:23:14 +02:00
Robert Speicher def164e761 Fix RSpec/DescribeSymbol cop violations 2017-03-24 19:04:03 -04:00
Adam Niedzielski 8ab347b392 Return 404 in project issues API endpoint when project cannot be found
Closes #29631
2017-03-20 18:03:29 +01:00
Kamil Trzciński d454e100ce Merge branch 'fix/regressions-in-ci-v4-api' into 'master'
Fix regressions introduced while adding CI endpoints in API v4

See merge request !9952
2017-03-20 12:57:03 +00:00
George Andrinopoulos de518e1247 Allow dot in branch name in trigger/builds endpoint in API 2017-03-20 12:49:31 +00:00
Tomasz Maczukin 37b36b4693
Update example's name in /runners/verify tests 2017-03-20 09:40:37 +01:00
Tomasz Maczukin c191c1103b
Send only defined dependencies
In APIv1 we've been sending all jobs from previous stages and
a `dependencies` list with names of jobs that user want to download
artifacts from. This was selected on Runners side.

In APIv1 we've planned to send only jobs that were defined (if any; and
all previous jobs by default). However I've missed the fact that
it was Runner who selected jobs, not GitLab. And now current version
of APIV4 sends all jobs everytime.

This commit fixes this. If user will define `dependencies` in his job,
then GitLab will send only selected jobs.
2017-03-20 09:40:36 +01:00
Tomasz Maczukin 9267a9b19d
Send token of depenent job
Artifacts download for authorization is using a job token of job to
which the artifact belongs. In APIv1 the token was sent with dependent
jobs details and in APIv4 it was designed to also contain it.

However I forgot about this parameter while working on
`/api/v4/jobs/request` endpoint.

This commit adds a missing parameter which is required for APIv4 to work
properly.
2017-03-20 09:40:36 +01:00
Tomasz Maczukin e79ab1115b
Remove legacy Runners support in /api/v4/jobs/request
In Runner v1.3.0 we've started to send User-Agent header with Runner's
version data. Since GitLab v8.12.0 we've started to use this header to check
if used Runner's version supports 204 status code instead of 404 as a
response when there is no jobs to execute by a Runner.

In APIv4 (introduced in GitLab 9.0.0) will require Runner v9.0.0. And
writing more accurately: GitLab Runner v9.0.0 will require GitLab at
least 9.0.0. Because of such breaking change we are able to switch
entirely to 204 response code and there is no need to do check of
User-Agent.

This commit removes useless code and complexity.
2017-03-20 09:40:36 +01:00
Tomasz Maczukin bbf4d27a5c
Make runner's veryfication working again
In APIv1 we were using UpdateJob to verify if the runner exists. It was
the only method that was using Runner's token and used in special way
had no side effects (like scheduling a new job or unregisterring a
Runner).

In APIv4 we've change UpdateJob to use job's token as authentication
credentials, and that way we've removed the only endpoint that could
be used to verify if the Runner with a certain token exists in target
GitLab installation.

This commit adds `POST /api/v4/runners/verify` endpoint whose only
responsibility is to respond if Runner with posted credentials exists or
not.
2017-03-20 09:40:36 +01:00
Rémy Coutable aaaee8ae27 Allow unauthenticated access to some Branch API GET endpoints
Signed-off-by: Rémy Coutable <remy@rymai.me>
2017-03-20 09:37:31 +01:00
Sean McGivern d50034245a Merge branch '29604-v3-fix-branch-creation' into 'master'
Use "branch_name" instead "branch" on V3 branch creation API

Closes #29604

See merge request !10030
2017-03-17 12:36:56 +00:00
Alex Sanford 68e3fa0e58 Add ability to disable Merge Request URL on push 2017-03-17 12:35:39 +00:00
Oswaldo Ferreira 3f11174196 Use "branch_name" instead "branch" on V3 branch creation API 2017-03-16 21:15:16 -03:00
Sean McGivern d5cb998e61 Merge branch '27988-fix-transient-failure-in-commits-api' into 'master'
Ensure dots in project and group ID are allowed in the API endpoints

Closes #27988

See merge request !9944
2017-03-16 18:25:39 +00:00
Rémy Coutable 63360adeae
Add `requirements: { id: %r{[^/]+} }` for all projects and groups namespaced API routes
Signed-off-by: Rémy Coutable <remy@rymai.me>
2017-03-16 18:00:24 +01:00
Toon Claes 670427cdde Put the use of "No Label" in the description
To get the issues that have no label, the special keyword `No Label`
can be used. This `No Label` label can be used like any other label.
2017-03-16 13:54:49 +01:00
Z.J. van de Weg 3ebd29b538 Futher rename the CI variables 2017-03-16 08:49:01 +01:00
Rémy Coutable c9abdadd7a
Ensure dots in project path is allowed in the commits API
Signed-off-by: Rémy Coutable <remy@rymai.me>
2017-03-14 18:08:50 +01:00
Rémy Coutable edf29b571f Merge branch 'fix/regression-in-runners-registration-v1-api' into 'master'
Fix regression in runners registration v1 api

See merge request !9904
2017-03-14 02:13:34 +00:00
Douwe Maan cc4ca1f3fe Merge branch '25515-delegate-single-discussion-to-new-issue' into 'master'
Create a new issue for a single discussion

See merge request !8266
2017-03-13 18:25:25 +00:00
Rémy Coutable 5f7592d538 Implement `json_response` as a `let` variable
This is not a good idea to memoize `json_response` using an instance
variable because `rspec-retry` doesn't clear instance variables on
retries, only `let` variables.

This will avoid issues where retries would fail on a different line that
the original failure, blurrying what's the real failure.

Also, automatically add api: true to specs under
/spec/requests/(ci/)?api/, and include JsonHelpers in controller, request
and API specs.

Signed-off-by: Rémy Coutable <remy@rymai.me>
2017-03-13 17:33:17 +01:00
Tomasz Maczukin 2e1b2233ce
Fix regression in runners registration v1 api 2017-03-13 16:35:10 +01:00
Sean McGivern d1df36e386 Merge branch 'refactor/global-permissions-for-internal-users' into 'master'
Refactor/global permissions for internal users

See merge request !9598
2017-03-13 11:04:33 +00:00
Bob Van Landuyt ea70a0d674 Rename variable
merge_request_for_resolving_discussions ->
merge_request_to_resolve_discussions_of
2017-03-13 08:27:52 +01:00
Bob Van Landuyt f86928953d Always require MR-iid for resolving discussions
And deduplicate the finding of MR's & discussions. Now the searching
is done in the service, istead of the controller & the API.
2017-03-13 08:27:51 +01:00
Bob Van Landuyt 0267b83898 Delegate a single discussion to a new issue
Delegate a discussion in a merge request into a new issue.
The discussion wil be marked as resolved and a system note will be
added linking to the newly created issue.
2017-03-13 08:27:51 +01:00
Douwe Maan 6ade63977a Merge branch 'tc-fix-project-create-500' into 'master'
Fix for creating a project through API when import_url is nil

Closes #29121

See merge request !9841
2017-03-10 15:56:24 +00:00
Toon Claes c92808ed32 Fix for creating a project through API when import_url is nil
The API was returning 500 when `nil` is passed for the `import_url`.

In fact, it was `Gitlab::UrlSanitizer.valid?` which was throwing a
`NoMethodError` when `nil` value was passed.
2017-03-10 10:03:03 +01:00
http://jneen.net/ a5c05544cf fix a brittle stub
true is neither nil nor a user and doesn't make sense as the return
value of `current_user`
2017-03-09 11:49:53 -08:00
George Andrinopoulos dd30946999 Order milestone issues by position ascending in api 2017-03-09 18:43:07 +00:00
Douwe Maan 04665e938c Merge branch 'issue_16834'
# Conflicts:
#	doc/api/v3_to_v4.md
2017-03-07 22:00:23 -06:00
Douwe Maan ff9267a707 Merge branch '1381-present-commits-pagination-headers-correctly' into 'master'
GET "projects/:id/repository/commits" endpoint improvements

Closes #1381 and #20207

See merge request !9679
2017-03-08 03:05:24 +00:00
Oswaldo Ferreira d13451cd49 Returns correct header data for commits endpoint 2017-03-07 22:56:31 -03:00
Jordan Ryan Reuter 473cab818a Manually set total_count when paginating commits
`Kaminari.paginate_array` takes some options, most relevant of which is
a `total_count` parameter. Using the `commit_count` for `total_count`
lets us correctly treat the return of `Repository#commits` as a subset
of all the commits we may wish to list.

Addition of a new `Repository#commit_count_for_ref` method was
necessarry to allow the user to start from an arbitrary ref.

Ref #1381
2017-03-07 22:56:30 -03:00
Felipe Artur a61bb7cda3 Remove unecessary endpoint from repository, add compatibility endpoints for v3 and several improvements 2017-03-07 22:20:38 -03:00
Felipe Artur 9053d78e74 Update API endpoints for raw files 2017-03-07 21:15:47 -03:00
Toon Claes 901fbda67c Make it possible to query scope as scope[]=
Since issues also accepts the query parameter iids[]=, also make it
possible query scope like that.
2017-03-07 23:45:32 +01:00
Toon Claes f372400673 Add GET /projects/:id/pipelines/:pipeline_id/jobs endpoint
Add endpoint to get the jobs scoped to a pipeline.
2017-03-07 23:45:32 +01:00
Kamil Trzciński 55f2a5debc Added Prometheus Service and Prometheus graphs 2017-03-07 16:57:42 +00:00
Sean McGivern a5db7f5425 Merge branch '28447-hybrid-repository-storages' into 'master'
Update storage settings to allow extra values per shard

See merge request !9597
2017-03-07 16:55:03 +00:00
Sean McGivern de37dcee90 Merge branch 'siemens/gitlab-ce-feature/openid-connect' 2017-03-07 16:16:08 +00:00
Douwe Maan 6a52cda31d Merge remote-tracking branch 'origin/personal_access_token_api_and_impersonation_token' 2017-03-07 09:29:55 -06:00
Markus Koller 93daeee164 Don't allow blocked users to authenticate through other means
Gitlab::Auth.find_with_user_password is currently used in these places:

- resource_owner_from_credentials in config/initializers/doorkeeper.rb,
  which is used for the OAuth Resource Owner Password Credentials flow

- the /session API call in lib/api/session.rb, which is used to reveal
  the user's current authentication_token

In both cases users should only be authenticated if they're in the
active state.
2017-03-07 15:00:29 +01:00
Kamil Trzciński fb4a486605 Merge branch 'feature/runner-jobs-v4-api' into 'master'
Feature/runner jobs v4 api

Closes #28513

See merge request !9273
2017-03-07 13:53:26 +00:00
Tomasz Maczukin 32b09b8847
Add minor refactoring 2017-03-07 12:30:34 +01:00
Timothy Andrew 6384bf7a88
Implement review comments from @dbalexandre
- Typo in docs
- Newline between test/expectation in `api/issues_spec`
- Use `find_by` instead of `reference_by` in the structure defining awardables
2017-03-07 13:56:00 +05:30
Timothy Andrew 519bac658a
Fix time tracking endpoints for API v4
- Use issue/merge_request IID instead of ID
- Duplicate the original `TimeTrackingEndpoints` concern (+ specs) for V3, since
  this is a breaking change.
2017-03-07 13:56:00 +05:30
Timothy Andrew 9ccd8b8755
Migrate the Todos API to use `issuable_iid`
- Instead of `issuable_id`
2017-03-07 13:55:59 +05:30
Timothy Andrew 70584e6925
Migrate the AwardEmoji API to use `merge_request_iid` and `issue_iid`
- Instead of `merge_request_id` and `issue_id`
- The API also deals with `snippet_id`, which remains unchanged (since snippets
  don't have `iid`s
- Duplicate the original `AwardEmoji` API (and spec) for use with the V3
  API, since this is a breaking change.
2017-03-07 13:55:59 +05:30
Timothy Andrew 402e0a2dd7
Migrate the MergeRequestDiffs API to use `merge_request_iid`
- Instead of `merge_request_id`
- Duplicate the original `MergeRequestDiffs` API (and spec) for use with the V3
  API, since this is a breaking change.
2017-03-07 13:55:59 +05:30
Timothy Andrew 719327112c
API routes referencing a specific merge request should use the MR `iid`
- As opposed to the `id` that was previously being used.
- This brings the API routes closer to the web interface's routes.
- This is specific to API v4.
2017-03-07 13:06:42 +05:30
Timothy Andrew dd99622347
API routes referencing a specific issue should use the issue `iid`
- As opposed to the issue `id` that was previously being used.
- This brings the API routes closer to the web interface's routes.
- This is specific to API v4.
2017-03-07 13:06:42 +05:30
Tomasz Maczukin 0905fe4d7a
Change artifacts and cache fields to arrays 2017-03-06 20:54:30 +01:00
Tiago Botelho 005749a616 apply codestyle and implementation changes to the respective feature code 2017-03-06 19:18:26 +00:00
Oswaldo Ferreira fa0c0bb006 Narrow environment payload by using basic project details resource 2017-03-06 14:00:38 -03:00
Kamil Trzciński b63c41e12e Merge branch 'zj-builds-to-jobs-api' into 'master'
Rename builds to jobs in the API

Closes #28515

See merge request !9463
2017-03-06 16:36:16 +00:00
Pawel Chojnacki 2ff139ddee Make Warden set_user hook validate user ip uniquness
+ rename shared context
2017-03-06 15:41:25 +01:00
Pawel Chojnacki 9cc0ff8f46 Cleanup common code in Unique Ips tests 2017-03-06 15:41:25 +01:00
Pawel Chojnacki b1da4f7de3 Cleanup RSpec tests 2017-03-06 15:41:25 +01:00
Pawel Chojnacki 8993801f0c Test various login scenarios if the limit gets enforced 2017-03-06 15:41:25 +01:00
Z.J. van de Weg 75123fa9f7 Incorporate review, drop old endpoint
The endpoint dropped, get ':id/repository/commits/:sha/jobs', should be
replace by a new endpoint.
2017-03-06 14:34:47 +01:00
Toon Claes 9e942b5972 Fix all tests
This commit was about 6 commits before squashing, with the main goal to
make all tests green. Now, after pushing this commit we'll see what the
CI has to say about that.
2017-03-06 14:34:07 +01:00
Z.J. van de Weg f44ab8e8ec Pick API files from 8.16.6 2017-03-06 14:34:07 +01:00
Z.J. van de Weg b5b93f80e5 Update entities, rename from builds to jobs
This commit only renames the commits, the cascading effects will be
dealt with later.
2017-03-06 14:34:07 +01:00
Z.J. van de Weg 111748ea89 Rename Builds to Jobs in the API
Fixes gitlab-org/gitlab-ce#28515

[ci skip]
2017-03-06 14:34:07 +01:00
Adam Niedzielski c727d4328f Remove "subscribed" field from API responses returning list of issues or merge requests 2017-03-06 14:17:07 +01:00
Adam Niedzielski 5753acfabc Move schema definitions for our public API to a separate directory 2017-03-06 14:17:07 +01:00
Kamil Trzcinski d5f7060400
Rename `/take` to `/take_ownership`, expose `owner` in `v3`. 2017-03-06 12:00:15 +01:00
Tomasz Maczukin 440ef7802d
Fix rubocop offenses 2017-03-06 11:51:09 +01:00
Kamil Trzcinski 01f99bd269
Update after review 2017-03-06 11:49:44 +01:00
Kamil Trzcinski 140b51ce98
Introduce tests for pipeline triggers 2017-03-05 20:58:08 +01:00
Kamil Trzcinski c33f09d254
Update triggers API 2017-03-05 18:49:30 +01:00
Robert Speicher e19bcc7b6d Merge branch '26847-api-pipelines-use-basic' into 'master'
Expose pipelines as PipelineBasic `api/v4/projects/:id/pipelines`

Closes #26847

See merge request !8875
2017-03-03 20:31:25 +00:00
Alejandro Rodríguez 0b9d56f960 Update storage settings to allow extra values per shard
This will be necessary when adding gitaly settings. This version
doesn't make any functional changes, but allows us to include this
breaking change in 9.0 and add the needed extra settings in the future
with backwards compatibility
2017-03-03 12:13:30 -03:00
Toon Claes 6357635686 Rename query parameter to `membership`
The query parameter `membership` should be more self-explaining.
2017-03-03 13:42:39 +01:00
Oswaldo Ferreira 06e96907ee Add filter param for authorized projects for current_user for V4 2017-03-03 12:02:41 +01:00
Toon Claes 59e7d04bc7 Expose pipelines as PipelineBasic `projects/:id/pipelines`
The `projects/:id/pipelines` exposed a lot of extra details
that are superfluous and it was taking extra resources to fetch them.

To get more details about a pipeline, use
`projects/:id/pipelines/:pipeline_id`.
2017-03-03 09:52:04 +01:00
Sean McGivern b18646040c Merge branch '27532_api_changes' into 'master'
Use iids as filter parameter

Closes #27532

See merge request !9096
2017-03-03 06:32:58 +00:00
Robert Speicher 9398f64563 Merge branch 'dm-fix-api-create-file-on-empty-repo' into 'master'
Fix creating a file in an empty repo using the API

Closes #28626

See merge request !9632
2017-03-02 23:14:02 +00:00
Douwe Maan 8ec8b2da66 Merge branch '27501-api-use-visibility-everywhere' into 'master'
API: Use `visibility` as string parameter everywhere

Closes #27501

See merge request !9337
2017-03-02 17:10:25 +00:00
Tomasz Maczukin 5c1aa5fb65
Add some fixes and refactoring after review 2017-03-02 17:48:00 +01:00
Tomasz Maczukin 1bbf2c2cd1
Fix rubocop offenses 2017-03-02 17:45:46 +01:00
Tomasz Maczukin f7d352341e
Add artifacts downloading API 2017-03-02 17:45:46 +01:00
Tomasz Maczukin c2eb54760d
Add artifacts uploading API 2017-03-02 17:45:46 +01:00
Tomasz Maczukin 2a7f555caf
Add artifacts uploading authorize API 2017-03-02 17:45:46 +01:00
Tomasz Maczukin 7e46db0f5a
Add job patch trace API 2017-03-02 17:45:46 +01:00
Tomasz Maczukin d5f7e54211
Add job update API 2017-03-02 17:45:46 +01:00
Tomasz Maczukin fb8210ad19
Update step data naming 2017-03-02 17:45:45 +01:00
Tomasz Maczukin bbf5bb7070
Fix rubocop offenses 2017-03-02 17:45:45 +01:00
Tomasz Maczukin 3eafffcef0
Refactor JobRequest response structure 2017-03-02 17:45:45 +01:00
Tomasz Maczukin 3d26a8d0b6
Add jobs requesting API 2017-03-02 17:45:45 +01:00
Jarka Kadlecova 17ee1e1a63 Use iids as filter parameter 2017-03-02 13:17:39 +01:00
Toon Claes 260cc57838 Expose ApplicationSetting visibility settings as String
Use strings for the ApplicationSetting properties:
 - restricted_visibility_levels
 - default_project_visibility
 - default_snippet_visibility
 - default_group_visibility
2017-03-02 12:15:25 +01:00
Toon Claes 209856166e Expose Snippet VisibilityLevel as String 2017-03-02 12:15:24 +01:00
Toon Claes ed8f13c745 Ensure v3 environments endpoints remain unchanged
Because environments also expose the project, ensure the projects are
exposed as they were before in API v3.
2017-03-02 12:15:24 +01:00
Toon Claes f45cbc8701 Expose Group VisibilityLevel as String
Instead of exposing the VisibilityLevel as Integer, expose it as
String `visibility`.
2017-03-02 12:15:24 +01:00
Kamil Trzciński 598d2b20f8 Merge branch 'fix/gb/update-commit-status-api' into 'master'
Fix updaing commit status when using optional attributes

Closes #28656 and #25784

See merge request !9618
2017-03-02 11:09:04 +00:00
Sean McGivern d77bf0ed71 Merge branch '28257-issues-iids' into 'master'
API issues - support filtering by iids

Closes #28257

See merge request !9541
2017-03-02 10:57:17 +00:00
Rémy Coutable 034c649682 Merge branch '28807-search-for-milestone-by-title-in-rest-api' into 'master'
Enable filtering milestones by search criteria in the API

Closes #28807

See merge request !9606
2017-03-02 10:18:02 +00:00
Toon Claes b2c2dfe545 Expose Project's & ProjectSnippet's VisibilityLevel as String
Instead of exposing the VisibilityLevel as Integer, expose it as
String `visibility` for Project and ProjectSnippet.

Filter queries also accept the `visibility` as String instead of
`visibility_level` as Integer.

Also remove the `public` boolean.
2017-03-02 09:33:24 +01:00
Mark Fletcher 61baf3528d Enable filtering milestones by search criteria in the API
- Also remove a redundant test
2017-03-02 10:07:57 +05:30
Douwe Maan e7bf621ab1 Fix spec 2017-03-01 17:17:35 -06:00
Alejandro Rodríguez f8fa6e6f47 Add internal endpoint to notify post-receive to Gitaly 2017-03-01 18:46:59 -03:00
Douwe Maan 7e2ad5d47a Merge branch 'fix/mwbs-to-mwps' into 'master'
Rename MWBS to MWPS

Closes #24707

See merge request !9335
2017-03-01 20:30:51 +00:00
Kamil Trzciński b3700dea01 Merge branch '27142-api-replace-destroy-with-stop-environment' into 'master'
API: Add environment action with /stop action

Closes #27142

See merge request !8808
2017-03-01 20:26:58 +00:00
Douwe Maan 80543e0abd Fix creating a file in an empty repo using the API 2017-03-01 12:25:21 -06:00
Grzegorz Bizon e19687b224 Fix Rubocop offenses in commit status API specs 2017-03-01 15:11:10 +01:00
Tiago Botelho 2b474dc2b2 refactors finder and correlated code 2017-03-01 13:11:11 +00:00
Grzegorz Bizon 74906f3dd8 Fix updaing commit status with optional attributes
Passing different optional attributes in case of updating an existing
commit status should not create a new commit status with the same name.
2017-03-01 13:59:15 +01:00
Sean McGivern 523fb730c2 Merge branch '25437-just-emoji' into 'master'
#25437 Allow posting of just an emoji in comment; add /award slash command

Closes #25437

See merge request !9382
2017-03-01 11:15:51 +00:00
James Lopez a0101ebf84 Update occurrences of MWBS to MWPS
Rename column in the database
 Rename fields related to import/export feature
 Rename API endpoints
 Rename documentation links
 Rename the rest of occurrences in the code
 Replace the images that contain the words "build succeeds" and docs referencing to them
 Make sure pipeline is green and nothing is missing.

updated doc images

renamed only_allow_merge_if_build_succeeds in projects and fixed references

more updates

fix some spec failures

fix rubocop offences

fix v3 api spec

fix MR  specs

fixed issues with partials

fix MR spec

fix alignment

add missing v3 to v4 doc

wip - refactor v3 endpoints

fix specs

fix a few typos

fix project specs

copy entities fully to V3

fix  entity error

more fixes

fix failing specs

fixed missing entities in V3 API

remove comment

updated code based on feedback

typo

fix spec
2017-03-01 12:02:02 +01:00
Sean McGivern 11dd2348c4 Merge branch '22951-fix-todos-api-endpoint-error-for-commits' into 'master'
Fix todos API endpoint application error

Closes #22951

See merge request !9351
2017-03-01 09:59:15 +00:00
Jarka Kadlecova c6181f9799 API issues - support filtering by iids 2017-03-01 07:28:10 +01:00
Tiago Botelho 9f2e4742e3 applies relevant changes to the code and code structure 2017-02-28 22:15:40 +00:00
Tiago Botelho f0ea7130f7 refactors documentation and personal access tokens form to not allow admins to generate non impersionation tokens 2017-02-28 22:15:40 +00:00
Simon Vocella a3dfb58e7f add impersonation token 2017-02-28 22:15:39 +00:00
Simon Vocella 81246e5649 manage personal_access_tokens through api 2017-02-28 22:15:39 +00:00
mhasbini 9f949d4e24 add /award slash command
add /award slash command; Allow posting of just an emoji in comment
2017-02-28 22:38:19 +02:00
Sean McGivern 0226fb0e1f Merge branch '6073_project_api' into 'master'
API project create: Make name or path required

Closes #6073

See merge request !9416
2017-02-28 16:29:00 +00:00
Toon Claes 8c569e21d5 Add environment `/stop` action
Add endpoint to stop an environment through the API.
2017-02-28 15:34:38 +01:00
Robert Schilling 2b8005ae41 New runner API returns 204 2017-02-28 08:32:40 +01:00
Robert Schilling c280acb00b Backport API to V3 2017-02-28 08:32:39 +01:00
Robert Schilling 86c58687b2 Return 204 for delete endpoints 2017-02-28 08:32:38 +01:00
Sean McGivern ac4ac5f2e2 Merge branch 'unified-member-api-response' into 'master'
API: Return 400 for all validation erros in the mebers API

See merge request !9523
2017-02-27 11:51:05 +00:00
Kamil Trzciński 3e8d63293e Merge branch 'feature/runners-v4-api' into 'master'
Add Runner registration/deletion API

See merge request !9246
2017-02-27 11:46:55 +00:00
Jarka Kadlecova 08ee177d6f API project create: Make name or path required 2017-02-27 07:55:45 +01:00
Robert Schilling 0394055112 API: Return 400 for all validation erros in the mebers API 2017-02-24 20:13:27 +01:00
Douwe Maan 5bbd09ca8a Fix spec 2017-02-24 09:55:01 -06:00
Douwe Maan c927bc3ffa Fix specs 2017-02-24 09:55:01 -06:00
Sean McGivern faaca5e191 Merge branch 'dm-more-namespace-full-path' into 'master'
Use Namespace#full_path instead of #path where appropriate

See merge request !9495
2017-02-24 15:39:12 +00:00
Sean McGivern 806c748852 Merge branch 'master' into 'api-remove-owned-groups'
# Conflicts:
#   doc/api/v3_to_v4.md
2017-02-24 11:26:44 +00:00
Sean McGivern f40403cce1 Merge branch '3874-correctly-return-json-on-delete-responses' into 'master'
Return 202 with JSON body on async removals on V4 API

Closes #3874

See merge request !9449
2017-02-24 11:25:50 +00:00
Robert Schilling 2ac84e36f9 Backport groups API to V3 2017-02-24 10:31:44 +01:00
Robert Schilling 1615003665 API: Use parameter to get owned groups instead of dedicated endpoint 2017-02-24 10:31:41 +01:00
Lin Jen-Shin 83418ad846 Merge remote-tracking branch 'upstream/master' into 27762-add-default-artifacts-expiration
* upstream/master: (247 commits)
  Switched CONTRIBUTING.md style guide recommendation for method chaining
  Fix new offenses
  Stylistic tweaks
  Fix OAuth/SAML user blocking behavior
  Revert "Enable Style/DotPosition"
  Revert "Prefer leading style for Style/DotPosition"
  Revert "Enable Style/BarePercentLiterals"
  Manually correct autocorrect
  Move up delegate calls
  Exclude migrations from Style/MutableConstant
  ActiveSupport delegation is preferred over Forwardable
  Update haml_lint to work with newest rubocop
  Add explanations to cops
  Update rubocop and rubocop-rspec and regenerate .rubocop_todo.yml
  Update rubocop and rubocop-rspec and regenerate .rubocop_todo.yml
  Order cops alphabetically
  Don’t exclude some file in lib from rubocop
  Fix new offenses
  Enable Rails/Delegate
  Enable Style/WordArray
  ...
2017-02-24 17:14:35 +08:00
Douwe Maan ad640bc5f9 Use Namespace#full_path instead of #path where appropriate 2017-02-23 17:55:01 -06:00
Oswaldo 2b001d9e7a Return 202 with JSON body on async removals on V4 API 2017-02-23 19:55:13 -03:00
Douwe Maan 56de781a2c Revert "Enable Style/DotPosition"
This reverts commit e00fb2bdc2090e9cabeb1eb35a2672a882cc96e9.

# Conflicts:
#	.rubocop.yml
#	.rubocop_todo.yml
#	lib/gitlab/ci/config/entry/global.rb
#	lib/gitlab/ci/config/entry/jobs.rb
#	spec/lib/gitlab/ci/config/entry/factory_spec.rb
#	spec/lib/gitlab/ci/config/entry/global_spec.rb
#	spec/lib/gitlab/ci/config/entry/job_spec.rb
#	spec/lib/gitlab/ci/status/build/factory_spec.rb
#	spec/lib/gitlab/incoming_email_spec.rb
2017-02-23 09:33:19 -06:00
Douwe Maan 1fe7501b49 Revert "Prefer leading style for Style/DotPosition"
This reverts commit cb10b725c8929b8b4460f89c9d96c773af39ba6b.
2017-02-23 09:33:05 -06:00
Douwe Maan e2bbbb1a9a Fix new offenses 2017-02-23 09:32:42 -06:00
Douwe Maan 7d4b52b27d Enable Style/WordArray 2017-02-23 09:32:41 -06:00
Douwe Maan 206953a430 Prefer leading style for Style/DotPosition 2017-02-23 09:32:22 -06:00
Douwe Maan c10064aad5 Enable Style/SpaceInsideBrackets 2017-02-23 09:31:56 -06:00
Douwe Maan 3dadf306dd Enable Style/DotPosition 2017-02-23 09:31:56 -06:00
Rémy Coutable fae2650cbc Merge branch 'cs-upgrade-licensee' into 'master'
Update Licensee from 8.0.0 to 8.7.0.

See merge request !9451
2017-02-23 15:09:18 +00:00
Sean McGivern a77b40d45e Merge branch 'api-notes-entity-fields' into 'master'
Remove deprecated `upvotes` and `downvotes` from the notes API

Closes #28441

See merge request !9384
2017-02-23 13:01:27 +00:00