Browse Source
Fix bug on pull requests when transfer head repository (#8564)
Fix bug on pull requests when transfer head repository (#8564)
* fix bug on pull requests when transfer head repository * add migration and fix lint * fix tests and add a cache check on LoadBaseRepolunny/display_deleted_branch2
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
10 changed files with 87 additions and 73 deletions
-
3models/fixtures/pull_request.yml
-
2models/migrations/migrations.go
-
15models/migrations/v102.go
-
46models/pull.go
-
14models/pull_test.go
-
4models/user.go
-
15modules/migrations/gitea.go
-
19routers/api/v1/repo/pull.go
-
31routers/repo/pull.go
-
11services/pull/merge.go
@ -0,0 +1,15 @@ |
|||
// Copyright 2019 The Gitea Authors. All rights reserved.
|
|||
// Use of this source code is governed by a MIT-style
|
|||
// license that can be found in the LICENSE file.
|
|||
|
|||
package migrations |
|||
|
|||
import ( |
|||
"xorm.io/xorm" |
|||
) |
|||
|
|||
func dropColumnHeadUserNameOnPullRequest(x *xorm.Engine) error { |
|||
sess := x.NewSession() |
|||
defer sess.Close() |
|||
return dropTableColumns(sess, "pull_request", "head_user_name") |
|||
} |
Write
Preview
Loading…
Cancel
Save
Reference in new issue