Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Review requested widget now is customizable #440

Merged
merged 4 commits into from
Aug 28, 2024

Conversation

guimafelipe
Copy link
Contributor

@guimafelipe guimafelipe commented Aug 28, 2024

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

Copy link
Contributor

@vineeththomasalex vineeththomasalex left a comment

Choose a reason for hiding this comment

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

Discussed offline. Awaiting changes.

@guimafelipe guimafelipe merged commit 0fb5d23 into main Aug 28, 2024
4 checks passed
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.

Cannot customize Review Requested widget
4 participants