Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 6 additions & 2 deletions .github/workflows/file-freshness.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,11 @@ jobs:
run: uv sync --frozen --extra dev

- name: Generate freshness artifacts
run: uv run --active python scripts/repo_file_freshness.py
run: >
uv run --active python scripts/repo_file_freshness.py
--metric commits
--green-max-commits 5
--yellow-max-commits 20

- name: Configure git author
run: |
Expand All @@ -47,7 +51,7 @@ jobs:

- name: Commit and push (if changed)
run: |
git add docs/repo_file_status_report.md file_freshness.json freshness_summary.json freshness_ignore.json
git add docs/repo_file_status_report.md assets/file_freshness.json assets/freshness_summary.json assets/freshness_ignore.json
if git diff --staged --quiet; then
echo "No freshness changes to commit."
exit 0
Expand Down
3 changes: 2 additions & 1 deletion .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,8 @@ repos:
hooks:
- id: detect-secrets
args: ["--baseline", ".secrets.baseline"]
exclude: ^template/.*\.jinja$
# Jinja templates contain secret-like placeholders; freshness JSON embeds git SHAs.
exclude: ^(template/.*\.jinja|assets/file_freshness\.json)$

- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v5.0.0
Expand Down
Loading
Loading