diff --git a/.claude/settings.json b/.claude/settings.json index 53603db57d7..2fe66bcbc6a 100644 --- a/.claude/settings.json +++ b/.claude/settings.json @@ -1,4 +1,5 @@ { + "_comment": "DO NOT EDIT THIS FILE. To override these settings, use .claude/settings.local.json instead.", "env": { "CLAUDE_CODE_ENABLE_TELEMETRY": "0", "DISABLE_TELEMETRY": "1", diff --git a/.github/workflows/auto-assign-pr.yml b/.github/workflows/auto-assign-pr.yml index 5957bf8ebd3..609833753cc 100644 --- a/.github/workflows/auto-assign-pr.yml +++ b/.github/workflows/auto-assign-pr.yml @@ -53,3 +53,4 @@ jobs: } else { console.log(`${creator} is not on technical writers team, skipping assignment`); } + \ No newline at end of file diff --git a/.github/workflows/check-claude-settings.yml b/.github/workflows/check-claude-settings.yml index 04c65c9c0fa..bad6ad7e196 100644 --- a/.github/workflows/check-claude-settings.yml +++ b/.github/workflows/check-claude-settings.yml @@ -9,11 +9,33 @@ on: jobs: check-claude-config: runs-on: ubuntu-latest + permissions: + pull-requests: write steps: - name: Check for Claude configuration changes uses: actions/github-script@v9 with: script: | + const techWriters = [ + 'ConnorLand', + 'Karuna-Mendix', + 'MariaShaposhnikova', + 'MarkvanMents', + 'NicoletaComan', + 'OlufunkeMoronfolu', + 'Yiyun333', + 'dbreseman', + 'katarzyna-koltun-mx', + 'quinntracy' + ]; + + const author = context.payload.pull_request.user.login; + + if (techWriters.includes(author)) { + console.log(`${author} is a Technical Writer — Claude configuration change approved.`); + return; + } + const comment = `⚠️ **Claude Configuration Warning** You've modified Claude Code configuration files. These files contain the shared configuration for all contributors. Please revert this change if unintended. **ONLY modify these files if you need to change shared configurations that apply to everyone and have discussed this change with the TW team.** @@ -34,7 +56,7 @@ jobs: \`\`\` `; - github.rest.issues.createComment({ + await github.rest.issues.createComment({ issue_number: context.issue.number, owner: context.repo.owner, repo: context.repo.repo,