Skip to content

Misc changes for our range-diff #2160

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 5 commits into from
Aug 17, 2025
Merged

Conversation

Urgau
Copy link
Member

@Urgau Urgau commented Aug 16, 2025

This PR contains some changes regarding our range-diff feature:

  1. We indicate to the users when there aren't any differences (instead of showing nothing)
  2. We hide the previous range-diff comment when posting a new one
  3. Remove code quote around range-diff link
  4. Clarify the comment regarding PR authors and it's usefulness
    #t-compiler/help > ✔ rustbot tells me my PR was rebased on a different master
  5. Add tests for the comment logic

@Urgau Urgau requested a review from Kobzol August 16, 2025 15:13
Ok(())
}

async fn post_new_comment(
Copy link
Member Author

@Urgau Urgau Aug 16, 2025

Choose a reason for hiding this comment

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

I don't like that this logic is here.

I would prefer if it was shared with the other check-commits sub-handlers, but given the requirement of only hiding the previous comment when posting a new one, which is different from all the others sub-handler, it's was simpler to do it here rather than increasing the complexity in check-commits.

Copy link
Member

Choose a reason for hiding this comment

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

I guess that in theory we could add the logic to the shared "check commits result" comment, but for now this is fine.

@Urgau Urgau force-pushed the gh-range-diff-misc-2 branch from 7b9a858 to 6ebc414 Compare August 17, 2025 08:55
Ok(())
}

async fn post_new_comment(
Copy link
Member

Choose a reason for hiding this comment

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

I guess that in theory we could add the logic to the shared "check commits result" comment, but for now this is fine.

@Urgau Urgau added this pull request to the merge queue Aug 17, 2025
Merged via the queue into rust-lang:master with commit 480a7ba Aug 17, 2025
3 checks passed
@Urgau Urgau deleted the gh-range-diff-misc-2 branch August 17, 2025 19:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants