Skip to content

Allow custom path and options to be passed to zpretty in backend-lint#390

Open
ericof wants to merge 1 commit into
2.xfrom
issue-389
Open

Allow custom path and options to be passed to zpretty in backend-lint#390
ericof wants to merge 1 commit into
2.xfrom
issue-389

Conversation

@ericof

@ericof ericof commented Jul 2, 2026

Copy link
Copy Markdown
Member

Summary

Adds two new optional inputs to the backend-lint reusable workflow so callers can control how zpretty is invoked:

  • zpretty-check-path (default 'src') — the path checked by zpretty. Previously hardcoded to src.
  • zpretty-options (default '') — additional command-line options passed through to zpretty (e.g. --extend-exclude).

Changes

  • .github/workflows/backend-lint.yml: new inputs wired into the zpretty --check invocation.
  • docs/sources/reference/shared-workflows.md: documented all backend-lint inputs in a table and added a usage example.
  • news/389.feature: changelog fragment.

Notes

The zpretty-options value is expanded by bash in the workflow run: step (not Make), so a regex end anchor must be a single $ — the documented example reflects this:

zpretty-options: '--extend-exclude "/rss/(rss\.xml|search-rss)\.pt$"'

Refs #389

Add `zpretty-check-path` and `zpretty-options` inputs to the
backend-lint reusable workflow so callers can override the checked
path (previously hardcoded to `src`) and pass extra command-line
options to zpretty. Document all backend-lint inputs in the
shared-workflows reference.

Refs #389
@ericof ericof requested a review from fredvd July 2, 2026 20:27
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