Skip to content

Commit f3d154c

Browse files
committed
feat(model): add changes and updated at to MR
Signed-off-by: Damien Degois <[email protected]>
1 parent 0b9fe4e commit f3d154c

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

db.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,8 @@ def relog(value: asyncpg.connection.LoggedQuery):
6969
"timeout": value.timeout,
7070
"elapsed": value.elapsed,
7171
"exception": str(value.exception),
72-
}
72+
},
73+
default=str,
7374
)
7475
)
7576

gitlab_model.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
#!/usr/bin/env python3
2+
from typing import Any
23
from typing import Literal
34

45
from pydantic import BaseModel
@@ -35,6 +36,7 @@ class GLMRAttributes(BaseModel, extra="allow"):
3536
state: str
3637
url: str
3738
action: str
39+
updated_at: str | None
3840

3941
# https://docs.gitlab.com/ee/api/merge_requests.html#merge-status
4042
detailed_merge_status: str # mergeable, not_approved
@@ -54,6 +56,7 @@ class MergeRequestPayload(BaseModel, extra="allow"):
5456
user: GLUser
5557
project: GLProject
5658
object_attributes: GLMRAttributes
59+
changes: dict[str, dict[str, Any]]
5760

5861
assignees: list[GLUser] = Field(default_factory=list)
5962
reviewers: list[GLUser] = Field(default_factory=list)

0 commit comments

Comments
 (0)