Skip to content

feat(claude-review): inject team standards via isolated two-job fetch#46

Draft
MaximusHaximus wants to merge 1 commit into
mainfrom
feat/claude-review-team-context
Draft

feat(claude-review): inject team standards via isolated two-job fetch#46
MaximusHaximus wants to merge 1 commit into
mainfrom
feat/claude-review-team-context

Conversation

@MaximusHaximus

@MaximusHaximus MaximusHaximus commented Jun 26, 2026

Copy link
Copy Markdown
Contributor

What

Makes the Claude code review aware of the team's standards (and related reference docs) by fetching that context and injecting it into the review.

Two jobs:

  • fetch-context fetches the configured read-only sources with a short-lived app token and uploads them as an artifact.
  • claude-review downloads the artifact, loads the standards, and runs the review — it is not given the fetch credentials.

Backward compatible: the context inputs are optional, so callers that don't pass them review exactly as before.

Note

Before merge: switch the fetch-team-context reference from the branch ref back to @main (the branch ref only exists so this PR can self-test the action).

Comment thread .github/actions/fetch-team-context/action.yml Fixed
# TODO(before merge): switch @feat/... back to @main. The branch ref lets
# this bootstrap PR self-test the action (which isn't on main yet);
# reusable workflows resolve composite actions by full path, not local ./.
uses: 0xPolygon/pipelines/.github/actions/fetch-team-context@feat/claude-review-team-context
@MaximusHaximus MaximusHaximus force-pushed the feat/claude-review-team-context branch 3 times, most recently from 31b1fa9 to a519120 Compare June 29, 2026 18:01
Optional two-job flow: a context job fetches configured read-only sources with a
short-lived app token and hands them to the review as an artifact; the review job
(no fetch credentials) injects the standards into CLAUDE.md. Sources are supplied
via a TEAM_CONTEXT_SOURCES secret, so no source repos or paths live in this public
repo. Backward compatible — without the inputs the review runs as before.
@MaximusHaximus MaximusHaximus force-pushed the feat/claude-review-team-context branch from a519120 to efd440e Compare June 29, 2026 22:19
@sonarqubecloud

Copy link
Copy Markdown

Quality Gate Failed Quality Gate failed

Failed conditions
C Security Rating on New Code (required ≥ A)

See analysis details on SonarQube Cloud

Catch issues before they fail your Quality Gate with our IDE extension SonarQube for IDE

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.

2 participants