-
-
Notifications
You must be signed in to change notification settings - Fork 5.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Allow updating draft releases while keeping them as draft #169
Conversation
@@ -247,6 +247,7 @@ func EditRelease(ctx *context.Context) { | |||
ctx.Data["title"] = rel.Title | |||
ctx.Data["content"] = rel.Note | |||
ctx.Data["prerelease"] = rel.IsPrerelease | |||
ctx.Data["draft"] = rel.IsDraft |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should be ctx.Data["IsDraft"]
If you feel like it, you might as well fix the above ones as well. Though not related to this issue 🙂
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'd prefer keeping commits focused on what they address. There are also still ALL_UPPER_CASE constants in that file, but would rather not touch now. Can change the IsDraft though, being a new one.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done, IsDraft is there
LGTM |
0feb003
to
cd33926
Compare
LGTM |
Current coverage is 3.03% (diff: 100%)@@ master #169 diff @@
========================================
Files 33 33
Lines 8096 8096
Methods 0 0
Messages 0 0
Branches 0 0
========================================
Hits 246 246
Misses 7830 7830
Partials 20 20
|
Closes #162