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

fix, botreview: handle deleted files in kubevirtci-bump, improve commenting #3124

Merged
merged 8 commits into from
Jan 8, 2024

Conversation

dhiller
Copy link
Contributor

@dhiller dhiller commented Dec 12, 2023

kubevirtci-bump fixes

Previously all files were added as unwanted whenever a review was placed, even if there we no files related to kubevirtci-bump at all in the patch set.

Now the review for kubevirtci-bump is only attached if there are relevant files in the PR.

Also the handling of deleted files in kubevirtci-bump is fixed.

comment improval

This PR moves files and hunks into a details section so the comment does not overflow the screen.

It also reduces lists of files (in case of a very long comment) into a real bullet list, and also puts it into a details section.

See #3100

@kubevirt-bot
Copy link
Contributor

Skipping CI for Draft Pull Request.
If you want CI signal for your change, please convert it to an actual PR.
You can still manually trigger a test run with /test all

@kubevirt-bot kubevirt-bot added do-not-merge/work-in-progress Indicates that a PR should not merge because it is a work in progress. dco-signoff: yes Indicates the PR's author has DCO signed all their commits. labels Dec 12, 2023
@dhiller dhiller marked this pull request as ready for review December 13, 2023 17:22
@kubevirt-bot kubevirt-bot removed the do-not-merge/work-in-progress Indicates that a PR should not merge because it is a work in progress. label Dec 13, 2023
@kubevirt-bot kubevirt-bot requested a review from vladikr December 13, 2023 17:22
@dhiller
Copy link
Contributor Author

dhiller commented Dec 13, 2023

/hold

Waiting for #3123 to merge.

@kubevirt-bot kubevirt-bot added the do-not-merge/hold Indicates that a PR should not merge because someone has issued a /hold command. label Dec 13, 2023
@dhiller dhiller requested review from brianmcarey and removed request for aglitke, vladikr and phoracek December 13, 2023 17:22
@dhiller dhiller changed the title botreview, test: improve commenting fix, botreview: handle deleted files in kubevirtci-bump, improve commenting Dec 14, 2023
@dhiller dhiller force-pushed the improve-review-comment branch from 55a285e to 93782d5 Compare December 15, 2023 13:19
@brianmcarey
Copy link
Member

@dhiller - is this ready for review? I wasn't sure with the hold in place.

@dhiller
Copy link
Contributor Author

dhiller commented Dec 19, 2023

@dhiller - is this ready for review? I wasn't sure with the hold in place.

@brianmcarey thanks for the ping here, I forgot to remove the hold

/unhold

@kubevirt-bot kubevirt-bot removed the do-not-merge/hold Indicates that a PR should not merge because someone has issued a /hold command. label Dec 19, 2023
Copy link
Member

@brianmcarey brianmcarey left a comment

Choose a reason for hiding this comment

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

/approve

@kubevirt-bot kubevirt-bot added the lgtm Indicates that a PR is ready to be merged. label Dec 20, 2023
@kubevirt-bot
Copy link
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: brianmcarey

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 /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@kubevirt-bot kubevirt-bot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Dec 20, 2023
@dhiller
Copy link
Contributor Author

dhiller commented Dec 20, 2023

/hold

need to fix the details section commenting, it doesn't work like this: #3134 (comment)

@kubevirt-bot kubevirt-bot added the do-not-merge/hold Indicates that a PR should not merge because someone has issued a /hold command. label Dec 20, 2023
Previously all files were added as unwanted whenever a review was
placed, even if there we no files related to kubevirtci-bump at all in
the patch set.

Now the review for kubevirtci-bump is only attached if there are
relevant files in the PR.

Signed-off-by: Daniel Hiller <[email protected]>
Introduce interfaces for faking input and output, create some basic test
cases to fix behavior.

Signed-off-by: Daniel Hiller <[email protected]>
Move the details of the review into a Markdown details section, so that
they do not overflow the comment for the review.

Signed-off-by: Daniel Hiller <[email protected]>
Reduce list of files (in case of a very long comment) into a
real bullet list.

Signed-off-by: Daniel Hiller <[email protected]>
If files are deleted inside the provider bump, this is still ok, so
handle file deletions as regular changes.

Signed-off-by: Daniel Hiller <[email protected]>
@dhiller dhiller force-pushed the improve-review-comment branch from 93782d5 to 575233d Compare December 21, 2023 09:32
@kubevirt-bot kubevirt-bot removed the lgtm Indicates that a PR is ready to be merged. label Dec 21, 2023
Copy link
Member

@brianmcarey brianmcarey left a comment

Choose a reason for hiding this comment

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

/lgtm

@kubevirt-bot kubevirt-bot added the lgtm Indicates that a PR is ready to be merged. label Dec 22, 2023
@dhiller
Copy link
Contributor Author

dhiller commented Jan 8, 2024

/unhold

@kubevirt-bot kubevirt-bot removed the do-not-merge/hold Indicates that a PR should not merge because someone has issued a /hold command. label Jan 8, 2024
@kubevirt-bot kubevirt-bot merged commit fed1fb7 into kubevirt:main Jan 8, 2024
9 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
approved Indicates a PR has been approved by an approver from all required OWNERS files. dco-signoff: yes Indicates the PR's author has DCO signed all their commits. lgtm Indicates that a PR is ready to be merged. size/XXL
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants