Skip to content

Commit

Permalink
emit resulting label in GH output
Browse files Browse the repository at this point in the history
Signed-off-by: Mauro Stettler <[email protected]>
  • Loading branch information
replay committed Aug 9, 2024
1 parent aa440d3 commit 2803dc2
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 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,8 @@ func (l *Labeler) Run(issue *github.Issue) error {
return err
}

githubaction.SetOutput("label", label)

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

return nil
Expand Down

0 comments on commit 2803dc2

Please sign in to comment.