summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorRémy Coutable <remy@rymai.me>2017-06-19 12:13:27 +0000
committerRémy Coutable <remy@rymai.me>2017-06-19 12:13:27 +0000
commit9fe6c2b2c2dd92831c93297021b41d6721e4b201 (patch)
tree004c64b2d777770e606a10500e1a5735c162331a /lib
parentff97afdd589b0c3dd93db9eca83b13a09a704a2e (diff)
parentef633d24786707672377312eea850ce2eb63f573 (diff)
downloadgitlab-ce-9fe6c2b2c2dd92831c93297021b41d6721e4b201.tar.gz
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.rb2
-rw-r--r--lib/api/merge_requests.rb2
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