Skip to content

Commit 9fe1925

Browse files
feat(api): add old_path field to environment git changed file model
1 parent 0cc561f commit 9fe1925

2 files changed

Lines changed: 6 additions & 2 deletions

File tree

.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

environment.go

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1628,6 +1628,9 @@ func (r environmentStatusContentGitJSON) RawJSON() string {
16281628
type EnvironmentStatusContentGitChangedFile struct {
16291629
// ChangeType is the type of change that happened to the file
16301630
ChangeType EnvironmentStatusContentGitChangedFilesChangeType `json:"changeType"`
1631+
// old_path is the previous path of the file before a rename or copy. Only set when
1632+
// change_type is RENAMED or COPIED.
1633+
OldPath string `json:"oldPath"`
16311634
// path is the path of the file
16321635
Path string `json:"path"`
16331636
JSON environmentStatusContentGitChangedFileJSON `json:"-"`
@@ -1637,6 +1640,7 @@ type EnvironmentStatusContentGitChangedFile struct {
16371640
// struct [EnvironmentStatusContentGitChangedFile]
16381641
type environmentStatusContentGitChangedFileJSON struct {
16391642
ChangeType apijson.Field
1643+
OldPath apijson.Field
16401644
Path apijson.Field
16411645
raw string
16421646
ExtraFields map[string]apijson.Field

0 commit comments

Comments
 (0)