ActionHook¶
New in version 6.0.
Review Board represents many pieces of the UI as actions, which are navigation links, buttons, or menu items that can be provided or customized by an extension.
We have a whole guide on actions, which you should follow if you’re looking to customize the UI.
Once you’ve written your action, you’ll need to register it with
reviewboard.extensions.hooks.ActionHook:
class MyExtension(Extension):
def initialize(self) -> None:
ActionHook(self, actions=[
MyAction1(),
MyAction2(),
])
These will be registered and available for rendering on pages.