 config = parseConfig 'create-github-repos',
   defaultUsername: null
   token: null
+  options: '{}'
 
 module.exports = (robot) ->
   unless config.token?
     robot.logger.error('HUBOT_CREATE_GITHUB_REPOS_TOKEN is not defined')
     return
+  config.options = JSON.parse config.options
 
   pattern = /github\s+create\s+repos(?:itory)?\s+(?:(\S+)\/)?(\S+)$/i
   robot.respond pattern, (res) ->


    github = new GitHub(version: '3.0.0')
    github.authenticate(type: 'oauth', token: config.token)
    options = { org, name }
    github.repos.createFromOrg options, (err, data) ->
      if err?
        robot.logger.error(err)

# Configuration:
#   HUBOT_CREATE_GITHUB_REPOS_DEFAULT_USERNAME
#   HUBOT_CREATE_GITHUB_REPOS_TOKEN
#   HUBOT_CREATE_GITHUB_REPOS_OPTIONS
#
# Commands:
#   hubot github create repos [<user>/]<repo> - create new repository in GitHub
