You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
genaiscript run <script> <files> --out-trace $GITHUB_STEP_SUMMARY
137
+
genaiscript run <script> <files> --out-trace $GITHUB_STEP_SUMMARY
136
138
```
137
139
138
140
In Azure Dev Ops, you can use the [task.uploadSummary](https://learn.microsoft.com/en-us/azure/devops/pipelines/scripts/logging-commands?view=azure-devops&tabs=bash#uploadsummary-add-some-markdown-content-to-the-build-summary)
139
141
in your pipeline to upload the trace as a summary.
@@ -151,13 +153,13 @@ in your pipeline to upload the trace as a summary.
151
153
Emit annotations in the specified file as a JSON array, JSON Lines, [SARIF](https://sarifweb.azurewebsites.net/) or a CSV file if the file ends with `.csv`.
152
154
153
155
```sh wrap
154
-
npx genaiscript run <script> <files> --out-annotations diags.csv
156
+
genaiscript run <script> <files> --out-annotations diags.csv
155
157
```
156
158
157
159
Use JSON lines (`.jsonl`) to aggregate annotations from multiple runs in a single file.
158
160
159
161
```sh wrap
160
-
npx genaiscript run <script> <files> --out-annotations diags.jsonl
162
+
genaiscript run <script> <files> --out-annotations diags.jsonl
161
163
```
162
164
163
165
### `--out-data` _file_
@@ -166,15 +168,24 @@ Emits parsed data as JSON, YAML or JSONL. If a JSON schema is specified
166
168
and available, the JSON validation result is also stored.
167
169
168
170
```sh
169
-
npx genaiscript run <script> <files> --out-data data.jsonl
171
+
genaiscript run <script> <files> --out-data data.jsonl
170
172
```
171
173
172
174
### `--out-changelogs` _file_
173
175
174
176
Emit changelogs in the specified file as text.
175
177
176
178
```sh
177
-
npx genaiscript run <script> <files> --out-changelogs changelogs.txt
179
+
genaiscript run <script> <files> --out-changelogs changelogs.txt
180
+
```
181
+
182
+
## Remote scripts
183
+
184
+
You can specify a repository, branch to run a script from a remote repository. In that mode,
185
+
the scripts from the current repository are ignored.
186
+
187
+
```sh
188
+
genaiscript run --remote <owner>/<repo>
178
189
```
179
190
180
191
## Pull Requests and Issues <a href="" id="pull-requests" />
@@ -189,13 +200,13 @@ Update your workflow configuration to include the following:
189
200
190
201
```yaml
191
202
permissions:
192
-
pull-requests: write
203
+
pull-requests: write
193
204
```
194
205
195
206
- set the `GITHUB_TOKEN` secret in the `env` when running the cli
196
207
197
208
```yaml
198
-
- run: npx --yes genaiscript run ... --pull-request-comment --out-trace $GITHUB_STEP_SUMMARY
209
+
- run: --yes genaiscript run ... --pull-request-comment --out-trace $GITHUB_STEP_SUMMARY
199
210
env:
200
211
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
201
212
... # LLM secrets
@@ -207,7 +218,7 @@ permissions:
207
218
- pass secrets to scripts, including `System.AccessToken`
208
219
209
220
```yaml
210
-
- script: npx genaiscript run ... --pull-request-description
221
+
- script: genaiscript run ... --pull-request-description
211
222
env:
212
223
SYSTEM_ACCESSTOKEN: $(System.AccessToken)
213
224
... # LLM secrets
@@ -219,7 +230,7 @@ When running within a GitHub Action or Azure DevOps pipeline on a pull request,
219
230
the CLI inserts the LLM output in the description of the pull request ([example](https://github.com/microsoft/genaiscript/pull/564))
220
231
221
232
```sh
222
-
npx genaiscript run ... --pull-request-description
233
+
genaiscript run ... --pull-request-description
223
234
```
224
235
225
236
The `tag` parameter is a unique id used to differentiate description generate by different runs. Default is the script id.
@@ -229,7 +240,7 @@ The `tag` parameter is a unique id used to differentiate description generate by
229
240
Upserts a comment on the pull request/issue with the LLM output ([example](https://github.com/microsoft/genaiscript/pull/564#issuecomment-2200474305))
230
241
231
242
```sh
232
-
npx genaiscript run ... --pull-request-comment
243
+
genaiscript run ... --pull-request-comment
233
244
```
234
245
235
246
The `tag` parameter is a unique id used to differentiate description generate by different runs. Default is the script id.
@@ -240,7 +251,7 @@ Create pull request review comments from each [annotations](/genaiscript/referen
0 commit comments