chore(ci): retire release.yml, sbom.yml, repo-health.yml (type-spec v… #40
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| --- | ||
|
Check failure on line 1 in .github/workflows/wtd.yml
|
||
| # 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 }} | ||