Don't run the test suite on merge requests for docs
If a merge request identifies itself as only containing docs, don't run the test suite. If a merge request only contains docs, but no code or configuration, the branch name should begin with docs/
. For example:
docs/issue-168-sitemap
The CI pipeline will then be able to filter out these branches. This avoids the need to add [ci skip]
to the end of the commit message.
For now, this mean no CI jobs will run. However, it leaves room for adding dedicated jobs just for docs such as xref validation, spelling checking, and so forth. Which is why we want to get away from using [ci skip]
for this purpose.
The full build will still run when the code is merged into master (though we could eventually add some filtering there too based on which files were changed).