[reno] Add tox target for creating new release note 99/73099/2
authorEmma Foley <efoley@redhat.com>
Mon, 13 Dec 2021 11:09:19 +0000 (11:09 +0000)
committerEmma Foley <efoley@redhat.com>
Mon, 13 Dec 2021 12:22:00 +0000 (12:22 +0000)
Added a tox target for reno, so new notes can be creted using::

  tox -e docs-create-note -- slug-goes-here

Signed-off-by: Emma Foley <efoley@redhat.com>
Change-Id: Ie3b7a3326e80c4d1d49fed42900ce4d31fa3a2ba

docs/release/release-notes/notes/add-reno-12eb20e3448b663b.yaml
tox.ini

index c0e8c7e..2456c09 100644 (file)
@@ -4,4 +4,4 @@ documentation:
     Release notes are now automatically generated and included in the documentation using `reno <https://docs.openstack.org/reno/latest/index.html>`_.
 other:
   - |
-    Add `reno <https://docs.openstack.org/reno/latest/index.html#>`_ and corresponding tox jobs to make compiling release notes easier
+    Add `reno <https://docs.openstack.org/reno/latest/index.html#>`_ and corresponding tox jobs (compile notes and add new notes) to make compiling release notes easier
diff --git a/tox.ini b/tox.ini
index 9452946..6f02ca0 100644 (file)
--- a/tox.ini
+++ b/tox.ini
@@ -22,3 +22,8 @@ commands = sphinx-build -b linkcheck -d {envtmpdir}/doctrees ./docs/ {toxinidir}
 basepython=python3
 deps = -rdocs/requirements.txt
 commands = reno --rel-notes-dir docs/release/release-notes/ report
+
+[testenv:docs-create-note]
+basepython = python3
+deps = -rdocs/requirements.txt
+commands = reno --rel-notes-dir docs/release/release-notes/ new {posargs}