Skip to content

Commit

Permalink
Handle SDLC entities in mindev
Browse files Browse the repository at this point in the history
  • Loading branch information
puerco committed Jul 11, 2024
1 parent b2501d3 commit a58b870
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions cmd/dev/app/rule_type/rttst.go
Original file line number Diff line number Diff line change
Expand Up @@ -287,8 +287,10 @@ func readEntityFromFile(fpath string, entType minderv1.Entity) (protoreflect.Pro
out = &minderv1.Artifact{}
case minderv1.Entity_ENTITY_PULL_REQUESTS:
out = &minderv1.PullRequest{}
case minderv1.Entity_ENTITY_BUILD_ENVIRONMENTS:
return nil, fmt.Errorf("build environments not yet supported")
case minderv1.Entity_ENTITY_BUILD_ENVIRONMENTS, minderv1.Entity_ENTITY_RELEASE,
minderv1.Entity_ENTITY_PIPELINE_RUN,
minderv1.Entity_ENTITY_TASK_RUN, minderv1.Entity_ENTITY_BUILD:
return nil, fmt.Errorf("entity type not yet supported")
case minderv1.Entity_ENTITY_UNSPECIFIED:
return nil, fmt.Errorf("entity type unspecified")
default:
Expand Down

0 comments on commit a58b870

Please sign in to comment.