This PR makes the "Review Requested" widget customizable.
References and relevant issues
Detailed description of the pull request / Additional comments
This PR changes the code of the Review Request widget to make it similar to the other User widgets. The only difference is that for this widget, the ShowCategory property is always set to PullRequests.
For that, one of the simplest ways is to have a ghost input in the configuration template that sets this variable always, and then no further changes are needed on the code.
Other options would be to inject it in the Json string received by the widget, or rewrite the action handler in this widget giving up of the inheritance capabilities.
For this PR, the first option was chosen.
Summary of the pull request
This PR makes the "Review Requested" widget customizable.
References and relevant issues
Detailed description of the pull request / Additional comments
This PR changes the code of the Review Request widget to make it similar to the other User widgets. The only difference is that for this widget, the
ShowCategory
property is always set toPullRequests
. For that, one of the simplest ways is to have a ghost input in the configuration template that sets this variable always, and then no further changes are needed on the code. Other options would be to inject it in the Json string received by the widget, or rewrite the action handler in this widget giving up of the inheritance capabilities. For this PR, the first option was chosen.Validation steps performed
PR checklist