Rename loop-claude to build-release, with no alias

This commit is contained in:
2026-12-03 15:22:11 +01:00
parent 38102d5aa5
commit 969190064e
139 changed files with 717 additions and 671 deletions
+1 -1
View File
@@ -10,7 +10,7 @@ from rest_client import json_request
from rest_client.env_file import read_env
KEYS = ("MATTERMOST_URL", "MATTERMOST_TOKEN", "MATTERMOST_RECIPIENT")
# Seconds each connect and each read may wait, so an unreachable server holds loop-claude's interrupt only briefly.
# Seconds each connect and each read may wait, so an unreachable server holds build-release's interrupt only briefly.
TIMEOUT = 10
+1 -1
View File
@@ -46,7 +46,7 @@ def sender_of(project: ProjectConfig, backends: typing.Mapping[Notifier, Backend
def notify(text: str, directory: str | None, home: pathlib.Path, backends: typing.Mapping[Notifier, Backend[typing.Any]]) -> Failure | None:
"""Sends text through the notifier of the project whose checkout holds directory.
The DM is skipped where the config names no notifier, since the project hasn't asked for DMs. It is skipped too where no config can be read: loop-claude has stopped with that reason, and without a config there is no notifier to ask."""
The DM is skipped where the config names no notifier, since the project hasn't asked for DMs. It is skipped too where no config can be read: build-release has stopped with that reason, and without a config there is no notifier to ask."""
project = located(directory, home)
if isinstance(project, Failure) or project.notifier is None:
return None
+1 -1
View File
@@ -12,7 +12,7 @@ from rest_client.env_file import read_env
KEYS = ("SLACK_TOKEN", "SLACK_RECIPIENT")
# Slack's one host for every workspace.
API = "https://slack.com/api"
# Seconds each connect and each read may wait, so an unreachable server holds loop-claude's interrupt only briefly.
# Seconds each connect and each read may wait, so an unreachable server holds build-release's interrupt only briefly.
TIMEOUT = 10
+2 -2
View File
@@ -70,7 +70,7 @@ class Notify(Project):
self.assertIsNone(notify.notify("Which one?", str(self.checkout), self.home, through("slack", slack)))
self.assertEqual(slack.requests, [SLACK_POST])
def test_loop_claudes_dm_goes_through_the_notifier_for_the_project_holding_the_current_directory(self):
def test_build_releases_dm_goes_through_the_notifier_for_the_project_holding_the_current_directory(self):
self.name_notifier("slack", SLACK_KEYS)
slack = Slack({"ok": True})
with contextlib.chdir(self.checkout):
@@ -90,7 +90,7 @@ class Notify(Project):
self.assertIsNone(notify.notify("Which one?", str(self.checkout), self.home, through("mattermost", server)))
self.assertEqual(server.requests, [])
def test_skips_the_notice_where_no_config_names_the_checkout_since_loop_claude_stops_on_that_itself(self):
def test_skips_the_notice_where_no_config_names_the_checkout_since_build_release_stops_on_that_itself(self):
other = self.home / "code" / "other"
other.mkdir()
subprocess.run(["git", "init", "--quiet", str(other)], check=True, env=isolated_env())