Skip to content

Commit d79d4d4

Browse files
feat(api): add old_path field to ContentGitChangedFile
1 parent db5b24c commit d79d4d4

File tree

2 files changed

+8
-2
lines changed

2 files changed

+8
-2
lines changed

.stats.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
configured_endpoints: 193
2-
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/gitpod%2Fgitpod-c96c88897f8d19fbdbc198611166980daa0448074a92a083b3db2014e670c474.yml
3-
openapi_spec_hash: 4a1f0f6bbd23a8943700da97162255ab
2+
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/gitpod%2Fgitpod-95aec32d54661e6522d78deca8c182908b30bae1db5762b365a3ef338dbaccfa.yml
3+
openapi_spec_hash: cd08bb12843c15e0fe783957866deb83
44
config_hash: d73914a733b27d121d59aa43bc7c710e

src/gitpod/types/environment_status.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -91,6 +91,12 @@ class ContentGitChangedFile(BaseModel):
9191
] = FieldInfo(alias="changeType", default=None)
9292
"""ChangeType is the type of change that happened to the file"""
9393

94+
old_path: Optional[str] = FieldInfo(alias="oldPath", default=None)
95+
"""
96+
old_path is the previous path of the file before a rename or copy. Only set when
97+
change_type is RENAMED or COPIED.
98+
"""
99+
94100
path: Optional[str] = None
95101
"""path is the path of the file"""
96102

0 commit comments

Comments
 (0)