Skip to content

Include diff ID in review comment#6139

Open
padenot wants to merge 1 commit into
mozilla:masterfrom
padenot:fix-issue-6029-diff-id
Open

Include diff ID in review comment#6139
padenot wants to merge 1 commit into
mozilla:masterfrom
padenot:fix-issue-6029-diff-id

Conversation

@padenot

@padenot padenot commented Jun 8, 2026

Copy link
Copy Markdown
Collaborator

Adds a linkified diff reference to the top of the main review comment, so reviewers can tell which diff was reviewed at a glance.

Fixes #6029

Adds a linkified diff reference to the top of the main review comment
so reviewers can tell which diff was reviewed at a glance.

Fixes mozilla#6029
"""Create the main review comment that summarizes the review results."""
parts = []
diff_url = f"{settings.phabricator_url}/D{review_request.revision_id}?id={review_request.diff_id}"
parts = [f"(Reviewing [[{diff_url}|Diff {review_request.diff_id}]])"]

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

I suggest using Markdown instead of Remarkup, since it's more intuitive to read in logs. Phabricator supports both!

Suggested change
parts = [f"(Reviewing [[{diff_url}|Diff {review_request.diff_id}]])"]
parts = [f"(Reviewing [Diff {review_request.diff_id}]({diff_url}))"]

@suhaibmujahid suhaibmujahid enabled auto-merge (squash) June 8, 2026 16: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.

Add Diff ID for reviewhelper-bot's Summary of Changes

2 participants