(conf Configuration)
| 236 | } |
| 237 | |
| 238 | func (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 | |
| 251 | func (b *Bridge) ensureConfig() error { |
| 252 | if b.conf == nil { |
no test coverage detected