From c57389f7a52ea81609ce8adde2475a0b29b1231d Mon Sep 17 00:00:00 2001 From: Sam <109683132+kernelsam@users.noreply.github.com> Date: Thu, 20 Nov 2025 10:56:13 -0800 Subject: [PATCH] reusable cspell, claude pr reviews, link issues and prs --- .github/workflows/claude-pr-review.yaml | 20 +++++++++++++++++++ .../link-issues-to-pr-post-merge.yaml | 16 +++++++++++++++ .github/workflows/spellcheck.yaml | 11 +--------- 3 files changed, 37 insertions(+), 10 deletions(-) create mode 100644 .github/workflows/claude-pr-review.yaml create mode 100644 .github/workflows/link-issues-to-pr-post-merge.yaml diff --git a/.github/workflows/claude-pr-review.yaml b/.github/workflows/claude-pr-review.yaml new file mode 100644 index 0000000..46d00b7 --- /dev/null +++ b/.github/workflows/claude-pr-review.yaml @@ -0,0 +1,20 @@ +name: Claude PR Review + +concurrency: + group: ${{ github.workflow }}-${{ github.head_ref || github.ref_name }} + cancel-in-progress: true + +on: + pull_request: + types: [opened, synchronize] + +permissions: {} + +jobs: + review: + uses: senzing-factory/build-resources/.github/workflows/claude-pull-request-review.yaml@v3 + permissions: + contents: read + pull-requests: write + secrets: + CLAUDE_CODE_OAUTH_TOKEN: ${{ secrets.CLAUDE_CODE_OAUTH_TOKEN }} diff --git a/.github/workflows/link-issues-to-pr-post-merge.yaml b/.github/workflows/link-issues-to-pr-post-merge.yaml new file mode 100644 index 0000000..a8807c0 --- /dev/null +++ b/.github/workflows/link-issues-to-pr-post-merge.yaml @@ -0,0 +1,16 @@ +name: Link Issues to PR Post Merge + +on: + pull_request: + types: [closed] + +permissions: {} + +jobs: + link-issues: + # Only run if PR was actually merged (not just closed) + if: github.event.pull_request.merged == true + permissions: + pull-requests: write + contents: read + uses: senzing-factory/build-resources/.github/workflows/link-issues-to-pull-request-post-merge.yaml@v3 diff --git a/.github/workflows/spellcheck.yaml b/.github/workflows/spellcheck.yaml index 5cdd3a2..a89ac8f 100644 --- a/.github/workflows/spellcheck.yaml +++ b/.github/workflows/spellcheck.yaml @@ -10,13 +10,4 @@ jobs: spellcheck: permissions: contents: read - runs-on: ubuntu-latest - - steps: - - uses: actions/checkout@v5 - with: - persist-credentials: false - - - uses: streetsidesoftware/cspell-action@v8 - with: - config: .vscode/cspell.json + uses: senzing-factory/build-resources/.github/workflows/cspell.yaml@v3