MCPcopy Create free account
hub / github.com/git-bug/git-bug / storeConfig

Method storeConfig

bridge/core/bridge.go:238–249  ·  view source on GitHub ↗
(conf Configuration)

Source from the content-addressed store, hash-verified

236}
237
238func (b *Bridge) storeConfig(conf Configuration) error {
239 for key, val := range conf {
240 storeKey := fmt.Sprintf("git-bug.bridge.%s.%s", b.Name, key)
241
242 err := b.repo.LocalConfig().StoreString(storeKey, val)
243 if err != nil {
244 return errors.Wrap(err, "error while storing bridge configuration")
245 }
246 }
247
248 return nil
249}
250
251func (b *Bridge) ensureConfig() error {
252 if b.conf == nil {

Callers 1

ConfigureMethod · 0.95

Calls 2

StoreStringMethod · 0.65
LocalConfigMethod · 0.65

Tested by

no test coverage detected