We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 66195ba commit 9024f6aCopy full SHA for 9024f6a
1 file changed
.github/actions/auto-pr-description/generate_pr_description.js
@@ -76,6 +76,12 @@ A short description of the changes.
76
process.exit(1);
77
}
78
79
+ if (!json.candidates[0].content.parts || !json.candidates[0].content.parts[0] || !json.candidates[0].content.parts[0].text) {
80
+ console.error('Error: Invalid response structure from Gemini API - missing parts or text');
81
+ console.error(JSON.stringify(json, null, 2));
82
+ process.exit(1);
83
+ }
84
+
85
const result = json.candidates[0].content.parts[0].text;
86
process.stdout.write(result);
87
} catch (error) {
0 commit comments