Skip to content

Commit b097d2c

Browse files
authored
chore(workflows): Apply formatting and fix example prompt (#339)
## Summary This pull request introduces formatting improvements to the GitHub workflow files for better readability and corrects a numbering error in an example prompt. ## Motivation To maintain code quality and ensure examples are accurate and easy to read. ## Changes - Improved indentation for `run_shell_command` lists in `gemini-review.yml` and `gemini-scheduled-triage.yml`, and their corresponding examples. - Corrected the step numbering in the prompt within the `examples/workflows/issue-triage/gemini-triage.yml` file - #331.
1 parent 75bc71d commit b097d2c

File tree

5 files changed

+19
-19
lines changed

5 files changed

+19
-19
lines changed

.github/workflows/gemini-review.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -98,11 +98,11 @@ jobs:
9898
},
9999
"tools": {
100100
"core": [
101-
"run_shell_command(cat)",
102-
"run_shell_command(echo)",
103-
"run_shell_command(grep)",
104-
"run_shell_command(head)",
105-
"run_shell_command(tail)"
101+
"run_shell_command(cat)",
102+
"run_shell_command(echo)",
103+
"run_shell_command(grep)",
104+
"run_shell_command(head)",
105+
"run_shell_command(tail)"
106106
]
107107
}
108108
}

.github/workflows/gemini-scheduled-triage.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -114,9 +114,9 @@ jobs:
114114
},
115115
"tools": {
116116
"core": [
117-
"run_shell_command(echo)",
118-
"run_shell_command(jq)",
119-
"run_shell_command(printenv)"
117+
"run_shell_command(echo)",
118+
"run_shell_command(jq)",
119+
"run_shell_command(printenv)"
120120
]
121121
}
122122
}

examples/workflows/issue-triage/gemini-scheduled-triage.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -114,9 +114,9 @@ jobs:
114114
},
115115
"tools": {
116116
"core": [
117-
"run_shell_command(echo)",
118-
"run_shell_command(jq)",
119-
"run_shell_command(printenv)"
117+
"run_shell_command(echo)",
118+
"run_shell_command(jq)",
119+
"run_shell_command(printenv)"
120120
]
121121
}
122122
}

examples/workflows/issue-triage/gemini-triage.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -115,11 +115,11 @@ jobs:
115115
116116
5. Based on the issue title and issue body, classify the issue and choose all appropriate labels from the list of available labels.
117117
118-
5. Classify the issue by identifying the appropriate labels from the list of available labels.
118+
6. Classify the issue by identifying the appropriate labels from the list of available labels.
119119
120-
6. Convert the list of appropriate labels into a comma-separated list (CSV). If there are no appropriate labels, use the empty string.
120+
7. Convert the list of appropriate labels into a comma-separated list (CSV). If there are no appropriate labels, use the empty string.
121121
122-
7. Use the "echo" shell command to append the CSV labels into the filepath referenced by the environment variable "${GITHUB_ENV}":
122+
8. Use the "echo" shell command to append the CSV labels into the filepath referenced by the environment variable "${GITHUB_ENV}":
123123
124124
```
125125
echo "SELECTED_LABELS=[APPROPRIATE_LABELS_AS_CSV]" >> "[filepath_for_env]"

examples/workflows/pr-review/gemini-review.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -98,11 +98,11 @@ jobs:
9898
},
9999
"tools": {
100100
"core": [
101-
"run_shell_command(cat)",
102-
"run_shell_command(echo)",
103-
"run_shell_command(grep)",
104-
"run_shell_command(head)",
105-
"run_shell_command(tail)"
101+
"run_shell_command(cat)",
102+
"run_shell_command(echo)",
103+
"run_shell_command(grep)",
104+
"run_shell_command(head)",
105+
"run_shell_command(tail)"
106106
]
107107
}
108108
}

0 commit comments

Comments
 (0)