mirror of
https://github.com/harness/drone.git
synced 2025-05-17 01:20:13 +08:00
feat: [CDE-358]: Setting initial value of has_git_changes from last gitspace instance if it exists. (#2770)
* feat: [CDE-358]: Setting initial value of has_git_changes from last gitspace instance if it exists.
This commit is contained in:
parent
f9d8b647f1
commit
4e2c9fae28
@ -147,6 +147,11 @@ func (c *Service) StartGitspaceAction(
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
|
||||
if savedGitspaceInstance != nil {
|
||||
gitspaceInstance.HasGitChanges = savedGitspaceInstance.HasGitChanges
|
||||
}
|
||||
|
||||
if err = c.gitspaceInstanceStore.Create(ctx, gitspaceInstance); err != nil {
|
||||
return fmt.Errorf("failed to create gitspace instance for %s %w", config.Identifier, err)
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user