Skip to content

chore(ci): retire release.yml, sbom.yml, repo-health.yml (type-spec v… #40

chore(ci): retire release.yml, sbom.yml, repo-health.yml (type-spec v…

chore(ci): retire release.yml, sbom.yml, repo-health.yml (type-spec v… #40

Workflow file for this run

---

Check failure on line 1 in .github/workflows/wtd.yml

View workflow run for this annotation

GitHub Actions / .github/workflows/wtd.yml

Invalid workflow file

(Line: 3, Col: 1): Unexpected value 'title', (Line: 7, Col: 1): Unexpected value 'category', (Line: 8, Col: 1): Unexpected value 'usage', (Line: 9, Col: 1): Unexpected value 'behavior', (Line: 10, Col: 1): Unexpected value 'inputs', (Line: 11, Col: 1): Unexpected value 'outputs', (Line: 12, Col: 15): Unexpected value 'What-The-Diff CLI, GitHub token', (Line: 13, Col: 1): Unexpected value 'author', (Line: 14, Col: 1): Unexpected value 'last_modified', (Line: 15, Col: 1): Unexpected value 'changelog'
# Front-Matter for GitHub Workflow
title: "What The Diff PR Summary"
name: "wtd.yml"
description: >
GitHub workflow that generates AI-powered summaries of pull requests using What The Diff
category: automation
usage: "Automatically triggered on pull request events (opened, reopened, synchronize)"
behavior: "Generates a summary of changes in the PR and posts it as a comment, skipping bot-authored PRs and ignoring specified paths"
inputs: "Pull request changes"
outputs: "AI-generated PR summary comment"
dependencies: "What-The-Diff CLI, GitHub token"
author: "LedgerBase Team"
last_modified: "2023-11-15"
changelog: "Initial version"
tags: [automation, pr, summary]
---
name: 📝 What The Diff PR Summary
on:
pull_request:
types: [opened, reopened, synchronize]
paths-ignore:
- "dist/**"
- "build/**"
- "vendor/**"
- "*.lock"
- "*.png"
- "*.jpg"
jobs:
generate-summary:
name: Generate PR Summary
runs-on: ubuntu-latest
# Skip any PR whose author login ends with "[bot]"
if: "!endsWith(github.event.pull_request.user.login, '[bot]')"
steps:
- name: Harden the runner (Audit all outbound calls)
uses: step-security/harden-runner@v2.12
with:
egress-policy: audit
- name: Checkout code
uses: actions/checkout@v4
- name: Set up Node.js
uses: actions/setup-node@v4
with:
node-version: "20"
cache: "npm"
- name: Install What‑The‑Diff CLI
run: |
npm install -g @beyondcode/what-the-diff-cli
- name: Generate PR summary
run: |
what-the-diff \
--github-token ${{ secrets.GITHUB_TOKEN }} \
--owner ${{ github.repository_owner }} \
--repo ${{ github.event.repository.name }} \
--pr-number ${{ github.event.pull_request.number }}