diff options
author | a1012112796 <1012112796@qq.com> | 2021-05-06 11:12:50 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-05-06 05:12:50 +0200 |
commit | 308886653148d859080222ebb72966e020f9391e (patch) | |
tree | f61bd23f73eee6a30cf28c477bf0d1c859b8aace /models/fixtures | |
parent | eedc0c8324820817f4c06603ec3195a1d3513542 (diff) | |
download | gitea-308886653148d859080222ebb72966e020f9391e.tar.gz gitea-308886653148d859080222ebb72966e020f9391e.zip |
fix some ui bug about draft release (#15137)
* fix some ui bug about draft release
- should not show draft release in tag list because
it will't create real tag
- still show draft release without tag and commit message
for draft release instead of 404 error
- remove tag load for attachement links because it's useless
Signed-off-by: a1012112796 <1012112796@qq.com>
* add test code
* fix test
That's because has added a new release in relaese test database.
* fix dropdown link for draft release
Diffstat (limited to 'models/fixtures')
-rw-r--r-- | models/fixtures/release.yml | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/models/fixtures/release.yml b/models/fixtures/release.yml index 8d3f5840ef..5e577d3fdd 100644 --- a/models/fixtures/release.yml +++ b/models/fixtures/release.yml @@ -43,3 +43,15 @@ is_tag: true created_unix: 946684800 +- + id: 4 + repo_id: 1 + publisher_id: 2 + tag_name: "draft-release" + lower_tag_name: "draft-release" + target: "master" + title: "draft-release" + is_draft: true + is_prerelease: false + is_tag: false + created_unix: 1619524806 |