Skip to content

feat: add unformatted-count and unformatted-files outputs - #33

Merged
dsherret merged 2 commits into
mainfrom
outputs
Sep 7, 2026
Merged

feat: add unformatted-count and unformatted-files outputs#33
dsherret merged 2 commits into
mainfrom
outputs

Conversation

@dsherret

@dsherret dsherret commented Sep 7, 2026

Copy link
Copy Markdown
Member

Adds two outputs so a workflow can act on the result without parsing the log:

  • unformatted-count: the number of files that aren't formatted
  • unformatted-files: the files that aren't formatted, one per line, relative to the workspace

The check step now always runs dprint check --json when node is available and the script records the outputs. The annotations input only controls whether the ::error lines are emitted, so the outputs are available with annotations disabled too. The outputs are empty on dprint before 0.57 or without node, like annotations.

The cache job in CI asserts the outputs for both the failing check (1 and poorly-formatted.json) and the passing one (0 and empty).

Comment thread README.md Outdated
@dsherret
dsherret merged commit 7c97667 into main Sep 7, 2026
14 checks passed
@dsherret
dsherret deleted the outputs branch September 7, 2026 15:13
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