Skip to content

Improve checkIfPRContentChanged #22611

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
merged 11 commits into from
Jan 28, 2023
Prev Previous commit
Next Next commit
Update services/pull/pull.go
Co-authored-by: delvh <[email protected]>
  • Loading branch information
zeripath and delvh authored Jan 27, 2023
commit 0b21de075b75b625e481ff5979a4cfcc2bff67fe
2 changes: 1 addition & 1 deletion services/pull/pull.go
Original file line number Diff line number Diff line change
Expand Up @@ -352,7 +352,7 @@ func AddTestPullRequestTask(doer *user_model.User, repoID int64, branch string,
func checkIfPRContentChanged(ctx context.Context, pr *issues_model.PullRequest, oldCommitID, newCommitID string) (hasChanged bool, err error) {
tmpBasePath, err := createTemporaryRepo(ctx, pr)
if err != nil {
log.Error("CreateTemporaryPath: %v", err)
log.Error("CreateTemporaryRepo: %v", err)
return false, err
}
defer func() {
Expand Down