Skip to content

Commit 07fd80c

Browse files
committed
events: add __str__ showing push_id and repo_url
1 parent 3fb90db commit 07fd80c

File tree

2 files changed

+3
-0
lines changed

2 files changed

+3
-0
lines changed

config-suite.toml

Whitespace-only changes.

git_hg_sync/events.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,9 @@ class Push(BaseModel):
2020
user: str
2121
push_json_url: str
2222

23+
def __str__(self) -> str:
24+
return f"{self.push_id} for {self.repo_url}"
25+
2326
@model_validator(mode="after")
2427
def check_branch_tags(self) -> Self:
2528
"""Check that at least one of branches or tags is not empty."""

0 commit comments

Comments
 (0)