diff --git a/src/rest-api-client.ts b/src/rest-api-client.ts index 40bc27f1..ce2297c2 100644 --- a/src/rest-api-client.ts +++ b/src/rest-api-client.ts @@ -71,7 +71,20 @@ class RestApiClient { let options = this.options + // Cookie useful to help you bypass SSO like OKTA + // After logging into the browser with Jira, you can + // copy and paste your cookie into ~/.gh.json + // plugins": { "jira": { "cookie": "longcookie", ...} } + const cookie = options.cookie + ? { + headers: { + Cookie: options.cookie, + }, + } + : {} + let p = { + ...cookie, method, strictSSL: options.strictSSL, uri: this.url(path),