diff --git a/internal/pkg/configs/configuration.go b/internal/pkg/configs/configuration.go index 0398c6d..c054d68 100644 --- a/internal/pkg/configs/configuration.go +++ b/internal/pkg/configs/configuration.go @@ -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"` } diff --git a/internal/pkg/github/issues.go b/internal/pkg/github/issues.go index 412a3cb..9d5add1 100644 --- a/internal/pkg/github/issues.go +++ b/internal/pkg/github/issues.go @@ -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 {