From 062f1e1384f025c702ef1d0a25543e66b6558977 Mon Sep 17 00:00:00 2001 From: Jean-Paul van Ravensberg <14926452+DevSecNinja@users.noreply.github.com> Date: Sat, 14 Nov 2026 13:41:13 +0100 Subject: [PATCH 1/2] feat(docs): add AI commits badge Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com> --- .github/scripts/ai-commits-badge.py | 240 ++++++++++++++++++++++++++++ .github/workflows/docs.yml | 13 +- README.md | 8 +- 3 files changed, 257 insertions(+), 4 deletions(-) create mode 100644 .github/scripts/ai-commits-badge.py diff --git a/.github/scripts/ai-commits-badge.py b/.github/scripts/ai-commits-badge.py new file mode 100644 index 00000000..ac287b4d --- /dev/null +++ b/.github/scripts/ai-commits-badge.py @@ -0,0 +1,240 @@ +#!/usr/bin/env python3 +"""Render an "AI commits" README badge: the share of commits written by, or co-authored with, AI. + +Needs only git + Python. AI agents are detected by commit author, AI pair-programming by +Co-authored-by trailers. Merge commits and bot automation (Renovate, Dependabot, +github-actions, release bots, ...) are excluded from the denominator. + +Outputs (in --out): + ai-commits.svg compact badge with a proportional strip + hover breakdown + ai-commits.json shields.io endpoint -> https://img.shields.io/endpoint?url= + ai-commits-stats.json raw numbers + ai-commits-card.svg README card (auto light/dark via prefers-color-scheme) +""" +import argparse +import json +import re +import subprocess +from collections import Counter +from datetime import datetime, timezone +from html import escape +from pathlib import Path + +# Matched against "Name " of the author and each Co-authored-by trailer; first match wins. +AI_IDENTITIES = [ + (r"198982749\+Copilot@|copilot-swe-agent", "Copilot coding agent"), + (r"223556219\+Copilot@", "Copilot CLI"), + (r"175728472\+Copilot@", "Copilot"), + (r"242468646\+Claude@|anthropic-code-agent", "Claude agent"), + (r"noreply@anthropic\.com", "Claude Code"), + (r"cursoragent@cursor\.com", "Cursor"), + (r"devin-ai-integration\[bot\]", "Devin"), + (r"google-labs-jules\[bot\]", "Jules"), + (r"noreply@aider\.chat", "Aider"), +] +SEGMENTS = [ # key, label, colour + ("agent", "AI agent", "#8250df"), + ("coauthored", "co-authored with AI", "#c297ff"), + ("human", "human only", "#0969da"), +] +PURPLE, GREY = "#8250df", "#8c959f" +SPARKLE = "M5 0 6.2 3.8 10 5 6.2 6.2 5 10 3.8 6.2 0 5 3.8 3.8Z" +# Approximate Verdana 11px advance widths (shields.io uses the same font/size). +VERDANA = {" ": 3.9, "%": 11.9, "/": 4.7, "I": 4.6, "A": 7.5, "i": 3.1, "m": 10.7, "t": 4.3, + "s": 5.7, "c": 5.7, "o": 6.7, "n": 7.0, "a": 6.6} + + +def text_width(s): + return sum(VERDANA.get(ch, 7.0 if ch.isdigit() else 6.6) for ch in s) + + +def ai_tool(identity): + for pattern, name in AI_IDENTITIES: + if re.search(pattern, identity, re.IGNORECASE): + return name + return None + + +def collect(repo_dir, ref, since): + fmt = "%an <%ae>%x1f%(trailers:key=Co-authored-by,valueonly,separator=%x1e)%x00" + cmd = ["git", "-C", repo_dir, "log", ref, "--no-merges", f"--format={fmt}"] + if since: + cmd.append(f"--since={since}") + out = subprocess.run(cmd, check=True, capture_output=True, text=True, encoding="utf-8").stdout + counts, tools = Counter(), Counter() + for record in filter(None, (r.strip("\n") for r in out.split("\0"))): + author, _, trailers = record.partition("\x1f") + if tool := ai_tool(author): + counts["agent"] += 1 + tools[tool] += 1 + elif "[bot]" in author: + counts["automation"] += 1 + elif co := next(filter(None, map(ai_tool, trailers.split("\x1e"))), None): + counts["coauthored"] += 1 + tools[co] += 1 + else: + counts["human"] += 1 + considered = counts["agent"] + counts["coauthored"] + counts["human"] + ai = counts["agent"] + counts["coauthored"] + return { + "source": "commit-authors-and-trailers", + "ref": ref, + "since": since, + "generated_at": datetime.now(timezone.utc).isoformat(timespec="seconds"), + "commits": considered, + "ai_commits": ai, + "ai_percent": round(100 * ai / considered, 1) if considered else None, + "agent": counts["agent"], + "coauthored": counts["coauthored"], + "human": counts["human"], + "excluded_automation": counts["automation"], + "tools": dict(tools.most_common()), + } + + +def message(st): + return "n/a" if st["ai_percent"] is None else f"{st['ai_percent']:.0f}%" + + +def tooltip(st, name): + if not st["commits"]: + return f"{name}: no commits to measure" + window = f" since {st['since']}" if st["since"] else "" + by_tool = ", ".join(f"{t} {n}" for t, n in st["tools"].items()) or "none" + return (f"{name}: {st['ai_commits']:,} of {st['commits']:,} commits{window} ({message(st)}) involved AI: " + f"{st['agent']:,} by an AI agent, {st['coauthored']:,} co-authored with AI, {st['human']:,} human only. " + f"By tool: {by_tool}. Excludes merges and {st['excluded_automation']:,} bot-automation commits.") + + +def badge_svg(st, name, label="AI commits"): + msg = message(st) + lw = round(text_width(label) + 10 + 14) # padding + sparkle icon + rw = round(text_width(msg) + 10) + w = lw + rw + title = escape(tooltip(st, name)) + strip, x = [], 0.0 + for key, _, colour in SEGMENTS: + seg = w * st[key] / st["commits"] if st["commits"] else 0 + if seg > 0: + strip.append(f'') + x += seg + + def txt(cx, t): + tl = text_width(t) * 10 + return (f'{escape(t)}' + f'{escape(t)}') + + return ( + f'' + f"{title}" + '' + '' + f'' + f'' + f'' + f'{"".join(strip)}' + f'' + '' + f"{txt(14 + (lw - 14) / 2, label)}{txt(lw + rw / 2, msg)}" + ) + + +CARD_THEMES = { + "light": ".bg{fill:#fff;stroke:#d0d7de}.t{fill:#1f2328}.m{fill:#59636e}", + "dark": ".bg{fill:#0d1117;stroke:#3d444d}.t{fill:#f0f6fc}.m{fill:#9198a1}", +} +CARD_LEGEND = {"agent": "AI agent", "coauthored": "Co-authored", "human": "Human only"} + + +def fits(s, font_px, max_w): + # Conservative ~0.55em per glyph for GitHub's sans-serif stack. Lines are shortened to fit rather + # than squeezed with textLength, which visibly stretches text that renders narrower than estimated. + return len(s) * font_px * 0.55 <= max_w + + +def tools_line(tools, max_w=432): + items = list(tools.items()) + for k in range(len(items), 0, -1): + more = len(items) - k + line = "Tools: " + " 路 ".join(f"{t} {c:,}" for t, c in items[:k]) + (f" 路 +{more} more" if more else "") + if fits(line, 12, max_w): + return line + return f"Tools: {len(items)} detected" if items else "Tools: none detected" + + +def card_svg(st, name, theme="auto"): + css = CARD_THEMES["dark" if theme == "dark" else "light"] + if theme == "auto": + css += "@media (prefers-color-scheme:dark){" + CARD_THEMES["dark"] + "}" + css += 'text{font-family:-apple-system,BlinkMacSystemFont,"Segoe UI","Noto Sans",Helvetica,Arial,sans-serif}' + n = st["commits"] + window = f" since {st['since']}" if st["since"] else "" + sub = f"of {n:,} commits{window} involved AI" if n else "no commits to measure" + shown_name = name if fits(name, 12, 200) else name.rsplit("/", 1)[-1] + bar, legend, x = [], [], 24.0 + for i, (key, _, colour) in enumerate(SEGMENTS): + w = 432 * st[key] / n if n else 0 + if w > 0: + bar.append(f'') + x += w + share = f"{100 * st[key] / n:.0f}%" if n else "0%" + lx = 24 + i * 144 + legend.append(f'' + f'{CARD_LEGEND[key]} ' + f'{share}') + title = escape(tooltip(st, name)) + return ( + f'{title}' + '' + f'' + 'Who wrote the commits?' + f'{escape(shown_name)}' + f'' + f'{escape(message(st))}{escape(sub)}' + '' + f'' + f'{"".join(bar)}{"".join(legend)}' + f'{escape(tools_line(st["tools"]))}' + 'Commit authors + Co-authored-by trailers 路 bots excluded' + f'{st["generated_at"][:10]}' + "" + ) + + +def endpoint_json(st, label="AI commits"): + logo = f'' + return {"schemaVersion": 1, "label": label, "message": message(st), + "color": PURPLE.lstrip("#") if st["commits"] else "lightgrey", "logoSvg": logo} + + +def main(): + ap = argparse.ArgumentParser(description=__doc__, formatter_class=argparse.RawDescriptionHelpFormatter) + ap.add_argument("--repo-dir", default=".") + ap.add_argument("--ref", default="HEAD") + ap.add_argument("--since", help='only count recent commits, e.g. "90 days ago"') + ap.add_argument("--name", default="this repository", help="owner/repo shown in the tooltip") + ap.add_argument("--label", default="AI commits") + ap.add_argument("--out", default="badges") + ap.add_argument("--themes", action="store_true", + help="also write ai-commits-card-light.svg / -dark.svg for tags") + args = ap.parse_args() + + st = collect(args.repo_dir, args.ref, args.since) + out = Path(args.out) + out.mkdir(parents=True, exist_ok=True) + (out / "ai-commits.svg").write_text(badge_svg(st, args.name, args.label), encoding="utf-8") + (out / "ai-commits.json").write_text(json.dumps(endpoint_json(st, args.label), indent=2), encoding="utf-8") + (out / "ai-commits-stats.json").write_text(json.dumps(st, indent=2), encoding="utf-8") + (out / "ai-commits-card.svg").write_text(card_svg(st, args.name), encoding="utf-8") + if args.themes: + for theme in ("light", "dark"): + (out / f"ai-commits-card-{theme}.svg").write_text(card_svg(st, args.name, theme), encoding="utf-8") + print(json.dumps(st, indent=2)) + + +if __name__ == "__main__": + main() diff --git a/.github/workflows/docs.yml b/.github/workflows/docs.yml index b7d4c979..684e73cb 100644 --- a/.github/workflows/docs.yml +++ b/.github/workflows/docs.yml @@ -7,13 +7,17 @@ on: - docs/** - mkdocs.yml - .github/workflows/docs.yml + - .github/scripts/ai-commits-badge.py pull_request: branches: [main] paths: - docs/** - mkdocs.yml - .github/workflows/docs.yml + - .github/scripts/ai-commits-badge.py workflow_dispatch: + schedule: + - cron: '23 5 * * *' concurrency: group: pages @@ -48,8 +52,11 @@ jobs: - name: Build docs run: mkdocs build --strict + - name: Generate AI commits badge + run: python3 .github/scripts/ai-commits-badge.py --name "$GITHUB_REPOSITORY" --out site/badges + - name: Upload Pages artifact - if: github.event_name == 'push' + if: github.event_name != 'pull_request' && github.ref == 'refs/heads/main' uses: actions/upload-pages-artifact@fc324d3547104276b827a68afc52ff2a11cc49c9 # v5.0.0 with: path: site/ @@ -58,7 +65,7 @@ jobs: name: Deploy to GitHub Pages runs-on: ubuntu-24.04 needs: build - if: github.event_name == 'push' + if: github.event_name != 'pull_request' && github.ref == 'refs/heads/main' permissions: pages: write id-token: write @@ -80,7 +87,7 @@ jobs: needs: - build - deploy - if: ${{ always() && github.ref == 'refs/heads/main' && github.event_name == 'push' }} + if: ${{ always() && github.ref == 'refs/heads/main' && github.event_name != 'pull_request' }} runs-on: ubuntu-24.04 permissions: contents: read diff --git a/README.md b/README.md index 785091b8..6954c61e 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,6 @@ # 馃悹 Dotfiles -[![Docs](https://img.shields.io/badge/docs-dotfiles.ravensberg.org-blue?logo=materialformkdocs)](https://dotfiles.ravensberg.org) +[![Docs](https://img.shields.io/badge/docs-dotfiles.ravensberg.org-blue?logo=materialformkdocs)](https://dotfiles.ravensberg.org) [![AI commits](https://dotfiles.ravensberg.org/badges/ai-commits.svg)](https://dotfiles.ravensberg.org/badges/ai-commits-stats.json) Modern dotfiles repository managed with [Chezmoi](https://chezmoi.io/), featuring [Fish shell](https://fishshell.com/) configuration and automated setup scripts. @@ -392,6 +392,12 @@ chezmoi init --data=false - [Fish Shell Documentation](https://fishshell.com/docs/current/) - [Chezmoi Template Reference](https://www.chezmoi.io/reference/templates/) +## 馃 AI usage + +These figures count commits by recognized AI agents or with AI co-author trailers; merges and bot automation are excluded. Unmarked AI assistance is not counted, and commits are not a measure of lines written. + +[![Who wrote the commits?](https://dotfiles.ravensberg.org/badges/ai-commits-card.svg)](https://dotfiles.ravensberg.org/badges/ai-commits-stats.json) + ## 馃 Contributing Feel free to fork and customize this repository for your own needs! From 186adc9fe5dc7383b9b2d2d56381a01aaf36044e Mon Sep 17 00:00:00 2001 From: Jean-Paul van Ravensberg <14926452+DevSecNinja@users.noreply.github.com> Date: Sun, 15 Nov 2026 14:50:36 +0100 Subject: [PATCH 2/2] refactor(docs): use shared AI commits action Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com> --- .github/scripts/ai-commits-badge.py | 240 ---------------------------- .github/workflows/docs.yml | 7 +- 2 files changed, 4 insertions(+), 243 deletions(-) delete mode 100644 .github/scripts/ai-commits-badge.py diff --git a/.github/scripts/ai-commits-badge.py b/.github/scripts/ai-commits-badge.py deleted file mode 100644 index ac287b4d..00000000 --- a/.github/scripts/ai-commits-badge.py +++ /dev/null @@ -1,240 +0,0 @@ -#!/usr/bin/env python3 -"""Render an "AI commits" README badge: the share of commits written by, or co-authored with, AI. - -Needs only git + Python. AI agents are detected by commit author, AI pair-programming by -Co-authored-by trailers. Merge commits and bot automation (Renovate, Dependabot, -github-actions, release bots, ...) are excluded from the denominator. - -Outputs (in --out): - ai-commits.svg compact badge with a proportional strip + hover breakdown - ai-commits.json shields.io endpoint -> https://img.shields.io/endpoint?url= - ai-commits-stats.json raw numbers - ai-commits-card.svg README card (auto light/dark via prefers-color-scheme) -""" -import argparse -import json -import re -import subprocess -from collections import Counter -from datetime import datetime, timezone -from html import escape -from pathlib import Path - -# Matched against "Name " of the author and each Co-authored-by trailer; first match wins. -AI_IDENTITIES = [ - (r"198982749\+Copilot@|copilot-swe-agent", "Copilot coding agent"), - (r"223556219\+Copilot@", "Copilot CLI"), - (r"175728472\+Copilot@", "Copilot"), - (r"242468646\+Claude@|anthropic-code-agent", "Claude agent"), - (r"noreply@anthropic\.com", "Claude Code"), - (r"cursoragent@cursor\.com", "Cursor"), - (r"devin-ai-integration\[bot\]", "Devin"), - (r"google-labs-jules\[bot\]", "Jules"), - (r"noreply@aider\.chat", "Aider"), -] -SEGMENTS = [ # key, label, colour - ("agent", "AI agent", "#8250df"), - ("coauthored", "co-authored with AI", "#c297ff"), - ("human", "human only", "#0969da"), -] -PURPLE, GREY = "#8250df", "#8c959f" -SPARKLE = "M5 0 6.2 3.8 10 5 6.2 6.2 5 10 3.8 6.2 0 5 3.8 3.8Z" -# Approximate Verdana 11px advance widths (shields.io uses the same font/size). -VERDANA = {" ": 3.9, "%": 11.9, "/": 4.7, "I": 4.6, "A": 7.5, "i": 3.1, "m": 10.7, "t": 4.3, - "s": 5.7, "c": 5.7, "o": 6.7, "n": 7.0, "a": 6.6} - - -def text_width(s): - return sum(VERDANA.get(ch, 7.0 if ch.isdigit() else 6.6) for ch in s) - - -def ai_tool(identity): - for pattern, name in AI_IDENTITIES: - if re.search(pattern, identity, re.IGNORECASE): - return name - return None - - -def collect(repo_dir, ref, since): - fmt = "%an <%ae>%x1f%(trailers:key=Co-authored-by,valueonly,separator=%x1e)%x00" - cmd = ["git", "-C", repo_dir, "log", ref, "--no-merges", f"--format={fmt}"] - if since: - cmd.append(f"--since={since}") - out = subprocess.run(cmd, check=True, capture_output=True, text=True, encoding="utf-8").stdout - counts, tools = Counter(), Counter() - for record in filter(None, (r.strip("\n") for r in out.split("\0"))): - author, _, trailers = record.partition("\x1f") - if tool := ai_tool(author): - counts["agent"] += 1 - tools[tool] += 1 - elif "[bot]" in author: - counts["automation"] += 1 - elif co := next(filter(None, map(ai_tool, trailers.split("\x1e"))), None): - counts["coauthored"] += 1 - tools[co] += 1 - else: - counts["human"] += 1 - considered = counts["agent"] + counts["coauthored"] + counts["human"] - ai = counts["agent"] + counts["coauthored"] - return { - "source": "commit-authors-and-trailers", - "ref": ref, - "since": since, - "generated_at": datetime.now(timezone.utc).isoformat(timespec="seconds"), - "commits": considered, - "ai_commits": ai, - "ai_percent": round(100 * ai / considered, 1) if considered else None, - "agent": counts["agent"], - "coauthored": counts["coauthored"], - "human": counts["human"], - "excluded_automation": counts["automation"], - "tools": dict(tools.most_common()), - } - - -def message(st): - return "n/a" if st["ai_percent"] is None else f"{st['ai_percent']:.0f}%" - - -def tooltip(st, name): - if not st["commits"]: - return f"{name}: no commits to measure" - window = f" since {st['since']}" if st["since"] else "" - by_tool = ", ".join(f"{t} {n}" for t, n in st["tools"].items()) or "none" - return (f"{name}: {st['ai_commits']:,} of {st['commits']:,} commits{window} ({message(st)}) involved AI: " - f"{st['agent']:,} by an AI agent, {st['coauthored']:,} co-authored with AI, {st['human']:,} human only. " - f"By tool: {by_tool}. Excludes merges and {st['excluded_automation']:,} bot-automation commits.") - - -def badge_svg(st, name, label="AI commits"): - msg = message(st) - lw = round(text_width(label) + 10 + 14) # padding + sparkle icon - rw = round(text_width(msg) + 10) - w = lw + rw - title = escape(tooltip(st, name)) - strip, x = [], 0.0 - for key, _, colour in SEGMENTS: - seg = w * st[key] / st["commits"] if st["commits"] else 0 - if seg > 0: - strip.append(f'') - x += seg - - def txt(cx, t): - tl = text_width(t) * 10 - return (f'{escape(t)}' - f'{escape(t)}') - - return ( - f'' - f"{title}" - '' - '' - f'' - f'' - f'' - f'{"".join(strip)}' - f'' - '' - f"{txt(14 + (lw - 14) / 2, label)}{txt(lw + rw / 2, msg)}" - ) - - -CARD_THEMES = { - "light": ".bg{fill:#fff;stroke:#d0d7de}.t{fill:#1f2328}.m{fill:#59636e}", - "dark": ".bg{fill:#0d1117;stroke:#3d444d}.t{fill:#f0f6fc}.m{fill:#9198a1}", -} -CARD_LEGEND = {"agent": "AI agent", "coauthored": "Co-authored", "human": "Human only"} - - -def fits(s, font_px, max_w): - # Conservative ~0.55em per glyph for GitHub's sans-serif stack. Lines are shortened to fit rather - # than squeezed with textLength, which visibly stretches text that renders narrower than estimated. - return len(s) * font_px * 0.55 <= max_w - - -def tools_line(tools, max_w=432): - items = list(tools.items()) - for k in range(len(items), 0, -1): - more = len(items) - k - line = "Tools: " + " 路 ".join(f"{t} {c:,}" for t, c in items[:k]) + (f" 路 +{more} more" if more else "") - if fits(line, 12, max_w): - return line - return f"Tools: {len(items)} detected" if items else "Tools: none detected" - - -def card_svg(st, name, theme="auto"): - css = CARD_THEMES["dark" if theme == "dark" else "light"] - if theme == "auto": - css += "@media (prefers-color-scheme:dark){" + CARD_THEMES["dark"] + "}" - css += 'text{font-family:-apple-system,BlinkMacSystemFont,"Segoe UI","Noto Sans",Helvetica,Arial,sans-serif}' - n = st["commits"] - window = f" since {st['since']}" if st["since"] else "" - sub = f"of {n:,} commits{window} involved AI" if n else "no commits to measure" - shown_name = name if fits(name, 12, 200) else name.rsplit("/", 1)[-1] - bar, legend, x = [], [], 24.0 - for i, (key, _, colour) in enumerate(SEGMENTS): - w = 432 * st[key] / n if n else 0 - if w > 0: - bar.append(f'') - x += w - share = f"{100 * st[key] / n:.0f}%" if n else "0%" - lx = 24 + i * 144 - legend.append(f'' - f'{CARD_LEGEND[key]} ' - f'{share}') - title = escape(tooltip(st, name)) - return ( - f'{title}' - '' - f'' - 'Who wrote the commits?' - f'{escape(shown_name)}' - f'' - f'{escape(message(st))}{escape(sub)}' - '' - f'' - f'{"".join(bar)}{"".join(legend)}' - f'{escape(tools_line(st["tools"]))}' - 'Commit authors + Co-authored-by trailers 路 bots excluded' - f'{st["generated_at"][:10]}' - "" - ) - - -def endpoint_json(st, label="AI commits"): - logo = f'' - return {"schemaVersion": 1, "label": label, "message": message(st), - "color": PURPLE.lstrip("#") if st["commits"] else "lightgrey", "logoSvg": logo} - - -def main(): - ap = argparse.ArgumentParser(description=__doc__, formatter_class=argparse.RawDescriptionHelpFormatter) - ap.add_argument("--repo-dir", default=".") - ap.add_argument("--ref", default="HEAD") - ap.add_argument("--since", help='only count recent commits, e.g. "90 days ago"') - ap.add_argument("--name", default="this repository", help="owner/repo shown in the tooltip") - ap.add_argument("--label", default="AI commits") - ap.add_argument("--out", default="badges") - ap.add_argument("--themes", action="store_true", - help="also write ai-commits-card-light.svg / -dark.svg for tags") - args = ap.parse_args() - - st = collect(args.repo_dir, args.ref, args.since) - out = Path(args.out) - out.mkdir(parents=True, exist_ok=True) - (out / "ai-commits.svg").write_text(badge_svg(st, args.name, args.label), encoding="utf-8") - (out / "ai-commits.json").write_text(json.dumps(endpoint_json(st, args.label), indent=2), encoding="utf-8") - (out / "ai-commits-stats.json").write_text(json.dumps(st, indent=2), encoding="utf-8") - (out / "ai-commits-card.svg").write_text(card_svg(st, args.name), encoding="utf-8") - if args.themes: - for theme in ("light", "dark"): - (out / f"ai-commits-card-{theme}.svg").write_text(card_svg(st, args.name, theme), encoding="utf-8") - print(json.dumps(st, indent=2)) - - -if __name__ == "__main__": - main() diff --git a/.github/workflows/docs.yml b/.github/workflows/docs.yml index 684e73cb..e9231727 100644 --- a/.github/workflows/docs.yml +++ b/.github/workflows/docs.yml @@ -7,14 +7,12 @@ on: - docs/** - mkdocs.yml - .github/workflows/docs.yml - - .github/scripts/ai-commits-badge.py pull_request: branches: [main] paths: - docs/** - mkdocs.yml - .github/workflows/docs.yml - - .github/scripts/ai-commits-badge.py workflow_dispatch: schedule: - cron: '23 5 * * *' @@ -53,7 +51,10 @@ jobs: run: mkdocs build --strict - name: Generate AI commits badge - run: python3 .github/scripts/ai-commits-badge.py --name "$GITHUB_REPOSITORY" --out site/badges + # renovate: datasource=github-tags depName=DevSecNinja/.github + uses: DevSecNinja/.github/actions/ai-commits-badge@19b7e3c8460e63bbb0966a73297b83f4606b1e95 # v3.7.0 + with: + out: site/badges - name: Upload Pages artifact if: github.event_name != 'pull_request' && github.ref == 'refs/heads/main'