bug: patterns-files defaults to README.md instead of fetching all files #71

Closed
opened 2026-05-11 13:15:24 +00:00 by rodin · 0 comments
Owner

Problem

The default for patterns-files is README.md:

patternsFiles := flag.String("patterns-files", envOrDefault("PATTERNS_FILES", "README.md"), ...)

This means if you set patterns-repo but omit patterns-files, you only get the README — not the actual pattern files.

Expected Behavior

The common case is "fetch all pattern files from the repo". Users who set patterns-repo: rodin/security-patterns expect to get all 20+ pattern files, not just the README.

Fix

Change default from README.md to "" (empty string), which fetches all files in the repo root.

patternsFiles := flag.String("patterns-files", envOrDefault("PATTERNS_FILES", ""), ...)

Users who only want specific files can still set patterns-files: README.md,patterns/foo.md explicitly.

## Problem The default for `patterns-files` is `README.md`: ```go patternsFiles := flag.String("patterns-files", envOrDefault("PATTERNS_FILES", "README.md"), ...) ``` This means if you set `patterns-repo` but omit `patterns-files`, you only get the README — not the actual pattern files. ## Expected Behavior The common case is "fetch all pattern files from the repo". Users who set `patterns-repo: rodin/security-patterns` expect to get all 20+ pattern files, not just the README. ## Fix Change default from `README.md` to `""` (empty string), which fetches all files in the repo root. ```go patternsFiles := flag.String("patterns-files", envOrDefault("PATTERNS_FILES", ""), ...) ``` Users who only want specific files can still set `patterns-files: README.md,patterns/foo.md` explicitly.
rodin closed this issue 2026-05-11 17:45:19 +00:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: rodin/review-bot#71