Skip to content

Commit 86a40b9

Browse files
committed
Allow limiting released changes up to a specific ref (#11596)
* Allow limiting released changes up to a specific ref * Update test_git.py * fix 2f7767c
1 parent a6ff35b commit 86a40b9

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

ddev/cli/index.html

+3-3
Original file line numberDiff line numberDiff line change
@@ -114,10 +114,10 @@
114114
</code></pre></div> <p><strong>Options:</strong></p> <table> <thead> <tr> <th>Name</th> <th>Type</th> <th>Description</th> <th>Default</th> </tr> </thead> <tbody> <tr> <td><code>--help</code></td> <td>boolean</td> <td>Show this message and exit.</td> <td><code>False</code></td> </tr> </tbody> </table> <h2 id=ddev-release>ddev release<a class=headerlink href=#ddev-release title="Permanent link">&para;</a></h2> <p>Manage the release of checks</p> <p><strong>Usage:</strong></p> <div class=highlight><pre><span></span><code>ddev release [OPTIONS] COMMAND [ARGS]...
115115
</code></pre></div> <p><strong>Options:</strong></p> <table> <thead> <tr> <th>Name</th> <th>Type</th> <th>Description</th> <th>Default</th> </tr> </thead> <tbody> <tr> <td><code>--help</code></td> <td>boolean</td> <td>Show this message and exit.</td> <td><code>False</code></td> </tr> </tbody> </table> <h3 id=ddev-release-build>ddev release build<a class=headerlink href=#ddev-release-build title="Permanent link">&para;</a></h3> <p>Build a wheel for a check as it is on the repo HEAD</p> <p><strong>Usage:</strong></p> <div class=highlight><pre><span></span><code>ddev release build [OPTIONS] CHECK
116116
</code></pre></div> <p><strong>Options:</strong></p> <table> <thead> <tr> <th>Name</th> <th>Type</th> <th>Description</th> <th>Default</th> </tr> </thead> <tbody> <tr> <td><code>--sdist</code>, <code>-s</code></td> <td>boolean</td> <td>N/A</td> <td><code>False</code></td> </tr> <tr> <td><code>--help</code></td> <td>boolean</td> <td>Show this message and exit.</td> <td><code>False</code></td> </tr> </tbody> </table> <h3 id=ddev-release-changelog>ddev release changelog<a class=headerlink href=#ddev-release-changelog title="Permanent link">&para;</a></h3> <p>Perform the operations needed to update the changelog.</p> <p>This method is supposed to be used by other tasks and not directly.</p> <p><strong>Usage:</strong></p> <div class=highlight><pre><span></span><code>ddev release changelog [OPTIONS] CHECK VERSION [OLD_VERSION]
117-
</code></pre></div> <p><strong>Options:</strong></p> <table> <thead> <tr> <th>Name</th> <th>Type</th> <th>Description</th> <th>Default</th> </tr> </thead> <tbody> <tr> <td><code>--initial</code></td> <td>boolean</td> <td>N/A</td> <td><code>False</code></td> </tr> <tr> <td><code>--organization</code>, <code>-r</code></td> <td>text</td> <td>N/A</td> <td><code>DataDog</code></td> </tr> <tr> <td><code>--quiet</code>, <code>-q</code></td> <td>boolean</td> <td>N/A</td> <td><code>False</code></td> </tr> <tr> <td><code>--dry-run</code>, <code>-n</code></td> <td>boolean</td> <td>N/A</td> <td><code>False</code></td> </tr> <tr> <td><code>--output-file</code>, <code>-o</code></td> <td>text</td> <td>N/A</td> <td><code>CHANGELOG.md</code></td> </tr> <tr> <td><code>--tag-prefix</code>, <code>-tp</code></td> <td>text</td> <td>N/A</td> <td><code>v</code></td> </tr> <tr> <td><code>--no-semver</code>, <code>-ns</code></td> <td>boolean</td> <td>N/A</td> <td><code>False</code></td> </tr> <tr> <td><code>--exclude-branch</code></td> <td>text</td> <td>Exclude changes comming from a specific branch</td> <td>None</td> </tr> <tr> <td><code>--help</code></td> <td>boolean</td> <td>Show this message and exit.</td> <td><code>False</code></td> </tr> </tbody> </table> <h3 id=ddev-release-make>ddev release make<a class=headerlink href=#ddev-release-make title="Permanent link">&para;</a></h3> <p>Perform a set of operations needed to release checks:</p> <ul> <li>update the version in <code>__about__.py</code></li> <li>update the changelog</li> <li>update the <code>requirements-agent-release.txt</code> file</li> <li>update in-toto metadata</li> <li>commit the above changes</li> </ul> <p>You can release everything at once by setting the check to <code>all</code>.</p> <p>If you run into issues signing: - Ensure you did <code>gpg --import &lt;YOUR_KEY_ID&gt;.gpg.pub</code></p> <p><strong>Usage:</strong></p> <div class=highlight><pre><span></span><code>ddev release make [OPTIONS] CHECKS...
118-
</code></pre></div> <p><strong>Options:</strong></p> <table> <thead> <tr> <th>Name</th> <th>Type</th> <th>Description</th> <th>Default</th> </tr> </thead> <tbody> <tr> <td><code>--version</code></td> <td>text</td> <td>N/A</td> <td>None</td> </tr> <tr> <td><code>--new</code></td> <td>boolean</td> <td>Ensure versions are at 1.0.0</td> <td><code>False</code></td> </tr> <tr> <td><code>--skip-sign</code></td> <td>boolean</td> <td>Skip the signing of release metadata</td> <td><code>False</code></td> </tr> <tr> <td><code>--sign-only</code></td> <td>boolean</td> <td>Only sign release metadata</td> <td><code>False</code></td> </tr> <tr> <td><code>--exclude</code></td> <td>text</td> <td>Comma-separated list of checks to skip</td> <td>None</td> </tr> <tr> <td><code>--allow-master</code></td> <td>boolean</td> <td>Allow ddev to commit directly to master. Forbidden for core.</td> <td><code>False</code></td> </tr> <tr> <td><code>--help</code></td> <td>boolean</td> <td>Show this message and exit.</td> <td><code>False</code></td> </tr> </tbody> </table> <h3 id=ddev-release-show>ddev release show<a class=headerlink href=#ddev-release-show title="Permanent link">&para;</a></h3> <p>To avoid GitHub's public API rate limits, you need to set <code>github.user</code>/<code>github.token</code> in your config file or use the <code>DD_GITHUB_USER</code>/<code>DD_GITHUB_TOKEN</code> environment variables.</p> <p><strong>Usage:</strong></p> <div class=highlight><pre><span></span><code>ddev release show [OPTIONS] COMMAND [ARGS]...
117+
</code></pre></div> <p><strong>Options:</strong></p> <table> <thead> <tr> <th>Name</th> <th>Type</th> <th>Description</th> <th>Default</th> </tr> </thead> <tbody> <tr> <td><code>--end</code></td> <td>text</td> <td>N/A</td> <td>None</td> </tr> <tr> <td><code>--initial</code></td> <td>boolean</td> <td>N/A</td> <td><code>False</code></td> </tr> <tr> <td><code>--organization</code>, <code>-r</code></td> <td>text</td> <td>N/A</td> <td><code>DataDog</code></td> </tr> <tr> <td><code>--quiet</code>, <code>-q</code></td> <td>boolean</td> <td>N/A</td> <td><code>False</code></td> </tr> <tr> <td><code>--dry-run</code>, <code>-n</code></td> <td>boolean</td> <td>N/A</td> <td><code>False</code></td> </tr> <tr> <td><code>--output-file</code>, <code>-o</code></td> <td>text</td> <td>N/A</td> <td><code>CHANGELOG.md</code></td> </tr> <tr> <td><code>--tag-prefix</code>, <code>-tp</code></td> <td>text</td> <td>N/A</td> <td><code>v</code></td> </tr> <tr> <td><code>--no-semver</code>, <code>-ns</code></td> <td>boolean</td> <td>N/A</td> <td><code>False</code></td> </tr> <tr> <td><code>--exclude-branch</code></td> <td>text</td> <td>Exclude changes comming from a specific branch</td> <td>None</td> </tr> <tr> <td><code>--help</code></td> <td>boolean</td> <td>Show this message and exit.</td> <td><code>False</code></td> </tr> </tbody> </table> <h3 id=ddev-release-make>ddev release make<a class=headerlink href=#ddev-release-make title="Permanent link">&para;</a></h3> <p>Perform a set of operations needed to release checks:</p> <ul> <li>update the version in <code>__about__.py</code></li> <li>update the changelog</li> <li>update the <code>requirements-agent-release.txt</code> file</li> <li>update in-toto metadata</li> <li>commit the above changes</li> </ul> <p>You can release everything at once by setting the check to <code>all</code>.</p> <p>If you run into issues signing: - Ensure you did <code>gpg --import &lt;YOUR_KEY_ID&gt;.gpg.pub</code></p> <p><strong>Usage:</strong></p> <div class=highlight><pre><span></span><code>ddev release make [OPTIONS] CHECKS...
118+
</code></pre></div> <p><strong>Options:</strong></p> <table> <thead> <tr> <th>Name</th> <th>Type</th> <th>Description</th> <th>Default</th> </tr> </thead> <tbody> <tr> <td><code>--version</code></td> <td>text</td> <td>N/A</td> <td>None</td> </tr> <tr> <td><code>--end</code></td> <td>text</td> <td>N/A</td> <td>None</td> </tr> <tr> <td><code>--new</code></td> <td>boolean</td> <td>Ensure versions are at 1.0.0</td> <td><code>False</code></td> </tr> <tr> <td><code>--skip-sign</code></td> <td>boolean</td> <td>Skip the signing of release metadata</td> <td><code>False</code></td> </tr> <tr> <td><code>--sign-only</code></td> <td>boolean</td> <td>Only sign release metadata</td> <td><code>False</code></td> </tr> <tr> <td><code>--exclude</code></td> <td>text</td> <td>Comma-separated list of checks to skip</td> <td>None</td> </tr> <tr> <td><code>--allow-master</code></td> <td>boolean</td> <td>Allow ddev to commit directly to master. Forbidden for core.</td> <td><code>False</code></td> </tr> <tr> <td><code>--help</code></td> <td>boolean</td> <td>Show this message and exit.</td> <td><code>False</code></td> </tr> </tbody> </table> <h3 id=ddev-release-show>ddev release show<a class=headerlink href=#ddev-release-show title="Permanent link">&para;</a></h3> <p>To avoid GitHub's public API rate limits, you need to set <code>github.user</code>/<code>github.token</code> in your config file or use the <code>DD_GITHUB_USER</code>/<code>DD_GITHUB_TOKEN</code> environment variables.</p> <p><strong>Usage:</strong></p> <div class=highlight><pre><span></span><code>ddev release show [OPTIONS] COMMAND [ARGS]...
119119
</code></pre></div> <p><strong>Options:</strong></p> <table> <thead> <tr> <th>Name</th> <th>Type</th> <th>Description</th> <th>Default</th> </tr> </thead> <tbody> <tr> <td><code>--help</code></td> <td>boolean</td> <td>Show this message and exit.</td> <td><code>False</code></td> </tr> </tbody> </table> <h4 id=ddev-release-show-changes>ddev release show changes<a class=headerlink href=#ddev-release-show-changes title="Permanent link">&para;</a></h4> <p>Show all the pending PRs for a given check.</p> <p><strong>Usage:</strong></p> <div class=highlight><pre><span></span><code>ddev release show changes [OPTIONS] CHECK
120-
</code></pre></div> <p><strong>Options:</strong></p> <table> <thead> <tr> <th>Name</th> <th>Type</th> <th>Description</th> <th>Default</th> </tr> </thead> <tbody> <tr> <td><code>--organization</code>, <code>-r</code></td> <td>text</td> <td>The Github organization the repository belongs to</td> <td><code>DataDog</code></td> </tr> <tr> <td><code>--tag-pattern</code></td> <td>text</td> <td>The regex pattern for the format of the tag. Required if the tag doesn't follow semver</td> <td>None</td> </tr> <tr> <td><code>--tag-prefix</code></td> <td>text</td> <td>Specify the prefix of the tag to use if the tag doesn't follow semver</td> <td>None</td> </tr> <tr> <td><code>--dry-run</code>, <code>-n</code></td> <td>boolean</td> <td>Run the command in dry-run mode</td> <td><code>False</code></td> </tr> <tr> <td><code>--since</code></td> <td>text</td> <td>The git ref to use instead of auto-detecting the tag to view changes since</td> <td>None</td> </tr> <tr> <td><code>--exclude-branch</code></td> <td>text</td> <td>Exclude changes comming from a specific branch</td> <td>None</td> </tr> <tr> <td><code>--help</code></td> <td>boolean</td> <td>Show this message and exit.</td> <td><code>False</code></td> </tr> </tbody> </table> <h4 id=ddev-release-show-ready>ddev release show ready<a class=headerlink href=#ddev-release-show-ready title="Permanent link">&para;</a></h4> <p>Show all the checks that can be released.</p> <p><strong>Usage:</strong></p> <div class=highlight><pre><span></span><code>ddev release show ready [OPTIONS]
120+
</code></pre></div> <p><strong>Options:</strong></p> <table> <thead> <tr> <th>Name</th> <th>Type</th> <th>Description</th> <th>Default</th> </tr> </thead> <tbody> <tr> <td><code>--organization</code>, <code>-r</code></td> <td>text</td> <td>The Github organization the repository belongs to</td> <td><code>DataDog</code></td> </tr> <tr> <td><code>--tag-pattern</code></td> <td>text</td> <td>The regex pattern for the format of the tag. Required if the tag doesn't follow semver</td> <td>None</td> </tr> <tr> <td><code>--tag-prefix</code></td> <td>text</td> <td>Specify the prefix of the tag to use if the tag doesn't follow semver</td> <td>None</td> </tr> <tr> <td><code>--dry-run</code>, <code>-n</code></td> <td>boolean</td> <td>Run the command in dry-run mode</td> <td><code>False</code></td> </tr> <tr> <td><code>--since</code></td> <td>text</td> <td>The git ref to use instead of auto-detecting the tag to view changes since</td> <td>None</td> </tr> <tr> <td><code>--end</code></td> <td>text</td> <td>N/A</td> <td>None</td> </tr> <tr> <td><code>--exclude-branch</code></td> <td>text</td> <td>Exclude changes comming from a specific branch</td> <td>None</td> </tr> <tr> <td><code>--help</code></td> <td>boolean</td> <td>Show this message and exit.</td> <td><code>False</code></td> </tr> </tbody> </table> <h4 id=ddev-release-show-ready>ddev release show ready<a class=headerlink href=#ddev-release-show-ready title="Permanent link">&para;</a></h4> <p>Show all the checks that can be released.</p> <p><strong>Usage:</strong></p> <div class=highlight><pre><span></span><code>ddev release show ready [OPTIONS]
121121
</code></pre></div> <p><strong>Options:</strong></p> <table> <thead> <tr> <th>Name</th> <th>Type</th> <th>Description</th> <th>Default</th> </tr> </thead> <tbody> <tr> <td><code>--quiet</code>, <code>-q</code></td> <td>boolean</td> <td>N/A</td> <td><code>False</code></td> </tr> <tr> <td><code>--help</code></td> <td>boolean</td> <td>Show this message and exit.</td> <td><code>False</code></td> </tr> </tbody> </table> <h3 id=ddev-release-stats>ddev release stats<a class=headerlink href=#ddev-release-stats title="Permanent link">&para;</a></h3> <p>A collection of tasks to generate reports about releases</p> <p><strong>Usage:</strong></p> <div class=highlight><pre><span></span><code>ddev release stats [OPTIONS] COMMAND [ARGS]...
122122
</code></pre></div> <p><strong>Options:</strong></p> <table> <thead> <tr> <th>Name</th> <th>Type</th> <th>Description</th> <th>Default</th> </tr> </thead> <tbody> <tr> <td><code>--help</code></td> <td>boolean</td> <td>Show this message and exit.</td> <td><code>False</code></td> </tr> </tbody> </table> <h4 id=ddev-release-stats-merged-prs>ddev release stats merged-prs<a class=headerlink href=#ddev-release-stats-merged-prs title="Permanent link">&para;</a></h4> <p>Prints the PRs merged between the first RC and the current RC/final build</p> <p><strong>Usage:</strong></p> <div class=highlight><pre><span></span><code>ddev release stats merged-prs [OPTIONS]
123123
</code></pre></div> <p><strong>Options:</strong></p> <table> <thead> <tr> <th>Name</th> <th>Type</th> <th>Description</th> <th>Default</th> </tr> </thead> <tbody> <tr> <td><code>--from-ref</code>, <code>-f</code></td> <td>text</td> <td>Reference to start stats on (first RC tagged)</td> <td>_required</td> </tr> <tr> <td><code>--to-ref</code>, <code>-t</code></td> <td>text</td> <td>Reference to end stats at (current RC/final tag)</td> <td>_required</td> </tr> <tr> <td><code>--release-milestone</code>, <code>-r</code></td> <td>text</td> <td>Github release milestone</td> <td>_required</td> </tr> <tr> <td><code>--exclude-releases</code>, <code>-e</code></td> <td>boolean</td> <td>Flag to exclude the release PRs from the list</td> <td><code>False</code></td> </tr> <tr> <td><code>--export-csv</code></td> <td>text</td> <td>CSV file where the list will be exported</td> <td>None</td> </tr> <tr> <td><code>--help</code></td> <td>boolean</td> <td>Show this message and exit.</td> <td><code>False</code></td> </tr> </tbody> </table> <h4 id=ddev-release-stats-report>ddev release stats report<a class=headerlink href=#ddev-release-stats-report title="Permanent link">&para;</a></h4> <p>Prints some release stats we want to track</p> <p><strong>Usage:</strong></p> <div class=highlight><pre><span></span><code>ddev release stats report [OPTIONS]

search/search_index.json

+1-1
Large diffs are not rendered by default.

0 commit comments

Comments
 (0)