microsoft / devhomegithubextension

Dev Home GitHub Extension
MIT License
280 stars 43 forks source link

Review requested widget now is customizable #440

Closed guimafelipe closed 1 month ago

guimafelipe commented 1 month ago

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 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.

Validation steps performed

PR checklist