Skip to content

Commit

Permalink
Accept maintainers information as a list
Browse files Browse the repository at this point in the history
Signed-off-by: S m, Aruna <[email protected]>
  • Loading branch information
arsulegai committed May 5, 2023
1 parent 8a8ffc3 commit b534305
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion internal/pkg/configs/configuration.go
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ type Project struct {
Name string `yaml:"name"`
GitHubOrg string `yaml:"github_org"`
GitHubRepo string `yaml:"github_repo"`
Maintainers string `yaml:"maintainers"`
Maintainers []string `yaml:"maintainers"`
Schedules []Schedule `yaml:"schedules"`
}

Expand Down
6 changes: 3 additions & 3 deletions internal/pkg/github/issues.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,9 @@ import (
func (p *ProjectInstance) CreateIssue(schedule configs.Schedule) error {
ghClient := p.client.Client
issueRequest := github.IssueRequest{
Title: &schedule.Title,
Body: &schedule.Description,
Assignee: &p.project.Maintainers,
Title: &schedule.Title,
Body: &schedule.Description,
Assignees: &p.project.Maintainers,
}
issue, response, err := ghClient.Issues.Create(p.client.Context, p.project.GitHubOrg, p.project.GitHubRepo, &issueRequest)
if err != nil {
Expand Down

0 comments on commit b534305

Please sign in to comment.