Skip to content

Commit 54b6fd5

Browse files
committed
Added branch info to list app
1 parent 39e426a commit 54b6fd5

File tree

2 files changed

+5
-0
lines changed

2 files changed

+5
-0
lines changed

internal/server/openrun_plugin.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -175,6 +175,7 @@ func (c *openrunPlugin) listAppsImpl(thread *starlark.Thread, _ *starlark.Builti
175175
v.SetKey(starlark.String("version_mismatch"), starlark.Bool(versionMismatchMap[app.Id]))
176176
v.SetKey(starlark.String("git_sha"), starlark.String(app.GitSha))
177177
v.SetKey(starlark.String("git_message"), starlark.String(app.GitMessage))
178+
v.SetKey(starlark.String("git_branch"), starlark.String(app.Branch))
178179

179180
ret.Append(&v)
180181
}

internal/server/pathglob.go

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,10 @@ func ParseGlob(appPathGlob string, apps []types.AppPathDomain) ([]types.AppPathD
5858
if appPathGlob == "" || strings.ToLower(appPathGlob) == "all" {
5959
appPathGlob = "*:**"
6060
}
61+
62+
if appPathGlob == "*:**" {
63+
return apps, nil // all apps match
64+
}
6165
split := strings.Split(appPathGlob, ":")
6266
if len(split) > 2 {
6367
return nil, fmt.Errorf("path glob has to be in the format of domain:path")

0 commit comments

Comments
 (0)