Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: ptr727/ProjectTemplate
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: 2.0.445
Choose a base ref
...
head repository: ptr727/ProjectTemplate
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: 2.0.448
Choose a head ref
  • 4 commits
  • 5 files changed
  • 1 contributor

Commits on Aug 23, 2026

  1. Add repo-gate-exclude-globs Input to Narrow sha-pin/eol-coverage Scans (

    #958)
    
    Fixes #957.
    
    `repo_gate.py`'s `tracked()` read every git-tracked path with no way for
    a caller to narrow it, so `sha-pin` and `eol-coverage` (both of which
    read that list) had no per-repo exclusion point. Blog vendors the
    PaperMod theme under `themes/PaperMod/` as plain tracked files,
    byte-identical to upstream per `themes/README.md`'s documented
    invariant, and PaperMod's own CI workflows pin actions by floating tag,
    which Blog does not author and does not locally edit. Adopting the hub's
    `validate-task.yml` therefore fails `sha-pin` on all 5 of PaperMod's own
    pins every run, with no way to scope them out without breaking the
    byte-identical invariant.
    
    ## The fix
    
    The same shape `markdown-exclude-globs` (#935) already established for
    the Lint Markdown step, applied to the repo gate:
    
    - `repo_gate.py`: `tracked()` takes an optional `exclude` list, turned
    into `:!<pattern>` pathspecs appended to `git ls-files` after `--`. The
    CLI gained a repeatable `--exclude PATTERN` argument, and `main()`
    prints a note naming what was excluded, since a check that quietly scans
    less than its own docstring claims is exactly the silent narrowing this
    script's own `NOTES` convention exists to surface.
    - `.github/actions/repo-gate/action.yml`: a new `exclude-globs` input,
    newline-separated, turned into repeated `--exclude` arguments by the
    composite step's own shell before invoking `repo_gate.py`.
    - `.github/workflows/validate-task.yml`: a new `repo-gate-exclude-globs`
    `workflow_call` input, threaded straight through to the action's
    `exclude-globs`. Empty by default, so the default caller excludes
    nothing.
    - `docs/reusable-workflows.md` "Adopting the Gates": documents the new
    input with Blog's own PaperMod case, the same way the markdown section
    above it documents `markdown-exclude-globs`.
    
    Unlike `markdown-exclude-globs`, a line here is never negated: it is
    always a pathspec to drop, so `themes/PaperMod/**` excludes rather than
    `!themes/PaperMod/**`.
    
    ## Verified
    
    Added `TestExcludeGlobs` (a fresh git repo per case, so the exclude is
    proven against a real subtree rather than one this repo happens to
    carry) and a repo-level floor test excluding this repo's own two
    `workflows/*.yml`-matching directories down to zero. Exercised the
    composite action's own shell logic directly for both the multi-pattern
    and empty-input cases. Ran `--exclude` against this checkout directly,
    confirming `sha-pin` resolves 0 pins once every workflow directory is
    excluded. Full test suite (804 tests), ruff check and format, mypy,
    `repo_gate.py` against this checkout, `prose_lint.py --diff
    origin/develop`, and `docker_lint.py` (actionlint, markdownlint,
    editorconfig-checker) all pass clean.
    
    🤖 Generated with [Claude Code](https://claude.com/claude-code)
    
    <!-- This is an auto-generated comment: release notes by coderabbit.ai
    -->
    ## Summary by CodeRabbit
    
    * **New Features**
      * Added optional path exclusions for repository validation scans.
    * Supports multiple newline-separated patterns for excluding selected
    files or directories.
      * Workflows can pass exclusion patterns to repository checks.
      * Reports when exclusions narrow scans or match no files.
    
    * **Documentation**
      * Documented exclusion formatting and scanning behavior.
    
    * **Bug Fixes**
      * Improved handling and reporting of repository scan errors.
    * Supports repositories containing vendored or otherwise exempt content.
    <!-- end of auto-generated comment: release notes by coderabbit.ai -->
    ptr727 authored Aug 23, 2026
    Configuration menu
    Copy the full SHA
    659682c View commit details
    Browse the repository at this point in the history
  2. Correct repo-gate-exclude-globs Description: eol Never Reads the Trac…

    …ked List (#960)
    
    Real finding from coderabbitai on PR #959 (the develop -> main promotion
    PR carrying #958's exclude-globs work), reproduced before the fix.
    
    `repo-gate-exclude-globs`'s description claimed it narrows what
    `sha-pin`, `eol`, and `eol-coverage` scan, but `check_eol()` never reads
    its `files` parameter at all: it only compares `.editorconfig` and
    `.gitattributes` content directly. Only `sha-pin` (via
    `workflow_files(files)`) and the tracked-path portion of `eol-coverage`
    (via its shebang scan) actually narrow with the exclude list.
    
    ## The fix
    
    `.github/workflows/validate-task.yml`: dropped `eol` from the
    description, per CodeRabbit's own proposed wording.
    
    ## Verified
    
    `python3 scripts/repo_gate.py`, `prose_lint.py --diff origin/develop`,
    and a YAML parse of the edited file all pass clean. The change is a
    one-line description string; no behavior changed.
    
    🤖 Generated with [Claude Code](https://claude.com/claude-code)
    
    <!-- This is an auto-generated comment: release notes by coderabbit.ai
    -->
    
    ## Summary by CodeRabbit
    
    * **Documentation**
    * Clarified which validation scans are affected when paths are excluded
    from repository checks.
    
    <!-- end of auto-generated comment: release notes by coderabbit.ai -->
    ptr727 authored Aug 23, 2026
    Configuration menu
    Copy the full SHA
    e2c2565 View commit details
    Browse the repository at this point in the history
  3. Never Trust a Failed git ls-files Call's stdout, Even Non-Empty (#961)

    Real, HIGH-severity finding from qodo-code-review on PR #959 (the
    develop -> main promotion PR carrying #958/#960's exclude-globs work).
    
    `tracked()` printed git's own stderr on a nonzero exit but still parsed
    and returned `result.stdout` regardless. `main()` only checks `if not
    files:`, so a failed `git ls-files` call that happened to emit any
    stdout before failing would be read as a successful, complete scan,
    letting every check run against a silently incomplete file list.
    
    ## The fix
    
    `tracked()` now returns `[]` unconditionally on a nonzero exit, after
    printing stderr, never falling through to parse stdout on that path.
    
    ## Verified
    
    Added `test_a_failed_call_is_never_trusted_even_with_nonempty_stdout` (a
    mocked nonzero exit carrying non-empty stdout, asserting `tracked()`
    still returns `[]`). Full test suite (807 tests), ruff check and format,
    mypy, `repo_gate.py` against this checkout, and `prose_lint.py --diff
    origin/develop` all pass clean.
    
    🤖 Generated with [Claude Code](https://claude.com/claude-code)
    
    <!-- This is an auto-generated comment: release notes by coderabbit.ai
    -->
    ## Summary by CodeRabbit
    
    - **Bug Fixes**
    - Improved repository checks to safely handle failures when retrieving
    tracked files.
    - Prevented partial or invalid file results from being processed after a
    command failure.
    - Added clearer failure details when command error output is
    unavailable.
    
    - **Tests**
    - Added regression coverage for failed file-list retrieval, including
    cases with partial output and missing error details.
    <!-- end of auto-generated comment: release notes by coderabbit.ai -->
    ptr727 authored Aug 23, 2026
    Configuration menu
    Copy the full SHA
    7ddb3c2 View commit details
    Browse the repository at this point in the history
  4. Promote Develop to Main (#959)

    Routine promotion.
    
    <!-- This is an auto-generated comment: release notes by coderabbit.ai
    -->
    ## Summary by CodeRabbit
    
    * **New Features**
      * Added optional path exclusions for repository validation scans.
      * Supports multiple newline-separated exclusion patterns.
      * Reports when exclusions narrow the scan or match no files.
    * **Documentation**
    * Documented the new workflow input and exclusion syntax, with examples.
    * **Bug Fixes**
      * Improved error reporting for repository file-listing failures.
      * Correctly handles scans where exclusions remove all eligible files.
      * Preserved existing scan behavior when no exclusions are configured.
    <!-- end of auto-generated comment: release notes by coderabbit.ai -->
    ptr727 authored Aug 23, 2026
    Configuration menu
    Copy the full SHA
    cd7bae9 View commit details
    Browse the repository at this point in the history
Loading