function getOctokitOptions(token, options) {
    const opts = Object.assign({}, options || {}); // Shallow clone - don't mutate the object provided by the caller
    // Auth
    const auth = Utils.getAuthString(token, opts);
    if (auth) {
        opts.auth = auth;
    }
    return opts;
}
Convience function to correctly format Octokit Options to pass into the constructor.

@param     token    the repo PAT or GITHUB_TOKEN
@param     options  other options to set