Skip to content
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

Merged
merged 1 commit into from
Nov 14, 2016

Conversation

strk
Copy link
Member

@strk strk commented Nov 14, 2016

Closes #162

@strk strk mentioned this pull request Nov 14, 2016
3 tasks
@@ -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
Copy link
Member

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 🙂

Copy link
Member Author

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.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done, IsDraft is there

@bkcsoft
Copy link
Member

bkcsoft commented Nov 14, 2016

LGTM

@bkcsoft bkcsoft added this to the 1.0.0 milestone Nov 14, 2016
@bkcsoft bkcsoft added type/bug lgtm/done This PR has enough approvals to get merged. There are no important open reservations anymore. labels Nov 14, 2016
@strk strk force-pushed the allow-update-draft-releases branch from 0feb003 to cd33926 Compare November 14, 2016 17:02
@thibaultmeyer
Copy link
Contributor

LGTM

@codecov-io
Copy link

codecov-io commented Nov 14, 2016

Current coverage is 3.03% (diff: 100%)

Merging #169 into master will not change coverage

@@            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          

Powered by Codecov. Last update 81f227e...cd33926

@bkcsoft bkcsoft merged commit 07a0753 into go-gitea:master Nov 14, 2016
@strk strk deleted the allow-update-draft-releases branch November 15, 2016 07:07
@tboerger tboerger removed the lgtm/done This PR has enough approvals to get merged. There are no important open reservations anymore. label Nov 15, 2016
@tboerger tboerger added the lgtm/done This PR has enough approvals to get merged. There are no important open reservations anymore. label Nov 29, 2016
@go-gitea go-gitea locked and limited conversation to collaborators Nov 23, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
lgtm/done This PR has enough approvals to get merged. There are no important open reservations anymore. type/bug
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Can't save Release draft as draft
5 participants