-
-
Notifications
You must be signed in to change notification settings - Fork 5.5k
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
Pull request conflict files detection #5951
Pull request conflict files detection #5951
Conversation
Codecov Report
@@ Coverage Diff @@
## master #5951 +/- ##
========================================
Coverage ? 38.7%
========================================
Files ? 330
Lines ? 48642
Branches ? 0
========================================
Hits ? 18827
Misses ? 27088
Partials ? 2727
Continue to review full report at Codecov.
|
options/locale/locale_en-US.ini
Outdated
@@ -871,6 +871,7 @@ pulls.has_merged = The pull request has been merged. | |||
pulls.title_wip_desc = `<a href="#">Start the title with <strong>%s</strong></a> to prevent the pull request from being merged accidentally.` | |||
pulls.cannot_merge_work_in_progress = This pull request is marked as a work in progress. Remove the <strong>%s</strong> prefix from the title when it's ready | |||
pulls.data_broken = This pull request is broken due to missing fork information. | |||
pulls.files_conflicted = This pull request has some files conflicted with target branch. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
pulls.files_conflicted = This pull request has some files conflicted with target branch. | |
pulls.files_conflicted = This pull request has changes conflicting with the target branch. |
models/pull.go
Outdated
@@ -1396,6 +1416,11 @@ func (pr *PullRequest) IsWorkInProgress() bool { | |||
return false | |||
} | |||
|
|||
// IsFilesConflicted determine if the Pull Request has files conflicted. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I would have determines here instead
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Going with @lafriks's suggestion with the translation
// IsFilesConflicted determine if the Pull Request has files conflicted. | |
// IsFilesConflicted determines if the Pull Request has changes conflicting with the target branch. | |
5030b5c
to
06b616d
Compare
What about this feature? According to https://blog.gitea.io/2019/04/gitea-1.8.0-is-released/ it is released already, but I cannot find it in Gitea 1.11.1 |
@bederke When you create a pull request which has conflict files. You can find them on pull request view interface. |
I have a PR that shows a conflicted file but when I merge it locally there is no conflict. Is this a bug in the conflicted files detection? |
@mschoettle Please open a new issue if you are experiencing a problem. 🙂 Issues on merged PRs tend to get lost fairly quickly. |
This pull request will add a new column on table
pull_request
namedconflicted_files
that will store less than 10 conflicted file names which will be filled ontestPatch
method. Will fix #887