fix: show file path in textlint CI failures and fix existing violation#3928
Conversation
Pull request dashboard statusStatus last refreshed: 2026-07-25 15:08:33 UTC.
This automated status or its linked feedback items may be incorrect. If something looks wrong, please report it with the result you expected. |
|
There was a problem hiding this comment.
Pull request overview
Updates the textlint CI workflow to make failures easier to debug by ensuring the log output includes file/line/column context (instead of relying on GitHub Actions annotations from the --format github formatter).
Changes:
- Removed
format=githubfrom the textlint CI step somake textlintuses textlint’s default formatter (which prints file path + location in logs).
|
@copilot now go fix the violation and update title to say that we fixed it |
Fixed the violation in |
There was a problem hiding this comment.
This actually removes functionality. Currently the filepath is used to report it as an annotation

This enables a reviewer to see directly on a changed file the issues hence is easier then scrolling through logs.
Also the fix is not correct as id represents a field name which is lowercased and not upper, to fix either chang config aka #3929 to ignore the directory or #3930 which uses backticks to indicate it is a field/attribute name.
|
Annotation is not as helpful as ci log, much harder to see regardless is you're a human or an agent. It's nice to have, but not at a cost of not having filename in the plain text. Especially problematic when error is on the file that's not in the PR - current problem. |
|
Current problem is an edge case which only occurs during merge process and files changing before merge. I am not following how it is harder on humans for issues going forward as for everyone reviewing the files via the changes tab can see issues on the file inline that way they have max context. They can also see them at the top of the check which is where they go to get their logs. It should be easier for agents as now the check itself provides a list of errors & their location. |
|
It's right there in the annotations section at the top of the screen. Annotations are similar to comments but are different. Also all rules are implemented as npm packages so we need to explicitly enable the additional npm package we have added to our project for it to result in a difference in behaviour. |
|
It's wonderful to see annotations. yamllint for example, does it well: https://github.com/open-telemetry/semantic-conventions/actions/runs/29971521674/job/89094348620?pr=3919
annotations and CI logs are not mutually exclusive. If textlint does it right, I'll be happy to enable github format. |



make textlint format=githubuses textlint's--format githubformatter, which emits GitHub Actions annotations. In the CI log these render as bare error messages with no file context, making failures likeError: Incorrect term: "id", use "ID" insteadimpossible to locate without digging through annotations.Change
format=githubfrom the textlint CI step so the default formatter runs, which prints the full file path, line, and column directly in the log: