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

Fix missing branch in release bug #3108

Merged
merged 1 commit into from
Dec 8, 2017
Merged

Conversation

ethantkoenig
Copy link
Member

Fixes #3066. Previously, the target of a release would not be set if the tag already existed.

@lafriks
Copy link
Member

lafriks commented Dec 7, 2017

Is it possible to add migration to fix broken data?

@tboerger tboerger added the lgtm/need 2 This PR needs two approvals by maintainers to be considered for merging. label Dec 7, 2017
@ethantkoenig
Copy link
Member Author

@lafriks There's no way to know what branch the releases were intended to be targeted against.

@lunny lunny added the type/bug label Dec 7, 2017
@lunny lunny added this to the 1.4.0 milestone Dec 7, 2017
@@ -51,6 +52,13 @@ func LoadUser(t *testing.T, ctx *context.Context, userID int64) {
ctx.User = models.AssertExistsAndLoadBean(t, &models.User{ID: userID}).(*models.User)
}

func LoadGitRepo(t *testing.T, ctx *context.Context) {
Copy link
Member

Choose a reason for hiding this comment

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

Comment or CI failed.

Copy link
Member Author

@ethantkoenig ethantkoenig Dec 8, 2017

Choose a reason for hiding this comment

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

just fixed it

Copy link
Member

Choose a reason for hiding this comment

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

No. you didn't, it should LoadGitRepo not LoadRepo.

Copy link
Member Author

Choose a reason for hiding this comment

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

good catch, actually fixed now

@codecov-io
Copy link

Codecov Report

Merging #3108 into master will decrease coverage by 0.02%.
The diff coverage is 0%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master    #3108      +/-   ##
==========================================
- Coverage   34.04%   34.02%   -0.03%     
==========================================
  Files         274      274              
  Lines       40020    40026       +6     
==========================================
- Hits        13626    13620       -6     
- Misses      24455    24466      +11     
- Partials     1939     1940       +1
Impacted Files Coverage Δ
modules/test/context_tests.go 0% <0%> (ø) ⬆️
routers/repo/release.go 32.15% <0%> (-0.15%) ⬇️
models/issue_indexer.go 64.93% <0%> (-2.6%) ⬇️
models/error.go 33.02% <0%> (-0.62%) ⬇️
models/issue.go 45.15% <0%> (-0.2%) ⬇️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 68179dc...d52da55. Read the comment docs.

@lafriks
Copy link
Member

lafriks commented Dec 8, 2017

LGTM

@tboerger tboerger 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 Dec 8, 2017
@lunny
Copy link
Member

lunny commented Dec 8, 2017

LGTM

@tboerger tboerger 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 Dec 8, 2017
@lunny lunny merged commit 596308f into go-gitea:master Dec 8, 2017
@lunny
Copy link
Member

lunny commented Dec 8, 2017

@ethantkoenig please send a backport to release/v1.3

@ethantkoenig ethantkoenig deleted the fix/releases branch December 8, 2017 05:24
ethantkoenig added a commit to ethantkoenig/gitea that referenced this pull request Dec 8, 2017
@lunny lunny added the backport/done All backports for this PR have been created label Dec 8, 2017
lunny pushed a commit that referenced this pull request Dec 8, 2017
@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
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.

Release for old tag not initialized correctly in frontend
5 participants