Skip to content

Include file and line in GitHub Actions warning text#289

Open
LarytheLord wants to merge 1 commit intoget-woke:mainfrom
LarytheLord:fix/github-actions-log-location
Open

Include file and line in GitHub Actions warning text#289
LarytheLord wants to merge 1 commit intoget-woke:mainfrom
LarytheLord:fix/github-actions-log-location

Conversation

@LarytheLord
Copy link

Summary

  • include file:line:column in the GitHub Actions message body (::warning ...::message)
  • keep the existing annotation metadata (file, line, col) unchanged
  • update printer tests to assert the new output format

Why

In GitHub Actions logs, annotation metadata is often not shown inline with the warning text. Including location directly in the message keeps logs actionable without opening each annotation.

This helps address the usability pain reported in get-woke/woke-action#4.

Validation

  • Updated tests:
    • pkg/printer/githubactions_test.go
  • I could not run go test here because the go binary is not installed in this environment.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant