Skip to content

Commit

Permalink
feat(cmd): Print results regardless of files
Browse files Browse the repository at this point in the history
This allows showing info about meta-errors

Signed-off-by: Cezar Craciunoiu <[email protected]>
  • Loading branch information
craciunoiuc committed Oct 2, 2024
1 parent c88881f commit 8002e3c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions cmd/governctl/pr/check/patch.go
Original file line number Diff line number Diff line change
Expand Up @@ -204,8 +204,8 @@ func (opts *Patch) Run(ctx context.Context, args []string) error {

// Set an annotations on the PR if run in a GitHub Actions context.
// See: https://docs.github.com/en/actions/using-workflows/workflow-commands-for-github-actions#setting-an-error-message
if os.Getenv("GITHUB_ACTIONS") == "true" && len(note.File) > 0 && note.Line > 0 {
fmt.Printf("::%s file=%s,line=%d,title=%s::%s\n",
if os.Getenv("GITHUB_ACTIONS") == "true" {
fmt.Printf("::%s file='%s',line='%d',title='%s'::%s\n",
note.Level,
note.File,
note.Line,
Expand Down

0 comments on commit 8002e3c

Please sign in to comment.