-
Notifications
You must be signed in to change notification settings - Fork 27
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
feat(cherrypicker): add hold labels and comments when cp pr has conflicts #1192
Conversation
…icts Signed-off-by: wuhuizuo <[email protected]>
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## master #1192 +/- ##
===========================================
- Coverage 80.47% 61.33% -19.14%
===========================================
Files 21 36 +15
Lines 3324 4402 +1078
===========================================
+ Hits 2675 2700 +25
- Misses 419 1466 +1047
- Partials 230 236 +6 ☔ View full report in Codecov by Sentry. |
Signed-off-by: wuhuizuo <[email protected]>
Signed-off-by: wuhuizuo <[email protected]>
/approve |
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.
/lgtm
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: purelind, wuhuizuo The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
[LGTM Timeline notifier]Timeline:
|
- cherrypicker, ref: ti-community-infra/tichi#1192 - issue-triage, ref: ti-community-infra/tichi#1193 Signed-off-by: wuhuizuo <[email protected]>
- cherrypicker, ref: ti-community-infra/tichi#1192 - issue-triage, ref: ti-community-infra/tichi#1193 Signed-off-by: wuhuizuo <[email protected]>
This pull request introduces enhancements to handle pull requests with conflicts more effectively in the
cherrypicker
plugin. The main changes involve detecting conflicts in the pull request diff and updating the pull request status and comments accordingly.Conflict detection and handling:
isPrHasSoftConflict
to check for conflict markers (<<<<<<<
,=======
,>>>>>>>
) in the pull request diff. (F662793dL753R753)handle
method to detect conflicts in newly created pull requests and adjust the response message to inform users about the conflicts./unhold
command to remove the hold label once resolved.