Browse Source

Ammend comment with new type

pull/358/head
James Salter 3 years ago
parent
commit
79af91a0d6
  1. 7
      services/github/github.go

7
services/github/github.go

@ -755,7 +755,12 @@ func (s *Service) loadBotOptions(roomID id.RoomID, logger *log.Entry) (result ma
} }
} }
// Expect opts to look like: // Expect opts to look like:
// { github: { default_repo: $OWNER_REPO } }
// {
// github: {
// default_repo: $OWNER_REPO,
// new_issue_labels: [ "label1", .. ]
// }
// }
ghOpts, ok := opts.Options["github"].(map[string]interface{}) ghOpts, ok := opts.Options["github"].(map[string]interface{})
if !ok { if !ok {
err = fmt.Errorf("Failed to cast bot options as github options") err = fmt.Errorf("Failed to cast bot options as github options")

Loading…
Cancel
Save