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

Explicitly reset conflict status in successful PR check #18723

Closed
wants to merge 2 commits into from

Conversation

zeripath
Copy link
Contributor

Explicitly reset conflict status in pr check.

Adds more trace logging to the pr checker and improves queue trace logging.

Fix #17204

The ConflictedFiles status should always be reset if there are no conflicts
this prevents conflicted files being left over.

Fix go-gitea#17204

Signed-off-by: Andrew Thornton <art27@cantab.net>
return false, err
}
pr.Status = models.PullRequestStatusMergeable
pr.ConflictedFiles = []string{}
Copy link
Contributor

Choose a reason for hiding this comment

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

Not sure .... should ChangedProtectedFiles also be reset? It seem that ChangedProtectedFiles will be re-calculated later in checkPullFilesProtection.

@GiteaBot GiteaBot added the lgtm/need 2 This PR needs two approvals by maintainers to be considered for merging. label Feb 11, 2022
@GiteaBot GiteaBot 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 Feb 11, 2022
Given the repeated issues here I've just added some plain trace logging
which should allow for easier tracing of when processes are created.

Signed-off-by: Andrew Thornton <art27@cantab.net>
@zeripath
Copy link
Contributor Author

I'm gonna close this as this doesn't appear to be the problem.

@zeripath
Copy link
Contributor Author

However I may use the branch to add better tracing logging to things.

@zeripath zeripath removed this from the 1.17.0 milestone Feb 12, 2022
@zeripath zeripath removed the type/bug label Feb 12, 2022
@go-gitea go-gitea locked and limited conversation to collaborators Apr 28, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
lgtm/need 1 This PR needs approval from one additional maintainer to be merged.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

PRs stuck on "Merge conflict checking is in progress. Try again in few moments."
3 participants