name: Changelog
on:
pull_request:
types: [opened, synchronize]
jobs:
changelog:
if: github.event.pull_request.head.repo.full_name == github.repository && github.event.pull_request.user.login != 'dependabot[bot]'
runs-on: ubuntu-latest
permissions:
contents: write
pull-requests: write
steps:
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd with:
fetch-depth: 0
ref: ${{ github.event.pull_request.head.sha }}
persist-credentials: false
- name: Install Claude CLI
run: npm install -g @anthropic-ai/claude-code@2.1.96
- name: Check changelog
uses: tempoxyz/changelogs/check@de0250123a1d70a2b64a458bd5efcf313986df7a with:
ai: "claude -p"
ecosystem: rust
env:
ANTHROPIC_API_KEY: ${{ secrets.ANTHROPIC_API_KEY }}