diff options
author | Rémy Coutable <remy@rymai.me> | 2017-06-19 15:13:27 +0300 |
---|---|---|
committer | Rémy Coutable <remy@rymai.me> | 2017-06-19 15:13:27 +0300 |
commit | 9fe6c2b2c2dd92831c93297021b41d6721e4b201 (patch) | |
tree | 004c64b2d777770e606a10500e1a5735c162331a /lib | |
parent | ff97afdd589b0c3dd93db9eca83b13a09a704a2e (diff) | |
parent | ef633d24786707672377312eea850ce2eb63f573 (diff) |
Merge branch 'add-since-and-until-params-to-issuables' into 'master'
add created_after and created_before params to issuables
Closes #32901
See merge request !12151
Diffstat (limited to 'lib')
-rw-r--r-- | lib/api/issues.rb | 2 | ||||
-rw-r--r-- | lib/api/merge_requests.rb | 2 |
2 files changed, 4 insertions, 0 deletions
diff --git a/lib/api/issues.rb b/lib/api/issues.rb index 78db960ae28..09dca0dff8b 100644 --- a/lib/api/issues.rb +++ b/lib/api/issues.rb @@ -27,6 +27,8 @@ module API optional :milestone, type: String, desc: 'Return issues for a specific milestone' optional :iids, type: Array[Integer], desc: 'The IID array of issues' optional :search, type: String, desc: 'Search issues for text present in the title or description' + optional :created_after, type: DateTime, desc: 'Return issues created after the specified time' + optional :created_before, type: DateTime, desc: 'Return issues created before the specified time' use :pagination end diff --git a/lib/api/merge_requests.rb b/lib/api/merge_requests.rb index 3671b53abbd..1118fc7465b 100644 --- a/lib/api/merge_requests.rb +++ b/lib/api/merge_requests.rb @@ -72,6 +72,8 @@ module API optional :iids, type: Array[Integer], desc: 'The IID array of merge requests' optional :milestone, type: String, desc: 'Return merge requests for a specific milestone' optional :labels, type: String, desc: 'Comma-separated list of label names' + optional :created_after, type: DateTime, desc: 'Return merge requests created after the specified time' + optional :created_before, type: DateTime, desc: 'Return merge requests created before the specified time' use :pagination end get ":id/merge_requests" do |