Skip to content

refactor: extract csv_escape helper to lib/github-common.sh - #57

Merged
locus313 merged 1 commit into
mainfrom
refactor/dedupe-csv-escape
Aug 5, 2026
Merged

refactor: extract csv_escape helper to lib/github-common.sh#57
locus313 merged 1 commit into
mainfrom
refactor/dedupe-csv-escape

Conversation

@locus313

@locus313 locus313 commented Aug 5, 2026

Copy link
Copy Markdown
Owner

Follow-up to the is_bsd_date extraction. Deduplicates the sed 's/"/""/g' CSV double-quote escaping pattern that was hand-rolled 8 times across github-dockerfile-discovery.sh (6 call sites), github-get-repo-list.sh, and github-archive-old-repos.sh into a single shared csv_escape helper.

  • 105/105 bats tests pass
  • shellcheck clean

Deduplicates the 'sed s/"/""/g' CSV double-quote escaping pattern that
was hand-rolled 8 times across github-dockerfile-discovery.sh (6 call
sites), github-get-repo-list.sh, and github-archive-old-repos.sh into a
single shared csv_escape helper, documented in the shared library docs.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
@locus313
locus313 merged commit cf3111a into main Aug 5, 2026
2 checks passed
@locus313
locus313 deleted the refactor/dedupe-csv-escape branch August 5, 2026 19:44
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