Removing codeowner review requests automatically when the diff changes #84184
Replies: 2 comments
-
|
In GitHub, when updates to a PR branch change the diff (such as removing files), the automatically triggered review requests to code owners of the now-irrelevant files persist.
Solutions and Insights:
While GitHub does not currently offer an automatic solution for updating review requests based on diff changes, a blend of manual management and custom automation using GitHub Actions can significantly streamline the process. This ensures that review requests remain relevant to the current state of the PR. |
Beta Was this translation helpful? Give feedback.
-
|
Seems like a dupe of https://github.com/orgs/community/discussions/66936 |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Select Topic Area
Product Feedback
Body
When changes are pushed up to a branch which has a PR open, it automatically triggers review requests from everyone who is associated with any of the files in the diff.
However if this is changed, and fewer files are now changed, codeowners associated with the files that are no longer in the diff continue to be in the review requested category.
This is especially an issue if someone pushes up a merge commit, instead of rebasing, and many authors having nothing to do with the PR get assigned. The diff gets sorted by force pushing, but the review requests remain
Beta Was this translation helpful? Give feedback.
All reactions