summaryrefslogtreecommitdiffstats
path: root/models/fixtures
diff options
context:
space:
mode:
authorLanre Adelowo <adelowomailbox@gmail.com>2019-06-06 01:37:45 +0100
committerLunny Xiao <xiaolunwen@gmail.com>2019-06-06 08:37:45 +0800
commitde6539fc8c37485afcd6f30092a9ccbc3cae7de5 (patch)
tree02aec172ffe99ac123b56b301c70774f1f3f1292 /models/fixtures
parent59e6a7b97f503c12ef2a6096ca7f127f81521b7a (diff)
downloadgitea-de6539fc8c37485afcd6f30092a9ccbc3cae7de5.tar.gz
gitea-de6539fc8c37485afcd6f30092a9ccbc3cae7de5.zip
Add state param to milestone listing API (#7131)
* Support state params * update tests * fix tests * add state=all support * update tests * update swagger * update swagger
Diffstat (limited to 'models/fixtures')
-rw-r--r--models/fixtures/milestone.yml8
-rw-r--r--models/fixtures/repository.yml5
2 files changed, 11 insertions, 2 deletions
diff --git a/models/fixtures/milestone.yml b/models/fixtures/milestone.yml
index 8192c4fbe1..15f422fc3b 100644
--- a/models/fixtures/milestone.yml
+++ b/models/fixtures/milestone.yml
@@ -13,3 +13,11 @@
content: content2
is_closed: false
num_issues: 0
+
+-
+ id: 3
+ repo_id: 1
+ name: milestone3
+ content: content3
+ is_closed: true
+ num_issues: 0
diff --git a/models/fixtures/repository.yml b/models/fixtures/repository.yml
index 083182e2bc..609f421a90 100644
--- a/models/fixtures/repository.yml
+++ b/models/fixtures/repository.yml
@@ -8,7 +8,8 @@
num_closed_issues: 1
num_pulls: 2
num_closed_pulls: 0
- num_milestones: 2
+ num_milestones: 3
+ num_closed_milestones: 1
num_watches: 3
-
@@ -495,4 +496,4 @@
num_stars: 0
num_forks: 0
num_issues: 0
- is_mirror: false \ No newline at end of file
+ is_mirror: false