Skip to content

feat: claude init#45

Open
nsprenkle wants to merge 9 commits intorelease-teakfrom
nsprenkle/claude-init
Open

feat: claude init#45
nsprenkle wants to merge 9 commits intorelease-teakfrom
nsprenkle/claude-init

Conversation

@nsprenkle
Copy link
Copy Markdown
Member

Add Claude related files & setup:

  • Adds CLAUDE.md with repo overview.
  • Adds validate command to run tests & build steps.
  • Adds configuration to allow validation to run w/out local plugin config.
  • Allow-lists build scripts so Claude doesn't have to ask for input when validating.

Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Adds Claude Code repository guidance/config and introduces a “validate” build flow intended to mirror CI without requiring private/local plugin configuration.

Changes:

  • Add a build:validate webpack build path and corresponding webpack config.
  • Add Claude Code repo docs (CLAUDE.md) and a /validate command runbook.
  • Configure Claude permissions allow-list for common validation commands.

Reviewed changes

Copilot reviewed 5 out of 5 changed files in this pull request and generated 4 comments.

Show a summary per file
File Description
webpack.validate.config.js New webpack config meant to support build:validate with an env.config stub.
package.json Adds build:validate script to run webpack with the validate config.
CLAUDE.md Adds repo/architecture guidance and common developer commands for Claude Code.
.claude/settings.json Allows specific shell commands for Claude-driven validation.
.claude/commands/validate.md Documents the /validate procedure and reporting format.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

You can also share your feedback on Copilot code review. Take the survey.

## Checks to run

### 1. Commit messages
Run: `git log main..HEAD --format="%H %s"`
Copy link

Copilot AI Mar 11, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This repo’s CI and workflows use master as the default branch (e.g., .github/workflows/validate.yml triggers on master), but the commit-message check here uses git log main..HEAD .... That will fail or produce empty output in this repo. Update the base ref to master (or make it derive from the repo’s default branch) so commit validation works.

Suggested change
Run: `git log main..HEAD --format="%H %s"`
Run: `git log master..HEAD --format="%H %s"`

Copilot uses AI. Check for mistakes.
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This comment is generally correct, but aren't we basing PRs off of the most recent release/ branch?

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Copilot AI review requested due to automatic review settings March 12, 2026 18:47
nsprenkle and others added 2 commits March 12, 2026 14:48
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 5 out of 5 changed files in this pull request and generated 3 comments.


💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

You can also share your feedback on Copilot code review. Take the survey.

"Bash(npm test -- --passWithNoTests)",
"Bash(npm run build)",
"Bash(npm run build:validate)",
"Bash(git log -1 --pretty=%B)",
Copy link

Copilot AI Mar 12, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

/validate instructs running git log … over a commit range, but the allowlist only permits git log -1 --pretty=%B. As a result Claude will still prompt for permission when running the commit-message check. Add an allow entry for the exact git log <default-branch>..HEAD --format="%H %s" command (or adjust the validate command to use an already-allowed git invocation).

Suggested change
"Bash(git log -1 --pretty=%B)",
"Bash(git log -1 --pretty=%B)",
"Bash(git log main..HEAD --format=\"%H %s\")",

Copilot uses AI. Check for mistakes.
Comment on lines +2 to +4
const { merge } = require('webpack-merge');
const prodConfig = require('./webpack.prod.config');

Copy link

Copilot AI Mar 12, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This config claims to be identical to the prod build, but it merges @openedx/frontend-build/config/webpack.prod.config instead of the repo’s ./webpack.prod.config.js (which adds customizations like copying public/static and the @src alias). Consider importing and extending the local webpack.prod.config.js so build:validate matches the actual production build output/behavior apart from the env.config stub.

Copilot uses AI. Check for mistakes.
Comment on lines +1 to +5
Run all pre-PR validation checks that mirror CI, then report results.

Execute the following checks **in order**, capturing output from each. Continue through all checks even if one fails — collect all failures before reporting.

## Checks to run
Copy link

Copilot AI Mar 12, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This command says it “mirror[s] CI”, but CI runs make validate which currently executes npm run build (not npm run build:validate). Either update the wording to reflect the intentional difference, or align CI/Makefile and this command to run the same build step so local /validate results match CI more closely.

Copilot uses AI. Check for mistakes.
Copy link
Copy Markdown
Member

@jansenk jansenk left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This looks good but I have one comment and I think the copilot suggestions are valid

## Checks to run

### 1. Commit messages
Run: `git log main..HEAD --format="%H %s"`
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This comment is generally correct, but aren't we basing PRs off of the most recent release/ branch?

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.

3 participants