aboutsummaryrefslogtreecommitdiffstats
path: root/models/fixtures
diff options
context:
space:
mode:
author6543 <6543@obermui.de>2021-06-17 10:58:10 +0200
committerGitHub <noreply@github.com>2021-06-17 10:58:10 +0200
commit6ad5d0a3062966515730aa1f8d62db5d2a7704ee (patch)
tree711b5814e4eb096e88b6f2ccbe597b0b00029275 /models/fixtures
parentc9d053f0caa14e6fec4d04c009c79c9a0940c450 (diff)
downloadgitea-6ad5d0a3062966515730aa1f8d62db5d2a7704ee.tar.gz
gitea-6ad5d0a3062966515730aa1f8d62db5d2a7704ee.zip
[API] ListReleases add filter for draft and pre-releases (#16175)
* invent ctx.QueryOptionalBool * [API] ListReleases add draft and pre-release filter * Add X-Total-Count header * Add a release to fixtures * Add TEST for API ListReleases
Diffstat (limited to 'models/fixtures')
-rw-r--r--models/fixtures/release.yml27
1 files changed, 19 insertions, 8 deletions
diff --git a/models/fixtures/release.yml b/models/fixtures/release.yml
index 5e577d3fdd..1703f959d2 100644
--- a/models/fixtures/release.yml
+++ b/models/fixtures/release.yml
@@ -1,5 +1,4 @@
--
- id: 1
+- id: 1
repo_id: 1
publisher_id: 2
tag_name: "v1.1"
@@ -13,8 +12,7 @@
is_tag: false
created_unix: 946684800
--
- id: 2
+- id: 2
repo_id: 40
publisher_id: 2
tag_name: "v1.1"
@@ -28,8 +26,7 @@
is_tag: false
created_unix: 946684800
--
- id: 3
+- id: 3
repo_id: 1
publisher_id: 2
tag_name: "delete-tag"
@@ -43,8 +40,7 @@
is_tag: true
created_unix: 946684800
--
- id: 4
+- id: 4
repo_id: 1
publisher_id: 2
tag_name: "draft-release"
@@ -55,3 +51,18 @@
is_prerelease: false
is_tag: false
created_unix: 1619524806
+
+- id: 5
+ repo_id: 1
+ publisher_id: 2
+ tag_name: "v1.0"
+ lower_tag_name: "v1.0"
+ target: "master"
+ title: "pre-release"
+ note: "some text for a pre release"
+ sha1: "65f1bf27bc3bf70f64657658635e66094edbcb4d"
+ num_commits: 1
+ is_draft: false
+ is_prerelease: true
+ is_tag: false
+ created_unix: 946684800