mirror of https://github.com/harness/drone.git
fix: [CODE-2839]: branch rules state migration (#3039)
parent
d85030ef03
commit
a71e822ac9
|
@ -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),
|
||||
|
|
Loading…
Reference in New Issue