Skip to content

Commit 87a4ebf

Browse files
Merge pull request #113 from VirdocsSoftware/release/v2.21.1
release v2.21.2 to main
2 parents 5fa63d8 + 209a145 commit 87a4ebf

2 files changed

Lines changed: 7 additions & 1 deletion

File tree

.github/actions/auto-pr-description/generate_pr_description.js

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -76,6 +76,12 @@ A short description of the changes.
7676
process.exit(1);
7777
}
7878

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+
7985
const result = json.candidates[0].content.parts[0].text;
8086
process.stdout.write(result);
8187
} catch (error) {

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "github-actions",
3-
"version": "2.21.0",
3+
"version": "2.21.2",
44
"description": "Used to store GitHub actions for use across the enterprise",
55
"scripts": {
66
"test": "./tooling/scripts/run_tests.sh",

0 commit comments

Comments
 (0)