Prevent 500 on draft releases without tag #16634

Merged
lunny merged 3 commits from fix-16610-fix-500-on-draft-releases into main 2021-08-06 01:13:17 +00:00
Contributor

It is possible to create draft releases prior to creating a tag. This will cause a
500 on the releases page due to compare page failing.

This PR only shows the compare button if there is a SHA1 present.

Fix #16610

Signed-off-by: Andrew Thornton art27@cantab.net

It is possible to create draft releases prior to creating a tag. This will cause a 500 on the releases page due to compare page failing. This PR only shows the compare button if there is a SHA1 present. Fix #16610 Signed-off-by: Andrew Thornton <art27@cantab.net>
techknowlogick approved these changes 2021-08-05 21:29:36 +00:00
lafriks (Migrated from github.com) approved these changes 2021-08-05 22:18:13 +00:00
This repo is archived. You cannot comment on pull requests.
No Milestone
No project
No Assignees
3 Participants
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: lunny/gitea#16634
No description provided.