diff --git a/cmd/governctl/pr/check/patch.go b/cmd/governctl/pr/check/patch.go index e9b12db..663c1ee 100644 --- a/cmd/governctl/pr/check/patch.go +++ b/cmd/governctl/pr/check/patch.go @@ -174,7 +174,13 @@ func (opts *Patch) Run(cmd *cobra.Command, 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", note.Level, note.File, note.Line, note.Type, note.Message) + fmt.Printf("::%s file=%s,line=%d,title=%s::%s\n", + note.Level, + note.File, + note.Line, + note.Type, + fmt.Sprintf("%s:%d-%d: %s", note.File, note.Line, note.Line, note.Message), + ) } } }