Skip to content

Commit 13747a1

Browse files
CopilotFuzzysTodd
andcommitted
Address code review feedback: improve variable naming and pin action versions
Co-authored-by: FuzzysTodd <157565446+FuzzysTodd@users.noreply.github.com>
1 parent 72e45dd commit 13747a1

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

.github/workflows/gemini-code-analysis.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ jobs:
2424
persist-credentials: false
2525

2626
- name: Setup Node.js
27-
uses: actions/setup-node@v4
27+
uses: actions/setup-node@a0853c24544627f65ddf259abe73b1d18a591444 # v5.0.0
2828
with:
2929
node-version: '18'
3030

scripts/gemini_agent.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -61,8 +61,8 @@ async function runAnalysis(codeContent, filePath, apiKey) {
6161
// --- DEEP THINK REPAIR LOGIC ---
6262
// A real agent would look for the 'REPAIRED CODE BLOCK' and attempt to
6363
// write it back to the file system or comment on the PR using the GitHub Token.
64-
const repairNeeded = analysisText.includes('REPAIRED CODE BLOCK') || analysisText.includes('NO REPAIR NEEDED');
65-
if (repairNeeded) {
64+
const hasRepairDecision = analysisText.includes('REPAIRED CODE BLOCK') || analysisText.includes('NO REPAIR NEEDED');
65+
if (hasRepairDecision) {
6666
console.log("Analysis Complete. Check output for repair instructions.");
6767
}
6868

0 commit comments

Comments
 (0)