Skip to content

refactor: extract is_bsd_date helper to lib/github-common.sh - #54

Merged
locus313 merged 1 commit into
mainfrom
refactor/dedupe-bsd-date-check
Aug 5, 2026
Merged

refactor: extract is_bsd_date helper to lib/github-common.sh#54
locus313 merged 1 commit into
mainfrom
refactor/dedupe-bsd-date-check

Conversation

@locus313

Copy link
Copy Markdown
Owner

Deduplicates the BSD-vs-GNU date detection probe repeated across github-archive-old-repos.sh (2 call sites) and github-copilot-budget-advisor.sh (1 call site) into a single shared is_bsd_date helper in lib/github-common.sh. Documented in README.md and copilot-instructions.md; added a bats test in tests/test_common.bats.

  • 103/103 bats tests pass
  • shellcheck clean

Deduplicates the BSD-vs-GNU date detection probe that was repeated
across github-archive-old-repos.sh (2 call sites) and
github-copilot-budget-advisor.sh (1 call site) into a single shared
helper, and documents it in the shared library docs.
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
@locus313
locus313 merged commit 7d2ed18 into mainAug 5, 2026
2 checks passed
@locus313
locus313 deleted the refactor/dedupe-bsd-date-check branch August 5, 2026 02:27
@github-actionsgithub-actionsBot mentioned this pull request Aug 5, 2026
Sign up for freeto 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

@locus313