all repos — legit @ f661e6e4ce1177352b5bc40238351920cc25a69b

fork of git.icyphox.sh/legit

routes/util.go

package routes

import (
	"os"
	"path/filepath"
)

func getDescription(path string) (desc string) {
	db, err := os.ReadFile(filepath.Join(path, "description"))
	if err == nil {
		desc = string(db)
	} else {
		desc = ""
	}
	return
}

func (d *deps) isIgnored(name string) bool {
	for _, i := range d.c.Repo.Ignore {
		if name == i {
			return true
		}
	}

	return false
}