Skip to content

Commit

Permalink
fix: send status for new ignore file additions
Browse files Browse the repository at this point in the history
  • Loading branch information
elsapet committed Sep 14, 2023
1 parent b7318ce commit 11420a3
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion internal/util/ignore/ignore.go
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,15 @@ func GetIgnoredFingerprintsFromCloud(

ignoredFingerprints = make(map[string]types.IgnoredFingerprint)
for _, fingerprint := range data.Ignores {
ignoredFingerprints[fingerprint] = types.IgnoredFingerprint{}
item := types.IgnoredFingerprint{}

_, persistedInCloud := data.CloudIgnoredFingerprints[fingerprint]
if !persistedInCloud {
// it is a new addition; use information from ignore file
item = localIgnores[fingerprint]
}

ignoredFingerprints[fingerprint] = item
}

return data.ProjectFound, ignoredFingerprints, data.StaleIgnores, nil
Expand Down

0 comments on commit 11420a3

Please sign in to comment.