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 1

This is not the most recent revision of the diff. The latest diff is revision 2. See what's changed.

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