mirror of
				https://gitee.com/gitea/gitea
				synced 2025-11-04 08:30:25 +08:00 
			
		
		
		
	WIP: create PR - choose branch
This commit is contained in:
		@@ -105,7 +105,7 @@ func Update(refName, oldCommitId, newCommitId, userName, repoUserName, repoName
 | 
			
		||||
		commit := &base.PushCommits{}
 | 
			
		||||
 | 
			
		||||
		if err = CommitRepoAction(userId, ru.Id, userName, actEmail,
 | 
			
		||||
			repos.Id, repoUserName, repoName, refName, commit, oldCommitId, newCommitId); err != nil {
 | 
			
		||||
			repos.ID, repoUserName, repoName, refName, commit, oldCommitId, newCommitId); err != nil {
 | 
			
		||||
			log.GitLogger.Fatal(4, "CommitRepoAction: %s/%s:%v", repoUserName, repoName, err)
 | 
			
		||||
		}
 | 
			
		||||
		return err
 | 
			
		||||
@@ -154,7 +154,7 @@ func Update(refName, oldCommitId, newCommitId, userName, repoUserName, repoName
 | 
			
		||||
	}
 | 
			
		||||
 | 
			
		||||
	if err = CommitRepoAction(userId, ru.Id, userName, actEmail,
 | 
			
		||||
		repos.Id, repoUserName, repoName, refName, &base.PushCommits{l.Len(), commits, ""}, oldCommitId, newCommitId); err != nil {
 | 
			
		||||
		repos.ID, repoUserName, repoName, refName, &base.PushCommits{l.Len(), commits, ""}, oldCommitId, newCommitId); err != nil {
 | 
			
		||||
		return fmt.Errorf("runUpdate.models.CommitRepoAction: %s/%s:%v", repoUserName, repoName, err)
 | 
			
		||||
	}
 | 
			
		||||
	return nil
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user