Skip to content

Fixes #12341: Release date should only be set to current time if draft or tag created #12343

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

Merged

Conversation

richmahn
Copy link
Contributor

We should only change the created_unix of a release when the tag is made or if it is a draft. Currently it changes it whenever any edit is done to the release.

@richmahn
Copy link
Contributor Author

Will make backport to 1.12

@GiteaBot GiteaBot added the lgtm/need 2 This PR needs two approvals by maintainers to be considered for merging. label Jul 27, 2020
@GiteaBot GiteaBot added lgtm/need 1 This PR needs approval from one additional maintainer to be merged. and removed lgtm/need 2 This PR needs two approvals by maintainers to be considered for merging. labels Jul 27, 2020
@GiteaBot GiteaBot added lgtm/done This PR has enough approvals to get merged. There are no important open reservations anymore. and removed lgtm/need 1 This PR needs approval from one additional maintainer to be merged. labels Jul 27, 2020
@silverwind
Copy link
Member

Need to make fmt.

Copy link
Member

@6543 6543 left a comment

Choose a reason for hiding this comment

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

tests 😍

@richmahn
Copy link
Contributor Author

@silverwind Looks like @techknowlogick did it for me. Was going to do that this morning. Noticed the stray commas when looking at why my tests were failing.

So @techknowlogick, I fixed the tests. Waiting for build.

richmahn added a commit to richmahn/gitea that referenced this pull request Jul 28, 2020
@richmahn
Copy link
Contributor Author

@silverwind I make fmt all the time, especially in my company's fork of Gitea, yet I still get unformatted code in my commits. I can't win! LOL

@zeripath
Copy link
Contributor

@richmahn the results of go fmt can differ between different versions of go - if you're not running the same version of go as drone you may find that this is a problem.

I've never had to run make fmt explicitly what editor are you using?

@richmahn
Copy link
Contributor Author

@zeripath What do you mean by running it explicitly? Do your IDE format whatever you write after you change lines? I use GoLand, even though I want to use VSCode but never successfully got it to build and run tests.

@jolheiser
Copy link
Member

I believe both GoLand and VSCode can automatically format saved files (or however they are configured to watch).

@richmahn
Copy link
Contributor Author

@jolheiser Hmm, ok, will have to look into how to configure it. I have done that in VSCode for Javascript before.

@6543
Copy link
Member

6543 commented Jul 28, 2020

I prevere a make fmt befor commiting, so code is not flowing around while typing

@6543
Copy link
Member

6543 commented Jul 28, 2020

... I make fmt all the time, especially in my company's fork of Gitea, yet I still get unformatted code in my commits. I can't win! LOL

don't know how this can happen, do you use the IDE to do git stuff?

@techknowlogick
Copy link
Member

🚀

@techknowlogick techknowlogick merged commit 8a36c46 into go-gitea:master Jul 28, 2020
@techknowlogick techknowlogick added the backport/done All backports for this PR have been created label Jul 28, 2020
techknowlogick pushed a commit that referenced this pull request Jul 28, 2020
* Backport for Issue #12341 PR #12343 - Release date fix

* Adds sleep for comparing times

* Fixes imports

* Fixes tests
@go-gitea go-gitea locked and limited conversation to collaborators Nov 24, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
backport/done All backports for this PR have been created 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.

7 participants