fix: [CODE-2839]: branch rules state migration (#3039)

pull/3597/head
Atefeh Mohseni Ejiyeh 2024-12-04 22:37:06 +00:00 committed by Harness
parent d85030ef03
commit a71e822ac9
1 changed files with 1 additions and 1 deletions

View File

@ -104,7 +104,7 @@ func (migrate Rule) Import(
RepoID: &repo.ID,
SpaceID: nil,
Type: protection.TypeBranch,
State: enum.RuleStateActive,
State: enum.RuleState(extRule.State),
Identifier: extRule.Identifier,
Pattern: pattern.JSON(),
Definition: json.RawMessage(definitionJSON),