Add a new extension hook for registering SCMTools.

Review Request #12395 — Created June 21, 2022 and submitted — Latest diff uploaded

Information

Review Board
release-5.0.x

Reviewers

Now that SCMTools are backed by a registry instead of relying entirely
on entry points and the registerscmtools management command, we can
make it easier for extensions to add new ones. This change adds a new
extension hook, SCMToolHook, for doing so. It works very similarly to
the existing hook for hosting services.

  • Ran unit tests.
  • Built and reviewed docs.

Diff Revision 2 (Latest)

orig
1
2

Commits

First Last Summary ID Author
Add a new extension hook for registering SCMTools.
Now that SCMTools are backed by a registry instead of relying entirely on entry points and the `registerscmtools` management command, we can make it easier for extensions to add new ones. This change adds a new extension hook, `SCMToolHook`, for doing so. It works very similarly to the existing hook for hosting services. Testing Done: - Ran unit tests. - Built and reviewed docs.
627f310e757b2726b6cc57c29c3caa05032a14cf David Trowbridge
docs/manual/extending/index.rst
docs/manual/extending/extensions/hooks/hosting-service-hook.rst
docs/manual/extending/extensions/hooks/index.rst
docs/manual/extending/extensions/hooks/scmtool_hook.rst
reviewboard/extensions/hooks.py
reviewboard/extensions/tests/test_scmtool_hook.py
Loading...