Repository: RasaHQ/rasa
Pull request: Build changelog in test docs step
**Proposed changes**:
- In the "test docs" stage, prepare the changelog via the `make release` methods to make sure that no changelog entries will break the build upon releasing
- fix #5739 

**Status (please check what you already did)**:
- [ ] added some tests for the functionality
- [ ] updated the documentation
- [ ] updated the changelog (please check [changelog](https://github.com/RasaHQ/rasa/tree/master/changelog) for instructions)
- [ ] reformat files using `black` (please check [Readme](https://github.com/RasaHQ/rasa#code-style) for instructions)


Problem statement:
Add validation of changelog files
**Problem**:
The single changelog files in `changelog/` are currently not validated. They are only validated when creating a new release since this will generate the actual `Changelog.rst` and include it in the documentation. When the documentation is linted, errors in the changelog will surface. However, this is a bit late.

**Potential Solution**
Generate the changelog before linting the documentation (don't do this when publishing the documentation!)

Hints from issue discussion:

Commit message: use poetry run

Patch to review:
diff --git a/.github/workflows/continous-integration.yml b/.github/workflows/continous-integration.yml
index 875abcbade3d..0fc748430869 100644
--- a/.github/workflows/continous-integration.yml
+++ b/.github/workflows/continous-integration.yml
@@ -104,6 +104,7 @@ jobs:
     - name: Test Docs 📃
       run: |
         make install-full
+        poetry run python -c "from scripts import release; release.generate_changelog('major.minor.patch')"
         export SPHINXBUILD=$(poetry run which sphinx-build)
         cd docs && make SPHINXBUILD=$SPHINXBUILD SPHINXOPTS="-W --keep-going -A html_theme=rasabaster" html
 
diff --git a/changelog/6000.bugfix.rst b/changelog/6000.bugfix.rst
new file mode 100644
index 000000000000..e182777b447c
--- /dev/null
+++ b/changelog/6000.bugfix.rst
@@ -0,0 +1 @@
+this is a fake entry with a bad :ref:`reference-that-should-fail`


Code review comments:
diff_hunk: @@ -0,0 +1 @@
+this is a fake entry with a bad :ref:`reference-that-should-fail`
path: changelog/6000.bugfix.rst
text: @user1:
don't forget to remove that :-D 

@author:
Haha, I can't merge without fixing it anyway, that's the point! 😄