Skip to content

Add Claude Code GitHub Actions workflows#26

Open
jnasbyupgrade wants to merge 6 commits into
Postgres-Extensions:masterfrom
jnasbyupgrade:add-claude-github-actions
Open

Add Claude Code GitHub Actions workflows#26
jnasbyupgrade wants to merge 6 commits into
Postgres-Extensions:masterfrom
jnasbyupgrade:add-claude-github-actions

Conversation

@jnasbyupgrade

@jnasbyupgrade jnasbyupgrade commented Jul 13, 2026

Copy link
Copy Markdown
Contributor

Adds the Claude Code GitHub Actions workflows: claude.yml (responds to @claude mentions in issues/PRs) and claude-code-review.yml (automated review on new PRs).

Requires the CLAUDE_CODE_OAUTH_TOKEN secret (a Claude subscription token from claude setup-token) and the Claude GitHub App granted access to this repo.

Paired pgxntool PR: Postgres-Extensions/pgxntool#41

Replaces the /install-github-app auto-generated PR, which targeted the fork and had a verbose boilerplate description.

@coderabbitai

coderabbitai Bot commented Jul 13, 2026

Copy link
Copy Markdown

Important

Review skipped

Auto reviews are disabled on this repository. Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

⚙️ Run configuration

Configuration used: Organization UI

Review profile: ASSERTIVE

Plan: Pro Plus

Run ID: f22a1f60-5790-45f5-89c8-5e44875b79b1

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • 🔍 Trigger review
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

jnasbyupgrade and others added 5 commits July 13, 2026 17:30
`claude-code-review.yml` used `on: pull_request`, which gets no secrets on fork
PRs, so CLAUDE_CODE_OAUTH_TOKEN was empty and review never ran for our
fork-based PRs. Switch to `pull_request_target` (runs in the base repo with the
secret available) and gate the job to PRs from the jnasbyupgrade fork only, so
external forks can't trigger the secret-bearing job. Check out the PR head
read-only (persist-credentials: false); no PR code is built or executed.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
- Add concurrency groups (cancel stale review runs; serialize @claude without
  cancelling in-progress responses).
- Add timeout-minutes: 30 to both jobs.
- Skip draft PRs in the auto-review.
- Pin actions/checkout and anthropics/claude-code-action to immutable SHAs.
- persist-credentials: false on all checkouts.

(plugin_marketplaces can't be pinned — it tracks the marketplace default branch.)

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Revert the SHA pins on actions/checkout and anthropics/claude-code-action back
to @v4/@v1. For these first-party actions we want upstream fixes to flow in
automatically rather than freezing at a SHA. (CodeRabbit/zizmor will flag the
unpinned refs; that's an accepted trade-off here.)

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
@claude mentions are independent, read-only requests; serializing only delays
responses and cancelling would drop them. Concurrency stays on
claude-code-review.yml (cancel stale review runs), where it's useful.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Add tests/updates for pgxntool commit ec1150d:
- update-setup-files.sh prunes pgxntool/.github and .claude (dev-only dirs
  copied in by git subtree) from consuming projects

Assert pgxntool/.github is present before the sync and gone after.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant