You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@tooling.apache.org by sb...@apache.org on 2026/07/09 14:34:50 UTC
(tooling-releases-client) branch main updated: Allow starting a vote without specifying the user's own revision
This is an automated email from the ASF dual-hosted git repository.
sbp pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/tooling-releases-client.git
The following commit(s) were added to refs/heads/main by this push:
new f71a178 Allow starting a vote without specifying the user's own revision
f71a178 is described below
commit f71a178de7303a3149f923277c9b500d7d4331f8
Author: Sean B. Palmer <se...@miscoranda.com>
AuthorDate: Thu Jul 9 15:33:11 2026 +0100
Allow starting a vote without specifying the user's own revision
---
COMMANDS.md | 21 ++++++++++-----------
pyproject.toml | 4 ++--
src/atrclient/client.py | 5 +++--
uv.lock | 4 ++--
4 files changed, 17 insertions(+), 17 deletions(-)
diff --git a/COMMANDS.md b/COMMANDS.md
index 6679782..e2287d9 100644
--- a/COMMANDS.md
+++ b/COMMANDS.md
@@ -862,23 +862,22 @@ Resolve a vote.
### atr vote start
```
-Usage: atr vote start PROJECT VERSION REVISION MAILING-LIST [ARGS]
+Usage: atr vote start --mailing-list STR [OPTIONS] PROJECT VERSION [ARGS]
Start a vote.
╭─ Arguments ──────────────────────────────────────────────────────────────────────────────────────────────────────────╮
-│ * PROJECT [required] │
-│ * VERSION [required] │
-│ * REVISION [required] │
+│ * PROJECT [required] │
+│ * VERSION [required] │
╰──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯
╭─ Parameters ─────────────────────────────────────────────────────────────────────────────────────────────────────────╮
-│ * MAILING-LIST --mailing-list -m [required] │
-│ DURATION --duration -d [default: 72] │
-│ SUBJECT --subject -s │
-│ BODY --body -b │
-│ CONCERNS-NOTED --concerns-noted -c │
-│ AUTO-PUBLISH --auto-publish [default: False] │
-│ --no-auto-publish │
+│ REVISION --revision │
+│ * --mailing-list -m [required] │
+│ --duration -d [default: 72] │
+│ --subject -s │
+│ --body -b │
+│ --concerns-noted -c │
+│ --auto-publish --no-auto-publish [default: False] │
╰──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯
```
diff --git a/pyproject.toml b/pyproject.toml
index f342469..87161f4 100644
--- a/pyproject.toml
+++ b/pyproject.toml
@@ -11,7 +11,7 @@ build-backend = "hatchling.build"
[project]
name = "apache-trusted-releases"
-version = "0.20260709.1409"
+version = "0.20260709.1431"
description = "ATR CLI and Python API"
readme = "README.md"
requires-python = ">=3.12"
@@ -87,4 +87,4 @@ filterwarnings = [
]
[tool.uv]
-exclude-newer = "2026-07-09T14:09:00Z"
+exclude-newer = "2026-07-09T14:31:00Z"
diff --git a/src/atrclient/client.py b/src/atrclient/client.py
index 2661c4e..25b1eb1 100755
--- a/src/atrclient/client.py
+++ b/src/atrclient/client.py
@@ -901,8 +901,9 @@ def app_vote_resolve(
def app_vote_start(
project: str,
version: str,
- revision: str,
/,
+ revision: str | None = None,
+ *,
mailing_list: Annotated[str, cyclopts.Parameter(alias="-m", name="--mailing-list")],
duration: Annotated[int, cyclopts.Parameter(alias="-d", name="--duration")] = 72,
subject: Annotated[str | None, cyclopts.Parameter(alias="-s", name="--subject")] = None,
@@ -918,7 +919,7 @@ def app_vote_start(
vote_start_args = models.api.VoteStartArgs(
project=models.safe.ProjectKey(project),
version=models.safe.VersionKey(version),
- revision=models.safe.RevisionNumber(revision),
+ revision=models.safe.RevisionNumber(revision) if revision else None,
email_to=mailing_list,
vote_duration=duration,
subject=subject or f"[VOTE] Release {project} {version}",
diff --git a/uv.lock b/uv.lock
index 20ca157..aa1b818 100644
--- a/uv.lock
+++ b/uv.lock
@@ -3,7 +3,7 @@ revision = 3
requires-python = ">=3.12"
[options]
-exclude-newer = "2026-07-09T14:09:00Z"
+exclude-newer = "2026-07-09T14:31:00Z"
[[package]]
name = "aiohappyeyeballs"
@@ -151,7 +151,7 @@ wheels = [
[[package]]
name = "apache-trusted-releases"
-version = "0.20260709.1409"
+version = "0.20260709.1431"
source = { editable = "." }
dependencies = [
{ name = "aiohttp" },
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@tooling.apache.org
For additional commands, e-mail: commits-help@tooling.apache.org