Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

emit chosen label in GH output #44

Merged
merged 4 commits into from
Aug 9, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion ic-assignment/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,4 +21,4 @@ outputs:
description: "The output property of the assigned person. If output property is empty, name is used instead"
runs:
using: "docker"
image: "docker://ghcr.io/grafana/issue-team-scheduler-ic-assignment:v0.14"
image: "docker://ghcr.io/grafana/issue-team-scheduler-ic-assignment:v0.15"
6 changes: 6 additions & 0 deletions pkg/labeler/labeler.go
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ import (
"github.com/go-kit/log"
"github.com/go-kit/log/level"
"github.com/google/go-github/github"
githubaction "github.com/grafana/escalation-scheduler/pkg/github-action"
)

type labelAssigner func(repoOwner, repoName string, issueNumber int, labels []string) error
Expand Down Expand Up @@ -66,6 +67,11 @@ func (l *Labeler) Run(issue *github.Issue) error {
return err
}

err = githubaction.SetOutput("assignedLabel", label)
if err != nil {
return err
}

level.Info(l.logger).Log("msg", "completed successfully")

return nil
Expand Down
2 changes: 1 addition & 1 deletion regex-labeler/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,4 +9,4 @@ inputs:
description: "GitHub token to use for API calls"
runs:
using: "docker"
image: "docker://ghcr.io/grafana/issue-team-scheduler-regex-labeler:v0.14"
image: "docker://ghcr.io/grafana/issue-team-scheduler-regex-labeler:v0.15"
Loading