Skip to content

armgit / zulip

Public Imported from GitHub
0

Zulip server and web application. Open-source team chat that helps teams stay productive and focused.

closed_by_commits: Add a tool to review issues closed in a commit range.

Alex Vandiver567856c78999
diff --git a/pyproject.toml b/pyproject.toml
index 0dc7180efc1..1d3ab6f0f28 100644
--- a/pyproject.toml
+++ b/pyproject.toml
@@ -223,9 +223,21 @@ docs = [
# Needed to build Markdown docs
"myst-parser",
]
+
+# This group is for minimal CI / local release tooling; see tools/closed-by-commits
+release-tools = [
+ # Talks to GitHub
+ "PyGithub",
+ # And also to chat.zulip.org
+ "requests",
+ # For building a CLI
+ "typer",
+]
+
dev = [
{ include-group = "prod" },
{ include-group = "docs" },
+ { include-group = "release-tools" },
# moto s3 mock
"moto[s3]",
diff --git a/tools/closed-by-commits b/tools/closed-by-commits
new file mode 100755
index 00000000000..b97dd71bf24
--- /dev/null
+++ b/tools/closed-by-commits
@@ -0,0 +1,435 @@
+#!/usr/bin/env -S uv run --script --frozen --only-group release-tools # -*-python-*-
+
+import json
+import re
+import time
+import urllib.parse
+from collections import defaultdict
+from dataclasses import dataclass, field
+from functools import cache
+from typing import Annotated, Any
+
+import requests
+import typer
+from github import Auth, Github
+from rich.console import Console
+from rich.progress import Progress
+from typing_extensions import override
+
+
+def encode_hash_component(s: str) -> str:
+ hash_replacements = {
+ "%": ".",
+ "(": ".28",
+ ")": ".29",
+ ".": ".2E",
+ }
+ encoded = urllib.parse.quote(s, safe="*")
+ return "".join(hash_replacements.get(c, c) for c in encoded)
+
+
+@cache
+def search_czo_for_number(prefix: str, number: int) -> frozenset[str]:
+ params = {
+ "anchor": "newest",
+ "num_before": "100",
+ "num_after": "0",
+ "narrow": json.dumps(
+ [
+ {"negated": False, "operator": "search", "operand": f'"#{prefix}{number}"'},
+ {"negated": False, "operator": "channels", "operand": "web-public"},
+ ]
+ ),
+ }
+
+ try:
+ response = requests.get("https://chat.zulip.org/json/messages", params=params, timeout=30)
+ response.raise_for_status()
+
+ data = response.json()
+ messages = data.get("messages", [])
+
+ # Extract unique topic URLs
+ urls = set()
+ for msg in messages:
+ stream_id = msg.get("stream_id")
+ display_recipient = msg.get("display_recipient")
+ subject = msg.get("subject")
+
+ assert stream_id
+ assert display_recipient
+
+ encoded_recipient = encode_hash_component(display_recipient.replace(" ", "-"))
+ encoded_subject = encode_hash_component(subject)
+ url = f"https://chat.zulip.org/#narrow/channel/{stream_id}-{encoded_recipient}/topic/{encoded_subject}"
+ urls.add(url)
+
+ return frozenset(urls)
+
+ except requests.exceptions.RequestException as e:
+ assert e.response
+ if e.response.status_code != 429:
+ raise
+ retry_after = int(e.response.headers["Retry-After"]) + 1
+ time.sleep(retry_after)
+ return search_czo_for_number(prefix, number)
+
+
+@dataclass
+class Issue:
+ number: int
+ title: str
+ czo_urls: set[str] = field(default_factory=set)
+ closed_by_prs: list["PullRequest"] = field(default_factory=list)
+ duplicate_issue_ids: set[int] = field(default_factory=set)
+
+ @override
+ def __hash__(self) -> int:
+ return hash(self.number)
+
+ @override
+ def __eq__(self, other: object) -> bool:
+ return isinstance(other, Issue) and self.number == other.number
+
+
+@dataclass
+class PullRequest:
+ number: int
+ title: str
+ czo_urls: set[str] = field(default_factory=set)
+
+ @override
+ def __hash__(self) -> int:
+ return hash(self.number)
+
+ @override
+ def __eq__(self, other: object) -> bool:
+ return isinstance(other, PullRequest) and self.number == other.number
+
+
+class CommitRangeAnalyzer:
+ COMMIT_PRS_QUERY = """
+ query($oid: GitObjectID!, $repo: String!) {
+ repository(owner: "zulip", name: $repo) {
+ object(oid: $oid) {
+ ... on Commit {
+ messageBody
+ associatedPullRequests(first: 10) {
+ nodes {
+ number
+ title
+ url
+ body
+ comments(first: 100) {
+ nodes {
+ body
+ }
+ }
+ closingIssuesReferences(first: 50) {
+ nodes {
+ number
+ title
+ url
+ body
+ comments(first: 100) {
+ nodes {
+ body
+ }
+ }
+ timelineItems(first:100, itemTypes:MARKED_AS_DUPLICATE_EVENT) {
+ ... on IssueTimelineItemsConnection {
+ nodes {
+ ... on MarkedAsDuplicateEvent {
+ duplicate {
+ ... on Issue {
+ number
+ }
+ }
+ }
+ }
+ }
+ }
+ }
+ }
+ }
+ }
+ }
+ }
+ }
+ }
+ """
+
+ ISSUE_QUERY = """
+ query($number: Int!, $repo: String!) {
+ repository(owner: "zulip", name: $repo) {
+ issue(number: $number) {
+ number
+ title
+ body
+ comments(first: 100) {
+ nodes {
+ body
+ }
+ }
+ timelineItems(first:100, itemTypes:MARKED_AS_DUPLICATE_EVENT) {
+ ... on IssueTimelineItemsConnection {
+ nodes {
+ ... on MarkedAsDuplicateEvent {
+ duplicate {
+ ... on Issue {
+ number
+ }
+ }
+ }
+ }
+ }
+ }
+ }
+ }
+ }
+ """
+
+ def __init__(self, token: str, reponame: str, czo_issue_prefix: str) -> None:
+ self.github = Github(auth=Auth.Token(token))
+ self.reponame = reponame
+ self.czo_issue_prefix = czo_issue_prefix
+
+ @staticmethod
+ def _extract_czo_urls(text: str | None) -> set[str]:
+ if not text:
+ return set()
+
+ matches = re.findall(r"https://chat\.zulip\.org/[^\s\)\]\>]+", text)
+
+ urls = set()
+ for url in matches:
+ # We strip off and remove /with/... and /near/... to
+ # reduce the number of unique links which are generated.
+ parsed_url = re.match(r"(.*)/topic/([^/]+)(/(near|with)/.*)?$", url)
+ if not parsed_url:
+ continue
+ urls.add(
+ parsed_url[1]
+ + "/topic/"
+ # Normalize the topic by decoding and re-encoding
+ + encode_hash_component(urllib.parse.unquote(parsed_url[2].replace(".", "%")))
+ )
+
+ return urls
+
+ @staticmethod
+ def _extract_issue_numbers(reponame: str, text: str | None) -> set[int]:
+ if not text:
+ return set()
+
+ # https://docs.github.com/en/issues/tracking-your-work-with-issues/using-issues/linking-a-pull-request-to-an-issue#linking-a-pull-request-to-an-issue-using-a-keyword
+ pattern = rf"\b(?:close[sd]?|fix(?:es|ed)?|resolve[sd]?):?\s+(?:zulip/{reponame})?#(\d+)\b"
+ matches = re.findall(pattern, text, re.IGNORECASE)
+ return {int(num) for num in matches}
+
+ def _issue_from_node(self, issue_node: dict[str, Any], console: Console) -> Issue:
+ issue = Issue(
+ number=issue_node["number"],
+ title=issue_node["title"].strip(),
+ )
+ issue_comments = issue_node.get("comments", {}).get("nodes", [])
+ for node in [issue_node, *issue_comments]:
+ issue.czo_urls.update(self._extract_czo_urls(node.get("body")))
+ issue.czo_urls.update(search_czo_for_number(self.czo_issue_prefix, issue.number))
+
+ issue.duplicate_issue_ids = {
+ event["duplicate"]["number"] for event in issue_node["timelineItems"]["nodes"]
+ }
+ for issue_id in issue.duplicate_issue_ids:
+ if duplicate_info := self._fetch_issue(issue_id, console):
+ issue.czo_urls.update(duplicate_info.czo_urls)
+ issue.duplicate_issue_ids.update(duplicate_info.duplicate_issue_ids)
+ return issue
+
+ def _fetch_issue(self, number: int, console: Console) -> Issue | None:
+ """Fetch issue metadata from GitHub."""
+ try:
+ _, result = self.github.requester.graphql_query(
+ self.ISSUE_QUERY, {"number": number, "repo": self.reponame}
+ )
+
+ if "errors" in result:
+ console.log(
+ "Failed to fetch zulip/%s#%d: %s", self.reponame, number, result["errors"]
+ )
+ return None
+
+ data = result.get("data", {})
+ issue_node = data.get("repository", {}).get("issue")
+
+ if not issue_node:
+ return None
+
+ return self._issue_from_node(issue_node, console)
+
+ except Exception:
+ return None
+
+ def get_issues_for_commit(
+ self, commit_sha: str, console: Console
+ ) -> tuple[dict[Issue, set[PullRequest]], set[int]]:
+ _, result = self.github.requester.graphql_query(
+ self.COMMIT_PRS_QUERY, {"oid": commit_sha, "repo": self.reponame}
+ )
+
+ if "errors" in result:
+ error_messages = [e.get("message", str(e)) for e in result["errors"]]
+ raise RuntimeError(f"GraphQL errors: {', '.join(error_messages)}")
+
+ data = result.get("data", {})
+
+ if not data.get("repository", {}).get("object"):
+ return dict(), set()
+
+ commit_obj = data["repository"]["object"]
+ commit_message = commit_obj.get("messageBody", "")
+ pr_nodes = commit_obj.get("associatedPullRequests", {}).get("nodes", [])
+
+ results: dict[Issue, set[PullRequest]] = defaultdict(set)
+ all_seen_prs: set[int] = set()
+ for pr_node in pr_nodes:
+ pr = PullRequest(
+ number=pr_node["number"],
+ title=pr_node["title"].strip(),
+ )
+ all_seen_prs.add(pr.number)
+ pr_comments = pr_node.get("comments", {}).get("nodes", [])
+ for node in [pr_node, *pr_comments]:
+ pr.czo_urls.update(self._extract_czo_urls(node.get("body")))
+ pr.czo_urls.update(search_czo_for_number(self.czo_issue_prefix, pr.number))
+
+ # Get issues from PR metadata
+ issues_dict = {}
+ issue_nodes = pr_node.get("closingIssuesReferences", {}).get("nodes", [])
+ for issue_node in issue_nodes:
+ if issue_node is None:
+ continue
+
+ issue = self._issue_from_node(issue_node, console)
+ issues_dict[issue.number] = issue
+
+ # Extract additional issue numbers from commit message
+ for issue_num in self._extract_issue_numbers(self.reponame, commit_message):
+ if issue_num not in issues_dict:
+ maybe_issue = self._fetch_issue(issue_num, console)
+ if maybe_issue is None:
+ continue
+ issues_dict[issue_num] = maybe_issue
+
+ for issue in issues_dict.values():
+ results[issue].add(pr)
+
+ if not pr_nodes:
+ for issue_num in self._extract_issue_numbers(self.reponame, commit_message):
+ maybe_issue = self._fetch_issue(issue_num, console)
+ if maybe_issue is None:
+ continue
+ results[maybe_issue].update()
+
+ return results, all_seen_prs
+
+ def analyze_range(self, base: str, head: str) -> list[Issue]:
+ console = Console(stderr=True, log_path=False)
+
+ repository = self.github.get_repo(f"zulip/{self.reponame}")
+ comparison = repository.compare(base, head)
+ commit_shas = [commit.sha for commit in comparison.commits]
+ console.log(f"Found {len(commit_shas)} commits")
+
+ all_seen_prs = set()
+ issue_to_prs: dict[Issue, set[PullRequest]] = defaultdict(set)
+ with Progress(console=console) as progress:
+ task = progress.add_task("Processing commits...", total=len(commit_shas))
+ for sha in commit_shas:
+ progress.console.log(f"Processing {sha}")
+
+ this_issue_to_prs, this_seen_prs = self.get_issues_for_commit(sha, console)
+ for issue, prs in this_issue_to_prs.items():
+ issue_to_prs[issue].update(prs)
+ all_seen_prs.update(this_seen_prs)
+ progress.advance(task)
+
+ for issue, prs in issue_to_prs.items():
+ for pr in prs:
+ issue.czo_urls.update(pr.czo_urls)
+
+ issue.closed_by_prs = sorted(prs, key=lambda p: p.number)
+
+ unique_prs = len({pr for prs in issue_to_prs.values() for pr in prs})
+ console.log(
+ f"Found {len(all_seen_prs)} unique PRs, of which {unique_prs} PRs closed {len(issue_to_prs)} issues",
+ )
+
+ return sorted(issue_to_prs.keys(), key=lambda x: x.number)
+
+
+def validate_github_token(value: str) -> str:
+ if not value.startswith("github_"):
+ raise typer.BadParameter("Github access tokens start with `github_`")
+ return value
+
+
+from enum import Enum
+
+
+class ZulipRepo(str, Enum):
+ zulip = ("zulip",)
+ flutter = "zulip-flutter"
+
+
+repo_issue_prefixes = {
+ ZulipRepo.zulip: "",
+ ZulipRepo.flutter: "F",
+}
+
+
+def main(
+ base_commit: Annotated[str, typer.Argument(help="Commit-ish, resolved on the server")],
+ head_commit: Annotated[str, typer.Argument(help="Commit-ish, resolved on the server")],
+ token: Annotated[
+ str,
+ typer.Option(
+ metavar="TOKEN",
+ envvar="GITHUB_TOKEN",
+ show_envvar=True,
+ callback=validate_github_token,
+ help=(
+ "Github access token; can be a fine-grained personal access token "
+ "with read-only access to 'Public repositories'. "
+ "See https://github.com/settings/personal-access-tokens/new"
+ ),
+ ),
+ ],
+ repo: ZulipRepo = ZulipRepo.zulip,
+) -> int:
+ """Find issues which are closed in a commit range."""
+
+ lines = []
+ prefix = repo_issue_prefixes[repo]
+ analyzer = CommitRangeAnalyzer(token, repo.value, prefix)
+ for issue in analyzer.analyze_range(base_commit, head_commit):
+ lines.append(f"#### #{prefix}{issue.number}: {issue.title}")
+ if issue.duplicate_issue_ids:
+ lines.append(
+ " - **Duplicates:** "
+ + ", ".join(f"#{prefix}{number}" for number in issue.duplicate_issue_ids)
+ )
+ lines.extend(
+ f" - **Closed by:** #{prefix}{pr.number}: {pr.title}" for pr in issue.closed_by_prs
+ )
+ lines.extend(f" - {czo_url}" for czo_url in sorted(issue.czo_urls))
+
+ lines.append("")
+
+ print("\n".join(lines))
+
+ return 0
+
+
+if __name__ == "__main__":
+ typer.run(main)
diff --git a/uv.lock b/uv.lock
index 7ee96a1f8ce..808e1292d3b 100644
--- a/uv.lock
+++ b/uv.lock
@@ -1700,6 +1700,8 @@ wheels = [
{ url = "https://files.pythonhosted.org/packages/7f/91/ae2eb6b7979e2f9b035a9f612cf70f1bf54aad4e1d125129bef1eae96f19/greenlet-3.2.4-cp310-cp310-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:c2ca18a03a8cfb5b25bc1cbe20f3d9a4c80d8c3b13ba3df49ac3961af0b1018d", size = 584358, upload-time = "2025-08-07T13:18:23.708Z" },
{ url = "https://files.pythonhosted.org/packages/f7/85/433de0c9c0252b22b16d413c9407e6cb3b41df7389afc366ca204dbc1393/greenlet-3.2.4-cp310-cp310-musllinux_1_1_aarch64.whl", hash = "sha256:9fe0a28a7b952a21e2c062cd5756d34354117796c6d9215a87f55e38d15402c5", size = 1113550, upload-time = "2025-08-07T13:42:37.467Z" },
{ url = "https://files.pythonhosted.org/packages/a1/8d/88f3ebd2bc96bf7747093696f4335a0a8a4c5acfcf1b757717c0d2474ba3/greenlet-3.2.4-cp310-cp310-musllinux_1_1_x86_64.whl", hash = "sha256:8854167e06950ca75b898b104b63cc646573aa5fef1353d4508ecdd1ee76254f", size = 1137126, upload-time = "2025-08-07T13:18:20.239Z" },
+ { url = "https://files.pythonhosted.org/packages/f1/29/74242b7d72385e29bcc5563fba67dad94943d7cd03552bac320d597f29b2/greenlet-3.2.4-cp310-cp310-musllinux_1_2_aarch64.whl", hash = "sha256:f47617f698838ba98f4ff4189aef02e7343952df3a615f847bb575c3feb177a7", size = 1544904, upload-time = "2025-11-04T12:42:04.763Z" },
+ { url = "https://files.pythonhosted.org/packages/c8/e2/1572b8eeab0f77df5f6729d6ab6b141e4a84ee8eb9bc8c1e7918f94eda6d/greenlet-3.2.4-cp310-cp310-musllinux_1_2_x86_64.whl", hash = "sha256:af41be48a4f60429d5cad9d22175217805098a9ef7c40bfef44f7669fb9d74d8", size = 1611228, upload-time = "2025-11-04T12:42:08.423Z" },
{ url = "https://files.pythonhosted.org/packages/d6/6f/b60b0291d9623c496638c582297ead61f43c4b72eef5e9c926ef4565ec13/greenlet-3.2.4-cp310-cp310-win_amd64.whl", hash = "sha256:73f49b5368b5359d04e18d15828eecc1806033db5233397748f4ca813ff1056c", size = 298654, upload-time = "2025-08-07T13:50:00.469Z" },
{ url = "https://files.pythonhosted.org/packages/a4/de/f28ced0a67749cac23fecb02b694f6473f47686dff6afaa211d186e2ef9c/greenlet-3.2.4-cp311-cp311-macosx_11_0_universal2.whl", hash = "sha256:96378df1de302bc38e99c3a9aa311967b7dc80ced1dcc6f171e99842987882a2", size = 272305, upload-time = "2025-08-07T13:15:41.288Z" },
{ url = "https://files.pythonhosted.org/packages/09/16/2c3792cba130000bf2a31c5272999113f4764fd9d874fb257ff588ac779a/greenlet-3.2.4-cp311-cp311-manylinux2014_aarch64.manylinux_2_17_aarch64.whl", hash = "sha256:1ee8fae0519a337f2329cb78bd7a8e128ec0f881073d43f023c7b8d4831d5246", size = 632472, upload-time = "2025-08-07T13:42:55.044Z" },
@@ -1709,6 +1711,8 @@ wheels = [
{ url = "https://files.pythonhosted.org/packages/1f/8e/abdd3f14d735b2929290a018ecf133c901be4874b858dd1c604b9319f064/greenlet-3.2.4-cp311-cp311-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:2523e5246274f54fdadbce8494458a2ebdcdbc7b802318466ac5606d3cded1f8", size = 587684, upload-time = "2025-08-07T13:18:25.164Z" },
{ url = "https://files.pythonhosted.org/packages/5d/65/deb2a69c3e5996439b0176f6651e0052542bb6c8f8ec2e3fba97c9768805/greenlet-3.2.4-cp311-cp311-musllinux_1_1_aarch64.whl", hash = "sha256:1987de92fec508535687fb807a5cea1560f6196285a4cde35c100b8cd632cc52", size = 1116647, upload-time = "2025-08-07T13:42:38.655Z" },
{ url = "https://files.pythonhosted.org/packages/3f/cc/b07000438a29ac5cfb2194bfc128151d52f333cee74dd7dfe3fb733fc16c/greenlet-3.2.4-cp311-cp311-musllinux_1_1_x86_64.whl", hash = "sha256:55e9c5affaa6775e2c6b67659f3a71684de4c549b3dd9afca3bc773533d284fa", size = 1142073, upload-time = "2025-08-07T13:18:21.737Z" },
+ { url = "https://files.pythonhosted.org/packages/67/24/28a5b2fa42d12b3d7e5614145f0bd89714c34c08be6aabe39c14dd52db34/greenlet-3.2.4-cp311-cp311-musllinux_1_2_aarch64.whl", hash = "sha256:c9c6de1940a7d828635fbd254d69db79e54619f165ee7ce32fda763a9cb6a58c", size = 1548385, upload-time = "2025-11-04T12:42:11.067Z" },
+ { url = "https://files.pythonhosted.org/packages/6a/05/03f2f0bdd0b0ff9a4f7b99333d57b53a7709c27723ec8123056b084e69cd/greenlet-3.2.4-cp311-cp311-musllinux_1_2_x86_64.whl", hash = "sha256:03c5136e7be905045160b1b9fdca93dd6727b180feeafda6818e6496434ed8c5", size = 1613329, upload-time = "2025-11-04T12:42:12.928Z" },
{ url = "https://files.pythonhosted.org/packages/d8/0f/30aef242fcab550b0b3520b8e3561156857c94288f0332a79928c31a52cf/greenlet-3.2.4-cp311-cp311-win_amd64.whl", hash = "sha256:9c40adce87eaa9ddb593ccb0fa6a07caf34015a29bf8d344811665b573138db9", size = 299100, upload-time = "2025-08-07T13:44:12.287Z" },
{ url = "https://files.pythonhosted.org/packages/44/69/9b804adb5fd0671f367781560eb5eb586c4d495277c93bde4307b9e28068/greenlet-3.2.4-cp312-cp312-macosx_11_0_universal2.whl", hash = "sha256:3b67ca49f54cede0186854a008109d6ee71f66bd57bb36abd6d0a0267b540cdd", size = 274079, upload-time = "2025-08-07T13:15:45.033Z" },
{ url = "https://files.pythonhosted.org/packages/46/e9/d2a80c99f19a153eff70bc451ab78615583b8dac0754cfb942223d2c1a0d/greenlet-3.2.4-cp312-cp312-manylinux2014_aarch64.manylinux_2_17_aarch64.whl", hash = "sha256:ddf9164e7a5b08e9d22511526865780a576f19ddd00d62f8a665949327fde8bb", size = 640997, upload-time = "2025-08-07T13:42:56.234Z" },
@@ -1718,6 +1722,8 @@ wheels = [
{ url = "https://files.pythonhosted.org/packages/19/0d/6660d55f7373b2ff8152401a83e02084956da23ae58cddbfb0b330978fe9/greenlet-3.2.4-cp312-cp312-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:3b3812d8d0c9579967815af437d96623f45c0f2ae5f04e366de62a12d83a8fb0", size = 607586, upload-time = "2025-08-07T13:18:28.544Z" },
{ url = "https://files.pythonhosted.org/packages/8e/1a/c953fdedd22d81ee4629afbb38d2f9d71e37d23caace44775a3a969147d4/greenlet-3.2.4-cp312-cp312-musllinux_1_1_aarch64.whl", hash = "sha256:abbf57b5a870d30c4675928c37278493044d7c14378350b3aa5d484fa65575f0", size = 1123281, upload-time = "2025-08-07T13:42:39.858Z" },
{ url = "https://files.pythonhosted.org/packages/3f/c7/12381b18e21aef2c6bd3a636da1088b888b97b7a0362fac2e4de92405f97/greenlet-3.2.4-cp312-cp312-musllinux_1_1_x86_64.whl", hash = "sha256:20fb936b4652b6e307b8f347665e2c615540d4b42b3b4c8a321d8286da7e520f", size = 1151142, upload-time = "2025-08-07T13:18:22.981Z" },
+ { url = "https://files.pythonhosted.org/packages/27/45/80935968b53cfd3f33cf99ea5f08227f2646e044568c9b1555b58ffd61c2/greenlet-3.2.4-cp312-cp312-musllinux_1_2_aarch64.whl", hash = "sha256:ee7a6ec486883397d70eec05059353b8e83eca9168b9f3f9a361971e77e0bcd0", size = 1564846, upload-time = "2025-11-04T12:42:15.191Z" },
+ { url = "https://files.pythonhosted.org/packages/69/02/b7c30e5e04752cb4db6202a3858b149c0710e5453b71a3b2aec5d78a1aab/greenlet-3.2.4-cp312-cp312-musllinux_1_2_x86_64.whl", hash = "sha256:326d234cbf337c9c3def0676412eb7040a35a768efc92504b947b3e9cfc7543d", size = 1633814, upload-time = "2025-11-04T12:42:17.175Z" },
{ url = "https://files.pythonhosted.org/packages/e9/08/b0814846b79399e585f974bbeebf5580fbe59e258ea7be64d9dfb253c84f/greenlet-3.2.4-cp312-cp312-win_amd64.whl", hash = "sha256:a7d4e128405eea3814a12cc2605e0e6aedb4035bf32697f72deca74de4105e02", size = 299899, upload-time = "2025-08-07T13:38:53.448Z" },
{ url = "https://files.pythonhosted.org/packages/49/e8/58c7f85958bda41dafea50497cbd59738c5c43dbbea5ee83d651234398f4/greenlet-3.2.4-cp313-cp313-macosx_11_0_universal2.whl", hash = "sha256:1a921e542453fe531144e91e1feedf12e07351b1cf6c9e8a3325ea600a715a31", size = 272814, upload-time = "2025-08-07T13:15:50.011Z" },
{ url = "https://files.pythonhosted.org/packages/62/dd/b9f59862e9e257a16e4e610480cfffd29e3fae018a68c2332090b53aac3d/greenlet-3.2.4-cp313-cp313-manylinux2014_aarch64.manylinux_2_17_aarch64.whl", hash = "sha256:cd3c8e693bff0fff6ba55f140bf390fa92c994083f838fece0f63be121334945", size = 641073, upload-time = "2025-08-07T13:42:57.23Z" },
@@ -1727,6 +1733,8 @@ wheels = [
{ url = "https://files.pythonhosted.org/packages/ee/43/3cecdc0349359e1a527cbf2e3e28e5f8f06d3343aaf82ca13437a9aa290f/greenlet-3.2.4-cp313-cp313-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:23768528f2911bcd7e475210822ffb5254ed10d71f4028387e5a99b4c6699671", size = 610497, upload-time = "2025-08-07T13:18:31.636Z" },
{ url = "https://files.pythonhosted.org/packages/b8/19/06b6cf5d604e2c382a6f31cafafd6f33d5dea706f4db7bdab184bad2b21d/greenlet-3.2.4-cp313-cp313-musllinux_1_1_aarch64.whl", hash = "sha256:00fadb3fedccc447f517ee0d3fd8fe49eae949e1cd0f6a611818f4f6fb7dc83b", size = 1121662, upload-time = "2025-08-07T13:42:41.117Z" },
{ url = "https://files.pythonhosted.org/packages/a2/15/0d5e4e1a66fab130d98168fe984c509249c833c1a3c16806b90f253ce7b9/greenlet-3.2.4-cp313-cp313-musllinux_1_1_x86_64.whl", hash = "sha256:d25c5091190f2dc0eaa3f950252122edbbadbb682aa7b1ef2f8af0f8c0afefae", size = 1149210, upload-time = "2025-08-07T13:18:24.072Z" },
+ { url = "https://files.pythonhosted.org/packages/1c/53/f9c440463b3057485b8594d7a638bed53ba531165ef0ca0e6c364b5cc807/greenlet-3.2.4-cp313-cp313-musllinux_1_2_aarch64.whl", hash = "sha256:6e343822feb58ac4d0a1211bd9399de2b3a04963ddeec21530fc426cc121f19b", size = 1564759, upload-time = "2025-11-04T12:42:19.395Z" },
+ { url = "https://files.pythonhosted.org/packages/47/e4/3bb4240abdd0a8d23f4f88adec746a3099f0d86bfedb623f063b2e3b4df0/greenlet-3.2.4-cp313-cp313-musllinux_1_2_x86_64.whl", hash = "sha256:ca7f6f1f2649b89ce02f6f229d7c19f680a6238af656f61e0115b24857917929", size = 1634288, upload-time = "2025-11-04T12:42:21.174Z" },
{ url = "https://files.pythonhosted.org/packages/0b/55/2321e43595e6801e105fcfdee02b34c0f996eb71e6ddffca6b10b7e1d771/greenlet-3.2.4-cp313-cp313-win_amd64.whl", hash = "sha256:554b03b6e73aaabec3745364d6239e9e012d64c68ccd0b8430c64ccc14939a8b", size = 299685, upload-time = "2025-08-07T13:24:38.824Z" },
{ url = "https://files.pythonhosted.org/packages/22/5c/85273fd7cc388285632b0498dbbab97596e04b154933dfe0f3e68156c68c/greenlet-3.2.4-cp314-cp314-macosx_11_0_universal2.whl", hash = "sha256:49a30d5fda2507ae77be16479bdb62a660fa51b1eb4928b524975b3bde77b3c0", size = 273586, upload-time = "2025-08-07T13:16:08.004Z" },
{ url = "https://files.pythonhosted.org/packages/d1/75/10aeeaa3da9332c2e761e4c50d4c3556c21113ee3f0afa2cf5769946f7a3/greenlet-3.2.4-cp314-cp314-manylinux2014_aarch64.manylinux_2_17_aarch64.whl", hash = "sha256:299fd615cd8fc86267b47597123e3f43ad79c9d8a22bebdce535e53550763e2f", size = 686346, upload-time = "2025-08-07T13:42:59.944Z" },
@@ -1734,6 +1742,8 @@ wheels = [
{ url = "https://files.pythonhosted.org/packages/dc/8b/29aae55436521f1d6f8ff4e12fb676f3400de7fcf27fccd1d4d17fd8fecd/greenlet-3.2.4-cp314-cp314-manylinux2014_s390x.manylinux_2_17_s390x.whl", hash = "sha256:b4a1870c51720687af7fa3e7cda6d08d801dae660f75a76f3845b642b4da6ee1", size = 694659, upload-time = "2025-08-07T13:53:17.759Z" },
{ url = "https://files.pythonhosted.org/packages/92/2e/ea25914b1ebfde93b6fc4ff46d6864564fba59024e928bdc7de475affc25/greenlet-3.2.4-cp314-cp314-manylinux2014_x86_64.manylinux_2_17_x86_64.whl", hash = "sha256:061dc4cf2c34852b052a8620d40f36324554bc192be474b9e9770e8c042fd735", size = 695355, upload-time = "2025-08-07T13:18:34.517Z" },
{ url = "https://files.pythonhosted.org/packages/72/60/fc56c62046ec17f6b0d3060564562c64c862948c9d4bc8aa807cf5bd74f4/greenlet-3.2.4-cp314-cp314-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:44358b9bf66c8576a9f57a590d5f5d6e72fa4228b763d0e43fee6d3b06d3a337", size = 657512, upload-time = "2025-08-07T13:18:33.969Z" },
+ { url = "https://files.pythonhosted.org/packages/23/6e/74407aed965a4ab6ddd93a7ded3180b730d281c77b765788419484cdfeef/greenlet-3.2.4-cp314-cp314-musllinux_1_2_aarch64.whl", hash = "sha256:2917bdf657f5859fbf3386b12d68ede4cf1f04c90c3a6bc1f013dd68a22e2269", size = 1612508, upload-time = "2025-11-04T12:42:23.427Z" },
+ { url = "https://files.pythonhosted.org/packages/0d/da/343cd760ab2f92bac1845ca07ee3faea9fe52bee65f7bcb19f16ad7de08b/greenlet-3.2.4-cp314-cp314-musllinux_1_2_x86_64.whl", hash = "sha256:015d48959d4add5d6c9f6c5210ee3803a830dce46356e3bc326d6776bde54681", size = 1680760, upload-time = "2025-11-04T12:42:25.341Z" },
{ url = "https://files.pythonhosted.org/packages/e3/a5/6ddab2b4c112be95601c13428db1d8b6608a8b6039816f2ba09c346c08fc/greenlet-3.2.4-cp314-cp314-win_amd64.whl", hash = "sha256:e37ab26028f12dbb0ff65f29a8d3d44a765c61e729647bf2ddfbbed621726f01", size = 303425, upload-time = "2025-08-07T13:32:27.59Z" },
]
@@ -3717,6 +3727,22 @@ wheels = [
{ url = "https://files.pythonhosted.org/packages/66/0e/9ee7bc0b48ec45d93b302fa2d787830dca4dc454d31a237faa5815995988/PyDispatcher-2.0.7-py3-none-any.whl", hash = "sha256:96543bea04115ffde08f851e1d45cacbfd1ee866ac42127d9b476dc5aefa7de0", size = 12040, upload-time = "2023-02-17T20:11:11.991Z" },
]
+[[package]]
+name = "pygithub"
+version = "2.8.1"
+source = { registry = "https://pypi.org/simple" }
+dependencies = [
+ { name = "pyjwt", extra = ["crypto"] },
+ { name = "pynacl" },
+ { name = "requests" },
+ { name = "typing-extensions" },
+ { name = "urllib3" },
+]
+sdist = { url = "https://files.pythonhosted.org/packages/c1/74/e560bdeffea72ecb26cff27f0fad548bbff5ecc51d6a155311ea7f9e4c4c/pygithub-2.8.1.tar.gz", hash = "sha256:341b7c78521cb07324ff670afd1baa2bf5c286f8d9fd302c1798ba594a5400c9", size = 2246994, upload-time = "2025-09-02T17:41:54.674Z" }
+wheels = [
+ { url = "https://files.pythonhosted.org/packages/07/ba/7049ce39f653f6140aac4beb53a5aaf08b4407b6a3019aae394c1c5244ff/pygithub-2.8.1-py3-none-any.whl", hash = "sha256:23a0a5bca93baef082e03411bf0ce27204c32be8bfa7abc92fe4a3e132936df0", size = 432709, upload-time = "2025-09-02T17:41:52.947Z" },
+]
+
[[package]]
name = "pygments"
version = "2.19.2"
@@ -4673,6 +4699,15 @@ wheels = [
{ url = "https://files.pythonhosted.org/packages/70/98/d82f14ac7ffedbd38dfa2383f142b26d18d23ca6cf35a40f4af60df666bd/sh-2.2.2-py3-none-any.whl", hash = "sha256:e0b15b4ae8ffcd399bc8ffddcbd770a43c7a70a24b16773fbb34c001ad5d52af", size = 38295, upload-time = "2025-02-24T07:16:23.782Z" },
]
+[[package]]
+name = "shellingham"
+version = "1.5.4"
+source = { registry = "https://pypi.org/simple" }
+sdist = { url = "https://files.pythonhosted.org/packages/58/15/8b3609fd3830ef7b27b655beb4b4e9c62313a4e8da8c676e142cc210d58e/shellingham-1.5.4.tar.gz", hash = "sha256:8dbca0739d487e5bd35ab3ca4b36e11c4078f3a234bfce294b0a0291363404de", size = 10310, upload-time = "2023-10-24T04:13:40.426Z" }
+wheels = [
+ { url = "https://files.pythonhosted.org/packages/e0/f9/0595336914c5619e5f28a1fb793285925a8cd4b432c9da0a987836c7f822/shellingham-1.5.4-py2.py3-none-any.whl", hash = "sha256:7ecfff8f2fd72616f7481040475a65b2bf8af90a56c89140852d1120324e8686", size = 9755, upload-time = "2023-10-24T04:13:38.866Z" },
+]
+
[[package]]
name = "six"
version = "1.17.0"
@@ -5283,6 +5318,21 @@ wheels = [
{ url = "https://files.pythonhosted.org/packages/eb/66/ab7efd8941f0bc7b2bd555b0f0471bff77df4c88e0cc31120c82737fec77/twisted-25.5.0-py3-none-any.whl", hash = "sha256:8559f654d01a54a8c3efe66d533d43f383531ebf8d81d9f9ab4769d91ca15df7", size = 3204767, upload-time = "2025-06-07T09:52:21.428Z" },
]
+[[package]]
+name = "typer"
+version = "0.19.2"
+source = { registry = "https://pypi.org/simple" }
+dependencies = [
+ { name = "click" },
+ { name = "rich" },
+ { name = "shellingham" },
+ { name = "typing-extensions" },
+]
+sdist = { url = "https://files.pythonhosted.org/packages/21/ca/950278884e2ca20547ff3eb109478c6baf6b8cf219318e6bc4f666fad8e8/typer-0.19.2.tar.gz", hash = "sha256:9ad824308ded0ad06cc716434705f691d4ee0bfd0fb081839d2e426860e7fdca", size = 104755, upload-time = "2025-09-23T09:47:48.256Z" }
+wheels = [
+ { url = "https://files.pythonhosted.org/packages/00/22/35617eee79080a5d071d0f14ad698d325ee6b3bf824fc0467c03b30e7fa8/typer-0.19.2-py3-none-any.whl", hash = "sha256:755e7e19670ffad8283db353267cb81ef252f595aa6834a0d1ca9312d9326cb9", size = 46748, upload-time = "2025-09-23T09:47:46.777Z" },
+]
+
[[package]]
name = "types-awscrt"
version = "0.28.2"
@@ -6104,6 +6154,7 @@ dev = [
{ name = "pyasyncore" },
{ name = "pydantic" },
{ name = "pydantic-partials" },
+ { name = "pygithub" },
{ name = "pygments" },
{ name = "pyicu" },
{ name = "pyinotify" },
@@ -6142,6 +6193,7 @@ dev = [
{ name = "time-machine" },
{ name = "tlds" },
{ name = "tornado" },
+ { name = "typer" },
{ name = "types-beautifulsoup4" },
{ name = "types-boto" },
{ name = "types-decorator" },
@@ -6264,6 +6316,11 @@ prod = [
{ name = "zulip-bots" },
{ name = "zxcvbn" },
]
+release-tools = [
+ { name = "pygithub" },
+ { name = "requests" },
+ { name = "typer" },
+]
[package.metadata]
@@ -6333,6 +6390,7 @@ dev = [
{ name = "pyasyncore" },
{ name = "pydantic" },
{ name = "pydantic-partials" },
+ { name = "pygithub" },
{ name = "pygments" },
{ name = "pyicu" },
{ name = "pyinotify" },
@@ -6351,6 +6409,7 @@ dev = [
{ name = "pyvips" },
{ name = "redis" },
{ name = "regex" },
+ { name = "requests" },
{ name = "requests", extras = ["security"] },
{ name = "requests-oauthlib" },
{ name = "responses" },
@@ -6372,6 +6431,7 @@ dev = [
{ name = "time-machine" },
{ name = "tlds" },
{ name = "tornado" },
+ { name = "typer" },
{ name = "types-beautifulsoup4" },
{ name = "types-boto" },
{ name = "types-decorator" },
@@ -6494,6 +6554,11 @@ prod = [
{ name = "zulip-bots", url = "https://github.com/zulip/python-zulip-api/archive/0.9.1.zip", subdirectory = "zulip_bots" },
{ name = "zxcvbn" },
]
+release-tools = [
+ { name = "pygithub" },
+ { name = "requests" },
+ { name = "typer" },
+]
[[package]]
name = "zxcvbn"