Skip to content
This repository was archived by the owner on Sep 5, 2025. It is now read-only.

Commit b534305

Browse files
committed
Accept maintainers information as a list
Signed-off-by: S m, Aruna <arun.s.m.cse@gmail.com>
1 parent 8a8ffc3 commit b534305

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

internal/pkg/configs/configuration.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ type Project struct {
1919
Name string `yaml:"name"`
2020
GitHubOrg string `yaml:"github_org"`
2121
GitHubRepo string `yaml:"github_repo"`
22-
Maintainers string `yaml:"maintainers"`
22+
Maintainers []string `yaml:"maintainers"`
2323
Schedules []Schedule `yaml:"schedules"`
2424
}
2525

internal/pkg/github/issues.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,9 +17,9 @@ import (
1717
func (p *ProjectInstance) CreateIssue(schedule configs.Schedule) error {
1818
ghClient := p.client.Client
1919
issueRequest := github.IssueRequest{
20-
Title: &schedule.Title,
21-
Body: &schedule.Description,
22-
Assignee: &p.project.Maintainers,
20+
Title: &schedule.Title,
21+
Body: &schedule.Description,
22+
Assignees: &p.project.Maintainers,
2323
}
2424
issue, response, err := ghClient.Issues.Create(p.client.Context, p.project.GitHubOrg, p.project.GitHubRepo, &issueRequest)
2525
if err != nil {

0 commit comments

Comments
 (0)