<?xml version='1.0' encoding='UTF-8'?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
  <id>https://blog.readthedocs.com</id>
  <title>Read the Docs Blog - Posts tagged automation-rules</title>
  <updated>2023-07-08T10:50:30.041393+00:00</updated>
  <link href="https://blog.readthedocs.com"/>
  <link href="https://blog.readthedocs.com/archive/tag/automation-rules/atom.xml" rel="self"/>
  <generator uri="https://ablog.readthedocs.org/" version="0.10.26">ABlog</generator>
  <entry>
    <id>https://blog.readthedocs.com/automation-rules/</id>
    <title>Automation Rules</title>
    <updated>2020-05-04T00:00:00+00:00</updated>
    <author>
      <name>Santos Gallegos</name>
    </author>
    <content type="html">&lt;section id="automation-rules"&gt;

&lt;p&gt;A time ago we introduced a new feature to help users to automate some tasks on Read the Docs.
&lt;a class="reference external" href="https://docs.readthedocs.io/en/stable/automation-rules.html" title="(in Read the Docs user documentation v9.15.0)"&gt;&lt;span class="xref std std-doc"&gt;Automation rules&lt;/span&gt;&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;If you manage a project with several versions,
you may have noticed that Read the Docs doesn’t always activate your new versions &lt;a class="footnote-reference brackets" href="#id2" id="id1"&gt;1&lt;/a&gt;.
If you require to do any action over a new version,
you’ll need to log in your Read the Docs account and manually do so.&lt;/p&gt;
&lt;p&gt;With automation rules,
you can choose what do to after a new version is created.
To add a rule, you only need to choose a pattern and an action.
After that, every new tag or branch that matches the pattern will trigger the action.&lt;/p&gt;
&lt;img alt="../../../_images/automation-rule.png" src="../../../_images/automation-rule.png" style="width: 100%;" /&gt;
&lt;p&gt;Currently, we only have two actions available:&lt;/p&gt;
&lt;ul class="simple"&gt;
&lt;li&gt;&lt;p&gt;Activate version&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Set version as default&lt;/p&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;For the pattern, you can select:&lt;/p&gt;
&lt;ul class="simple"&gt;
&lt;li&gt;&lt;p&gt;All versions&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;The ones that match SemVer&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Or you can write your own using a regular expression&lt;/p&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;With automation rules you can do things like:&lt;/p&gt;
&lt;ul class="simple"&gt;
&lt;li&gt;&lt;p&gt;Activate new tags only&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Activate only branches that start with &lt;code class="docutils literal notranslate"&gt;&lt;span class="pre"&gt;v&lt;/span&gt;&lt;/code&gt;&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Activate tags and branches that belong to the &lt;code class="docutils literal notranslate"&gt;&lt;span class="pre"&gt;1.x&lt;/span&gt;&lt;/code&gt; release&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Set as default tags that have the &lt;code class="docutils literal notranslate"&gt;&lt;span class="pre"&gt;-stable&lt;/span&gt;&lt;/code&gt; or &lt;code class="docutils literal notranslate"&gt;&lt;span class="pre"&gt;-release&lt;/span&gt;&lt;/code&gt; suffix&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Activate all tags except those containing the &lt;code class="docutils literal notranslate"&gt;&lt;span class="pre"&gt;--nightly&lt;/span&gt;&lt;/code&gt; suffix&lt;/p&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;Find more information and examples in &lt;a class="reference external" href="https://docs.readthedocs.io/en/stable/automation-rules.html" title="(in Read the Docs user documentation v9.15.0)"&gt;&lt;span class="xref std std-doc"&gt;our documentation&lt;/span&gt;&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;What other tasks you would like to automate?
Let us know on a &lt;a class="reference external" href="https://github.com/readthedocs/readthedocs.org/issues/"&gt;GitHub issue&lt;/a&gt;!&lt;/p&gt;
&lt;dl class="footnote brackets"&gt;
&lt;dt class="label" id="id2"&gt;&lt;span class="brackets"&gt;&lt;a class="fn-backref" href="#id1"&gt;1&lt;/a&gt;&lt;/span&gt;&lt;/dt&gt;
&lt;dd&gt;&lt;p&gt;We activate and build new versions automatically only if you follow &lt;span class="target" id="index-0"&gt;&lt;/span&gt;&lt;a class="pep reference external" href="https://peps.python.org/pep-0440/"&gt;&lt;strong&gt;PEP 440&lt;/strong&gt;&lt;/a&gt;,
and the new version is greater than the current stable version.&lt;/p&gt;
&lt;/dd&gt;
&lt;/dl&gt;
&lt;/section&gt;
</content>
    <link href="https://blog.readthedocs.com/automation-rules/" rel="alternate"/>
    <summary>A time ago we introduced a new feature to help users to automate some tasks on Read the Docs.
Automation rules.If you manage a project with several versions,
you may have noticed that Read the Docs doesn’t always activate your new versions 1.
If you require to do any action over a new version,
you’ll need to log in your Read the Docs account and manually do so.</summary>
    <category term="feature" label="feature"/>
    <category term="automation-rules" label="automation-rules"/>
    <published>2020-05-04T00:00:00+00:00</published>
  </entry>
</feed>
