f1bcb8cd3a
repospawner turns JSON new-repo requests into terraform-git pull requests via kubernetes Jobs, follows those PRs to merge and optionally activates the repository in Woodpecker.
20 lines
321 B
Go
20 lines
321 B
Go
// Package ui embeds the static repospawner assets.
|
|
package ui
|
|
|
|
import (
|
|
"embed"
|
|
"io/fs"
|
|
)
|
|
|
|
//go:embed static
|
|
var embedded embed.FS
|
|
|
|
// Assets returns the static asset filesystem rooted at the asset directory.
|
|
func Assets() fs.FS {
|
|
sub, err := fs.Sub(embedded, "static")
|
|
if err != nil {
|
|
panic(err)
|
|
}
|
|
return sub
|
|
}
|