Update action.js

This commit is contained in:
pacnpal
2025-02-10 17:25:49 -05:00
committed by GitHub
parent d45693ae1c
commit 785bb103c6

View File

@@ -33,6 +33,8 @@ async function setupGitConfig() {
// Configure git to fetch PR refs // Configure git to fetch PR refs
await exec('git', ['config', '--local', '--add', 'remote.origin.fetch', '+refs/pull/*/head:refs/remotes/origin/pr/*']); await exec('git', ['config', '--local', '--add', 'remote.origin.fetch', '+refs/pull/*/head:refs/remotes/origin/pr/*']);
await exec('git', ['fetch', 'origin']); await exec('git', ['fetch', 'origin']);
await exec('git', ['config', '--global', 'user.name', 'claude-code-review[bot]']);
await exec('git', ['config', '--global', 'user.email', 'claude-code-review[bot]@users.noreply.github.com']);
} }
async function getDiff(baseSha, headSha) { async function getDiff(baseSha, headSha) {