mirror of
https://github.com/go-gitea/gitea
synced 2025-01-03 14:55:59 +01:00
Fix lint
This commit is contained in:
parent
04fa8f2fb3
commit
70b06b8fcc
@ -631,7 +631,7 @@ func (errs errlist) Error() string {
|
|||||||
|
|
||||||
// RetargetBranchPulls change target branch for all pull requests whose base branch is the branch
|
// RetargetBranchPulls change target branch for all pull requests whose base branch is the branch
|
||||||
// Both branch and targetBranch must be in the same repo (for security reasons)
|
// Both branch and targetBranch must be in the same repo (for security reasons)
|
||||||
func RetargetBranchPulls(ctx context.Context, doer *user_model.User, repoID int64, branch string, targetBranch string) error {
|
func RetargetBranchPulls(ctx context.Context, doer *user_model.User, repoID int64, branch, targetBranch string) error {
|
||||||
prs, err := issues_model.GetUnmergedPullRequestsByBaseInfo(ctx, repoID, branch)
|
prs, err := issues_model.GetUnmergedPullRequestsByBaseInfo(ctx, repoID, branch)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return err
|
return err
|
||||||
|
@ -423,7 +423,7 @@ func TestCreateDeleteRefEvent(t *testing.T) {
|
|||||||
assert.NotNil(t, run)
|
assert.NotNil(t, run)
|
||||||
|
|
||||||
// delete the branch
|
// delete the branch
|
||||||
err = repo_service.DeleteBranch(db.DefaultContext, user2, repo, gitRepo, "test-create-branch")
|
err = repo_service.DeleteBranch(db.DefaultContext, user2, repo, gitRepo, "test-create-branch", nil)
|
||||||
assert.NoError(t, err)
|
assert.NoError(t, err)
|
||||||
run = unittest.AssertExistsAndLoadBean(t, &actions_model.ActionRun{
|
run = unittest.AssertExistsAndLoadBean(t, &actions_model.ActionRun{
|
||||||
Title: "add workflow",
|
Title: "add workflow",
|
||||||
|
Loading…
Reference in New Issue
Block a user