Skip to content
This repository was archived by the owner on Jul 1, 2024. It is now read-only.

Makes only one comment for all potentially outdated review comments#79

Merged
orta merged 1 commit intomasterfrom
dedupe-stale-re-review-requests
May 15, 2020
Merged

Makes only one comment for all potentially outdated review comments#79
orta merged 1 commit intomasterfrom
dedupe-stale-re-review-requests

Conversation

@orta
Copy link
Contributor

@orta orta commented May 12, 2020

The core diff:

{
    "tag": "pinging-reviewers",
    "status": "🔔 @RReverser - please [review this PR](https://github.com/DefinitelyTyped/DefinitelyTyped/pull/38979/files) in the next few days. Be sure to explicitly select **`Approve`** or **`Request Changes`** in the GitHub UI so I know what's going on."
    },
    {
-       "tag": "stale-ping-0f40f4-3aba5ac",
-       "status": "@sandersn Thank you for reviewing this PR! The author has pushed new commits since your last review. Could you take another look and submit a fresh review?"
-     },
-     {
-       "tag": "stale-ping-9f0d93-0e6e7f4",
-       "status": "@weswigham Thank you for reviewing this PR! The author has pushed new commits since your last review. Could you take another look and submit a fresh review?"
+       "tag": "stale-ping-764528-0e6e7f4",
+       "status": "@sandersn, @weswigham Thank you for reviewing this PR! The author has pushed new commits since your last review. Could you take another look and submit a fresh review?"
    }
],
"shouldClose": false,
"shouldMerge": false

Looking at microsoft/TypeScript#38979 you see a lot of pinging, basically it would look to every stale review, which over the course of a single PR could be many from the same person. The bot currently would re-ping for every potentially stale review.

Instead now it does one ping with all potential reviewers for all stale reviews, de-duped.

@orta orta requested a review from sandersn May 12, 2020 15:44
@orta orta self-assigned this May 12, 2020
Copy link
Member

@andrewbranch andrewbranch left a comment

Choose a reason for hiding this comment

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

👍 great idea

@orta orta merged commit 4593559 into master May 15, 2020
@elibarzilay elibarzilay deleted the dedupe-stale-re-review-requests branch August 25, 2020 19:41
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants