Skip to content

Commit

Permalink
Removed usage of labeler.LabelData due to a soak period being required (
Browse files Browse the repository at this point in the history
  • Loading branch information
melinath authored Dec 22, 2023
1 parent 8a8ffc3 commit fe01ad3
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion .ci/magician/cmd/request_service_reviewers.go
Original file line number Diff line number Diff line change
Expand Up @@ -45,14 +45,19 @@ var requestServiceReviewersCmd = &cobra.Command{
},
}

// TODO: Switch to labeler.LabelData after a soak period.
type LabelData struct {
Team string `yaml:"team,omitempty"`
}

func execRequestServiceReviewers(prNumber string, gh GithubClient, enrolledTeamsYaml []byte) {
pullRequest, err := gh.GetPullRequest(prNumber)
if err != nil {
fmt.Println(err)
os.Exit(1)
}

enrolledTeams := make(map[string]labeler.LabelData)
enrolledTeams := make(map[string]LabelData)
if err := yaml.Unmarshal(enrolledTeamsYaml, &enrolledTeams); err != nil {
fmt.Printf("Error unmarshalling enrolled teams yaml: %s", err)
os.Exit(1)
Expand Down

0 comments on commit fe01ad3

Please sign in to comment.