mirror of
https://github.com/sst/opencode.git
synced 2025-07-08 00:25:00 +00:00
skip nil values
This commit is contained in:
parent
662b6b1258
commit
2fa50190e5
2 changed files with 8 additions and 0 deletions
5
.github/workflows/publish.yml
vendored
5
.github/workflows/publish.yml
vendored
|
@ -32,6 +32,11 @@ jobs:
|
|||
with:
|
||||
bun-version: 1.2.16
|
||||
|
||||
- name: Test npm auth
|
||||
run: npm whoami
|
||||
env:
|
||||
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
|
||||
|
||||
- run: |
|
||||
bun install
|
||||
./script/publish.ts
|
||||
|
|
|
@ -484,6 +484,9 @@ func renderArgs(args *map[string]any, titleKey string) string {
|
|||
title := ""
|
||||
parts := []string{}
|
||||
for key, value := range *args {
|
||||
if value == nil {
|
||||
continue
|
||||
}
|
||||
if key == "filePath" || key == "path" {
|
||||
value = relative(value.(string))
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue