From 0b90e54c614ba320d44d4d2b02df4c0c7fa70f89 Mon Sep 17 00:00:00 2001 From: Nasir Amin <12657747+NasAmin@users.noreply.github.com> Date: Sun, 20 Dec 2020 16:29:14 +0000 Subject: [PATCH] Enable validation for jira issue status (#33) * Added status field to the JiraDetails object. Updated tests for the new field * Added support for validating jira issue status based on allowed list. Fixed eslint issues * Added issue status validation and also added status to the PR description * Tidied up flag names * Updated documentation * Removed duplication option * Fxed typo in readme * Fixed isIssueStatusInvalid condition * Regenerated index.js after merging from upstream * Added await to async call for adding a PR comment * Updated readme based on suggested changes on PR review Co-authored-by: Aditi Mohanty * Update README.md - applied suggested markup changes from PR review Co-authored-by: Aditi Mohanty * Update README.md - Fixed typo suggested during PR review Co-authored-by: Aditi Mohanty * Fixed allowed_issue_statuses description from PR review Co-authored-by: Aditi Mohanty * Shortened if conditions based on PR review suggestion Co-authored-by: Aditi Mohanty * Removed duplicate status field from issue status markup Co-authored-by: Aditi Mohanty --- README.md | 36 ++++++++++++++++++++++++++-- __tests__/utils.test.ts | 40 +++++++++++++++++++++++++++++++ action.yml | 11 +++++++++ lib/index.js | 2 +- src/main.ts | 29 +++++++++++++++++++++- src/types.ts | 4 ++++ src/utils.ts | 53 +++++++++++++++++++++++++++++++++++++++-- 7 files changed, 169 insertions(+), 6 deletions(-) diff --git a/README.md b/README.md index d9193d2..e9019ea 100755 --- a/README.md +++ b/README.md @@ -78,7 +78,7 @@ steps: #### Description -When a PR passes the above check, `jira-lint` will also add the issue details to the top of the PR description. It will pick details such as the Issue summary, type, estimation points and labels and add them to the PR description. +When a PR passes the above check, `jira-lint` will also add the issue details to the top of the PR description. It will pick details such as the Issue summary, type, estimation points, status and labels and add them to the PR description. #### Labels @@ -96,6 +96,35 @@ When a PR passes the above check, `jira-lint` will also add the issue details to +#### Issue Status Validation +Issue status is shown in the [Description](#description). +**Why validate issue status?** +In some cases, one may be pushing changes for a story that is set to `Done`/`Completed` or it may not have been pulled into working backlog or current sprint. + + This option allows discouraging pushing to branches for stories that are set to statuses other than the ones allowed in the project; for example - you may want to only allow PRs for stories that are in `To Do`/`Planning`/`In Progress` states. + +The following flags can be used to validate issue status: +- `validate_issue_status` + - If set to `true`, `jira-lint` will validate the issue status based on `allowed_issue_statuses` +- `allowed_issue_statuses` + - This will only be used when `validate_issue_status` is `true`. This should be a comma separated list of statuses. If the detected issue's status is not in one of the `allowed_issue_statuses` then `jira-lint` will fail the status check. + +**Example of invalid status** +

:broken_heart: The detected issue is not in one of the allowed statuses :broken_heart:

+ + + + + + + + + + + +
Detected Status${issueStatus}:x:
Allowed Statuses${allowedStatuses}:heavy_check_mark:
+

Please ensure your jira story is in one of the allowed statuses

+ #### Soft-validations via comments `jira-lint` will add comments to a PR to encourage better PR practices: @@ -140,11 +169,14 @@ When a PR passes the above check, `jira-lint` will also add the issue details to | `skip-branches` | A regex to ignore running `jira-lint` on certain branches, like production etc. | false | ' ' | | `skip-comments` | A `Boolean` if set to `true` then `jira-lint` will skip adding lint comments for PR title. | false | false | | `pr-threshold` | An `Integer` based on which `jira-lint` will add a comment discouraging huge PRs. | false | 800 | +| `validate_issue_status` | A `Boolean` based on which `jira-lint` will validate the status of the detected jira issue | false | false | +| `allowed_issue_statuses` | A comma separated list of allowed statuses. The detected jira issue's status will be compared against this list and if a match is not found then the status check will fail. *Note*: Requires `validate_issue_status` to be set to `true`. | false | `"In Progress"` | -Since tokens are private, we suggest adding them as [GitHub secrets](https://help.github.com/en/actions/automating-your-workflow-with-github-actions/creating-and-using-encrypted-secrets). ### `jira-token` +Since tokens are private, we suggest adding them as [GitHub secrets](https://help.github.com/en/actions/automating-your-workflow-with-github-actions/creating-and-using-encrypted-secrets). + The Jira token is used to fetch issue information via the Jira REST API. To get the token:- 1. Generate an [API token via JIRA](https://confluence.atlassian.com/cloud/api-tokens-938839638.html) 2. Create the encoded token in the format of `base64Encode(:)`. diff --git a/__tests__/utils.test.ts b/__tests__/utils.test.ts index ef38ffb..390a885 100755 --- a/__tests__/utils.test.ts +++ b/__tests__/utils.test.ts @@ -10,6 +10,8 @@ import { shouldSkipBranchLint, shouldUpdatePRDescription, getJIRAClient, + getInvalidIssueStatusComment, + isIssueStatusValid, } from '../src/utils'; import { HIDDEN_MARKER } from '../src/constants'; import { JIRADetails } from '../src/types'; @@ -183,12 +185,14 @@ describe('getPRDescription()', () => { labels: [{ name: 'frontend', url: 'frontend-url' }], summary: 'Story title or summary', project: { name: 'project', url: 'project-url', key: 'abc' }, + status: 'In Progress', }; const description = getPRDescription('some_body', issue); expect(shouldUpdatePRDescription(description)).toBeFalsy(); expect(description).toContain(issue.key); expect(description).toContain(issue.estimate); + expect(description).toContain(issue.status); expect(description).toContain(issue.labels[0].name); }); }); @@ -240,3 +244,39 @@ describe('JIRA Client', () => { expect(details).not.toBeNull(); }); }); + +describe('isIssueStatusValid()', () => { + const issue: JIRADetails = { + key: 'ABC-123', + url: 'url', + type: { name: 'feature', icon: 'feature-icon-url' }, + estimate: 1, + labels: [{ name: 'frontend', url: 'frontend-url' }], + summary: 'Story title or summary', + project: { name: 'project', url: 'project-url', key: 'abc' }, + status: 'Assessment', + }; + + it('should return false if issue validation was enabled but invalid issue status', () => { + const expectedStatuses = ['In Test', 'In Progress']; + expect(isIssueStatusValid(true, expectedStatuses, issue)).toBeFalsy(); + }); + + it('should return true if issue validation was enabled but issue has a valid status', () => { + const expectedStatuses = ['In Test', 'In Progress']; + issue.status = 'In Progress'; + expect(isIssueStatusValid(true, expectedStatuses, issue)).toBeTruthy(); + }); + + it('should return true if issue status validation is not enabled', () => { + const expectedStatuses = ['In Test', 'In Progress']; + expect(isIssueStatusValid(false, expectedStatuses, issue)).toBeTruthy(); + }); +}); + +describe('getInvalidIssueStatusComment()', () => { + it('should return content with the passed in issue status and allowed statses', () => { + expect(getInvalidIssueStatusComment('Assessment', 'In Progress')).toContain('Assessment'); + expect(getInvalidIssueStatusComment('Assessment', 'In Progress')).toContain('In Progress'); + }); +}); diff --git a/action.yml b/action.yml index 712af35..6aa7a06 100755 --- a/action.yml +++ b/action.yml @@ -23,6 +23,17 @@ inputs: description: 'An `Integer` based on which jira-lint add a comment discouraging huge PRs. Is disabled by `skip-comments`' required: false default: 800 + validate_issue_status: + description: 'Set this to true if you want jira-lint to validate the status of the detected jira issues' + required: false + default: false + allowed_issue_statuses: + description: | + A comma separated list of acceptable Jira issue statuses. You must provide a value for this if validate_issue_status is set to true + Requires validate_issue_status to be set to true. + required: false + default: "In Progress" + runs: using: 'node12' main: 'lib/index.js' diff --git a/lib/index.js b/lib/index.js index b92885b..0654f6b 100644 --- a/lib/index.js +++ b/lib/index.js @@ -1 +1 @@ -module.exports=function(e,t){"use strict";var r={};function __webpack_require__(t){if(r[t]){return r[t].exports}var n=r[t]={i:t,l:false,exports:{}};e[t].call(n.exports,n,n.exports,__webpack_require__);n.l=true;return n.exports}__webpack_require__.ab=__dirname+"/";function startup(){return __webpack_require__(131)}return startup()}({0:function(e,t,r){e.exports=withDefaults;const n=r(500);function withDefaults(e,t){const r=e.defaults(t);const i=function(e,t){return n(r,e,t)};i.defaults=withDefaults.bind(null,r);return i}},2:function(e,t,r){"use strict";const n=r(87);const i=r(118);const s=r(49);const o=(e,t)=>{if(!e&&t){throw new Error("You can't specify a `release` without specifying `platform`")}e=e||n.platform();let r;if(e==="darwin"){if(!t&&n.platform()==="darwin"){t=n.release()}const e=t?Number(t.split(".")[0])>15?"macOS":"OS X":"macOS";r=t?i(t).name:"";return e+(r?" "+r:"")}if(e==="linux"){if(!t&&n.platform()==="linux"){t=n.release()}r=t?t.replace(/^(\d+\.\d+).*/,"$1"):"";return"Linux"+(r?" "+r:"")}if(e==="win32"){if(!t&&n.platform()==="win32"){t=n.release()}r=t?s(t):"";return"Windows"+(r?" "+r:"")}return e};e.exports=o},8:function(e,t,r){e.exports=iterator;const n=r(301);function iterator(e,t){const r=t.headers;let i=e.request.endpoint(t).url;return{[Symbol.asyncIterator]:()=>({next(){if(!i){return Promise.resolve({done:true})}return e.request({url:i,headers:r}).then(t=>{n(e,i,t);i=((t.headers.link||"").match(/<([^>]+)>;\s*rel="next"/)||[])[1];return{value:t}})}})}}},9:function(e,t,r){var n=r(969);var i=function(){};var s=function(e){return e.setHeader&&typeof e.abort==="function"};var o=function(e){return e.stdio&&Array.isArray(e.stdio)&&e.stdio.length===3};var a=function(e,t,r){if(typeof t==="function")return a(e,null,t);if(!t)t={};r=n(r||i);var u=e._writableState;var p=e._readableState;var c=t.readable||t.readable!==false&&e.readable;var d=t.writable||t.writable!==false&&e.writable;var l=false;var g=function(){if(!e.writable)m()};var m=function(){d=false;if(!c)r.call(e)};var h=function(){c=false;if(!d)r.call(e)};var f=function(t){r.call(e,t?new Error("exited with error code: "+t):null)};var y=function(t){r.call(e,t)};var b=function(){process.nextTick(w)};var w=function(){if(l)return;if(c&&!(p&&(p.ended&&!p.destroyed)))return r.call(e,new Error("premature close"));if(d&&!(u&&(u.ended&&!u.destroyed)))return r.call(e,new Error("premature close"))};var _=function(){e.req.on("finish",m)};if(s(e)){e.on("complete",m);e.on("abort",b);if(e.req)_();else e.on("request",_)}else if(d&&!u){e.on("end",g);e.on("close",g)}if(o(e))e.on("exit",f);e.on("end",h);e.on("finish",m);if(t.error!==false)e.on("error",y);e.on("close",b);return function(){l=true;e.removeListener("complete",m);e.removeListener("abort",b);e.removeListener("request",_);if(e.req)e.req.removeListener("finish",m);e.removeListener("end",g);e.removeListener("close",g);e.removeListener("finish",m);e.removeListener("exit",f);e.removeListener("end",h);e.removeListener("error",y);e.removeListener("close",b)}};e.exports=a},11:function(e){e.exports=wrappy;function wrappy(e,t){if(e&&t)return wrappy(e)(t);if(typeof e!=="function")throw new TypeError("need wrapper function");Object.keys(e).forEach(function(t){wrapper[t]=e[t]});return wrapper;function wrapper(){var t=new Array(arguments.length);for(var r=0;re.warn(t));const o=r(674);const a=r(471);const u=r(349);function authenticationPlugin(e,t){if(t.auth){e.authenticate=(()=>{s(e.log,new n('[@octokit/rest] octokit.authenticate() is deprecated and has no effect when "auth" option is set on Octokit constructor'))});return}const r={octokit:e,auth:false};e.authenticate=o.bind(null,r);e.hook.before("request",a.bind(null,r));e.hook.error("request",u.bind(null,r))}},20:function(e,t,r){"use strict";const n=r(129);const i=r(568);const s=r(881);function spawn(e,t,r){const o=i(e,t,r);const a=n.spawn(o.command,o.args,o.options);s.hookChildProcess(a,o);return a}function spawnSync(e,t,r){const o=i(e,t,r);const a=n.spawnSync(o.command,o.args,o.options);a.error=a.error||s.verifyENOENTSync(a.status,o);return a}e.exports=spawn;e.exports.spawn=spawn;e.exports.sync=spawnSync;e.exports._parse=i;e.exports._enoent=s},25:function(e,t,r){t=e.exports=createDebug.debug=createDebug["default"]=createDebug;t.coerce=coerce;t.disable=disable;t.enable=enable;t.enabled=enabled;t.humanize=r(317);t.instances=[];t.names=[];t.skips=[];t.formatters={};function selectColor(e){var r=0,n;for(n in e){r=(r<<5)-r+e.charCodeAt(n);r|=0}return t.colors[Math.abs(r)%t.colors.length]}function createDebug(e){var r;function debug(){if(!debug.enabled)return;var e=debug;var n=+new Date;var i=n-(r||n);e.diff=i;e.prev=r;e.curr=n;r=n;var s=new Array(arguments.length);for(var o=0;o{e=e||{};const t=e.env||process.env;const r=e.platform||process.platform;if(r!=="win32"){return"PATH"}return Object.keys(t).find(e=>e.toUpperCase()==="PATH")||"Path"})},46:function(e,t,r){e.exports=getUserAgentNode;const n=r(2);function getUserAgentNode(){try{return`Node.js/${process.version.substr(1)} (${n()}; ${process.arch})`}catch(e){if(/wmic os get Caption/.test(e.message)){return"Windows "}throw e}}},47:function(e,t,r){e.exports=factory;const n=r(402);const i=r(855);function factory(e){const t=n.bind(null,e||[]);t.plugin=i.bind(null,e||[]);return t}},49:function(e,t,r){"use strict";const n=r(87);const i=r(955);const s=new Map([["10.0","10"],["6.3","8.1"],["6.2","8"],["6.1","7"],["6.0","Vista"],["5.2","Server 2003"],["5.1","XP"],["5.0","2000"],["4.9","ME"],["4.1","98"],["4.0","95"]]);const o=e=>{const t=/\d+\.\d/.exec(e||n.release());if(e&&!t){throw new Error("`release` argument doesn't match `n.n`")}const r=(t||[])[0];if((!e||e===n.release())&&["6.1","6.2","6.3","10.0"].includes(r)){const e=i.sync("wmic",["os","get","Caption"]).stdout||"";const t=(e.match(/2008|2012|2016/)||[])[0];if(t){return`Server ${t}`}}return s.get(r)};e.exports=o},53:function(e,t,r){e.exports=r(352)},81:function(e,t,r){var n=r(867);var i=r(669);t=e.exports=r(25);t.init=init;t.log=log;t.formatArgs=formatArgs;t.save=save;t.load=load;t.useColors=useColors;t.colors=[6,2,3,4,5,1];try{var s=r(247);if(s&&s.level>=2){t.colors=[20,21,26,27,32,33,38,39,40,41,42,43,44,45,56,57,62,63,68,69,74,75,76,77,78,79,80,81,92,93,98,99,112,113,128,129,134,135,148,149,160,161,162,163,164,165,166,167,168,169,170,171,172,173,178,179,184,185,196,197,198,199,200,201,202,203,204,205,206,207,208,209,214,215,220,221]}}catch(e){}t.inspectOpts=Object.keys(process.env).filter(function(e){return/^debug_/i.test(e)}).reduce(function(e,t){var r=t.substring(6).toLowerCase().replace(/_([a-z])/g,function(e,t){return t.toUpperCase()});var n=process.env[t];if(/^(yes|on|true|enabled)$/i.test(n))n=true;else if(/^(no|off|false|disabled)$/i.test(n))n=false;else if(n==="null")n=null;else n=Number(n);e[r]=n;return e},{});function useColors(){return"colors"in t.inspectOpts?Boolean(t.inspectOpts.colors):n.isatty(process.stderr.fd)}t.formatters.o=function(e){this.inspectOpts.colors=this.useColors;return i.inspect(e,this.inspectOpts).split("\n").map(function(e){return e.trim()}).join(" ")};t.formatters.O=function(e){this.inspectOpts.colors=this.useColors;return i.inspect(e,this.inspectOpts)};function formatArgs(e){var r=this.namespace;var n=this.useColors;if(n){var i=this.color;var s="[3"+(i<8?i:"8;5;"+i);var o=" "+s+";1m"+r+" "+"";e[0]=o+e[0].split("\n").join("\n"+o);e.push(s+"m+"+t.humanize(this.diff)+"")}else{e[0]=getDate()+r+" "+e[0]}}function getDate(){if(t.inspectOpts.hideDate){return""}else{return(new Date).toISOString()+" "}}function log(){return process.stderr.write(i.format.apply(i,arguments)+"\n")}function save(e){if(null==e){delete process.env.DEBUG}else{process.env.DEBUG=e}}function load(){return process.env.DEBUG}function init(e){e.inspectOpts={};var r=Object.keys(t.inspectOpts);for(var n=0;n{e=Number((e||n.release()).split(".")[0]);return{name:i.get(e),version:"10."+(e-4)}};e.exports=s;e.exports.default=s},126:function(e){var t=200;var r="__lodash_hash_undefined__";var n=1/0;var i="[object Function]",s="[object GeneratorFunction]";var o=/[\\^$.*+?()[\]{}|]/g;var a=/^\[object .+?Constructor\]$/;var u=typeof global=="object"&&global&&global.Object===Object&&global;var p=typeof self=="object"&&self&&self.Object===Object&&self;var c=u||p||Function("return this")();function arrayIncludes(e,t){var r=e?e.length:0;return!!r&&baseIndexOf(e,t,0)>-1}function arrayIncludesWith(e,t,r){var n=-1,i=e?e.length:0;while(++n-1}function listCacheSet(e,t){var r=this.__data__,n=assocIndexOf(r,e);if(n<0){r.push([e,t])}else{r[n][1]=t}return this}ListCache.prototype.clear=listCacheClear;ListCache.prototype["delete"]=listCacheDelete;ListCache.prototype.get=listCacheGet;ListCache.prototype.has=listCacheHas;ListCache.prototype.set=listCacheSet;function MapCache(e){var t=-1,r=e?e.length:0;this.clear();while(++t=t){var c=r?null:T(e);if(c){return setToArray(c)}a=false;s=cacheHas;p=new SetCache}else{p=r?[]:u}e:while(++i{const e=s.getInput("jira-token",{required:true});const t=s.getInput("jira-base-url",{required:true});const r=s.getInput("github-token",{required:true});const n=s.getInput("skip-branches",{required:false})||"";const i=s.getInput("skip-comments",{required:false})==="true";const o=parseInt(s.getInput("pr-threshold",{required:false}),10);return{JIRA_TOKEN:e,GITHUB_TOKEN:r,BRANCH_IGNORE_PATTERN:n,SKIP_COMMENTS:i,PR_THRESHOLD:isNaN(o)?u.DEFAULT_PR_ADDITIONS_THRESHOLD:o,JIRA_BASE_URL:t.endsWith("/")?t.replace(/\/$/,""):t}};function run(){var e,t;return n(this,void 0,void 0,function*(){try{const{JIRA_TOKEN:r,JIRA_BASE_URL:n,GITHUB_TOKEN:i,BRANCH_IGNORE_PATTERN:u,SKIP_COMMENTS:c,PR_THRESHOLD:d}=p();const l=800;const g=d?Number(d):l;const{payload:{repository:m,organization:{login:h},pull_request:f}}=o.context;if(typeof m==="undefined"){throw new Error(`Missing 'repository' from github action context.`)}const{name:y}=m;const{base:{ref:b},head:{ref:w},number:_=0,body:q="",additions:v=0,title:E=""}=f;const T={owner:h,repo:y,issue_number:_};const C=new o.GitHub(i);if(!w&&!b){const e="jira-lint is unable to determine the head and base branch";const t=Object.assign(Object.assign({},T),{body:e});yield a.addComment(C,t);s.setFailed("Unable to get the head and base branch");process.exit(1)}console.log("Base branch -> ",b);console.log("Head branch -> ",w);if(a.shouldSkipBranchLint(w,u)){process.exit(0)}const j=a.getJIRAIssueKeys(w);if(!j.length){const e=Object.assign(Object.assign({},T),{body:a.getNoIdComment(w)});yield a.addComment(C,e);s.setFailed("JIRA issue id is missing in your branch.");process.exit(1)}const k=j[j.length-1];console.log(`JIRA key -> ${k}`);const{getTicketDetails:S}=a.getJIRAClient(n,r);const O=yield S(k);if(O.key){const r=((e=O===null||O===void 0?void 0:O.project)===null||e===void 0?void 0:e.name)||"";const n=a.getHotfixLabel(b);const i=((t=O===null||O===void 0?void 0:O.type)===null||t===void 0?void 0:t.name)||"";const s=[r,n,i].filter(a.isNotBlank);console.log("Adding lables -> ",s);yield a.addLabels(C,Object.assign(Object.assign({},T),{labels:s}));if(a.shouldUpdatePRDescription(q)){const e={owner:h,repo:y,pull_number:_,body:a.getPRDescription(q,O)};yield a.updatePrDetails(C,e);if(!c){const e=Object.assign(Object.assign({},T),{body:a.getPRTitleComment(O.summary,E)});console.log("Adding comment for the PR title");a.addComment(C,e);if(a.isHumongousPR(v,g)){const e=Object.assign(Object.assign({},T),{body:a.getHugePrComment(v,g)});console.log("Adding comment for huge PR");a.addComment(C,e)}}}}else{const e=Object.assign(Object.assign({},T),{body:a.getNoIdComment(w)});yield a.addComment(C,e);s.setFailed("Invalid JIRA key. Please create a branch with a valid JIRA issue key.");process.exit(1)}}catch(e){console.log({error:e});s.setFailed(e.message);process.exit(1)}})}run()},133:function(e,t,r){"use strict";var n=r(35);function encode(e){return encodeURIComponent(e).replace(/%40/gi,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}e.exports=function buildURL(e,t,r){if(!t){return e}var i;if(r){i=r(t)}else if(n.isURLSearchParams(t)){i=t.toString()}else{var s=[];n.forEach(t,function serialize(e,t){if(e===null||typeof e==="undefined"){return}if(n.isArray(e)){t=t+"[]"}else{e=[e]}n.forEach(e,function parseValue(e){if(n.isDate(e)){e=e.toISOString()}else if(n.isObject(e)){e=JSON.stringify(e)}s.push(encode(t)+"="+encode(e))})});i=s.join("&")}if(i){var o=e.indexOf("#");if(o!==-1){e=e.slice(0,o)}e+=(e.indexOf("?")===-1?"?":"&")+i}return e}},137:function(e,t,r){"use strict";var n=r(826);function CancelToken(e){if(typeof e!=="function"){throw new TypeError("executor must be a function.")}var t;this.promise=new Promise(function promiseExecutor(e){t=e});var r=this;e(function cancel(e){if(r.reason){return}r.reason=new n(e);t(r.reason)})}CancelToken.prototype.throwIfRequested=function throwIfRequested(){if(this.reason){throw this.reason}};CancelToken.source=function source(){var e;var t=new CancelToken(function executor(t){e=t});return{token:t,cancel:e}};e.exports=CancelToken},143:function(e,t,r){e.exports=withAuthorizationPrefix;const n=r(368);const i=/^[\w-]+:/;function withAuthorizationPrefix(e){if(/^(basic|bearer|token) /i.test(e)){return e}try{if(i.test(n(e))){return`basic ${e}`}}catch(e){}if(e.split(/\./).length===3){return`bearer ${e}`}return`token ${e}`}},145:function(e,t,r){"use strict";const n=r(453);const i=r(966);class MaxBufferError extends Error{constructor(){super("maxBuffer exceeded");this.name="MaxBufferError"}}function getStream(e,t){if(!e){return Promise.reject(new Error("Expected a stream"))}t=Object.assign({maxBuffer:Infinity},t);const{maxBuffer:r}=t;let s;return new Promise((o,a)=>{const u=e=>{if(e){e.bufferedData=s.getBufferedValue()}a(e)};s=n(e,i(t),e=>{if(e){u(e);return}o()});s.on("data",()=>{if(s.getBufferedLength()>r){u(new MaxBufferError)}})}).then(()=>s.getBufferedValue())}e.exports=getStream;e.exports.buffer=((e,t)=>getStream(e,Object.assign({},t,{encoding:"buffer"})));e.exports.array=((e,t)=>getStream(e,Object.assign({},t,{array:true})));e.exports.MaxBufferError=MaxBufferError},148:function(e,t,r){e.exports=paginatePlugin;const n=r(8);const i=r(807);function paginatePlugin(e){e.paginate=i.bind(null,e);e.paginate.iterator=n.bind(null,e)}},163:function(e,t,r){"use strict";var n=this&&this.__awaiter||function(e,t,r,n){function adopt(e){return e instanceof r?e:new r(function(t){t(e)})}return new(r||(r=Promise))(function(r,i){function fulfilled(e){try{step(n.next(e))}catch(e){i(e)}}function rejected(e){try{step(n["throw"](e))}catch(e){i(e)}}function step(e){e.done?r(e.value):adopt(e.value).then(fulfilled,rejected)}step((n=n.apply(e,t||[])).next())})};var i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};var s=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var r in e)if(Object.hasOwnProperty.call(e,r))t[r]=e[r];t["default"]=e;return t};Object.defineProperty(t,"__esModule",{value:true});const o=i(r(53));const a=s(r(470));const u=i(r(451));const p=r(694);t.isBlank=(e=>e.trim().length===0);t.isNotBlank=(e=>!t.isBlank(e));t.reverseString=(e=>e.split("").reverse().join(""));t.getJIRAIssueKeys=(e=>{const r=t.reverseString(e).toUpperCase().match(p.JIRA_REGEX_MATCHER);if(r===null||r===void 0?void 0:r.length){return r.map(t.reverseString).reverse()}else return[]});t.LABELS={HOTFIX_PRE_PROD:"HOTFIX-PRE-PROD",HOTFIX_PROD:"HOTFIX-PROD"};t.getHotfixLabel=(e=>{if(e.startsWith("release/v"))return t.LABELS.HOTFIX_PRE_PROD;if(e.startsWith("production"))return t.LABELS.HOTFIX_PROD;return""});t.getJIRAClient=((e,t)=>{const r=o.default.create({baseURL:`${e}/rest/api/3`,timeout:2e3,headers:{Authorization:`Basic ${t}`}});const i=e=>n(void 0,void 0,void 0,function*(){try{const t=yield r.get(`/issue/${e}?fields=project,summary,issuetype,labels,customfield_10016`);return t.data}catch(e){throw e}});const s=t=>n(void 0,void 0,void 0,function*(){try{const r=yield i(t);const{fields:{issuetype:n,project:s,summary:o,customfield_10016:a,labels:u}}=r;const p=u.map(t=>({name:t,url:`${e}/issues?jql=${encodeURIComponent(`project = ${s.key} AND labels = ${t} ORDER BY created DESC`)}`}));return{key:t,summary:o,url:`${e}/browse/${t}`,type:{name:n.name,icon:n.iconUrl},project:{name:s.name,url:`${e}/browse/${s.key}`,key:s.key},estimate:typeof a==="string"||typeof a==="number"?a:"N/A",labels:p}}catch(e){throw e}});return{client:r,getTicketDetails:s,getIssue:i}});t.addLabels=((e,t)=>n(void 0,void 0,void 0,function*(){try{yield e.issues.addLabels(t)}catch(e){a.setFailed(e.message);process.exit(1)}}));t.updatePrDetails=((e,t)=>n(void 0,void 0,void 0,function*(){try{yield e.pulls.update(t)}catch(e){a.setFailed(e.message);process.exit(1)}}));t.addComment=((e,t)=>n(void 0,void 0,void 0,function*(){try{yield e.issues.createComment(t)}catch(e){a.setFailed(e.message)}}));t.getPRTitleComment=((e,t)=>{const r=u.default.compareTwoStrings(e,t);if(r<.2){return`

\n Knock Knock! 🔍\n

\n

\n Just thought I'd let you know that your PR title and story title look quite different. PR titles\n that closely resemble the story title make it easier for reviewers to understand the context of the PR.\n

\n
\n An easy-to-understand PR title a day makes the reviewer review away! 😛⚡️\n
\n \n \n \n \n \n \n \n \n \n
Story Title${e}
PR Title${t}
\n

\n Check out this guide to learn more about PR best-practices.\n

\n `}else if(r>=.2&&r<=.4){return`

\n Let's make that PR title a 💯 shall we? 💪\n

\n

\n Your PR title and story title look slightly different. Just checking in to know if it was intentional!\n

\n \n \n \n \n \n \n \n \n \n
Story Title${e}
PR Title${t}
\n

\n Check out this guide to learn more about PR best-practices.\n

\n `}return`

I'm a bot and I 👍 this PR title. 🤖

\n\n `});t.shouldSkipBranchLint=((e,t)=>{if(p.BOT_BRANCH_PATTERNS.some(t=>t.test(e))){console.log(`You look like a bot 🤖 so we're letting you off the hook!`);return true}if(p.DEFAULT_BRANCH_PATTERNS.some(t=>t.test(e))){console.log(`Ignoring check for default branch ${e}`);return true}const r=new RegExp(t||"");if(!!t&&r.test(e)){console.log(`branch '${e}' ignored as it matches the ignore pattern '${t}' provided in skip-branches`);return true}console.log(`branch '${e}' does not match ignore pattern provided in 'skip-branches' option:`,r);return false});t.shouldUpdatePRDescription=(e=>typeof e==="string"&&!p.MARKER_REGEX.test(e));t.getLabelsForDisplay=(e=>{if(!e||!e.length){return"-"}const t=e.map(e=>`${e.name}`).join(", ");return t.replace(/\s+/," ")});t.getPRDescription=((e="",r)=>{const n=r.key.toUpperCase();return`\n
\n ${n}\n
\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n
Summary${r.summary}
Type\n ${r.type.name}\n ${r.type.name}\n
Points${r.estimate||"N/A"}
Labels${t.getLabelsForDisplay(r.labels)}
\n
\n\x3c!--\n do not remove this marker as it will break jira-lint's functionality.\n ${p.HIDDEN_MARKER}\n--\x3e\n\n---\n\n${e}`});t.isHumongousPR=((e,t)=>typeof e==="number"&&e>t);t.getHugePrComment=((e,t)=>`

This PR is too huge for one to review :broken_heart:

\n \n \n \n \n \n \n \n \n \n \n
Additions${e} :no_good_woman:
Expected:arrow_down: ${t}
\n

\n Consider breaking it down into multiple small PRs.\n

\n

\n Check out this guide to learn more about PR best-practices.\n

\n `);t.getNoIdComment=(e=>{return`

A JIRA Issue ID is missing from your branch name! 🦄

\n

Your branch: ${e}

\n

If this is your first time contributing to this repository - welcome!

\n
\n

Please refer to jira-lint to get started.\n

Without the JIRA Issue ID in your branch name you would lose out on automatic updates to JIRA via SCM; some GitHub status checks might fail.

\nValid sample branch names:\n\n ‣ feature/shiny-new-feature--mojo-10'\n ‣ 'chore/changelogUpdate_mojo-123'\n ‣ 'bugfix/fix-some-strange-bug_GAL-2345'\n`})},168:function(e){"use strict";const t=["stdin","stdout","stderr"];const r=e=>t.some(t=>Boolean(e[t]));e.exports=(e=>{if(!e){return null}if(e.stdio&&r(e)){throw new Error(`It's not possible to provide \`stdio\` in combination with one of ${t.map(e=>`\`${e}\``).join(", ")}`)}if(typeof e.stdio==="string"){return e.stdio}const n=e.stdio||[];if(!Array.isArray(n)){throw new TypeError(`Expected \`stdio\` to be of type \`string\` or \`Array\`, got \`${typeof n}\``)}const i=[];const s=Math.max(n.length,t.length);for(let r=0;r"}throw e}}t.getUserAgent=getUserAgent},215:function(e){e.exports={name:"@octokit/rest",version:"16.35.0",publishConfig:{access:"public"},description:"GitHub REST API client for Node.js",keywords:["octokit","github","rest","api-client"],author:"Gregor Martynus (https://github.com/gr2m)",contributors:[{name:"Mike de Boer",email:"info@mikedeboer.nl"},{name:"Fabian Jakobs",email:"fabian@c9.io"},{name:"Joe Gallo",email:"joe@brassafrax.com"},{name:"Gregor Martynus",url:"https://github.com/gr2m"}],repository:"https://github.com/octokit/rest.js",dependencies:{"@octokit/request":"^5.2.0","@octokit/request-error":"^1.0.2","atob-lite":"^2.0.0","before-after-hook":"^2.0.0","btoa-lite":"^1.0.0",deprecation:"^2.0.0","lodash.get":"^4.4.2","lodash.set":"^4.3.2","lodash.uniq":"^4.5.0","octokit-pagination-methods":"^1.1.0",once:"^1.4.0","universal-user-agent":"^4.0.0"},devDependencies:{"@gimenete/type-writer":"^0.1.3","@octokit/fixtures-server":"^5.0.6","@octokit/graphql":"^4.2.0","@types/node":"^12.0.0",bundlesize:"^0.18.0",chai:"^4.1.2","compression-webpack-plugin":"^3.0.0",cypress:"^3.0.0",glob:"^7.1.2","http-proxy-agent":"^2.1.0","lodash.camelcase":"^4.3.0","lodash.merge":"^4.6.1","lodash.upperfirst":"^4.3.1",mkdirp:"^0.5.1",mocha:"^6.0.0",mustache:"^3.0.0",nock:"^11.3.3","npm-run-all":"^4.1.2",nyc:"^14.0.0",prettier:"^1.14.2",proxy:"^1.0.0","semantic-release":"^15.0.0",sinon:"^7.2.4","sinon-chai":"^3.0.0","sort-keys":"^4.0.0","string-to-arraybuffer":"^1.0.0","string-to-jsdoc-comment":"^1.0.0",typescript:"^3.3.1",webpack:"^4.0.0","webpack-bundle-analyzer":"^3.0.0","webpack-cli":"^3.0.0"},types:"index.d.ts",scripts:{coverage:"nyc report --reporter=html && open coverage/index.html",lint:"prettier --check '{lib,plugins,scripts,test}/**/*.{js,json,ts}' 'docs/*.{js,json}' 'docs/src/**/*' index.js README.md package.json","lint:fix":"prettier --write '{lib,plugins,scripts,test}/**/*.{js,json,ts}' 'docs/*.{js,json}' 'docs/src/**/*' index.js README.md package.json",pretest:"npm run -s lint",test:'nyc mocha test/mocha-node-setup.js "test/*/**/*-test.js"',"test:browser":"cypress run --browser chrome",build:"npm-run-all build:*","build:ts":"npm run -s update-endpoints:typescript","prebuild:browser":"mkdirp dist/","build:browser":"npm-run-all build:browser:*","build:browser:development":"webpack --mode development --entry . --output-library=Octokit --output=./dist/octokit-rest.js --profile --json > dist/bundle-stats.json","build:browser:production":"webpack --mode production --entry . --plugin=compression-webpack-plugin --output-library=Octokit --output-path=./dist --output-filename=octokit-rest.min.js --devtool source-map","generate-bundle-report":"webpack-bundle-analyzer dist/bundle-stats.json --mode=static --no-open --report dist/bundle-report.html","update-endpoints":"npm-run-all update-endpoints:*","update-endpoints:fetch-json":"node scripts/update-endpoints/fetch-json","update-endpoints:code":"node scripts/update-endpoints/code","update-endpoints:typescript":"node scripts/update-endpoints/typescript","prevalidate:ts":"npm run -s build:ts","validate:ts":"tsc --target es6 --noImplicitAny index.d.ts","postvalidate:ts":"tsc --noEmit --target es6 test/typescript-validate.ts","start-fixtures-server":"octokit-fixtures-server"},license:"MIT",files:["index.js","index.d.ts","lib","plugins"],nyc:{ignore:["test"]},release:{publish:["@semantic-release/npm",{path:"@semantic-release/github",assets:["dist/*","!dist/*.map.gz"]}]},bundlesize:[{path:"./dist/octokit-rest.min.js.gz",maxSize:"33 kB"}],_resolved:"https://registry.npmjs.org/@octokit/rest/-/rest-16.35.0.tgz",_integrity:"sha512-9ShFqYWo0CLoGYhA1FdtdykJuMzS/9H6vSbbQWDX4pWr4p9v+15MsH/wpd/3fIU+tSxylaNO48+PIHqOkBRx3w==",_from:"@octokit/rest@16.35.0"}},219:function(e,t,r){"use strict";var n=r(35);var i=r(564);var s=r(133);var o=r(960);var a=r(631);var u=r(688);var p=r(26);e.exports=function xhrAdapter(e){return new Promise(function dispatchXhrRequest(t,c){var d=e.data;var l=e.headers;if(n.isFormData(d)){delete l["Content-Type"]}var g=new XMLHttpRequest;if(e.auth){var m=e.auth.username||"";var h=e.auth.password||"";l.Authorization="Basic "+btoa(m+":"+h)}var f=o(e.baseURL,e.url);g.open(e.method.toUpperCase(),s(f,e.params,e.paramsSerializer),true);g.timeout=e.timeout;g.onreadystatechange=function handleLoad(){if(!g||g.readyState!==4){return}if(g.status===0&&!(g.responseURL&&g.responseURL.indexOf("file:")===0)){return}var r="getAllResponseHeaders"in g?a(g.getAllResponseHeaders()):null;var n=!e.responseType||e.responseType==="text"?g.responseText:g.response;var s={data:n,status:g.status,statusText:g.statusText,headers:r,config:e,request:g};i(t,c,s);g=null};g.onabort=function handleAbort(){if(!g){return}c(p("Request aborted",e,"ECONNABORTED",g));g=null};g.onerror=function handleError(){c(p("Network Error",e,null,g));g=null};g.ontimeout=function handleTimeout(){var t="timeout of "+e.timeout+"ms exceeded";if(e.timeoutErrorMessage){t=e.timeoutErrorMessage}c(p(t,e,"ECONNABORTED",g));g=null};if(n.isStandardBrowserEnv()){var y=r(864);var b=(e.withCredentials||u(f))&&e.xsrfCookieName?y.read(e.xsrfCookieName):undefined;if(b){l[e.xsrfHeaderName]=b}}if("setRequestHeader"in g){n.forEach(l,function setRequestHeader(e,t){if(typeof d==="undefined"&&t.toLowerCase()==="content-type"){delete l[t]}else{g.setRequestHeader(t,e)}})}if(!n.isUndefined(e.withCredentials)){g.withCredentials=!!e.withCredentials}if(e.responseType){try{g.responseType=e.responseType}catch(t){if(e.responseType!=="json"){throw t}}}if(typeof e.onDownloadProgress==="function"){g.addEventListener("progress",e.onDownloadProgress)}if(typeof e.onUploadProgress==="function"&&g.upload){g.upload.addEventListener("progress",e.onUploadProgress)}if(e.cancelToken){e.cancelToken.promise.then(function onCanceled(e){if(!g){return}g.abort();c(e);g=null})}if(d===undefined){d=null}g.send(d)})}},247:function(e,t,r){"use strict";const n=r(87);const i=r(364);const s=process.env;let o;if(i("no-color")||i("no-colors")||i("color=false")){o=false}else if(i("color")||i("colors")||i("color=true")||i("color=always")){o=true}if("FORCE_COLOR"in s){o=s.FORCE_COLOR.length===0||parseInt(s.FORCE_COLOR,10)!==0}function translateLevel(e){if(e===0){return false}return{level:e,hasBasic:true,has256:e>=2,has16m:e>=3}}function supportsColor(e){if(o===false){return 0}if(i("color=16m")||i("color=full")||i("color=truecolor")){return 3}if(i("color=256")){return 2}if(e&&!e.isTTY&&o!==true){return 0}const t=o?1:0;if(process.platform==="win32"){const e=n.release().split(".");if(Number(process.versions.node.split(".")[0])>=8&&Number(e[0])>=10&&Number(e[2])>=10586){return Number(e[2])>=14931?3:2}return 1}if("CI"in s){if(["TRAVIS","CIRCLECI","APPVEYOR","GITLAB_CI"].some(e=>e in s)||s.CI_NAME==="codeship"){return 1}return t}if("TEAMCITY_VERSION"in s){return/^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(s.TEAMCITY_VERSION)?1:0}if(s.COLORTERM==="truecolor"){return 3}if("TERM_PROGRAM"in s){const e=parseInt((s.TERM_PROGRAM_VERSION||"").split(".")[0],10);switch(s.TERM_PROGRAM){case"iTerm.app":return e>=3?3:2;case"Apple_Terminal":return 2}}if(/-256(color)?$/i.test(s.TERM)){return 2}if(/^screen|^xterm|^vt100|^vt220|^rxvt|color|ansi|cygwin|linux/i.test(s.TERM)){return 1}if("COLORTERM"in s){return 1}if(s.TERM==="dumb"){return t}return t}function getSupportLevel(e){const t=supportsColor(e);return translateLevel(t)}e.exports={supportsColor:getSupportLevel,stdout:getSupportLevel(process.stdout),stderr:getSupportLevel(process.stderr)}},248:function(e,t,r){e.exports=octokitRegisterEndpoints;const n=r(899);function octokitRegisterEndpoints(e){e.registerEndpoints=n.bind(null,e)}},260:function(e,t,r){var n=r(357);var i=r(654);var s=r(614);if(typeof s!=="function"){s=s.EventEmitter}var o;if(process.__signal_exit_emitter__){o=process.__signal_exit_emitter__}else{o=process.__signal_exit_emitter__=new s;o.count=0;o.emitted={}}if(!o.infinite){o.setMaxListeners(Infinity);o.infinite=true}e.exports=function(e,t){n.equal(typeof e,"function","a callback must be provided for exit handler");if(u===false){load()}var r="exit";if(t&&t.alwaysLast){r="afterexit"}var i=function(){o.removeListener(r,e);if(o.listeners("exit").length===0&&o.listeners("afterexit").length===0){unload()}};o.on(r,e);return i};e.exports.unload=unload;function unload(){if(!u){return}u=false;i.forEach(function(e){try{process.removeListener(e,a[e])}catch(e){}});process.emit=c;process.reallyExit=p;o.count-=1}function emit(e,t,r){if(o.emitted[e]){return}o.emitted[e]=true;o.emit(e,t,r)}var a={};i.forEach(function(e){a[e]=function listener(){var t=process.listeners(e);if(t.length===o.count){unload();emit("exit",null,e);emit("afterexit",null,e);process.kill(process.pid,e)}}});e.exports.signals=function(){return i};e.exports.load=load;var u=false;function load(){if(u){return}u=true;o.count+=1;i=i.filter(function(e){try{process.on(e,a[e]);return true}catch(e){return false}});process.emit=processEmit;process.reallyExit=processReallyExit}var p=process.reallyExit;function processReallyExit(e){process.exitCode=e||0;emit("exit",process.exitCode,null);emit("afterexit",process.exitCode,null);p.call(process,process.exitCode)}var c=process.emit;function processEmit(e,t){if(e==="exit"){if(t!==undefined){process.exitCode=t}var r=c.apply(this,arguments);emit("exit",process.exitCode,null);emit("afterexit",process.exitCode,null);return r}else{return c.apply(this,arguments)}}},262:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:true});const n=r(747);const i=r(87);class Context{constructor(){this.payload={};if(process.env.GITHUB_EVENT_PATH){if(n.existsSync(process.env.GITHUB_EVENT_PATH)){this.payload=JSON.parse(n.readFileSync(process.env.GITHUB_EVENT_PATH,{encoding:"utf8"}))}else{process.stdout.write(`GITHUB_EVENT_PATH ${process.env.GITHUB_EVENT_PATH} does not exist${i.EOL}`)}}this.eventName=process.env.GITHUB_EVENT_NAME;this.sha=process.env.GITHUB_SHA;this.ref=process.env.GITHUB_REF;this.workflow=process.env.GITHUB_WORKFLOW;this.action=process.env.GITHUB_ACTION;this.actor=process.env.GITHUB_ACTOR}get issue(){const e=this.payload;return Object.assign(Object.assign({},this.repo),{number:(e.issue||e.pullRequest||e).number})}get repo(){if(process.env.GITHUB_REPOSITORY){const[e,t]=process.env.GITHUB_REPOSITORY.split("/");return{owner:e,repo:t}}if(this.payload.repository){return{owner:this.payload.repository.owner.login,repo:this.payload.repository.name}}throw new Error("context.repo requires a GITHUB_REPOSITORY environment variable like 'owner/repo'")}}t.Context=Context},265:function(e,t,r){e.exports=getPage;const n=r(370);const i=r(577);const s=r(297);function getPage(e,t,r,o){n(`octokit.get${r.charAt(0).toUpperCase()+r.slice(1)}Page() – You can use octokit.paginate or async iterators instead: https://github.com/octokit/rest.js#pagination.`);const a=i(t)[r];if(!a){const e=new s(`No ${r} page found`,404);return Promise.reject(e)}const u={url:a,headers:applyAcceptHeader(t,o)};const p=e.request(u);return p}function applyAcceptHeader(e,t){const r=e.headers&&e.headers["x-github-media-type"];if(!r||t&&t.accept){return t}t=t||{};t.accept="application/vnd."+r.replace("; param=",".").replace("; format=","+");return t}},280:function(e,t){t=e.exports=SemVer;var r;if(typeof process==="object"&&process.env&&process.env.NODE_DEBUG&&/\bsemver\b/i.test(process.env.NODE_DEBUG)){r=function(){var e=Array.prototype.slice.call(arguments,0);e.unshift("SEMVER");console.log.apply(console,e)}}else{r=function(){}}t.SEMVER_SPEC_VERSION="2.0.0";var n=256;var i=Number.MAX_SAFE_INTEGER||9007199254740991;var s=16;var o=t.re=[];var a=t.src=[];var u=0;var p=u++;a[p]="0|[1-9]\\d*";var c=u++;a[c]="[0-9]+";var d=u++;a[d]="\\d*[a-zA-Z-][a-zA-Z0-9-]*";var l=u++;a[l]="("+a[p]+")\\."+"("+a[p]+")\\."+"("+a[p]+")";var g=u++;a[g]="("+a[c]+")\\."+"("+a[c]+")\\."+"("+a[c]+")";var m=u++;a[m]="(?:"+a[p]+"|"+a[d]+")";var h=u++;a[h]="(?:"+a[c]+"|"+a[d]+")";var f=u++;a[f]="(?:-("+a[m]+"(?:\\."+a[m]+")*))";var y=u++;a[y]="(?:-?("+a[h]+"(?:\\."+a[h]+")*))";var b=u++;a[b]="[0-9A-Za-z-]+";var w=u++;a[w]="(?:\\+("+a[b]+"(?:\\."+a[b]+")*))";var _=u++;var q="v?"+a[l]+a[f]+"?"+a[w]+"?";a[_]="^"+q+"$";var v="[v=\\s]*"+a[g]+a[y]+"?"+a[w]+"?";var E=u++;a[E]="^"+v+"$";var T=u++;a[T]="((?:<|>)?=?)";var C=u++;a[C]=a[c]+"|x|X|\\*";var j=u++;a[j]=a[p]+"|x|X|\\*";var k=u++;a[k]="[v=\\s]*("+a[j]+")"+"(?:\\.("+a[j]+")"+"(?:\\.("+a[j]+")"+"(?:"+a[f]+")?"+a[w]+"?"+")?)?";var S=u++;a[S]="[v=\\s]*("+a[C]+")"+"(?:\\.("+a[C]+")"+"(?:\\.("+a[C]+")"+"(?:"+a[y]+")?"+a[w]+"?"+")?)?";var O=u++;a[O]="^"+a[T]+"\\s*"+a[k]+"$";var x=u++;a[x]="^"+a[T]+"\\s*"+a[S]+"$";var P=u++;a[P]="(?:^|[^\\d])"+"(\\d{1,"+s+"})"+"(?:\\.(\\d{1,"+s+"}))?"+"(?:\\.(\\d{1,"+s+"}))?"+"(?:$|[^\\d])";var R=u++;a[R]="(?:~>?)";var A=u++;a[A]="(\\s*)"+a[R]+"\\s+";o[A]=new RegExp(a[A],"g");var G="$1~";var F=u++;a[F]="^"+a[R]+a[k]+"$";var D=u++;a[D]="^"+a[R]+a[S]+"$";var B=u++;a[B]="(?:\\^)";var I=u++;a[I]="(\\s*)"+a[B]+"\\s+";o[I]=new RegExp(a[I],"g");var L="$1^";var U=u++;a[U]="^"+a[B]+a[k]+"$";var $=u++;a[$]="^"+a[B]+a[S]+"$";var H=u++;a[H]="^"+a[T]+"\\s*("+v+")$|^$";var N=u++;a[N]="^"+a[T]+"\\s*("+q+")$|^$";var z=u++;a[z]="(\\s*)"+a[T]+"\\s*("+v+"|"+a[k]+")";o[z]=new RegExp(a[z],"g");var V="$1$2$3";var K=u++;a[K]="^\\s*("+a[k]+")"+"\\s+-\\s+"+"("+a[k]+")"+"\\s*$";var W=u++;a[W]="^\\s*("+a[S]+")"+"\\s+-\\s+"+"("+a[S]+")"+"\\s*$";var X=u++;a[X]="(<|>)?=?\\s*\\*";for(var J=0;Jn){return null}var r=t.loose?o[E]:o[_];if(!r.test(e)){return null}try{return new SemVer(e,t)}catch(e){return null}}t.valid=valid;function valid(e,t){var r=parse(e,t);return r?r.version:null}t.clean=clean;function clean(e,t){var r=parse(e.trim().replace(/^[=v]+/,""),t);return r?r.version:null}t.SemVer=SemVer;function SemVer(e,t){if(!t||typeof t!=="object"){t={loose:!!t,includePrerelease:false}}if(e instanceof SemVer){if(e.loose===t.loose){return e}else{e=e.version}}else if(typeof e!=="string"){throw new TypeError("Invalid Version: "+e)}if(e.length>n){throw new TypeError("version is longer than "+n+" characters")}if(!(this instanceof SemVer)){return new SemVer(e,t)}r("SemVer",e,t);this.options=t;this.loose=!!t.loose;var s=e.trim().match(t.loose?o[E]:o[_]);if(!s){throw new TypeError("Invalid Version: "+e)}this.raw=e;this.major=+s[1];this.minor=+s[2];this.patch=+s[3];if(this.major>i||this.major<0){throw new TypeError("Invalid major version")}if(this.minor>i||this.minor<0){throw new TypeError("Invalid minor version")}if(this.patch>i||this.patch<0){throw new TypeError("Invalid patch version")}if(!s[4]){this.prerelease=[]}else{this.prerelease=s[4].split(".").map(function(e){if(/^[0-9]+$/.test(e)){var t=+e;if(t>=0&&t=0){if(typeof this.prerelease[r]==="number"){this.prerelease[r]++;r=-2}}if(r===-1){this.prerelease.push(0)}}if(t){if(this.prerelease[0]===t){if(isNaN(this.prerelease[1])){this.prerelease=[t,0]}}else{this.prerelease=[t,0]}}break;default:throw new Error("invalid increment argument: "+e)}this.format();this.raw=this.version;return this};t.inc=inc;function inc(e,t,r,n){if(typeof r==="string"){n=r;r=undefined}try{return new SemVer(e,r).inc(t,n).version}catch(e){return null}}t.diff=diff;function diff(e,t){if(eq(e,t)){return null}else{var r=parse(e);var n=parse(t);var i="";if(r.prerelease.length||n.prerelease.length){i="pre";var s="prerelease"}for(var o in r){if(o==="major"||o==="minor"||o==="patch"){if(r[o]!==n[o]){return i+o}}}return s}}t.compareIdentifiers=compareIdentifiers;var Y=/^[0-9]+$/;function compareIdentifiers(e,t){var r=Y.test(e);var n=Y.test(t);if(r&&n){e=+e;t=+t}return e===t?0:r&&!n?-1:n&&!r?1:e0}t.lt=lt;function lt(e,t,r){return compare(e,t,r)<0}t.eq=eq;function eq(e,t,r){return compare(e,t,r)===0}t.neq=neq;function neq(e,t,r){return compare(e,t,r)!==0}t.gte=gte;function gte(e,t,r){return compare(e,t,r)>=0}t.lte=lte;function lte(e,t,r){return compare(e,t,r)<=0}t.cmp=cmp;function cmp(e,t,r,n){switch(t){case"===":if(typeof e==="object")e=e.version;if(typeof r==="object")r=r.version;return e===r;case"!==":if(typeof e==="object")e=e.version;if(typeof r==="object")r=r.version;return e!==r;case"":case"=":case"==":return eq(e,r,n);case"!=":return neq(e,r,n);case">":return gt(e,r,n);case">=":return gte(e,r,n);case"<":return lt(e,r,n);case"<=":return lte(e,r,n);default:throw new TypeError("Invalid operator: "+t)}}t.Comparator=Comparator;function Comparator(e,t){if(!t||typeof t!=="object"){t={loose:!!t,includePrerelease:false}}if(e instanceof Comparator){if(e.loose===!!t.loose){return e}else{e=e.value}}if(!(this instanceof Comparator)){return new Comparator(e,t)}r("comparator",e,t);this.options=t;this.loose=!!t.loose;this.parse(e);if(this.semver===Z){this.value=""}else{this.value=this.operator+this.semver.version}r("comp",this)}var Z={};Comparator.prototype.parse=function(e){var t=this.options.loose?o[H]:o[N];var r=e.match(t);if(!r){throw new TypeError("Invalid comparator: "+e)}this.operator=r[1];if(this.operator==="="){this.operator=""}if(!r[2]){this.semver=Z}else{this.semver=new SemVer(r[2],this.options.loose)}};Comparator.prototype.toString=function(){return this.value};Comparator.prototype.test=function(e){r("Comparator.test",e,this.options.loose);if(this.semver===Z){return true}if(typeof e==="string"){e=new SemVer(e,this.options)}return cmp(e,this.operator,this.semver,this.options)};Comparator.prototype.intersects=function(e,t){if(!(e instanceof Comparator)){throw new TypeError("a Comparator is required")}if(!t||typeof t!=="object"){t={loose:!!t,includePrerelease:false}}var r;if(this.operator===""){r=new Range(e.value,t);return satisfies(this.value,r,t)}else if(e.operator===""){r=new Range(this.value,t);return satisfies(e.semver,r,t)}var n=(this.operator===">="||this.operator===">")&&(e.operator===">="||e.operator===">");var i=(this.operator==="<="||this.operator==="<")&&(e.operator==="<="||e.operator==="<");var s=this.semver.version===e.semver.version;var o=(this.operator===">="||this.operator==="<=")&&(e.operator===">="||e.operator==="<=");var a=cmp(this.semver,"<",e.semver,t)&&((this.operator===">="||this.operator===">")&&(e.operator==="<="||e.operator==="<"));var u=cmp(this.semver,">",e.semver,t)&&((this.operator==="<="||this.operator==="<")&&(e.operator===">="||e.operator===">"));return n||i||s&&o||a||u};t.Range=Range;function Range(e,t){if(!t||typeof t!=="object"){t={loose:!!t,includePrerelease:false}}if(e instanceof Range){if(e.loose===!!t.loose&&e.includePrerelease===!!t.includePrerelease){return e}else{return new Range(e.raw,t)}}if(e instanceof Comparator){return new Range(e.value,t)}if(!(this instanceof Range)){return new Range(e,t)}this.options=t;this.loose=!!t.loose;this.includePrerelease=!!t.includePrerelease;this.raw=e;this.set=e.split(/\s*\|\|\s*/).map(function(e){return this.parseRange(e.trim())},this).filter(function(e){return e.length});if(!this.set.length){throw new TypeError("Invalid SemVer Range: "+e)}this.format()}Range.prototype.format=function(){this.range=this.set.map(function(e){return e.join(" ").trim()}).join("||").trim();return this.range};Range.prototype.toString=function(){return this.range};Range.prototype.parseRange=function(e){var t=this.options.loose;e=e.trim();var n=t?o[W]:o[K];e=e.replace(n,hyphenReplace);r("hyphen replace",e);e=e.replace(o[z],V);r("comparator trim",e,o[z]);e=e.replace(o[A],G);e=e.replace(o[I],L);e=e.split(/\s+/).join(" ");var i=t?o[H]:o[N];var s=e.split(" ").map(function(e){return parseComparator(e,this.options)},this).join(" ").split(/\s+/);if(this.options.loose){s=s.filter(function(e){return!!e.match(i)})}s=s.map(function(e){return new Comparator(e,this.options)},this);return s};Range.prototype.intersects=function(e,t){if(!(e instanceof Range)){throw new TypeError("a Range is required")}return this.set.some(function(r){return r.every(function(r){return e.set.some(function(e){return e.every(function(e){return r.intersects(e,t)})})})})};t.toComparators=toComparators;function toComparators(e,t){return new Range(e,t).set.map(function(e){return e.map(function(e){return e.value}).join(" ").trim().split(" ")})}function parseComparator(e,t){r("comp",e,t);e=replaceCarets(e,t);r("caret",e);e=replaceTildes(e,t);r("tildes",e);e=replaceXRanges(e,t);r("xrange",e);e=replaceStars(e,t);r("stars",e);return e}function isX(e){return!e||e.toLowerCase()==="x"||e==="*"}function replaceTildes(e,t){return e.trim().split(/\s+/).map(function(e){return replaceTilde(e,t)}).join(" ")}function replaceTilde(e,t){var n=t.loose?o[D]:o[F];return e.replace(n,function(t,n,i,s,o){r("tilde",e,t,n,i,s,o);var a;if(isX(n)){a=""}else if(isX(i)){a=">="+n+".0.0 <"+(+n+1)+".0.0"}else if(isX(s)){a=">="+n+"."+i+".0 <"+n+"."+(+i+1)+".0"}else if(o){r("replaceTilde pr",o);a=">="+n+"."+i+"."+s+"-"+o+" <"+n+"."+(+i+1)+".0"}else{a=">="+n+"."+i+"."+s+" <"+n+"."+(+i+1)+".0"}r("tilde return",a);return a})}function replaceCarets(e,t){return e.trim().split(/\s+/).map(function(e){return replaceCaret(e,t)}).join(" ")}function replaceCaret(e,t){r("caret",e,t);var n=t.loose?o[$]:o[U];return e.replace(n,function(t,n,i,s,o){r("caret",e,t,n,i,s,o);var a;if(isX(n)){a=""}else if(isX(i)){a=">="+n+".0.0 <"+(+n+1)+".0.0"}else if(isX(s)){if(n==="0"){a=">="+n+"."+i+".0 <"+n+"."+(+i+1)+".0"}else{a=">="+n+"."+i+".0 <"+(+n+1)+".0.0"}}else if(o){r("replaceCaret pr",o);if(n==="0"){if(i==="0"){a=">="+n+"."+i+"."+s+"-"+o+" <"+n+"."+i+"."+(+s+1)}else{a=">="+n+"."+i+"."+s+"-"+o+" <"+n+"."+(+i+1)+".0"}}else{a=">="+n+"."+i+"."+s+"-"+o+" <"+(+n+1)+".0.0"}}else{r("no pr");if(n==="0"){if(i==="0"){a=">="+n+"."+i+"."+s+" <"+n+"."+i+"."+(+s+1)}else{a=">="+n+"."+i+"."+s+" <"+n+"."+(+i+1)+".0"}}else{a=">="+n+"."+i+"."+s+" <"+(+n+1)+".0.0"}}r("caret return",a);return a})}function replaceXRanges(e,t){r("replaceXRanges",e,t);return e.split(/\s+/).map(function(e){return replaceXRange(e,t)}).join(" ")}function replaceXRange(e,t){e=e.trim();var n=t.loose?o[x]:o[O];return e.replace(n,function(t,n,i,s,o,a){r("xRange",e,t,n,i,s,o,a);var u=isX(i);var p=u||isX(s);var c=p||isX(o);var d=c;if(n==="="&&d){n=""}if(u){if(n===">"||n==="<"){t="<0.0.0"}else{t="*"}}else if(n&&d){if(p){s=0}o=0;if(n===">"){n=">=";if(p){i=+i+1;s=0;o=0}else{s=+s+1;o=0}}else if(n==="<="){n="<";if(p){i=+i+1}else{s=+s+1}}t=n+i+"."+s+"."+o}else if(p){t=">="+i+".0.0 <"+(+i+1)+".0.0"}else if(c){t=">="+i+"."+s+".0 <"+i+"."+(+s+1)+".0"}r("xRange return",t);return t})}function replaceStars(e,t){r("replaceStars",e,t);return e.trim().replace(o[X],"")}function hyphenReplace(e,t,r,n,i,s,o,a,u,p,c,d,l){if(isX(r)){t=""}else if(isX(n)){t=">="+r+".0.0"}else if(isX(i)){t=">="+r+"."+n+".0"}else{t=">="+t}if(isX(u)){a=""}else if(isX(p)){a="<"+(+u+1)+".0.0"}else if(isX(c)){a="<"+u+"."+(+p+1)+".0"}else if(d){a="<="+u+"."+p+"."+c+"-"+d}else{a="<="+a}return(t+" "+a).trim()}Range.prototype.test=function(e){if(!e){return false}if(typeof e==="string"){e=new SemVer(e,this.options)}for(var t=0;t0){var s=e[i].semver;if(s.major===t.major&&s.minor===t.minor&&s.patch===t.patch){return true}}}return false}return true}t.satisfies=satisfies;function satisfies(e,t,r){try{t=new Range(t,r)}catch(e){return false}return t.test(e)}t.maxSatisfying=maxSatisfying;function maxSatisfying(e,t,r){var n=null;var i=null;try{var s=new Range(t,r)}catch(e){return null}e.forEach(function(e){if(s.test(e)){if(!n||i.compare(e)===-1){n=e;i=new SemVer(n,r)}}});return n}t.minSatisfying=minSatisfying;function minSatisfying(e,t,r){var n=null;var i=null;try{var s=new Range(t,r)}catch(e){return null}e.forEach(function(e){if(s.test(e)){if(!n||i.compare(e)===1){n=e;i=new SemVer(n,r)}}});return n}t.minVersion=minVersion;function minVersion(e,t){e=new Range(e,t);var r=new SemVer("0.0.0");if(e.test(r)){return r}r=new SemVer("0.0.0-0");if(e.test(r)){return r}r=null;for(var n=0;n":if(t.prerelease.length===0){t.patch++}else{t.prerelease.push(0)}t.raw=t.format();case"":case">=":if(!r||gt(r,t)){r=t}break;case"<":case"<=":break;default:throw new Error("Unexpected operation: "+e.operator)}})}if(r&&e.test(r)){return r}return null}t.validRange=validRange;function validRange(e,t){try{return new Range(e,t).range||"*"}catch(e){return null}}t.ltr=ltr;function ltr(e,t,r){return outside(e,t,"<",r)}t.gtr=gtr;function gtr(e,t,r){return outside(e,t,">",r)}t.outside=outside;function outside(e,t,r,n){e=new SemVer(e,n);t=new Range(t,n);var i,s,o,a,u;switch(r){case">":i=gt;s=lte;o=lt;a=">";u=">=";break;case"<":i=lt;s=gte;o=gt;a="<";u="<=";break;default:throw new TypeError('Must provide a hilo val of "<" or ">"')}if(satisfies(e,t,n)){return false}for(var p=0;p=0.0.0")}d=d||e;l=l||e;if(i(e.semver,d.semver,n)){d=e}else if(o(e.semver,l.semver,n)){l=e}});if(d.operator===a||d.operator===u){return false}if((!l.operator||l.operator===a)&&s(e,l.semver)){return false}else if(l.operator===u&&o(e,l.semver)){return false}}return true}t.prerelease=prerelease;function prerelease(e,t){var r=parse(e,t);return r&&r.prerelease.length?r.prerelease:null}t.intersects=intersects;function intersects(e,t,r){e=new Range(e,r);t=new Range(t,r);return e.intersects(t)}t.coerce=coerce;function coerce(e){if(e instanceof SemVer){return e}if(typeof e!=="string"){return null}var t=e.match(o[P]);if(t==null){return null}return parse(t[1]+"."+(t[2]||"0")+"."+(t[3]||"0"))}},283:function(e,t,r){"use strict";var n=r(35);function InterceptorManager(){this.handlers=[]}InterceptorManager.prototype.use=function use(e,t){this.handlers.push({fulfilled:e,rejected:t});return this.handlers.length-1};InterceptorManager.prototype.eject=function eject(e){if(this.handlers[e]){this.handlers[e]=null}};InterceptorManager.prototype.forEach=function forEach(e){n.forEach(this.handlers,function forEachHandler(t){if(t!==null){e(t)}})};e.exports=InterceptorManager},293:function(e,t,r){e.exports=authenticationRequestError;const{RequestError:n}=r(463);function authenticationRequestError(e,t,r){if(!t.headers)throw t;const i=/required/.test(t.headers["x-github-otp"]||"");if(t.status!==401||!i){throw t}if(t.status===401&&i&&t.request&&t.request.headers["x-github-otp"]){if(e.otp){delete e.otp}else{throw new n("Invalid one-time password for two-factor authentication",401,{headers:t.headers,request:r})}}if(typeof e.auth.on2fa!=="function"){throw new n("2FA required, but options.on2fa is not a function. See https://github.com/octokit/rest.js#authentication",401,{headers:t.headers,request:r})}return Promise.resolve().then(()=>{return e.auth.on2fa()}).then(t=>{const n=Object.assign(r,{headers:Object.assign(r.headers,{"x-github-otp":t})});return e.octokit.request(n).then(r=>{e.otp=t;return r})})}},294:function(e,t,r){e.exports=parseOptions;const{Deprecation:n}=r(692);const{getUserAgent:i}=r(619);const s=r(969);const o=r(215);const a=s((e,t)=>e.warn(t));const u=s((e,t)=>e.warn(t));const p=s((e,t)=>e.warn(t));function parseOptions(e,t,r){if(e.headers){e.headers=Object.keys(e.headers).reduce((t,r)=>{t[r.toLowerCase()]=e.headers[r];return t},{})}const s={headers:e.headers||{},request:e.request||{},mediaType:{previews:[],format:""}};if(e.baseUrl){s.baseUrl=e.baseUrl}if(e.userAgent){s.headers["user-agent"]=e.userAgent}if(e.previews){s.mediaType.previews=e.previews}if(e.timeZone){s.headers["time-zone"]=e.timeZone}if(e.timeout){a(t,new n("[@octokit/rest] new Octokit({timeout}) is deprecated. Use {request: {timeout}} instead. See https://github.com/octokit/request.js#request"));s.request.timeout=e.timeout}if(e.agent){u(t,new n("[@octokit/rest] new Octokit({agent}) is deprecated. Use {request: {agent}} instead. See https://github.com/octokit/request.js#request"));s.request.agent=e.agent}if(e.headers){p(t,new n("[@octokit/rest] new Octokit({headers}) is deprecated. Use {userAgent, previews} instead. See https://github.com/octokit/request.js#request"))}const c=s.headers["user-agent"];const d=`octokit.js/${o.version} ${i()}`;s.headers["user-agent"]=[c,d].filter(Boolean).join(" ");s.request.hook=r.bind(null,"request");return s}},297:function(e){e.exports=class HttpError extends Error{constructor(e,t,r){super(e);if(Error.captureStackTrace){Error.captureStackTrace(this,this.constructor)}this.name="HttpError";this.code=t;this.headers=r}}},301:function(e,t,r){e.exports=normalizePaginatedListResponse;const{Deprecation:n}=r(692);const i=r(969);const s=i((e,t)=>e.warn(t));const o=i((e,t)=>e.warn(t));const a=i((e,t)=>e.warn(t));const u=/^\/search\//;const p=/^\/repos\/[^/]+\/[^/]+\/commits\/[^/]+\/(check-runs|check-suites)/;const c=/^\/installation\/repositories/;const d=/^\/user\/installations/;const l=/^\/orgs\/[^/]+\/installations/;function normalizePaginatedListResponse(e,t,r){const i=t.replace(e.request.endpoint.DEFAULTS.baseUrl,"");if(!u.test(i)&&!p.test(i)&&!c.test(i)&&!d.test(i)&&!l.test(i)){return}const g=r.data.incomplete_results;const m=r.data.repository_selection;const h=r.data.total_count;delete r.data.incomplete_results;delete r.data.repository_selection;delete r.data.total_count;const f=Object.keys(r.data)[0];r.data=r.data[f];Object.defineProperty(r.data,f,{get(){a(e.log,new n(`[@octokit/rest] "result.data.${f}" is deprecated. Use "result.data" instead`));return r.data}});if(typeof g!=="undefined"){Object.defineProperty(r.data,"incomplete_results",{get(){s(e.log,new n('[@octokit/rest] "result.data.incomplete_results" is deprecated.'));return g}})}if(typeof m!=="undefined"){Object.defineProperty(r.data,"repository_selection",{get(){o(e.log,new n('[@octokit/rest] "result.data.repository_selection" is deprecated.'));return m}})}Object.defineProperty(r.data,"total_count",{get(){o(e.log,new n('[@octokit/rest] "result.data.total_count" is deprecated.'));return h}})}},314:function(e){e.exports={name:"@octokit/graphql",version:"2.1.3",publishConfig:{access:"public"},description:"GitHub GraphQL API client for browsers and Node",main:"index.js",scripts:{prebuild:"mkdirp dist/",build:"npm-run-all build:*","build:development":"webpack --mode development --entry . --output-library=octokitGraphql --output=./dist/octokit-graphql.js --profile --json > dist/bundle-stats.json","build:production":"webpack --mode production --entry . --plugin=compression-webpack-plugin --output-library=octokitGraphql --output-path=./dist --output-filename=octokit-graphql.min.js --devtool source-map","bundle-report":"webpack-bundle-analyzer dist/bundle-stats.json --mode=static --no-open --report dist/bundle-report.html",coverage:"nyc report --reporter=html && open coverage/index.html","coverage:upload":"nyc report --reporter=text-lcov | coveralls",pretest:"standard",test:"nyc mocha test/*-test.js","test:browser":"cypress run --browser chrome"},repository:{type:"git",url:"https://github.com/octokit/graphql.js.git"},keywords:["octokit","github","api","graphql"],author:"Gregor Martynus (https://github.com/gr2m)",license:"MIT",bugs:{url:"https://github.com/octokit/graphql.js/issues"},homepage:"https://github.com/octokit/graphql.js#readme",dependencies:{"@octokit/request":"^5.0.0","universal-user-agent":"^2.0.3"},devDependencies:{chai:"^4.2.0","compression-webpack-plugin":"^2.0.0",coveralls:"^3.0.3",cypress:"^3.1.5","fetch-mock":"^7.3.1",mkdirp:"^0.5.1",mocha:"^6.0.0","npm-run-all":"^4.1.3",nyc:"^14.0.0","semantic-release":"^15.13.3","simple-mock":"^0.8.0",standard:"^12.0.1",webpack:"^4.29.6","webpack-bundle-analyzer":"^3.1.0","webpack-cli":"^3.2.3"},bundlesize:[{path:"./dist/octokit-graphql.min.js.gz",maxSize:"5KB"}],release:{publish:["@semantic-release/npm",{path:"@semantic-release/github",assets:["dist/*","!dist/*.map.gz"]}]},standard:{globals:["describe","before","beforeEach","afterEach","after","it","expect"]},files:["lib"],_resolved:"https://registry.npmjs.org/@octokit/graphql/-/graphql-2.1.3.tgz",_integrity:"sha512-XoXJqL2ondwdnMIW3wtqJWEwcBfKk37jO/rYkoxNPEVeLBDGsGO1TCWggrAlq3keGt/O+C/7VepXnukUxwt5vA==",_from:"@octokit/graphql@2.1.3"}},317:function(e){var t=1e3;var r=t*60;var n=r*60;var i=n*24;var s=i*365.25;e.exports=function(e,t){t=t||{};var r=typeof e;if(r==="string"&&e.length>0){return parse(e)}else if(r==="number"&&isNaN(e)===false){return t.long?fmtLong(e):fmtShort(e)}throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(e))};function parse(e){e=String(e);if(e.length>100){return}var o=/^((?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|years?|yrs?|y)?$/i.exec(e);if(!o){return}var a=parseFloat(o[1]);var u=(o[2]||"ms").toLowerCase();switch(u){case"years":case"year":case"yrs":case"yr":case"y":return a*s;case"days":case"day":case"d":return a*i;case"hours":case"hour":case"hrs":case"hr":case"h":return a*n;case"minutes":case"minute":case"mins":case"min":case"m":return a*r;case"seconds":case"second":case"secs":case"sec":case"s":return a*t;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return a;default:return undefined}}function fmtShort(e){if(e>=i){return Math.round(e/i)+"d"}if(e>=n){return Math.round(e/n)+"h"}if(e>=r){return Math.round(e/r)+"m"}if(e>=t){return Math.round(e/t)+"s"}return e+"ms"}function fmtLong(e){return plural(e,i,"day")||plural(e,n,"hour")||plural(e,r,"minute")||plural(e,t,"second")||e+" ms"}function plural(e,t,r){if(e{const o=i(r,e);const a=o.type;let u;let p;let c=true;let d=false;if(/\./.test(e)){u=e.replace(/\.[^.]+$/,"");d=u.slice(-2)==="[]";if(d){u=u.slice(0,-2)}p=i(t,u);c=u==="headers"||typeof p==="object"&&p!==null}const l=d?(i(t,u)||[]).map(t=>t[e.split(/\./).pop()]):[i(t,e)];l.forEach((r,i)=>{const u=typeof r!=="undefined";const p=r===null;const l=d?e.replace(/\[\]/,`[${i}]`):e;if(!o.required&&!u){return}if(!c){return}if(o.allowNull&&p){return}if(!o.allowNull&&p){throw new n(`'${l}' cannot be null`,400,{request:t})}if(o.required&&!u){throw new n(`Empty value for parameter '${l}': ${JSON.stringify(r)}`,400,{request:t})}if(a==="integer"){const e=r;r=parseInt(r,10);if(isNaN(r)){throw new n(`Invalid value for parameter '${l}': ${JSON.stringify(e)} is NaN`,400,{request:t})}}if(o.enum&&o.enum.indexOf(String(r))===-1){throw new n(`Invalid value for parameter '${l}': ${JSON.stringify(r)}`,400,{request:t})}if(o.validation){const e=new RegExp(o.validation);if(!e.test(r)){throw new n(`Invalid value for parameter '${l}': ${JSON.stringify(r)}`,400,{request:t})}}if(a==="object"&&typeof r==="string"){try{r=JSON.parse(r)}catch(e){throw new n(`JSON parse error of value for parameter '${l}': ${JSON.stringify(r)}`,400,{request:t})}}s(t,o.mapTo||l,r)})});return t}},349:function(e,t,r){e.exports=authenticationRequestError;const{RequestError:n}=r(463);function authenticationRequestError(e,t,r){if(!t.headers)throw t;const i=/required/.test(t.headers["x-github-otp"]||"");if(t.status!==401||!i){throw t}if(t.status===401&&i&&t.request&&t.request.headers["x-github-otp"]){throw new n("Invalid one-time password for two-factor authentication",401,{headers:t.headers,request:r})}if(typeof e.auth.on2fa!=="function"){throw new n("2FA required, but options.on2fa is not a function. See https://github.com/octokit/rest.js#authentication",401,{headers:t.headers,request:r})}return Promise.resolve().then(()=>{return e.auth.on2fa()}).then(t=>{const n=Object.assign(r,{headers:Object.assign({"x-github-otp":t},r.headers)});return e.octokit.request(n)})}},352:function(e,t,r){"use strict";var n=r(35);var i=r(727);var s=r(779);var o=r(825);var a=r(774);function createInstance(e){var t=new s(e);var r=i(s.prototype.request,t);n.extend(r,s.prototype,t);n.extend(r,t);return r}var u=createInstance(a);u.Axios=s;u.create=function create(e){return createInstance(o(u.defaults,e))};u.Cancel=r(826);u.CancelToken=r(137);u.isCancel=r(732);u.all=function all(e){return Promise.all(e)};u.spread=r(879);e.exports=u;e.exports.default=u},357:function(e){e.exports=require("assert")},361:function(e){e.exports={name:"axios",version:"0.19.2",description:"Promise based HTTP client for the browser and node.js",main:"index.js",scripts:{test:"grunt test && bundlesize",start:"node ./sandbox/server.js",build:"NODE_ENV=production grunt build",preversion:"npm test",version:"npm run build && grunt version && git add -A dist && git add CHANGELOG.md bower.json package.json",postversion:"git push && git push --tags",examples:"node ./examples/server.js",coveralls:"cat coverage/lcov.info | ./node_modules/coveralls/bin/coveralls.js",fix:"eslint --fix lib/**/*.js"},repository:{type:"git",url:"https://github.com/axios/axios.git"},keywords:["xhr","http","ajax","promise","node"],author:"Matt Zabriskie",license:"MIT",bugs:{url:"https://github.com/axios/axios/issues"},homepage:"https://github.com/axios/axios",devDependencies:{bundlesize:"^0.17.0",coveralls:"^3.0.0","es6-promise":"^4.2.4",grunt:"^1.0.2","grunt-banner":"^0.6.0","grunt-cli":"^1.2.0","grunt-contrib-clean":"^1.1.0","grunt-contrib-watch":"^1.0.0","grunt-eslint":"^20.1.0","grunt-karma":"^2.0.0","grunt-mocha-test":"^0.13.3","grunt-ts":"^6.0.0-beta.19","grunt-webpack":"^1.0.18","istanbul-instrumenter-loader":"^1.0.0","jasmine-core":"^2.4.1",karma:"^1.3.0","karma-chrome-launcher":"^2.2.0","karma-coverage":"^1.1.1","karma-firefox-launcher":"^1.1.0","karma-jasmine":"^1.1.1","karma-jasmine-ajax":"^0.1.13","karma-opera-launcher":"^1.0.0","karma-safari-launcher":"^1.0.0","karma-sauce-launcher":"^1.2.0","karma-sinon":"^1.0.5","karma-sourcemap-loader":"^0.3.7","karma-webpack":"^1.7.0","load-grunt-tasks":"^3.5.2",minimist:"^1.2.0",mocha:"^5.2.0",sinon:"^4.5.0",typescript:"^2.8.1","url-search-params":"^0.10.0",webpack:"^1.13.1","webpack-dev-server":"^1.14.1"},browser:{"./lib/adapters/http.js":"./lib/adapters/xhr.js"},typings:"./index.d.ts",dependencies:{"follow-redirects":"1.5.10"},bundlesize:[{path:"./dist/axios.min.js",threshold:"5kB"}],_resolved:"https://registry.npmjs.org/axios/-/axios-0.19.2.tgz",_integrity:"sha512-fjgm5MvRHLhx+osE2xoekY70AhARk3a6hkN+3Io1jc00jtquGvxYlKlsFUhmUET0V5te6CcZI7lcv2Ym61mjHA==",_from:"axios@0.19.2"}},363:function(e){e.exports=register;function register(e,t,r,n){if(typeof r!=="function"){throw new Error("method for before hook must be a function")}if(!n){n={}}if(Array.isArray(t)){return t.reverse().reduce(function(t,r){return register.bind(null,e,r,t,n)},r)()}return Promise.resolve().then(function(){if(!e.registry[t]){return r(n)}return e.registry[t].reduce(function(e,t){return t.hook.bind(null,e,n)},r)()})}},364:function(e){"use strict";e.exports=((e,t)=>{t=t||process.argv;const r=e.startsWith("-")?"":e.length===1?"-":"--";const n=t.indexOf(r+e);const i=t.indexOf("--");return n!==-1&&(i===-1?true:n{e.log.debug("request",r);const n=Date.now();const i=e.request.endpoint.parse(r);const s=i.url.replace(r.baseUrl,"");return t(r).then(t=>{e.log.info(`${i.method} ${s} - ${t.status} in ${Date.now()-n}ms`);return t}).catch(t=>{e.log.info(`${i.method} ${s} - ${t.status} in ${Date.now()-n}ms`);throw t})})}},385:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:true});function _interopDefault(e){return e&&typeof e==="object"&&"default"in e?e["default"]:e}var n=_interopDefault(r(696));var i=r(562);function lowercaseKeys(e){if(!e){return{}}return Object.keys(e).reduce((t,r)=>{t[r.toLowerCase()]=e[r];return t},{})}function mergeDeep(e,t){const r=Object.assign({},e);Object.keys(t).forEach(i=>{if(n(t[i])){if(!(i in e))Object.assign(r,{[i]:t[i]});else r[i]=mergeDeep(e[i],t[i])}else{Object.assign(r,{[i]:t[i]})}});return r}function merge(e,t,r){if(typeof t==="string"){let[e,n]=t.split(" ");r=Object.assign(n?{method:e,url:n}:{url:e},r)}else{r=Object.assign({},t)}r.headers=lowercaseKeys(r.headers);const n=mergeDeep(e||{},r);if(e&&e.mediaType.previews.length){n.mediaType.previews=e.mediaType.previews.filter(e=>!n.mediaType.previews.includes(e)).concat(n.mediaType.previews)}n.mediaType.previews=n.mediaType.previews.map(e=>e.replace(/-preview/,""));return n}function addQueryParameters(e,t){const r=/\?/.test(e)?"&":"?";const n=Object.keys(t);if(n.length===0){return e}return e+r+n.map(e=>{if(e==="q"){return"q="+t.q.split("+").map(encodeURIComponent).join("+")}return`${e}=${encodeURIComponent(t[e])}`}).join("&")}const s=/\{[^}]+\}/g;function removeNonChars(e){return e.replace(/^\W+|\W+$/g,"").split(/,/)}function extractUrlVariableNames(e){const t=e.match(s);if(!t){return[]}return t.map(removeNonChars).reduce((e,t)=>e.concat(t),[])}function omit(e,t){return Object.keys(e).filter(e=>!t.includes(e)).reduce((t,r)=>{t[r]=e[r];return t},{})}function encodeReserved(e){return e.split(/(%[0-9A-Fa-f]{2})/g).map(function(e){if(!/%[0-9A-Fa-f]/.test(e)){e=encodeURI(e).replace(/%5B/g,"[").replace(/%5D/g,"]")}return e}).join("")}function encodeUnreserved(e){return encodeURIComponent(e).replace(/[!'()*]/g,function(e){return"%"+e.charCodeAt(0).toString(16).toUpperCase()})}function encodeValue(e,t,r){t=e==="+"||e==="#"?encodeReserved(t):encodeUnreserved(t);if(r){return encodeUnreserved(r)+"="+t}else{return t}}function isDefined(e){return e!==undefined&&e!==null}function isKeyOperator(e){return e===";"||e==="&"||e==="?"}function getValues(e,t,r,n){var i=e[r],s=[];if(isDefined(i)&&i!==""){if(typeof i==="string"||typeof i==="number"||typeof i==="boolean"){i=i.toString();if(n&&n!=="*"){i=i.substring(0,parseInt(n,10))}s.push(encodeValue(t,i,isKeyOperator(t)?r:""))}else{if(n==="*"){if(Array.isArray(i)){i.filter(isDefined).forEach(function(e){s.push(encodeValue(t,e,isKeyOperator(t)?r:""))})}else{Object.keys(i).forEach(function(e){if(isDefined(i[e])){s.push(encodeValue(t,i[e],e))}})}}else{const e=[];if(Array.isArray(i)){i.filter(isDefined).forEach(function(r){e.push(encodeValue(t,r))})}else{Object.keys(i).forEach(function(r){if(isDefined(i[r])){e.push(encodeUnreserved(r));e.push(encodeValue(t,i[r].toString()))}})}if(isKeyOperator(t)){s.push(encodeUnreserved(r)+"="+e.join(","))}else if(e.length!==0){s.push(e.join(","))}}}}else{if(t===";"){if(isDefined(i)){s.push(encodeUnreserved(r))}}else if(i===""&&(t==="&"||t==="?")){s.push(encodeUnreserved(r)+"=")}else if(i===""){s.push("")}}return s}function parseUrl(e){return{expand:expand.bind(null,e)}}function expand(e,t){var r=["+","#",".","/",";","?","&"];return e.replace(/\{([^\{\}]+)\}|([^\{\}]+)/g,function(e,n,i){if(n){let e="";const i=[];if(r.indexOf(n.charAt(0))!==-1){e=n.charAt(0);n=n.substr(1)}n.split(/,/g).forEach(function(r){var n=/([^:\*]*)(?::(\d+)|(\*))?/.exec(r);i.push(getValues(t,e,n[1],n[2]||n[3]))});if(e&&e!=="+"){var s=",";if(e==="?"){s="&"}else if(e!=="#"){s=e}return(i.length!==0?e:"")+i.join(s)}else{return i.join(",")}}else{return encodeReserved(i)}})}function parse(e){let t=e.method.toUpperCase();let r=(e.url||"/").replace(/:([a-z]\w+)/g,"{+$1}");let n=Object.assign({},e.headers);let i;let s=omit(e,["method","baseUrl","url","headers","request","mediaType"]);const o=extractUrlVariableNames(r);r=parseUrl(r).expand(s);if(!/^http/.test(r)){r=e.baseUrl+r}const a=Object.keys(e).filter(e=>o.includes(e)).concat("baseUrl");const u=omit(s,a);const p=/application\/octet-stream/i.test(n.accept);if(!p){if(e.mediaType.format){n.accept=n.accept.split(/,/).map(t=>t.replace(/application\/vnd(\.\w+)(\.v3)?(\.\w+)?(\+json)?$/,`application/vnd$1$2.${e.mediaType.format}`)).join(",")}if(e.mediaType.previews.length){const t=n.accept.match(/[\w-]+(?=-preview)/g)||[];n.accept=t.concat(e.mediaType.previews).map(t=>{const r=e.mediaType.format?`.${e.mediaType.format}`:"+json";return`application/vnd.github.${t}-preview${r}`}).join(",")}}if(["GET","HEAD"].includes(t)){r=addQueryParameters(r,u)}else{if("data"in u){i=u.data}else{if(Object.keys(u).length){i=u}else{n["content-length"]=0}}}if(!n["content-type"]&&typeof i!=="undefined"){n["content-type"]="application/json; charset=utf-8"}if(["PATCH","PUT"].includes(t)&&typeof i==="undefined"){i=""}return Object.assign({method:t,url:r,headers:n},typeof i!=="undefined"?{body:i}:null,e.request?{request:e.request}:null)}function endpointWithDefaults(e,t,r){return parse(merge(e,t,r))}function withDefaults(e,t){const r=merge(e,t);const n=endpointWithDefaults.bind(null,r);return Object.assign(n,{DEFAULTS:r,defaults:withDefaults.bind(null,r),merge:merge.bind(null,r),parse:parse})}const o="5.5.1";const a=`octokit-endpoint.js/${o} ${i.getUserAgent()}`;const u={method:"GET",baseUrl:"https://api.github.com",headers:{accept:"application/vnd.github.v3+json","user-agent":a},mediaType:{format:"",previews:[]}};const p=withDefaults(null,u);t.endpoint=p},389:function(e,t,r){"use strict";const n=r(747);const i=r(866);function readShebang(e){const t=150;let r;if(Buffer.alloc){r=Buffer.alloc(t)}else{r=new Buffer(t);r.fill(0)}let s;try{s=n.openSync(e,"r");n.readSync(s,r,0,t,0);n.closeSync(s)}catch(e){}return i(r.toString())}e.exports=readShebang},402:function(e,t,r){e.exports=Octokit;const{request:n}=r(753);const i=r(523);const s=r(294);function Octokit(e,t){t=t||{};const r=new i.Collection;const o=Object.assign({debug:()=>{},info:()=>{},warn:console.warn,error:console.error},t&&t.log);const a={hook:r,log:o,request:n.defaults(s(t,o,r))};e.forEach(e=>e(a,t));return a}},411:function(e,t,r){"use strict";var n=r(35);e.exports=function normalizeHeaderName(e,t){n.forEach(e,function processHeader(r,n){if(n!==t&&n.toUpperCase()===t.toUpperCase()){e[t]=r;delete e[n]}})}},413:function(e){e.exports=require("stream")},427:function(e,t,r){"use strict";const n=r(669);let i;if(typeof n.getSystemErrorName==="function"){e.exports=n.getSystemErrorName}else{try{i=process.binding("uv");if(typeof i.errname!=="function"){throw new TypeError("uv.errname is not a function")}}catch(e){console.error("execa/lib/errname: unable to establish process.binding('uv')",e);i=null}e.exports=(e=>errname(i,e))}e.exports.__test__=errname;function errname(e,t){if(e){return e.errname(t)}if(!(t<0)){throw new Error("err >= 0")}return`Unknown system error ${t}`}},430:function(e,t,r){e.exports=octokitValidate;const n=r(348);function octokitValidate(e){e.hook.before("request",n.bind(null,e))}},431:function(e,t,r){"use strict";var n=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var r in e)if(Object.hasOwnProperty.call(e,r))t[r]=e[r];t["default"]=e;return t};Object.defineProperty(t,"__esModule",{value:true});const i=n(r(87));const s=r(82);function issueCommand(e,t,r){const n=new Command(e,t,r);process.stdout.write(n.toString()+i.EOL)}t.issueCommand=issueCommand;function issue(e,t=""){issueCommand(e,{},t)}t.issue=issue;const o="::";class Command{constructor(e,t,r){if(!e){e="missing.command"}this.command=e;this.properties=t;this.message=r}toString(){let e=o+this.command;if(this.properties&&Object.keys(this.properties).length>0){e+=" ";let t=true;for(const r in this.properties){if(this.properties.hasOwnProperty(r)){const n=this.properties[r];if(n){if(t){t=false}else{e+=","}e+=`${r}=${escapeProperty(n)}`}}}}e+=`${o}${escapeData(this.message)}`;return e}}function escapeData(e){return s.toCommandValue(e).replace(/%/g,"%25").replace(/\r/g,"%0D").replace(/\n/g,"%0A")}function escapeProperty(e){return s.toCommandValue(e).replace(/%/g,"%25").replace(/\r/g,"%0D").replace(/\n/g,"%0A").replace(/:/g,"%3A").replace(/,/g,"%2C")}},451:function(e){e.exports={compareTwoStrings:compareTwoStrings,findBestMatch:findBestMatch};function compareTwoStrings(e,t){e=e.replace(/\s+/g,"");t=t.replace(/\s+/g,"");if(!e.length&&!t.length)return 1;if(!e.length||!t.length)return 0;if(e===t)return 1;if(e.length===1&&t.length===1)return 0;if(e.length<2||t.length<2)return 0;let r=new Map;for(let t=0;t0){r.set(i,s-1);n++}}return 2*n/(e.length+t.length-2)}function findBestMatch(e,t){if(!areArgsValid(e,t))throw new Error("Bad arguments: First argument should be a string, second should be an array of strings");const r=[];let n=0;for(let i=0;ir[n].rating){n=i}}const i=r[n];return{ratings:r,bestMatch:i,bestMatchIndex:n}}function areArgsValid(e,t){if(typeof e!=="string")return false;if(!Array.isArray(t))return false;if(!t.length)return false;if(t.find(e=>typeof e!=="string"))return false;return true}},453:function(e,t,r){var n=r(969);var i=r(9);var s=r(747);var o=function(){};var a=/^v?\.0/.test(process.version);var u=function(e){return typeof e==="function"};var p=function(e){if(!a)return false;if(!s)return false;return(e instanceof(s.ReadStream||o)||e instanceof(s.WriteStream||o))&&u(e.close)};var c=function(e){return e.setHeader&&u(e.abort)};var d=function(e,t,r,s){s=n(s);var a=false;e.on("close",function(){a=true});i(e,{readable:t,writable:r},function(e){if(e)return s(e);a=true;s()});var d=false;return function(t){if(a)return;if(d)return;d=true;if(p(e))return e.close(o);if(c(e))return e.abort();if(u(e.destroy))return e.destroy();s(t||new Error("stream was destroyed"))}};var l=function(e){e()};var g=function(e,t){return e.pipe(t)};var m=function(){var e=Array.prototype.slice.call(arguments);var t=u(e[e.length-1]||o)&&e.pop()||o;if(Array.isArray(e[0]))e=e[0];if(e.length<2)throw new Error("pump requires two streams per minimum");var r;var n=e.map(function(i,s){var o=s0;return d(i,o,a,function(e){if(!r)r=e;if(e)n.forEach(l);if(o)return;n.forEach(l);t(r)})});return e.reduce(g)};e.exports=m},454:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:true});function _interopDefault(e){return e&&typeof e==="object"&&"default"in e?e["default"]:e}var n=_interopDefault(r(413));var i=_interopDefault(r(605));var s=_interopDefault(r(835));var o=_interopDefault(r(34));var a=_interopDefault(r(761));const u=n.Readable;const p=Symbol("buffer");const c=Symbol("type");class Blob{constructor(){this[c]="";const e=arguments[0];const t=arguments[1];const r=[];let n=0;if(e){const t=e;const i=Number(t.length);for(let e=0;e1&&arguments[1]!==undefined?arguments[1]:{},i=r.size;let s=i===undefined?0:i;var o=r.timeout;let a=o===undefined?0:o;if(e==null){e=null}else if(isURLSearchParams(e)){e=Buffer.from(e.toString())}else if(isBlob(e)) ;else if(Buffer.isBuffer(e)) ;else if(Object.prototype.toString.call(e)==="[object ArrayBuffer]"){e=Buffer.from(e)}else if(ArrayBuffer.isView(e)){e=Buffer.from(e.buffer,e.byteOffset,e.byteLength)}else if(e instanceof n) ;else{e=Buffer.from(String(e))}this[l]={body:e,disturbed:false,error:null};this.size=s;this.timeout=a;if(e instanceof n){e.on("error",function(e){const r=e.name==="AbortError"?e:new FetchError(`Invalid response body while trying to fetch ${t.url}: ${e.message}`,"system",e);t[l].error=r})}}Body.prototype={get body(){return this[l].body},get bodyUsed(){return this[l].disturbed},arrayBuffer(){return consumeBody.call(this).then(function(e){return e.buffer.slice(e.byteOffset,e.byteOffset+e.byteLength)})},blob(){let e=this.headers&&this.headers.get("content-type")||"";return consumeBody.call(this).then(function(t){return Object.assign(new Blob([],{type:e.toLowerCase()}),{[p]:t})})},json(){var e=this;return consumeBody.call(this).then(function(t){try{return JSON.parse(t.toString())}catch(t){return Body.Promise.reject(new FetchError(`invalid json response body at ${e.url} reason: ${t.message}`,"invalid-json"))}})},text(){return consumeBody.call(this).then(function(e){return e.toString()})},buffer(){return consumeBody.call(this)},textConverted(){var e=this;return consumeBody.call(this).then(function(t){return convertBody(t,e.headers)})}};Object.defineProperties(Body.prototype,{body:{enumerable:true},bodyUsed:{enumerable:true},arrayBuffer:{enumerable:true},blob:{enumerable:true},json:{enumerable:true},text:{enumerable:true}});Body.mixIn=function(e){for(const t of Object.getOwnPropertyNames(Body.prototype)){if(!(t in e)){const r=Object.getOwnPropertyDescriptor(Body.prototype,t);Object.defineProperty(e,t,r)}}};function consumeBody(){var e=this;if(this[l].disturbed){return Body.Promise.reject(new TypeError(`body used already for: ${this.url}`))}this[l].disturbed=true;if(this[l].error){return Body.Promise.reject(this[l].error)}let t=this.body;if(t===null){return Body.Promise.resolve(Buffer.alloc(0))}if(isBlob(t)){t=t.stream()}if(Buffer.isBuffer(t)){return Body.Promise.resolve(t)}if(!(t instanceof n)){return Body.Promise.resolve(Buffer.alloc(0))}let r=[];let i=0;let s=false;return new Body.Promise(function(n,o){let a;if(e.timeout){a=setTimeout(function(){s=true;o(new FetchError(`Response timeout while trying to fetch ${e.url} (over ${e.timeout}ms)`,"body-timeout"))},e.timeout)}t.on("error",function(t){if(t.name==="AbortError"){s=true;o(t)}else{o(new FetchError(`Invalid response body while trying to fetch ${e.url}: ${t.message}`,"system",t))}});t.on("data",function(t){if(s||t===null){return}if(e.size&&i+t.length>e.size){s=true;o(new FetchError(`content size at ${e.url} over limit: ${e.size}`,"max-size"));return}i+=t.length;r.push(t)});t.on("end",function(){if(s){return}clearTimeout(a);try{n(Buffer.concat(r,i))}catch(t){o(new FetchError(`Could not create Buffer from response body for ${e.url}: ${t.message}`,"system",t))}})})}function convertBody(e,t){if(typeof d!=="function"){throw new Error("The package `encoding` must be installed to use the textConverted() function")}const r=t.get("content-type");let n="utf-8";let i,s;if(r){i=/charset=([^;]*)/i.exec(r)}s=e.slice(0,1024).toString();if(!i&&s){i=/0&&arguments[0]!==undefined?arguments[0]:undefined;this[f]=Object.create(null);if(e instanceof Headers){const t=e.raw();const r=Object.keys(t);for(const e of r){for(const r of t[e]){this.append(e,r)}}return}if(e==null) ;else if(typeof e==="object"){const t=e[Symbol.iterator];if(t!=null){if(typeof t!=="function"){throw new TypeError("Header pairs must be iterable")}const r=[];for(const t of e){if(typeof t!=="object"||typeof t[Symbol.iterator]!=="function"){throw new TypeError("Each header pair must be iterable")}r.push(Array.from(t))}for(const e of r){if(e.length!==2){throw new TypeError("Each header pair must be a name/value tuple")}this.append(e[0],e[1])}}else{for(const t of Object.keys(e)){const r=e[t];this.append(t,r)}}}else{throw new TypeError("Provided initializer must be an object")}}get(e){e=`${e}`;validateName(e);const t=find(this[f],e);if(t===undefined){return null}return this[f][t].join(", ")}forEach(e){let t=arguments.length>1&&arguments[1]!==undefined?arguments[1]:undefined;let r=getHeaders(this);let n=0;while(n1&&arguments[1]!==undefined?arguments[1]:"key+value";const r=Object.keys(e[f]).sort();return r.map(t==="key"?function(e){return e.toLowerCase()}:t==="value"?function(t){return e[f][t].join(", ")}:function(t){return[t.toLowerCase(),e[f][t].join(", ")]})}const y=Symbol("internal");function createHeadersIterator(e,t){const r=Object.create(b);r[y]={target:e,kind:t,index:0};return r}const b=Object.setPrototypeOf({next(){if(!this||Object.getPrototypeOf(this)!==b){throw new TypeError("Value of `this` is not a HeadersIterator")}var e=this[y];const t=e.target,r=e.kind,n=e.index;const i=getHeaders(t,r);const s=i.length;if(n>=s){return{value:undefined,done:true}}this[y].index=n+1;return{value:i[n],done:false}}},Object.getPrototypeOf(Object.getPrototypeOf([][Symbol.iterator]())));Object.defineProperty(b,Symbol.toStringTag,{value:"HeadersIterator",writable:false,enumerable:false,configurable:true});function exportNodeCompatibleHeaders(e){const t=Object.assign({__proto__:null},e[f]);const r=find(e[f],"Host");if(r!==undefined){t[r]=t[r][0]}return t}function createHeadersLenient(e){const t=new Headers;for(const r of Object.keys(e)){if(m.test(r)){continue}if(Array.isArray(e[r])){for(const n of e[r]){if(h.test(n)){continue}if(t[f][r]===undefined){t[f][r]=[n]}else{t[f][r].push(n)}}}else if(!h.test(e[r])){t[f][r]=[e[r]]}}return t}const w=Symbol("Response internals");const _=i.STATUS_CODES;class Response{constructor(){let e=arguments.length>0&&arguments[0]!==undefined?arguments[0]:null;let t=arguments.length>1&&arguments[1]!==undefined?arguments[1]:{};Body.call(this,e,t);const r=t.status||200;const n=new Headers(t.headers);if(e!=null&&!n.has("Content-Type")){const t=extractContentType(e);if(t){n.append("Content-Type",t)}}this[w]={url:t.url,status:r,statusText:t.statusText||_[r],headers:n,counter:t.counter}}get url(){return this[w].url||""}get status(){return this[w].status}get ok(){return this[w].status>=200&&this[w].status<300}get redirected(){return this[w].counter>0}get statusText(){return this[w].statusText}get headers(){return this[w].headers}clone(){return new Response(clone(this),{url:this.url,status:this.status,statusText:this.statusText,headers:this.headers,ok:this.ok,redirected:this.redirected})}}Body.mixIn(Response.prototype);Object.defineProperties(Response.prototype,{url:{enumerable:true},status:{enumerable:true},ok:{enumerable:true},redirected:{enumerable:true},statusText:{enumerable:true},headers:{enumerable:true},clone:{enumerable:true}});Object.defineProperty(Response.prototype,Symbol.toStringTag,{value:"Response",writable:false,enumerable:false,configurable:true});const q=Symbol("Request internals");const v=s.parse;const E=s.format;const T="destroy"in n.Readable.prototype;function isRequest(e){return typeof e==="object"&&typeof e[q]==="object"}function isAbortSignal(e){const t=e&&typeof e==="object"&&Object.getPrototypeOf(e);return!!(t&&t.constructor.name==="AbortSignal")}class Request{constructor(e){let t=arguments.length>1&&arguments[1]!==undefined?arguments[1]:{};let r;if(!isRequest(e)){if(e&&e.href){r=v(e.href)}else{r=v(`${e}`)}e={}}else{r=v(e.url)}let n=t.method||e.method||"GET";n=n.toUpperCase();if((t.body!=null||isRequest(e)&&e.body!==null)&&(n==="GET"||n==="HEAD")){throw new TypeError("Request with GET/HEAD method cannot have body")}let i=t.body!=null?t.body:isRequest(e)&&e.body!==null?clone(e):null;Body.call(this,i,{timeout:t.timeout||e.timeout||0,size:t.size||e.size||0});const s=new Headers(t.headers||e.headers||{});if(i!=null&&!s.has("Content-Type")){const e=extractContentType(i);if(e){s.append("Content-Type",e)}}let o=isRequest(e)?e.signal:null;if("signal"in t)o=t.signal;if(o!=null&&!isAbortSignal(o)){throw new TypeError("Expected signal to be an instanceof AbortSignal")}this[q]={method:n,redirect:t.redirect||e.redirect||"follow",headers:s,parsedURL:r,signal:o};this.follow=t.follow!==undefined?t.follow:e.follow!==undefined?e.follow:20;this.compress=t.compress!==undefined?t.compress:e.compress!==undefined?e.compress:true;this.counter=t.counter||e.counter||0;this.agent=t.agent||e.agent}get method(){return this[q].method}get url(){return E(this[q].parsedURL)}get headers(){return this[q].headers}get redirect(){return this[q].redirect}get signal(){return this[q].signal}clone(){return new Request(this)}}Body.mixIn(Request.prototype);Object.defineProperty(Request.prototype,Symbol.toStringTag,{value:"Request",writable:false,enumerable:false,configurable:true});Object.defineProperties(Request.prototype,{method:{enumerable:true},url:{enumerable:true},headers:{enumerable:true},redirect:{enumerable:true},clone:{enumerable:true},signal:{enumerable:true}});function getNodeRequestOptions(e){const t=e[q].parsedURL;const r=new Headers(e[q].headers);if(!r.has("Accept")){r.set("Accept","*/*")}if(!t.protocol||!t.hostname){throw new TypeError("Only absolute URLs are supported")}if(!/^https?:$/.test(t.protocol)){throw new TypeError("Only HTTP(S) protocols are supported")}if(e.signal&&e.body instanceof n.Readable&&!T){throw new Error("Cancellation of streamed requests with AbortSignal is not supported in node < 8")}let i=null;if(e.body==null&&/^(POST|PUT)$/i.test(e.method)){i="0"}if(e.body!=null){const t=getTotalBytes(e);if(typeof t==="number"){i=String(t)}}if(i){r.set("Content-Length",i)}if(!r.has("User-Agent")){r.set("User-Agent","node-fetch/1.0 (+https://github.com/bitinn/node-fetch)")}if(e.compress&&!r.has("Accept-Encoding")){r.set("Accept-Encoding","gzip,deflate")}let s=e.agent;if(typeof s==="function"){s=s(t)}if(!r.has("Connection")&&!s){r.set("Connection","close")}return Object.assign({},t,{method:e.method,headers:exportNodeCompatibleHeaders(r),agent:s})}function AbortError(e){Error.call(this,e);this.type="aborted";this.message=e;Error.captureStackTrace(this,this.constructor)}AbortError.prototype=Object.create(Error.prototype);AbortError.prototype.constructor=AbortError;AbortError.prototype.name="AbortError";const C=n.PassThrough;const j=s.resolve;function fetch(e,t){if(!fetch.Promise){throw new Error("native promise missing, set fetch.Promise to your favorite alternative")}Body.Promise=fetch.Promise;return new fetch.Promise(function(r,s){const u=new Request(e,t);const p=getNodeRequestOptions(u);const c=(p.protocol==="https:"?o:i).request;const d=u.signal;let l=null;const g=function abort(){let e=new AbortError("The user aborted a request.");s(e);if(u.body&&u.body instanceof n.Readable){u.body.destroy(e)}if(!l||!l.body)return;l.body.emit("error",e)};if(d&&d.aborted){g();return}const m=function abortAndFinalize(){g();finalize()};const h=c(p);let f;if(d){d.addEventListener("abort",m)}function finalize(){h.abort();if(d)d.removeEventListener("abort",m);clearTimeout(f)}if(u.timeout){h.once("socket",function(e){f=setTimeout(function(){s(new FetchError(`network timeout at: ${u.url}`,"request-timeout"));finalize()},u.timeout)})}h.on("error",function(e){s(new FetchError(`request to ${u.url} failed, reason: ${e.message}`,"system",e));finalize()});h.on("response",function(e){clearTimeout(f);const t=createHeadersLenient(e.headers);if(fetch.isRedirect(e.statusCode)){const n=t.get("Location");const i=n===null?null:j(u.url,n);switch(u.redirect){case"error":s(new FetchError(`redirect mode is set to error: ${u.url}`,"no-redirect"));finalize();return;case"manual":if(i!==null){try{t.set("Location",i)}catch(e){s(e)}}break;case"follow":if(i===null){break}if(u.counter>=u.follow){s(new FetchError(`maximum redirect reached at: ${u.url}`,"max-redirect"));finalize();return}const n={headers:new Headers(u.headers),follow:u.follow,counter:u.counter+1,agent:u.agent,compress:u.compress,method:u.method,body:u.body,signal:u.signal,timeout:u.timeout};if(e.statusCode!==303&&u.body&&getTotalBytes(u)===null){s(new FetchError("Cannot follow redirect with body being a readable stream","unsupported-redirect"));finalize();return}if(e.statusCode===303||(e.statusCode===301||e.statusCode===302)&&u.method==="POST"){n.method="GET";n.body=undefined;n.headers.delete("content-length")}r(fetch(new Request(i,n)));finalize();return}}e.once("end",function(){if(d)d.removeEventListener("abort",m)});let n=e.pipe(new C);const i={url:u.url,status:e.statusCode,statusText:e.statusMessage,headers:t,size:u.size,timeout:u.timeout,counter:u.counter};const o=t.get("Content-Encoding");if(!u.compress||u.method==="HEAD"||o===null||e.statusCode===204||e.statusCode===304){l=new Response(n,i);r(l);return}const p={flush:a.Z_SYNC_FLUSH,finishFlush:a.Z_SYNC_FLUSH};if(o=="gzip"||o=="x-gzip"){n=n.pipe(a.createGunzip(p));l=new Response(n,i);r(l);return}if(o=="deflate"||o=="x-deflate"){const t=e.pipe(new C);t.once("data",function(e){if((e[0]&15)===8){n=n.pipe(a.createInflate())}else{n=n.pipe(a.createInflateRaw())}l=new Response(n,i);r(l)});return}if(o=="br"&&typeof a.createBrotliDecompress==="function"){n=n.pipe(a.createBrotliDecompress());l=new Response(n,i);r(l);return}l=new Response(n,i);r(l)});writeToStream(h,u)})}fetch.isRedirect=function(e){return e===301||e===302||e===303||e===307||e===308};fetch.Promise=global.Promise;e.exports=t=fetch;Object.defineProperty(t,"__esModule",{value:true});t.default=t;t.Headers=Headers;t.Request=Request;t.Response=Response;t.FetchError=FetchError},462:function(e){"use strict";const t=/([()\][%!^"`<>&|;, *?])/g;function escapeCommand(e){e=e.replace(t,"^$1");return e}function escapeArgument(e,r){e=`${e}`;e=e.replace(/(\\*)"/g,'$1$1\\"');e=e.replace(/(\\*)$/,"$1$1");e=`"${e}"`;e=e.replace(t,"^$1");if(r){e=e.replace(t,"^$1")}return e}e.exports.command=escapeCommand;e.exports.argument=escapeArgument},463:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:true});function _interopDefault(e){return e&&typeof e==="object"&&"default"in e?e["default"]:e}var n=r(692);var i=_interopDefault(r(969));const s=i(e=>console.warn(e));class RequestError extends Error{constructor(e,t,r){super(e);if(Error.captureStackTrace){Error.captureStackTrace(this,this.constructor)}this.name="HttpError";this.status=t;Object.defineProperty(this,"code",{get(){s(new n.Deprecation("[@octokit/request-error] `error.code` is deprecated, use `error.status`."));return t}});this.headers=r.headers||{};const i=Object.assign({},r.request);if(r.request.headers.authorization){i.headers=Object.assign({},r.request.headers,{authorization:r.request.headers.authorization.replace(/ .*$/," [REDACTED]")})}i.url=i.url.replace(/\bclient_secret=\w+/g,"client_secret=[REDACTED]").replace(/\baccess_token=\w+/g,"access_token=[REDACTED]");this.request=i}}t.RequestError=RequestError},469:function(e,t,r){"use strict";var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};var i=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var r in e)if(Object.hasOwnProperty.call(e,r))t[r]=e[r];t["default"]=e;return t};Object.defineProperty(t,"__esModule",{value:true});const s=r(503);const o=n(r(613));const a=i(r(262));o.default.prototype=new o.default;t.context=new a.Context;class GitHub extends o.default{constructor(e,t={}){super(Object.assign(Object.assign({},t),{auth:`token ${e}`}));this.graphql=s.defaults({headers:{authorization:`token ${e}`}})}}t.GitHub=GitHub},470:function(e,t,r){"use strict";var n=this&&this.__awaiter||function(e,t,r,n){function adopt(e){return e instanceof r?e:new r(function(t){t(e)})}return new(r||(r=Promise))(function(r,i){function fulfilled(e){try{step(n.next(e))}catch(e){i(e)}}function rejected(e){try{step(n["throw"](e))}catch(e){i(e)}}function step(e){e.done?r(e.value):adopt(e.value).then(fulfilled,rejected)}step((n=n.apply(e,t||[])).next())})};var i=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var r in e)if(Object.hasOwnProperty.call(e,r))t[r]=e[r];t["default"]=e;return t};Object.defineProperty(t,"__esModule",{value:true});const s=r(431);const o=r(102);const a=r(82);const u=i(r(87));const p=i(r(622));var c;(function(e){e[e["Success"]=0]="Success";e[e["Failure"]=1]="Failure"})(c=t.ExitCode||(t.ExitCode={}));function exportVariable(e,t){const r=a.toCommandValue(t);process.env[e]=r;const n=process.env["GITHUB_ENV"]||"";if(n){const t="_GitHubActionsFileCommandDelimeter_";const n=`${e}<<${t}${u.EOL}${r}${u.EOL}${t}`;o.issueCommand("ENV",n)}else{s.issueCommand("set-env",{name:e},r)}}t.exportVariable=exportVariable;function setSecret(e){s.issueCommand("add-mask",{},e)}t.setSecret=setSecret;function addPath(e){const t=process.env["GITHUB_PATH"]||"";if(t){o.issueCommand("PATH",e)}else{s.issueCommand("add-path",{},e)}process.env["PATH"]=`${e}${p.delimiter}${process.env["PATH"]}`}t.addPath=addPath;function getInput(e,t){const r=process.env[`INPUT_${e.replace(/ /g,"_").toUpperCase()}`]||"";if(t&&t.required&&!r){throw new Error(`Input required and not supplied: ${e}`)}return r.trim()}t.getInput=getInput;function setOutput(e,t){s.issueCommand("set-output",{name:e},t)}t.setOutput=setOutput;function setCommandEcho(e){s.issue("echo",e?"on":"off")}t.setCommandEcho=setCommandEcho;function setFailed(e){process.exitCode=c.Failure;error(e)}t.setFailed=setFailed;function isDebug(){return process.env["RUNNER_DEBUG"]==="1"}t.isDebug=isDebug;function debug(e){s.issueCommand("debug",{},e)}t.debug=debug;function error(e){s.issue("error",e instanceof Error?e.toString():e)}t.error=error;function warning(e){s.issue("warning",e instanceof Error?e.toString():e)}t.warning=warning;function info(e){process.stdout.write(e+u.EOL)}t.info=info;function startGroup(e){s.issue("group",e)}t.startGroup=startGroup;function endGroup(){s.issue("endgroup")}t.endGroup=endGroup;function group(e,t){return n(this,void 0,void 0,function*(){startGroup(e);let r;try{r=yield t()}finally{endGroup()}return r})}t.group=group;function saveState(e,t){s.issueCommand("save-state",{name:e},t)}t.saveState=saveState;function getState(e){return process.env[`STATE_${e}`]||""}t.getState=getState},471:function(e,t,r){e.exports=authenticationBeforeRequest;const n=r(675);const i=r(126);function authenticationBeforeRequest(e,t){if(!e.auth.type){return}if(e.auth.type==="basic"){const r=n(`${e.auth.username}:${e.auth.password}`);t.headers.authorization=`Basic ${r}`;return}if(e.auth.type==="token"){t.headers.authorization=`token ${e.auth.token}`;return}if(e.auth.type==="app"){t.headers.authorization=`Bearer ${e.auth.token}`;const r=t.headers.accept.split(",").concat("application/vnd.github.machine-man-preview+json");t.headers.accept=i(r).filter(Boolean).join(",");return}t.url+=t.url.indexOf("?")===-1?"?":"&";if(e.auth.token){t.url+=`access_token=${encodeURIComponent(e.auth.token)}`;return}const r=encodeURIComponent(e.auth.key);const s=encodeURIComponent(e.auth.secret);t.url+=`client_id=${r}&client_secret=${s}`}},489:function(e,t,r){"use strict";const n=r(622);const i=r(814);const s=r(39)();function resolveCommandAttempt(e,t){const r=process.cwd();const o=e.options.cwd!=null;if(o){try{process.chdir(e.options.cwd)}catch(e){}}let a;try{a=i.sync(e.command,{path:(e.options.env||process.env)[s],pathExt:t?n.delimiter:undefined})}catch(e){}finally{process.chdir(r)}if(a){a=n.resolve(o?e.options.cwd:"",a)}return a}function resolveCommand(e){return resolveCommandAttempt(e)||resolveCommandAttempt(e,true)}e.exports=resolveCommand},500:function(e,t,r){e.exports=graphql;const n=r(862);const i=["method","baseUrl","url","headers","request","query"];function graphql(e,t,r){if(typeof t==="string"){r=Object.assign({query:t},r)}else{r=t}const s=Object.keys(r).reduce((e,t)=>{if(i.includes(t)){e[t]=r[t];return e}if(!e.variables){e.variables={}}e.variables[t]=r[t];return e},{});return e(s).then(e=>{if(e.data.errors){throw new n(s,e)}return e.data.data})}},503:function(e,t,r){const{request:n}=r(753);const i=r(46);const s=r(314).version;const o=`octokit-graphql.js/${s} ${i()}`;const a=r(0);e.exports=a(n,{method:"POST",url:"/graphql",headers:{"user-agent":o}})},510:function(e){e.exports=addHook;function addHook(e,t,r,n){var i=n;if(!e.registry[r]){e.registry[r]=[]}if(t==="before"){n=function(e,t){return Promise.resolve().then(i.bind(null,t)).then(e.bind(null,t))}}if(t==="after"){n=function(e,t){var r;return Promise.resolve().then(e.bind(null,t)).then(function(e){r=e;return i(r,t)}).then(function(){return r})}}if(t==="error"){n=function(e,t){return Promise.resolve().then(e.bind(null,t)).catch(function(e){return i(e,t)})}}e.registry[r].push({hook:n,orig:i})}},523:function(e,t,r){var n=r(363);var i=r(510);var s=r(763);var o=Function.bind;var a=o.bind(o);function bindApi(e,t,r){var n=a(s,null).apply(null,r?[t,r]:[t]);e.api={remove:n};e.remove=n;["before","error","after","wrap"].forEach(function(n){var s=r?[t,n,r]:[t,n];e[n]=e.api[n]=a(i,null).apply(null,s)})}function HookSingular(){var e="h";var t={registry:{}};var r=n.bind(null,t,e);bindApi(r,t,e);return r}function HookCollection(){var e={registry:{}};var t=n.bind(null,e);bindApi(t,e);return t}var u=false;function Hook(){if(!u){console.warn('[before-after-hook]: "Hook()" repurposing warning, use "Hook.Collection()". Read more: https://git.io/upgrade-before-after-hook-to-1.4');u=true}return HookCollection()}Hook.Singular=HookSingular.bind();Hook.Collection=HookCollection.bind();e.exports=Hook;e.exports.Hook=Hook;e.exports.Singular=Hook.Singular;e.exports.Collection=Hook.Collection},529:function(e,t,r){const n=r(47);e.exports=n()},536:function(e,t,r){e.exports=hasFirstPage;const n=r(370);const i=r(577);function hasFirstPage(e){n(`octokit.hasFirstPage() – You can use octokit.paginate or async iterators instead: https://github.com/octokit/rest.js#pagination.`);return i(e).first}},549:function(e,t,r){var n=r(835);var i=r(605);var s=r(34);var o=r(357);var a=r(413).Writable;var u=r(784)("follow-redirects");var p={GET:true,HEAD:true,OPTIONS:true,TRACE:true};var c=Object.create(null);["abort","aborted","error","socket","timeout"].forEach(function(e){c[e]=function(t){this._redirectable.emit(e,t)}});function RedirectableRequest(e,t){a.call(this);e.headers=e.headers||{};this._options=e;this._redirectCount=0;this._redirects=[];this._requestBodyLength=0;this._requestBodyBuffers=[];if(e.host){if(!e.hostname){e.hostname=e.host}delete e.host}if(t){this.on("response",t)}var r=this;this._onNativeResponse=function(e){r._processResponse(e)};if(!e.pathname&&e.path){var n=e.path.indexOf("?");if(n<0){e.pathname=e.path}else{e.pathname=e.path.substring(0,n);e.search=e.path.substring(n)}}this._performRequest()}RedirectableRequest.prototype=Object.create(a.prototype);RedirectableRequest.prototype.write=function(e,t,r){if(!(typeof e==="string"||typeof e==="object"&&"length"in e)){throw new Error("data should be a string, Buffer or Uint8Array")}if(typeof t==="function"){r=t;t=null}if(e.length===0){if(r){r()}return}if(this._requestBodyLength+e.length<=this._options.maxBodyLength){this._requestBodyLength+=e.length;this._requestBodyBuffers.push({data:e,encoding:t});this._currentRequest.write(e,t,r)}else{this.emit("error",new Error("Request body larger than maxBodyLength limit"));this.abort()}};RedirectableRequest.prototype.end=function(e,t,r){if(typeof e==="function"){r=e;e=t=null}else if(typeof t==="function"){r=t;t=null}var n=this._currentRequest;this.write(e||"",t,function(){n.end(null,null,r)})};RedirectableRequest.prototype.setHeader=function(e,t){this._options.headers[e]=t;this._currentRequest.setHeader(e,t)};RedirectableRequest.prototype.removeHeader=function(e){delete this._options.headers[e];this._currentRequest.removeHeader(e)};["abort","flushHeaders","getHeader","setNoDelay","setSocketKeepAlive","setTimeout"].forEach(function(e){RedirectableRequest.prototype[e]=function(t,r){return this._currentRequest[e](t,r)}});["aborted","connection","socket"].forEach(function(e){Object.defineProperty(RedirectableRequest.prototype,e,{get:function(){return this._currentRequest[e]}})});RedirectableRequest.prototype._performRequest=function(){var e=this._options.protocol;var t=this._options.nativeProtocols[e];if(!t){this.emit("error",new Error("Unsupported protocol "+e));return}if(this._options.agents){var r=e.substr(0,e.length-1);this._options.agent=this._options.agents[r]}var i=this._currentRequest=t.request(this._options,this._onNativeResponse);this._currentUrl=n.format(this._options);i._redirectable=this;for(var s in c){if(s){i.on(s,c[s])}}if(this._isRedirect){var o=0;var a=this._requestBodyBuffers;(function writeNext(){if(o=300&&e.statusCode<400){if(++this._redirectCount>this._options.maxRedirects){this.emit("error",new Error("Max redirects exceeded."));return}var r;var i=this._options.headers;if(e.statusCode!==307&&!(this._options.method in p)){this._options.method="GET";this._requestBodyBuffers=[];for(r in i){if(/^content-/i.test(r)){delete i[r]}}}if(!this._isRedirect){for(r in i){if(/^host$/i.test(r)){delete i[r]}}}var s=n.resolve(this._currentUrl,t);u("redirecting to",s);Object.assign(this._options,n.parse(s));this._isRedirect=true;this._performRequest();e.destroy()}else{e.responseUrl=this._currentUrl;e.redirects=this._redirects;this.emit("response",e);this._requestBodyBuffers=[]}};function wrap(e){var t={maxRedirects:21,maxBodyLength:10*1024*1024};var r={};Object.keys(e).forEach(function(i){var s=i+":";var a=r[s]=e[i];var p=t[i]=Object.create(a);p.request=function(e,i){if(typeof e==="string"){e=n.parse(e);e.maxRedirects=t.maxRedirects}else{e=Object.assign({protocol:s,maxRedirects:t.maxRedirects,maxBodyLength:t.maxBodyLength},e)}e.nativeProtocols=r;o.equal(e.protocol,s,"protocol mismatch");u("options",e);return new RedirectableRequest(e,i)};p.get=function(e,t){var r=p.request(e,t);r.end();return r}});return t}e.exports=wrap({http:i,https:s});e.exports.wrap=wrap},550:function(e,t,r){e.exports=getNextPage;const n=r(265);function getNextPage(e,t,r){return n(e,t,"next",r)}},558:function(e,t,r){e.exports=hasPreviousPage;const n=r(370);const i=r(577);function hasPreviousPage(e){n(`octokit.hasPreviousPage() – You can use octokit.paginate or async iterators instead: https://github.com/octokit/rest.js#pagination.`);return i(e).prev}},562:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:true});function _interopDefault(e){return e&&typeof e==="object"&&"default"in e?e["default"]:e}var n=_interopDefault(r(2));function getUserAgent(){try{return`Node.js/${process.version.substr(1)} (${n()}; ${process.arch})`}catch(e){if(/wmic os get Caption/.test(e.message)){return"Windows "}throw e}}t.getUserAgent=getUserAgent},563:function(e,t,r){e.exports=getPreviousPage;const n=r(265);function getPreviousPage(e,t,r){return n(e,t,"prev",r)}},564:function(e,t,r){"use strict";var n=r(26);e.exports=function settle(e,t,r){var i=r.config.validateStatus;if(!i||i(r.status)){e(r)}else{t(n("Request failed with status code "+r.status,r.config,null,r.request,r))}}},568:function(e,t,r){"use strict";const n=r(622);const i=r(948);const s=r(489);const o=r(462);const a=r(389);const u=r(280);const p=process.platform==="win32";const c=/\.(?:com|exe)$/i;const d=/node_modules[\\/].bin[\\/][^\\/]+\.cmd$/i;const l=i(()=>u.satisfies(process.version,"^4.8.0 || ^5.7.0 || >= 6.0.0",true))||false;function detectShebang(e){e.file=s(e);const t=e.file&&a(e.file);if(t){e.args.unshift(e.file);e.command=t;return s(e)}return e.file}function parseNonShell(e){if(!p){return e}const t=detectShebang(e);const r=!c.test(t);if(e.options.forceShell||r){const r=d.test(t);e.command=n.normalize(e.command);e.command=o.command(e.command);e.args=e.args.map(e=>o.argument(e,r));const i=[e.command].concat(e.args).join(" ");e.args=["/d","/s","/c",`"${i}"`];e.command=process.env.comspec||"cmd.exe";e.options.windowsVerbatimArguments=true}return e}function parseShell(e){if(l){return e}const t=[e.command].concat(e.args).join(" ");if(p){e.command=typeof e.options.shell==="string"?e.options.shell:process.env.comspec||"cmd.exe";e.args=["/d","/s","/c",`"${t}"`];e.options.windowsVerbatimArguments=true}else{if(typeof e.options.shell==="string"){e.command=e.options.shell}else if(process.platform==="android"){e.command="/system/bin/sh"}else{e.command="/bin/sh"}e.args=["-c",t]}return e}function parse(e,t,r){if(t&&!Array.isArray(t)){r=t;t=null}t=t?t.slice(0):[];r=Object.assign({},r);const n={command:e,args:t,options:r,file:undefined,original:{command:e,args:t}};return r.shell?parseShell(n):parseNonShell(n)}e.exports=parse},577:function(e){e.exports=getPageLinks;function getPageLinks(e){e=e.link||e.headers.link||"";const t={};e.replace(/<([^>]*)>;\s*rel="([\w]*)"/g,(e,r,n)=>{t[n]=r});return t}},586:function(e,t,r){e.exports=octokitRestApiEndpoints;const n=r(705);function octokitRestApiEndpoints(e){n.gitdata=n.git;n.authorization=n.oauthAuthorizations;n.pullRequests=n.pulls;e.registerEndpoints(n)}},589:function(e,t,r){"use strict";var n=r(35);e.exports=function transformData(e,t,r){n.forEach(r,function transform(r){e=r(e,t)});return e}},590:function(e){"use strict";e.exports=function isAbsoluteURL(e){return/^([a-z][a-z\d\+\-\.]*:)?\/\//i.test(e)}},605:function(e){e.exports=require("http")},613:function(e,t,r){const n=r(529);const i=[r(372),r(19),r(190),r(148),r(248),r(586),r(430),r(850)];e.exports=n.plugin(i)},614:function(e){e.exports=require("events")},619:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:true});function _interopDefault(e){return e&&typeof e==="object"&&"default"in e?e["default"]:e}var n=_interopDefault(r(2));function getUserAgent(){try{return`Node.js/${process.version.substr(1)} (${n()}; ${process.arch})`}catch(e){if(/wmic os get Caption/.test(e.message)){return"Windows "}throw e}}t.getUserAgent=getUserAgent},621:function(e,t,r){"use strict";const n=r(622);const i=r(39);e.exports=(e=>{e=Object.assign({cwd:process.cwd(),path:process.env[i()]},e);let t;let r=n.resolve(e.cwd);const s=[];while(t!==r){s.push(n.join(r,"node_modules/.bin"));t=r;r=n.resolve(r,"..")}s.push(n.dirname(process.execPath));return s.concat(e.path).join(n.delimiter)});e.exports.env=(t=>{t=Object.assign({env:process.env},t);const r=Object.assign({},t.env);const n=i({env:r});t.path=r[n];r[n]=e.exports(t);return r})},622:function(e){e.exports=require("path")},631:function(e,t,r){"use strict";var n=r(35);var i=["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"];e.exports=function parseHeaders(e){var t={};var r;var s;var o;if(!e){return t}n.forEach(e.split("\n"),function parser(e){o=e.indexOf(":");r=n.trim(e.substr(0,o)).toLowerCase();s=n.trim(e.substr(o+1));if(r){if(t[r]&&i.indexOf(r)>=0){return}if(r==="set-cookie"){t[r]=(t[r]?t[r]:[]).concat([s])}else{t[r]=t[r]?t[r]+", "+s:s}}});return t}},649:function(e,t,r){e.exports=getLastPage;const n=r(265);function getLastPage(e,t,r){return n(e,t,"last",r)}},654:function(e){e.exports=["SIGABRT","SIGALRM","SIGHUP","SIGINT","SIGTERM"];if(process.platform!=="win32"){e.exports.push("SIGVTALRM","SIGXCPU","SIGXFSZ","SIGUSR2","SIGTRAP","SIGSYS","SIGQUIT","SIGIOT")}if(process.platform==="linux"){e.exports.push("SIGIO","SIGPOLL","SIGPWR","SIGSTKFLT","SIGUNUSED")}},669:function(e){e.exports=require("util")},670:function(e,t,r){"use strict";var n=r(35);var i=r(564);var s=r(960);var o=r(133);var a=r(605);var u=r(34);var p=r(549).http;var c=r(549).https;var d=r(835);var l=r(761);var g=r(361);var m=r(26);var h=r(369);var f=/https:?/;e.exports=function httpAdapter(e){return new Promise(function dispatchHttpRequest(t,r){var y=function resolve(e){t(e)};var b=function reject(e){r(e)};var w=e.data;var _=e.headers;if(!_["User-Agent"]&&!_["user-agent"]){_["User-Agent"]="axios/"+g.version}if(w&&!n.isStream(w)){if(Buffer.isBuffer(w)){}else if(n.isArrayBuffer(w)){w=Buffer.from(new Uint8Array(w))}else if(n.isString(w)){w=Buffer.from(w,"utf-8")}else{return b(m("Data after transformation must be a string, an ArrayBuffer, a Buffer, or a Stream",e))}_["Content-Length"]=w.length}var q=undefined;if(e.auth){var v=e.auth.username||"";var E=e.auth.password||"";q=v+":"+E}var T=s(e.baseURL,e.url);var C=d.parse(T);var j=C.protocol||"http:";if(!q&&C.auth){var k=C.auth.split(":");var S=k[0]||"";var O=k[1]||"";q=S+":"+O}if(q){delete _.Authorization}var x=f.test(j);var P=x?e.httpsAgent:e.httpAgent;var R={path:o(C.path,e.params,e.paramsSerializer).replace(/^\?/,""),method:e.method.toUpperCase(),headers:_,agent:P,agents:{http:e.httpAgent,https:e.httpsAgent},auth:q};if(e.socketPath){R.socketPath=e.socketPath}else{R.hostname=C.hostname;R.port=C.port}var A=e.proxy;if(!A&&A!==false){var G=j.slice(0,-1)+"_proxy";var F=process.env[G]||process.env[G.toUpperCase()];if(F){var D=d.parse(F);var B=process.env.no_proxy||process.env.NO_PROXY;var I=true;if(B){var L=B.split(",").map(function trim(e){return e.trim()});I=!L.some(function proxyMatch(e){if(!e){return false}if(e==="*"){return true}if(e[0]==="."&&C.hostname.substr(C.hostname.length-e.length)===e){return true}return C.hostname===e})}if(I){A={host:D.hostname,port:D.port};if(D.auth){var U=D.auth.split(":");A.auth={username:U[0],password:U[1]}}}}}if(A){R.hostname=A.host;R.host=A.host;R.headers.host=C.hostname+(C.port?":"+C.port:"");R.port=A.port;R.path=j+"//"+C.hostname+(C.port?":"+C.port:"")+R.path;if(A.auth){var $=Buffer.from(A.auth.username+":"+A.auth.password,"utf8").toString("base64");R.headers["Proxy-Authorization"]="Basic "+$}}var H;var N=x&&(A?f.test(A.protocol):true);if(e.transport){H=e.transport}else if(e.maxRedirects===0){H=N?u:a}else{if(e.maxRedirects){R.maxRedirects=e.maxRedirects}H=N?c:p}if(e.maxContentLength&&e.maxContentLength>-1){R.maxBodyLength=e.maxContentLength}var z=H.request(R,function handleResponse(t){if(z.aborted)return;var r=t;switch(t.headers["content-encoding"]){case"gzip":case"compress":case"deflate":r=t.statusCode===204?r:r.pipe(l.createUnzip());delete t.headers["content-encoding"];break}var n=t.req||z;var s={status:t.statusCode,statusText:t.statusMessage,headers:t.headers,config:e,request:n};if(e.responseType==="stream"){s.data=r;i(y,b,s)}else{var o=[];r.on("data",function handleStreamData(t){o.push(t);if(e.maxContentLength>-1&&Buffer.concat(o).length>e.maxContentLength){r.destroy();b(m("maxContentLength size of "+e.maxContentLength+" exceeded",e,null,n))}});r.on("error",function handleStreamError(t){if(z.aborted)return;b(h(t,e,null,n))});r.on("end",function handleStreamEnd(){var t=Buffer.concat(o);if(e.responseType!=="arraybuffer"){t=t.toString(e.responseEncoding)}s.data=t;i(y,b,s)})}});z.on("error",function handleRequestError(t){if(z.aborted)return;b(h(t,e,null,z))});if(e.timeout){z.setTimeout(e.timeout,function handleRequestTimeout(){z.abort();b(m("timeout of "+e.timeout+"ms exceeded",e,"ECONNABORTED",z))})}if(e.cancelToken){e.cancelToken.promise.then(function onCanceled(e){if(z.aborted)return;z.abort();b(e)})}if(n.isStream(w)){w.on("error",function handleStreamError(t){b(h(t,e,null,z))}).pipe(z)}else{z.end(w)}})}},674:function(e,t,r){e.exports=authenticate;const{Deprecation:n}=r(692);const i=r(969);const s=i((e,t)=>e.warn(t));function authenticate(e,t){s(e.octokit.log,new n('[@octokit/rest] octokit.authenticate() is deprecated. Use "auth" constructor option instead.'));if(!t){e.auth=false;return}switch(t.type){case"basic":if(!t.username||!t.password){throw new Error("Basic authentication requires both a username and password to be set")}break;case"oauth":if(!t.token&&!(t.key&&t.secret)){throw new Error("OAuth2 authentication requires a token or key & secret to be set")}break;case"token":case"app":if(!t.token){throw new Error("Token authentication requires a token to be set")}break;default:throw new Error("Invalid authentication type, must be 'basic', 'oauth', 'token' or 'app'")}e.auth=t}},675:function(e){e.exports=function btoa(e){return new Buffer(e).toString("base64")}},688:function(e,t,r){"use strict";var n=r(35);e.exports=n.isStandardBrowserEnv()?function standardBrowserEnv(){var e=/(msie|trident)/i.test(navigator.userAgent);var t=document.createElement("a");var r;function resolveURL(r){var n=r;if(e){t.setAttribute("href",n);n=t.href}t.setAttribute("href",n);return{href:t.href,protocol:t.protocol?t.protocol.replace(/:$/,""):"",host:t.host,search:t.search?t.search.replace(/^\?/,""):"",hash:t.hash?t.hash.replace(/^#/,""):"",hostname:t.hostname,port:t.port,pathname:t.pathname.charAt(0)==="/"?t.pathname:"/"+t.pathname}}r=resolveURL(window.location.href);return function isURLSameOrigin(e){var t=n.isString(e)?resolveURL(e):e;return t.protocol===r.protocol&&t.host===r.host}}():function nonStandardBrowserEnv(){return function isURLSameOrigin(){return true}}()},692:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:true});class Deprecation extends Error{constructor(e){super(e);if(Error.captureStackTrace){Error.captureStackTrace(this,this.constructor)}this.name="Deprecation"}}t.Deprecation=Deprecation},694:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:true});t.HIDDEN_MARKER="added_by_jira_lint";t.MARKER_REGEX=new RegExp(t.HIDDEN_MARKER);t.BOT_BRANCH_PATTERNS=[/^dependabot/,/^all-contributors/];t.DEFAULT_BRANCH_PATTERNS=[/^master$/,/^production$/,/^gh-pages$/];t.JIRA_REGEX_MATCHER=/\d+-(([A-Z0-9]{1,10})|[a-z0-9]{1,10})/g;t.DEFAULT_PR_ADDITIONS_THRESHOLD=800},696:function(e){"use strict";function isObject(e){return e!=null&&typeof e==="object"&&Array.isArray(e)===false}function isObjectObject(e){return isObject(e)===true&&Object.prototype.toString.call(e)==="[object Object]"}function isPlainObject(e){var t,r;if(isObjectObject(e)===false)return false;t=e.constructor;if(typeof t!=="function")return false;r=t.prototype;if(isObjectObject(r)===false)return false;if(r.hasOwnProperty("isPrototypeOf")===false){return false}return true}e.exports=isPlainObject},697:function(e){"use strict";e.exports=((e,t)=>{t=t||(()=>{});return e.then(e=>new Promise(e=>{e(t())}).then(()=>e),e=>new Promise(e=>{e(t())}).then(()=>{throw e}))})},705:function(e){e.exports={activity:{checkStarringRepo:{method:"GET",params:{owner:{required:true,type:"string"},repo:{required:true,type:"string"}},url:"/user/starred/:owner/:repo"},deleteRepoSubscription:{method:"DELETE",params:{owner:{required:true,type:"string"},repo:{required:true,type:"string"}},url:"/repos/:owner/:repo/subscription"},deleteThreadSubscription:{method:"DELETE",params:{thread_id:{required:true,type:"integer"}},url:"/notifications/threads/:thread_id/subscription"},getRepoSubscription:{method:"GET",params:{owner:{required:true,type:"string"},repo:{required:true,type:"string"}},url:"/repos/:owner/:repo/subscription"},getThread:{method:"GET",params:{thread_id:{required:true,type:"integer"}},url:"/notifications/threads/:thread_id"},getThreadSubscription:{method:"GET",params:{thread_id:{required:true,type:"integer"}},url:"/notifications/threads/:thread_id/subscription"},listEventsForOrg:{method:"GET",params:{org:{required:true,type:"string"},page:{type:"integer"},per_page:{type:"integer"},username:{required:true,type:"string"}},url:"/users/:username/events/orgs/:org"},listEventsForUser:{method:"GET",params:{page:{type:"integer"},per_page:{type:"integer"},username:{required:true,type:"string"}},url:"/users/:username/events"},listFeeds:{method:"GET",params:{},url:"/feeds"},listNotifications:{method:"GET",params:{all:{type:"boolean"},before:{type:"string"},page:{type:"integer"},participating:{type:"boolean"},per_page:{type:"integer"},since:{type:"string"}},url:"/notifications"},listNotificationsForRepo:{method:"GET",params:{all:{type:"boolean"},before:{type:"string"},owner:{required:true,type:"string"},page:{type:"integer"},participating:{type:"boolean"},per_page:{type:"integer"},repo:{required:true,type:"string"},since:{type:"string"}},url:"/repos/:owner/:repo/notifications"},listPublicEvents:{method:"GET",params:{page:{type:"integer"},per_page:{type:"integer"}},url:"/events"},listPublicEventsForOrg:{method:"GET",params:{org:{required:true,type:"string"},page:{type:"integer"},per_page:{type:"integer"}},url:"/orgs/:org/events"},listPublicEventsForRepoNetwork:{method:"GET",params:{owner:{required:true,type:"string"},page:{type:"integer"},per_page:{type:"integer"},repo:{required:true,type:"string"}},url:"/networks/:owner/:repo/events"},listPublicEventsForUser:{method:"GET",params:{page:{type:"integer"},per_page:{type:"integer"},username:{required:true,type:"string"}},url:"/users/:username/events/public"},listReceivedEventsForUser:{method:"GET",params:{page:{type:"integer"},per_page:{type:"integer"},username:{required:true,type:"string"}},url:"/users/:username/received_events"},listReceivedPublicEventsForUser:{method:"GET",params:{page:{type:"integer"},per_page:{type:"integer"},username:{required:true,type:"string"}},url:"/users/:username/received_events/public"},listRepoEvents:{method:"GET",params:{owner:{required:true,type:"string"},page:{type:"integer"},per_page:{type:"integer"},repo:{required:true,type:"string"}},url:"/repos/:owner/:repo/events"},listReposStarredByAuthenticatedUser:{method:"GET",params:{direction:{enum:["asc","desc"],type:"string"},page:{type:"integer"},per_page:{type:"integer"},sort:{enum:["created","updated"],type:"string"}},url:"/user/starred"},listReposStarredByUser:{method:"GET",params:{direction:{enum:["asc","desc"],type:"string"},page:{type:"integer"},per_page:{type:"integer"},sort:{enum:["created","updated"],type:"string"},username:{required:true,type:"string"}},url:"/users/:username/starred"},listReposWatchedByUser:{method:"GET",params:{page:{type:"integer"},per_page:{type:"integer"},username:{required:true,type:"string"}},url:"/users/:username/subscriptions"},listStargazersForRepo:{method:"GET",params:{owner:{required:true,type:"string"},page:{type:"integer"},per_page:{type:"integer"},repo:{required:true,type:"string"}},url:"/repos/:owner/:repo/stargazers"},listWatchedReposForAuthenticatedUser:{method:"GET",params:{page:{type:"integer"},per_page:{type:"integer"}},url:"/user/subscriptions"},listWatchersForRepo:{method:"GET",params:{owner:{required:true,type:"string"},page:{type:"integer"},per_page:{type:"integer"},repo:{required:true,type:"string"}},url:"/repos/:owner/:repo/subscribers"},markAsRead:{method:"PUT",params:{last_read_at:{type:"string"}},url:"/notifications"},markNotificationsAsReadForRepo:{method:"PUT",params:{last_read_at:{type:"string"},owner:{required:true,type:"string"},repo:{required:true,type:"string"}},url:"/repos/:owner/:repo/notifications"},markThreadAsRead:{method:"PATCH",params:{thread_id:{required:true,type:"integer"}},url:"/notifications/threads/:thread_id"},setRepoSubscription:{method:"PUT",params:{ignored:{type:"boolean"},owner:{required:true,type:"string"},repo:{required:true,type:"string"},subscribed:{type:"boolean"}},url:"/repos/:owner/:repo/subscription"},setThreadSubscription:{method:"PUT",params:{ignored:{type:"boolean"},thread_id:{required:true,type:"integer"}},url:"/notifications/threads/:thread_id/subscription"},starRepo:{method:"PUT",params:{owner:{required:true,type:"string"},repo:{required:true,type:"string"}},url:"/user/starred/:owner/:repo"},unstarRepo:{method:"DELETE",params:{owner:{required:true,type:"string"},repo:{required:true,type:"string"}},url:"/user/starred/:owner/:repo"}},apps:{addRepoToInstallation:{headers:{accept:"application/vnd.github.machine-man-preview+json"},method:"PUT",params:{installation_id:{required:true,type:"integer"},repository_id:{required:true,type:"integer"}},url:"/user/installations/:installation_id/repositories/:repository_id"},checkAccountIsAssociatedWithAny:{method:"GET",params:{account_id:{required:true,type:"integer"},page:{type:"integer"},per_page:{type:"integer"}},url:"/marketplace_listing/accounts/:account_id"},checkAccountIsAssociatedWithAnyStubbed:{method:"GET",params:{account_id:{required:true,type:"integer"},page:{type:"integer"},per_page:{type:"integer"}},url:"/marketplace_listing/stubbed/accounts/:account_id"},checkAuthorization:{deprecated:"octokit.oauthAuthorizations.checkAuthorization() has been renamed to octokit.apps.checkAuthorization() (2019-11-05)",method:"GET",params:{access_token:{required:true,type:"string"},client_id:{required:true,type:"string"}},url:"/applications/:client_id/tokens/:access_token"},checkToken:{headers:{accept:"application/vnd.github.doctor-strange-preview+json"},method:"POST",params:{access_token:{type:"string"},client_id:{required:true,type:"string"}},url:"/applications/:client_id/token"},createContentAttachment:{headers:{accept:"application/vnd.github.corsair-preview+json"},method:"POST",params:{body:{required:true,type:"string"},content_reference_id:{required:true,type:"integer"},title:{required:true,type:"string"}},url:"/content_references/:content_reference_id/attachments"},createFromManifest:{headers:{accept:"application/vnd.github.fury-preview+json"},method:"POST",params:{code:{required:true,type:"string"}},url:"/app-manifests/:code/conversions"},createInstallationToken:{headers:{accept:"application/vnd.github.machine-man-preview+json"},method:"POST",params:{installation_id:{required:true,type:"integer"},permissions:{type:"object"},repository_ids:{type:"integer[]"}},url:"/app/installations/:installation_id/access_tokens"},deleteAuthorization:{headers:{accept:"application/vnd.github.doctor-strange-preview+json"},method:"DELETE",params:{access_token:{type:"string"},client_id:{required:true,type:"string"}},url:"/applications/:client_id/grant"},deleteInstallation:{headers:{accept:"application/vnd.github.gambit-preview+json,application/vnd.github.machine-man-preview+json"},method:"DELETE",params:{installation_id:{required:true,type:"integer"}},url:"/app/installations/:installation_id"},deleteToken:{headers:{accept:"application/vnd.github.doctor-strange-preview+json"},method:"DELETE",params:{access_token:{type:"string"},client_id:{required:true,type:"string"}},url:"/applications/:client_id/token"},findOrgInstallation:{deprecated:"octokit.apps.findOrgInstallation() has been renamed to octokit.apps.getOrgInstallation() (2019-04-10)",headers:{accept:"application/vnd.github.machine-man-preview+json"},method:"GET",params:{org:{required:true,type:"string"}},url:"/orgs/:org/installation"},findRepoInstallation:{deprecated:"octokit.apps.findRepoInstallation() has been renamed to octokit.apps.getRepoInstallation() (2019-04-10)",headers:{accept:"application/vnd.github.machine-man-preview+json"},method:"GET",params:{owner:{required:true,type:"string"},repo:{required:true,type:"string"}},url:"/repos/:owner/:repo/installation"},findUserInstallation:{deprecated:"octokit.apps.findUserInstallation() has been renamed to octokit.apps.getUserInstallation() (2019-04-10)",headers:{accept:"application/vnd.github.machine-man-preview+json"},method:"GET",params:{username:{required:true,type:"string"}},url:"/users/:username/installation"},getAuthenticated:{headers:{accept:"application/vnd.github.machine-man-preview+json"},method:"GET",params:{},url:"/app"},getBySlug:{headers:{accept:"application/vnd.github.machine-man-preview+json"},method:"GET",params:{app_slug:{required:true,type:"string"}},url:"/apps/:app_slug"},getInstallation:{headers:{accept:"application/vnd.github.machine-man-preview+json"},method:"GET",params:{installation_id:{required:true,type:"integer"}},url:"/app/installations/:installation_id"},getOrgInstallation:{headers:{accept:"application/vnd.github.machine-man-preview+json"},method:"GET",params:{org:{required:true,type:"string"}},url:"/orgs/:org/installation"},getRepoInstallation:{headers:{accept:"application/vnd.github.machine-man-preview+json"},method:"GET",params:{owner:{required:true,type:"string"},repo:{required:true,type:"string"}},url:"/repos/:owner/:repo/installation"},getUserInstallation:{headers:{accept:"application/vnd.github.machine-man-preview+json"},method:"GET",params:{username:{required:true,type:"string"}},url:"/users/:username/installation"},listAccountsUserOrOrgOnPlan:{method:"GET",params:{direction:{enum:["asc","desc"],type:"string"},page:{type:"integer"},per_page:{type:"integer"},plan_id:{required:true,type:"integer"},sort:{enum:["created","updated"],type:"string"}},url:"/marketplace_listing/plans/:plan_id/accounts"},listAccountsUserOrOrgOnPlanStubbed:{method:"GET",params:{direction:{enum:["asc","desc"],type:"string"},page:{type:"integer"},per_page:{type:"integer"},plan_id:{required:true,type:"integer"},sort:{enum:["created","updated"],type:"string"}},url:"/marketplace_listing/stubbed/plans/:plan_id/accounts"},listInstallationReposForAuthenticatedUser:{headers:{accept:"application/vnd.github.machine-man-preview+json"},method:"GET",params:{installation_id:{required:true,type:"integer"},page:{type:"integer"},per_page:{type:"integer"}},url:"/user/installations/:installation_id/repositories"},listInstallations:{headers:{accept:"application/vnd.github.machine-man-preview+json"},method:"GET",params:{page:{type:"integer"},per_page:{type:"integer"}},url:"/app/installations"},listInstallationsForAuthenticatedUser:{headers:{accept:"application/vnd.github.machine-man-preview+json"},method:"GET",params:{page:{type:"integer"},per_page:{type:"integer"}},url:"/user/installations"},listMarketplacePurchasesForAuthenticatedUser:{method:"GET",params:{page:{type:"integer"},per_page:{type:"integer"}},url:"/user/marketplace_purchases"},listMarketplacePurchasesForAuthenticatedUserStubbed:{method:"GET",params:{page:{type:"integer"},per_page:{type:"integer"}},url:"/user/marketplace_purchases/stubbed"},listPlans:{method:"GET",params:{page:{type:"integer"},per_page:{type:"integer"}},url:"/marketplace_listing/plans"},listPlansStubbed:{method:"GET",params:{page:{type:"integer"},per_page:{type:"integer"}},url:"/marketplace_listing/stubbed/plans"},listRepos:{headers:{accept:"application/vnd.github.machine-man-preview+json"},method:"GET",params:{page:{type:"integer"},per_page:{type:"integer"}},url:"/installation/repositories"},removeRepoFromInstallation:{headers:{accept:"application/vnd.github.machine-man-preview+json"},method:"DELETE",params:{installation_id:{required:true,type:"integer"},repository_id:{required:true,type:"integer"}},url:"/user/installations/:installation_id/repositories/:repository_id"},resetAuthorization:{deprecated:"octokit.oauthAuthorizations.resetAuthorization() has been renamed to octokit.apps.resetAuthorization() (2019-11-05)",method:"POST",params:{access_token:{required:true,type:"string"},client_id:{required:true,type:"string"}},url:"/applications/:client_id/tokens/:access_token"},resetToken:{headers:{accept:"application/vnd.github.doctor-strange-preview+json"},method:"PATCH",params:{access_token:{type:"string"},client_id:{required:true,type:"string"}},url:"/applications/:client_id/token"},revokeAuthorizationForApplication:{deprecated:"octokit.oauthAuthorizations.revokeAuthorizationForApplication() has been renamed to octokit.apps.revokeAuthorizationForApplication() (2019-11-05)",method:"DELETE",params:{access_token:{required:true,type:"string"},client_id:{required:true,type:"string"}},url:"/applications/:client_id/tokens/:access_token"},revokeGrantForApplication:{deprecated:"octokit.oauthAuthorizations.revokeGrantForApplication() has been renamed to octokit.apps.revokeGrantForApplication() (2019-11-05)",method:"DELETE",params:{access_token:{required:true,type:"string"},client_id:{required:true,type:"string"}},url:"/applications/:client_id/grants/:access_token"}},checks:{create:{headers:{accept:"application/vnd.github.antiope-preview+json"},method:"POST",params:{actions:{type:"object[]"},"actions[].description":{required:true,type:"string"},"actions[].identifier":{required:true,type:"string"},"actions[].label":{required:true,type:"string"},completed_at:{type:"string"},conclusion:{enum:["success","failure","neutral","cancelled","timed_out","action_required"],type:"string"},details_url:{type:"string"},external_id:{type:"string"},head_sha:{required:true,type:"string"},name:{required:true,type:"string"},output:{type:"object"},"output.annotations":{type:"object[]"},"output.annotations[].annotation_level":{enum:["notice","warning","failure"],required:true,type:"string"},"output.annotations[].end_column":{type:"integer"},"output.annotations[].end_line":{required:true,type:"integer"},"output.annotations[].message":{required:true,type:"string"},"output.annotations[].path":{required:true,type:"string"},"output.annotations[].raw_details":{type:"string"},"output.annotations[].start_column":{type:"integer"},"output.annotations[].start_line":{required:true,type:"integer"},"output.annotations[].title":{type:"string"},"output.images":{type:"object[]"},"output.images[].alt":{required:true,type:"string"},"output.images[].caption":{type:"string"},"output.images[].image_url":{required:true,type:"string"},"output.summary":{required:true,type:"string"},"output.text":{type:"string"},"output.title":{required:true,type:"string"},owner:{required:true,type:"string"},repo:{required:true,type:"string"},started_at:{type:"string"},status:{enum:["queued","in_progress","completed"],type:"string"}},url:"/repos/:owner/:repo/check-runs"},createSuite:{headers:{accept:"application/vnd.github.antiope-preview+json"},method:"POST",params:{head_sha:{required:true,type:"string"},owner:{required:true,type:"string"},repo:{required:true,type:"string"}},url:"/repos/:owner/:repo/check-suites"},get:{headers:{accept:"application/vnd.github.antiope-preview+json"},method:"GET",params:{check_run_id:{required:true,type:"integer"},owner:{required:true,type:"string"},repo:{required:true,type:"string"}},url:"/repos/:owner/:repo/check-runs/:check_run_id"},getSuite:{headers:{accept:"application/vnd.github.antiope-preview+json"},method:"GET",params:{check_suite_id:{required:true,type:"integer"},owner:{required:true,type:"string"},repo:{required:true,type:"string"}},url:"/repos/:owner/:repo/check-suites/:check_suite_id"},listAnnotations:{headers:{accept:"application/vnd.github.antiope-preview+json"},method:"GET",params:{check_run_id:{required:true,type:"integer"},owner:{required:true,type:"string"},page:{type:"integer"},per_page:{type:"integer"},repo:{required:true,type:"string"}},url:"/repos/:owner/:repo/check-runs/:check_run_id/annotations"},listForRef:{headers:{accept:"application/vnd.github.antiope-preview+json"},method:"GET",params:{check_name:{type:"string"},filter:{enum:["latest","all"],type:"string"},owner:{required:true,type:"string"},page:{type:"integer"},per_page:{type:"integer"},ref:{required:true,type:"string"},repo:{required:true,type:"string"},status:{enum:["queued","in_progress","completed"],type:"string"}},url:"/repos/:owner/:repo/commits/:ref/check-runs"},listForSuite:{headers:{accept:"application/vnd.github.antiope-preview+json"},method:"GET",params:{check_name:{type:"string"},check_suite_id:{required:true,type:"integer"},filter:{enum:["latest","all"],type:"string"},owner:{required:true,type:"string"},page:{type:"integer"},per_page:{type:"integer"},repo:{required:true,type:"string"},status:{enum:["queued","in_progress","completed"],type:"string"}},url:"/repos/:owner/:repo/check-suites/:check_suite_id/check-runs"},listSuitesForRef:{headers:{accept:"application/vnd.github.antiope-preview+json"},method:"GET",params:{app_id:{type:"integer"},check_name:{type:"string"},owner:{required:true,type:"string"},page:{type:"integer"},per_page:{type:"integer"},ref:{required:true,type:"string"},repo:{required:true,type:"string"}},url:"/repos/:owner/:repo/commits/:ref/check-suites"},rerequestSuite:{headers:{accept:"application/vnd.github.antiope-preview+json"},method:"POST",params:{check_suite_id:{required:true,type:"integer"},owner:{required:true,type:"string"},repo:{required:true,type:"string"}},url:"/repos/:owner/:repo/check-suites/:check_suite_id/rerequest"},setSuitesPreferences:{headers:{accept:"application/vnd.github.antiope-preview+json"},method:"PATCH",params:{auto_trigger_checks:{type:"object[]"},"auto_trigger_checks[].app_id":{required:true,type:"integer"},"auto_trigger_checks[].setting":{required:true,type:"boolean"},owner:{required:true,type:"string"},repo:{required:true,type:"string"}},url:"/repos/:owner/:repo/check-suites/preferences"},update:{headers:{accept:"application/vnd.github.antiope-preview+json"},method:"PATCH",params:{actions:{type:"object[]"},"actions[].description":{required:true,type:"string"},"actions[].identifier":{required:true,type:"string"},"actions[].label":{required:true,type:"string"},check_run_id:{required:true,type:"integer"},completed_at:{type:"string"},conclusion:{enum:["success","failure","neutral","cancelled","timed_out","action_required"],type:"string"},details_url:{type:"string"},external_id:{type:"string"},name:{type:"string"},output:{type:"object"},"output.annotations":{type:"object[]"},"output.annotations[].annotation_level":{enum:["notice","warning","failure"],required:true,type:"string"},"output.annotations[].end_column":{type:"integer"},"output.annotations[].end_line":{required:true,type:"integer"},"output.annotations[].message":{required:true,type:"string"},"output.annotations[].path":{required:true,type:"string"},"output.annotations[].raw_details":{type:"string"},"output.annotations[].start_column":{type:"integer"},"output.annotations[].start_line":{required:true,type:"integer"},"output.annotations[].title":{type:"string"},"output.images":{type:"object[]"},"output.images[].alt":{required:true,type:"string"},"output.images[].caption":{type:"string"},"output.images[].image_url":{required:true,type:"string"},"output.summary":{required:true,type:"string"},"output.text":{type:"string"},"output.title":{type:"string"},owner:{required:true,type:"string"},repo:{required:true,type:"string"},started_at:{type:"string"},status:{enum:["queued","in_progress","completed"],type:"string"}},url:"/repos/:owner/:repo/check-runs/:check_run_id"}},codesOfConduct:{getConductCode:{headers:{accept:"application/vnd.github.scarlet-witch-preview+json"},method:"GET",params:{key:{required:true,type:"string"}},url:"/codes_of_conduct/:key"},getForRepo:{headers:{accept:"application/vnd.github.scarlet-witch-preview+json"},method:"GET",params:{owner:{required:true,type:"string"},repo:{required:true,type:"string"}},url:"/repos/:owner/:repo/community/code_of_conduct"},listConductCodes:{headers:{accept:"application/vnd.github.scarlet-witch-preview+json"},method:"GET",params:{},url:"/codes_of_conduct"}},emojis:{get:{method:"GET",params:{},url:"/emojis"}},gists:{checkIsStarred:{method:"GET",params:{gist_id:{required:true,type:"string"}},url:"/gists/:gist_id/star"},create:{method:"POST",params:{description:{type:"string"},files:{required:true,type:"object"},"files.content":{type:"string"},public:{type:"boolean"}},url:"/gists"},createComment:{method:"POST",params:{body:{required:true,type:"string"},gist_id:{required:true,type:"string"}},url:"/gists/:gist_id/comments"},delete:{method:"DELETE",params:{gist_id:{required:true,type:"string"}},url:"/gists/:gist_id"},deleteComment:{method:"DELETE",params:{comment_id:{required:true,type:"integer"},gist_id:{required:true,type:"string"}},url:"/gists/:gist_id/comments/:comment_id"},fork:{method:"POST",params:{gist_id:{required:true,type:"string"}},url:"/gists/:gist_id/forks"},get:{method:"GET",params:{gist_id:{required:true,type:"string"}},url:"/gists/:gist_id"},getComment:{method:"GET",params:{comment_id:{required:true,type:"integer"},gist_id:{required:true,type:"string"}},url:"/gists/:gist_id/comments/:comment_id"},getRevision:{method:"GET",params:{gist_id:{required:true,type:"string"},sha:{required:true,type:"string"}},url:"/gists/:gist_id/:sha"},list:{method:"GET",params:{page:{type:"integer"},per_page:{type:"integer"},since:{type:"string"}},url:"/gists"},listComments:{method:"GET",params:{gist_id:{required:true,type:"string"},page:{type:"integer"},per_page:{type:"integer"}},url:"/gists/:gist_id/comments"},listCommits:{method:"GET",params:{gist_id:{required:true,type:"string"},page:{type:"integer"},per_page:{type:"integer"}},url:"/gists/:gist_id/commits"},listForks:{method:"GET",params:{gist_id:{required:true,type:"string"},page:{type:"integer"},per_page:{type:"integer"}},url:"/gists/:gist_id/forks"},listPublic:{method:"GET",params:{page:{type:"integer"},per_page:{type:"integer"},since:{type:"string"}},url:"/gists/public"},listPublicForUser:{method:"GET",params:{page:{type:"integer"},per_page:{type:"integer"},since:{type:"string"},username:{required:true,type:"string"}},url:"/users/:username/gists"},listStarred:{method:"GET",params:{page:{type:"integer"},per_page:{type:"integer"},since:{type:"string"}},url:"/gists/starred"},star:{method:"PUT",params:{gist_id:{required:true,type:"string"}},url:"/gists/:gist_id/star"},unstar:{method:"DELETE",params:{gist_id:{required:true,type:"string"}},url:"/gists/:gist_id/star"},update:{method:"PATCH",params:{description:{type:"string"},files:{type:"object"},"files.content":{type:"string"},"files.filename":{type:"string"},gist_id:{required:true,type:"string"}},url:"/gists/:gist_id"},updateComment:{method:"PATCH",params:{body:{required:true,type:"string"},comment_id:{required:true,type:"integer"},gist_id:{required:true,type:"string"}},url:"/gists/:gist_id/comments/:comment_id"}},git:{createBlob:{method:"POST",params:{content:{required:true,type:"string"},encoding:{type:"string"},owner:{required:true,type:"string"},repo:{required:true,type:"string"}},url:"/repos/:owner/:repo/git/blobs"},createCommit:{method:"POST",params:{author:{type:"object"},"author.date":{type:"string"},"author.email":{type:"string"},"author.name":{type:"string"},committer:{type:"object"},"committer.date":{type:"string"},"committer.email":{type:"string"},"committer.name":{type:"string"},message:{required:true,type:"string"},owner:{required:true,type:"string"},parents:{required:true,type:"string[]"},repo:{required:true,type:"string"},signature:{type:"string"},tree:{required:true,type:"string"}},url:"/repos/:owner/:repo/git/commits"},createRef:{method:"POST",params:{owner:{required:true,type:"string"},ref:{required:true,type:"string"},repo:{required:true,type:"string"},sha:{required:true,type:"string"}},url:"/repos/:owner/:repo/git/refs"},createTag:{method:"POST",params:{message:{required:true,type:"string"},object:{required:true,type:"string"},owner:{required:true,type:"string"},repo:{required:true,type:"string"},tag:{required:true,type:"string"},tagger:{type:"object"},"tagger.date":{type:"string"},"tagger.email":{type:"string"},"tagger.name":{type:"string"},type:{enum:["commit","tree","blob"],required:true,type:"string"}},url:"/repos/:owner/:repo/git/tags"},createTree:{method:"POST",params:{base_tree:{type:"string"},owner:{required:true,type:"string"},repo:{required:true,type:"string"},tree:{required:true,type:"object[]"},"tree[].content":{type:"string"},"tree[].mode":{enum:["100644","100755","040000","160000","120000"],type:"string"},"tree[].path":{type:"string"},"tree[].sha":{allowNull:true,type:"string"},"tree[].type":{enum:["blob","tree","commit"],type:"string"}},url:"/repos/:owner/:repo/git/trees"},deleteRef:{method:"DELETE",params:{owner:{required:true,type:"string"},ref:{required:true,type:"string"},repo:{required:true,type:"string"}},url:"/repos/:owner/:repo/git/refs/:ref"},getBlob:{method:"GET",params:{file_sha:{required:true,type:"string"},owner:{required:true,type:"string"},repo:{required:true,type:"string"}},url:"/repos/:owner/:repo/git/blobs/:file_sha"},getCommit:{method:"GET",params:{commit_sha:{required:true,type:"string"},owner:{required:true,type:"string"},repo:{required:true,type:"string"}},url:"/repos/:owner/:repo/git/commits/:commit_sha"},getRef:{method:"GET",params:{owner:{required:true,type:"string"},ref:{required:true,type:"string"},repo:{required:true,type:"string"}},url:"/repos/:owner/:repo/git/ref/:ref"},getTag:{method:"GET",params:{owner:{required:true,type:"string"},repo:{required:true,type:"string"},tag_sha:{required:true,type:"string"}},url:"/repos/:owner/:repo/git/tags/:tag_sha"},getTree:{method:"GET",params:{owner:{required:true,type:"string"},recursive:{enum:["1"],type:"integer"},repo:{required:true,type:"string"},tree_sha:{required:true,type:"string"}},url:"/repos/:owner/:repo/git/trees/:tree_sha"},listMatchingRefs:{method:"GET",params:{owner:{required:true,type:"string"},page:{type:"integer"},per_page:{type:"integer"},ref:{required:true,type:"string"},repo:{required:true,type:"string"}},url:"/repos/:owner/:repo/git/matching-refs/:ref"},listRefs:{method:"GET",params:{namespace:{type:"string"},owner:{required:true,type:"string"},page:{type:"integer"},per_page:{type:"integer"},repo:{required:true,type:"string"}},url:"/repos/:owner/:repo/git/refs/:namespace"},updateRef:{method:"PATCH",params:{force:{type:"boolean"},owner:{required:true,type:"string"},ref:{required:true,type:"string"},repo:{required:true,type:"string"},sha:{required:true,type:"string"}},url:"/repos/:owner/:repo/git/refs/:ref"}},gitignore:{getTemplate:{method:"GET",params:{name:{required:true,type:"string"}},url:"/gitignore/templates/:name"},listTemplates:{method:"GET",params:{},url:"/gitignore/templates"}},interactions:{addOrUpdateRestrictionsForOrg:{headers:{accept:"application/vnd.github.sombra-preview+json"},method:"PUT",params:{limit:{enum:["existing_users","contributors_only","collaborators_only"],required:true,type:"string"},org:{required:true,type:"string"}},url:"/orgs/:org/interaction-limits"},addOrUpdateRestrictionsForRepo:{headers:{accept:"application/vnd.github.sombra-preview+json"},method:"PUT",params:{limit:{enum:["existing_users","contributors_only","collaborators_only"],required:true,type:"string"},owner:{required:true,type:"string"},repo:{required:true,type:"string"}},url:"/repos/:owner/:repo/interaction-limits"},getRestrictionsForOrg:{headers:{accept:"application/vnd.github.sombra-preview+json"},method:"GET",params:{org:{required:true,type:"string"}},url:"/orgs/:org/interaction-limits"},getRestrictionsForRepo:{headers:{accept:"application/vnd.github.sombra-preview+json"},method:"GET",params:{owner:{required:true,type:"string"},repo:{required:true,type:"string"}},url:"/repos/:owner/:repo/interaction-limits"},removeRestrictionsForOrg:{headers:{accept:"application/vnd.github.sombra-preview+json"},method:"DELETE",params:{org:{required:true,type:"string"}},url:"/orgs/:org/interaction-limits"},removeRestrictionsForRepo:{headers:{accept:"application/vnd.github.sombra-preview+json"},method:"DELETE",params:{owner:{required:true,type:"string"},repo:{required:true,type:"string"}},url:"/repos/:owner/:repo/interaction-limits"}},issues:{addAssignees:{method:"POST",params:{assignees:{type:"string[]"},issue_number:{required:true,type:"integer"},number:{alias:"issue_number",deprecated:true,type:"integer"},owner:{required:true,type:"string"},repo:{required:true,type:"string"}},url:"/repos/:owner/:repo/issues/:issue_number/assignees"},addLabels:{method:"POST",params:{issue_number:{required:true,type:"integer"},labels:{required:true,type:"string[]"},number:{alias:"issue_number",deprecated:true,type:"integer"},owner:{required:true,type:"string"},repo:{required:true,type:"string"}},url:"/repos/:owner/:repo/issues/:issue_number/labels"},checkAssignee:{method:"GET",params:{assignee:{required:true,type:"string"},owner:{required:true,type:"string"},repo:{required:true,type:"string"}},url:"/repos/:owner/:repo/assignees/:assignee"},create:{method:"POST",params:{assignee:{type:"string"},assignees:{type:"string[]"},body:{type:"string"},labels:{type:"string[]"},milestone:{type:"integer"},owner:{required:true,type:"string"},repo:{required:true,type:"string"},title:{required:true,type:"string"}},url:"/repos/:owner/:repo/issues"},createComment:{method:"POST",params:{body:{required:true,type:"string"},issue_number:{required:true,type:"integer"},number:{alias:"issue_number",deprecated:true,type:"integer"},owner:{required:true,type:"string"},repo:{required:true,type:"string"}},url:"/repos/:owner/:repo/issues/:issue_number/comments"},createLabel:{method:"POST",params:{color:{required:true,type:"string"},description:{type:"string"},name:{required:true,type:"string"},owner:{required:true,type:"string"},repo:{required:true,type:"string"}},url:"/repos/:owner/:repo/labels"},createMilestone:{method:"POST",params:{description:{type:"string"},due_on:{type:"string"},owner:{required:true,type:"string"},repo:{required:true,type:"string"},state:{enum:["open","closed"],type:"string"},title:{required:true,type:"string"}},url:"/repos/:owner/:repo/milestones"},deleteComment:{method:"DELETE",params:{comment_id:{required:true,type:"integer"},owner:{required:true,type:"string"},repo:{required:true,type:"string"}},url:"/repos/:owner/:repo/issues/comments/:comment_id"},deleteLabel:{method:"DELETE",params:{name:{required:true,type:"string"},owner:{required:true,type:"string"},repo:{required:true,type:"string"}},url:"/repos/:owner/:repo/labels/:name"},deleteMilestone:{method:"DELETE",params:{milestone_number:{required:true,type:"integer"},number:{alias:"milestone_number",deprecated:true,type:"integer"},owner:{required:true,type:"string"},repo:{required:true,type:"string"}},url:"/repos/:owner/:repo/milestones/:milestone_number"},get:{method:"GET",params:{issue_number:{required:true,type:"integer"},number:{alias:"issue_number",deprecated:true,type:"integer"},owner:{required:true,type:"string"},repo:{required:true,type:"string"}},url:"/repos/:owner/:repo/issues/:issue_number"},getComment:{method:"GET",params:{comment_id:{required:true,type:"integer"},owner:{required:true,type:"string"},page:{type:"integer"},per_page:{type:"integer"},repo:{required:true,type:"string"}},url:"/repos/:owner/:repo/issues/comments/:comment_id"},getEvent:{method:"GET",params:{event_id:{required:true,type:"integer"},owner:{required:true,type:"string"},repo:{required:true,type:"string"}},url:"/repos/:owner/:repo/issues/events/:event_id"},getLabel:{method:"GET",params:{name:{required:true,type:"string"},owner:{required:true,type:"string"},repo:{required:true,type:"string"}},url:"/repos/:owner/:repo/labels/:name"},getMilestone:{method:"GET",params:{milestone_number:{required:true,type:"integer"},number:{alias:"milestone_number",deprecated:true,type:"integer"},owner:{required:true,type:"string"},repo:{required:true,type:"string"}},url:"/repos/:owner/:repo/milestones/:milestone_number"},list:{method:"GET",params:{direction:{enum:["asc","desc"],type:"string"},filter:{enum:["assigned","created","mentioned","subscribed","all"],type:"string"},labels:{type:"string"},page:{type:"integer"},per_page:{type:"integer"},since:{type:"string"},sort:{enum:["created","updated","comments"],type:"string"},state:{enum:["open","closed","all"],type:"string"}},url:"/issues"},listAssignees:{method:"GET",params:{owner:{required:true,type:"string"},page:{type:"integer"},per_page:{type:"integer"},repo:{required:true,type:"string"}},url:"/repos/:owner/:repo/assignees"},listComments:{method:"GET",params:{issue_number:{required:true,type:"integer"},number:{alias:"issue_number",deprecated:true,type:"integer"},owner:{required:true,type:"string"},page:{type:"integer"},per_page:{type:"integer"},repo:{required:true,type:"string"},since:{type:"string"}},url:"/repos/:owner/:repo/issues/:issue_number/comments"},listCommentsForRepo:{method:"GET",params:{direction:{enum:["asc","desc"],type:"string"},owner:{required:true,type:"string"},repo:{required:true,type:"string"},since:{type:"string"},sort:{enum:["created","updated"],type:"string"}},url:"/repos/:owner/:repo/issues/comments"},listEvents:{method:"GET",params:{issue_number:{required:true,type:"integer"},number:{alias:"issue_number",deprecated:true,type:"integer"},owner:{required:true,type:"string"},page:{type:"integer"},per_page:{type:"integer"},repo:{required:true,type:"string"}},url:"/repos/:owner/:repo/issues/:issue_number/events"},listEventsForRepo:{method:"GET",params:{owner:{required:true,type:"string"},page:{type:"integer"},per_page:{type:"integer"},repo:{required:true,type:"string"}},url:"/repos/:owner/:repo/issues/events"},listEventsForTimeline:{headers:{accept:"application/vnd.github.mockingbird-preview+json"},method:"GET",params:{issue_number:{required:true,type:"integer"},number:{alias:"issue_number",deprecated:true,type:"integer"},owner:{required:true,type:"string"},page:{type:"integer"},per_page:{type:"integer"},repo:{required:true,type:"string"}},url:"/repos/:owner/:repo/issues/:issue_number/timeline"},listForAuthenticatedUser:{method:"GET",params:{direction:{enum:["asc","desc"],type:"string"},filter:{enum:["assigned","created","mentioned","subscribed","all"],type:"string"},labels:{type:"string"},page:{type:"integer"},per_page:{type:"integer"},since:{type:"string"},sort:{enum:["created","updated","comments"],type:"string"},state:{enum:["open","closed","all"],type:"string"}},url:"/user/issues"},listForOrg:{method:"GET",params:{direction:{enum:["asc","desc"],type:"string"},filter:{enum:["assigned","created","mentioned","subscribed","all"],type:"string"},labels:{type:"string"},org:{required:true,type:"string"},page:{type:"integer"},per_page:{type:"integer"},since:{type:"string"},sort:{enum:["created","updated","comments"],type:"string"},state:{enum:["open","closed","all"],type:"string"}},url:"/orgs/:org/issues"},listForRepo:{method:"GET",params:{assignee:{type:"string"},creator:{type:"string"},direction:{enum:["asc","desc"],type:"string"},labels:{type:"string"},mentioned:{type:"string"},milestone:{type:"string"},owner:{required:true,type:"string"},page:{type:"integer"},per_page:{type:"integer"},repo:{required:true,type:"string"},since:{type:"string"},sort:{enum:["created","updated","comments"],type:"string"},state:{enum:["open","closed","all"],type:"string"}},url:"/repos/:owner/:repo/issues"},listLabelsForMilestone:{method:"GET",params:{milestone_number:{required:true,type:"integer"},number:{alias:"milestone_number",deprecated:true,type:"integer"},owner:{required:true,type:"string"},page:{type:"integer"},per_page:{type:"integer"},repo:{required:true,type:"string"}},url:"/repos/:owner/:repo/milestones/:milestone_number/labels"},listLabelsForRepo:{method:"GET",params:{owner:{required:true,type:"string"},page:{type:"integer"},per_page:{type:"integer"},repo:{required:true,type:"string"}},url:"/repos/:owner/:repo/labels"},listLabelsOnIssue:{method:"GET",params:{issue_number:{required:true,type:"integer"},number:{alias:"issue_number",deprecated:true,type:"integer"},owner:{required:true,type:"string"},page:{type:"integer"},per_page:{type:"integer"},repo:{required:true,type:"string"}},url:"/repos/:owner/:repo/issues/:issue_number/labels"},listMilestonesForRepo:{method:"GET",params:{direction:{enum:["asc","desc"],type:"string"},owner:{required:true,type:"string"},page:{type:"integer"},per_page:{type:"integer"},repo:{required:true,type:"string"},sort:{enum:["due_on","completeness"],type:"string"},state:{enum:["open","closed","all"],type:"string"}},url:"/repos/:owner/:repo/milestones"},lock:{method:"PUT",params:{issue_number:{required:true,type:"integer"},lock_reason:{enum:["off-topic","too heated","resolved","spam"],type:"string"},number:{alias:"issue_number",deprecated:true,type:"integer"},owner:{required:true,type:"string"},repo:{required:true,type:"string"}},url:"/repos/:owner/:repo/issues/:issue_number/lock"},removeAssignees:{method:"DELETE",params:{assignees:{type:"string[]"},issue_number:{required:true,type:"integer"},number:{alias:"issue_number",deprecated:true,type:"integer"},owner:{required:true,type:"string"},repo:{required:true,type:"string"}},url:"/repos/:owner/:repo/issues/:issue_number/assignees"},removeLabel:{method:"DELETE",params:{issue_number:{required:true,type:"integer"},name:{required:true,type:"string"},number:{alias:"issue_number",deprecated:true,type:"integer"},owner:{required:true,type:"string"},repo:{required:true,type:"string"}},url:"/repos/:owner/:repo/issues/:issue_number/labels/:name"},removeLabels:{method:"DELETE",params:{issue_number:{required:true,type:"integer"},number:{alias:"issue_number",deprecated:true,type:"integer"},owner:{required:true,type:"string"},repo:{required:true,type:"string"}},url:"/repos/:owner/:repo/issues/:issue_number/labels"},replaceLabels:{method:"PUT",params:{issue_number:{required:true,type:"integer"},labels:{type:"string[]"},number:{alias:"issue_number",deprecated:true,type:"integer"},owner:{required:true,type:"string"},repo:{required:true,type:"string"}},url:"/repos/:owner/:repo/issues/:issue_number/labels"},unlock:{method:"DELETE",params:{issue_number:{required:true,type:"integer"},number:{alias:"issue_number",deprecated:true,type:"integer"},owner:{required:true,type:"string"},repo:{required:true,type:"string"}},url:"/repos/:owner/:repo/issues/:issue_number/lock"},update:{method:"PATCH",params:{assignee:{type:"string"},assignees:{type:"string[]"},body:{type:"string"},issue_number:{required:true,type:"integer"},labels:{type:"string[]"},milestone:{allowNull:true,type:"integer"},number:{alias:"issue_number",deprecated:true,type:"integer"},owner:{required:true,type:"string"},repo:{required:true,type:"string"},state:{enum:["open","closed"],type:"string"},title:{type:"string"}},url:"/repos/:owner/:repo/issues/:issue_number"},updateComment:{method:"PATCH",params:{body:{required:true,type:"string"},comment_id:{required:true,type:"integer"},owner:{required:true,type:"string"},repo:{required:true,type:"string"}},url:"/repos/:owner/:repo/issues/comments/:comment_id"},updateLabel:{method:"PATCH",params:{color:{type:"string"},current_name:{required:true,type:"string"},description:{type:"string"},name:{type:"string"},owner:{required:true,type:"string"},repo:{required:true,type:"string"}},url:"/repos/:owner/:repo/labels/:current_name"},updateMilestone:{method:"PATCH",params:{description:{type:"string"},due_on:{type:"string"},milestone_number:{required:true,type:"integer"},number:{alias:"milestone_number",deprecated:true,type:"integer"},owner:{required:true,type:"string"},repo:{required:true,type:"string"},state:{enum:["open","closed"],type:"string"},title:{type:"string"}},url:"/repos/:owner/:repo/milestones/:milestone_number"}},licenses:{get:{method:"GET",params:{license:{required:true,type:"string"}},url:"/licenses/:license"},getForRepo:{method:"GET",params:{owner:{required:true,type:"string"},repo:{required:true,type:"string"}},url:"/repos/:owner/:repo/license"},list:{deprecated:"octokit.licenses.list() has been renamed to octokit.licenses.listCommonlyUsed() (2019-03-05)",method:"GET",params:{},url:"/licenses"},listCommonlyUsed:{method:"GET",params:{},url:"/licenses"}},markdown:{render:{method:"POST",params:{context:{type:"string"},mode:{enum:["markdown","gfm"],type:"string"},text:{required:true,type:"string"}},url:"/markdown"},renderRaw:{headers:{"content-type":"text/plain; charset=utf-8"},method:"POST",params:{data:{mapTo:"data",required:true,type:"string"}},url:"/markdown/raw"}},meta:{get:{method:"GET",params:{},url:"/meta"}},migrations:{cancelImport:{headers:{accept:"application/vnd.github.barred-rock-preview+json"},method:"DELETE",params:{owner:{required:true,type:"string"},repo:{required:true,type:"string"}},url:"/repos/:owner/:repo/import"},deleteArchiveForAuthenticatedUser:{headers:{accept:"application/vnd.github.wyandotte-preview+json"},method:"DELETE",params:{migration_id:{required:true,type:"integer"}},url:"/user/migrations/:migration_id/archive"},deleteArchiveForOrg:{headers:{accept:"application/vnd.github.wyandotte-preview+json"},method:"DELETE",params:{migration_id:{required:true,type:"integer"},org:{required:true,type:"string"}},url:"/orgs/:org/migrations/:migration_id/archive"},getArchiveForAuthenticatedUser:{headers:{accept:"application/vnd.github.wyandotte-preview+json"},method:"GET",params:{migration_id:{required:true,type:"integer"}},url:"/user/migrations/:migration_id/archive"},getArchiveForOrg:{headers:{accept:"application/vnd.github.wyandotte-preview+json"},method:"GET",params:{migration_id:{required:true,type:"integer"},org:{required:true,type:"string"}},url:"/orgs/:org/migrations/:migration_id/archive"},getCommitAuthors:{headers:{accept:"application/vnd.github.barred-rock-preview+json"},method:"GET",params:{owner:{required:true,type:"string"},repo:{required:true,type:"string"},since:{type:"string"}},url:"/repos/:owner/:repo/import/authors"},getImportProgress:{headers:{accept:"application/vnd.github.barred-rock-preview+json"},method:"GET",params:{owner:{required:true,type:"string"},repo:{required:true,type:"string"}},url:"/repos/:owner/:repo/import"},getLargeFiles:{headers:{accept:"application/vnd.github.barred-rock-preview+json"},method:"GET",params:{owner:{required:true,type:"string"},repo:{required:true,type:"string"}},url:"/repos/:owner/:repo/import/large_files"},getStatusForAuthenticatedUser:{headers:{accept:"application/vnd.github.wyandotte-preview+json"},method:"GET",params:{migration_id:{required:true,type:"integer"}},url:"/user/migrations/:migration_id"},getStatusForOrg:{headers:{accept:"application/vnd.github.wyandotte-preview+json"},method:"GET",params:{migration_id:{required:true,type:"integer"},org:{required:true,type:"string"}},url:"/orgs/:org/migrations/:migration_id"},listForAuthenticatedUser:{headers:{accept:"application/vnd.github.wyandotte-preview+json"},method:"GET",params:{page:{type:"integer"},per_page:{type:"integer"}},url:"/user/migrations"},listForOrg:{headers:{accept:"application/vnd.github.wyandotte-preview+json"},method:"GET",params:{org:{required:true,type:"string"},page:{type:"integer"},per_page:{type:"integer"}},url:"/orgs/:org/migrations"},mapCommitAuthor:{headers:{accept:"application/vnd.github.barred-rock-preview+json"},method:"PATCH",params:{author_id:{required:true,type:"integer"},email:{type:"string"},name:{type:"string"},owner:{required:true,type:"string"},repo:{required:true,type:"string"}},url:"/repos/:owner/:repo/import/authors/:author_id"},setLfsPreference:{headers:{accept:"application/vnd.github.barred-rock-preview+json"},method:"PATCH",params:{owner:{required:true,type:"string"},repo:{required:true,type:"string"},use_lfs:{enum:["opt_in","opt_out"],required:true,type:"string"}},url:"/repos/:owner/:repo/import/lfs"},startForAuthenticatedUser:{method:"POST",params:{exclude_attachments:{type:"boolean"},lock_repositories:{type:"boolean"},repositories:{required:true,type:"string[]"}},url:"/user/migrations"},startForOrg:{method:"POST",params:{exclude_attachments:{type:"boolean"},lock_repositories:{type:"boolean"},org:{required:true,type:"string"},repositories:{required:true,type:"string[]"}},url:"/orgs/:org/migrations"},startImport:{headers:{accept:"application/vnd.github.barred-rock-preview+json"},method:"PUT",params:{owner:{required:true,type:"string"},repo:{required:true,type:"string"},tfvc_project:{type:"string"},vcs:{enum:["subversion","git","mercurial","tfvc"],type:"string"},vcs_password:{type:"string"},vcs_url:{required:true,type:"string"},vcs_username:{type:"string"}},url:"/repos/:owner/:repo/import"},unlockRepoForAuthenticatedUser:{headers:{accept:"application/vnd.github.wyandotte-preview+json"},method:"DELETE",params:{migration_id:{required:true,type:"integer"},repo_name:{required:true,type:"string"}},url:"/user/migrations/:migration_id/repos/:repo_name/lock"},unlockRepoForOrg:{headers:{accept:"application/vnd.github.wyandotte-preview+json"},method:"DELETE",params:{migration_id:{required:true,type:"integer"},org:{required:true,type:"string"},repo_name:{required:true,type:"string"}},url:"/orgs/:org/migrations/:migration_id/repos/:repo_name/lock"},updateImport:{headers:{accept:"application/vnd.github.barred-rock-preview+json"},method:"PATCH",params:{owner:{required:true,type:"string"},repo:{required:true,type:"string"},vcs_password:{type:"string"},vcs_username:{type:"string"}},url:"/repos/:owner/:repo/import"}},oauthAuthorizations:{checkAuthorization:{deprecated:"octokit.oauthAuthorizations.checkAuthorization() has been renamed to octokit.apps.checkAuthorization() (2019-11-05)",method:"GET",params:{access_token:{required:true,type:"string"},client_id:{required:true,type:"string"}},url:"/applications/:client_id/tokens/:access_token"},createAuthorization:{deprecated:"octokit.oauthAuthorizations.createAuthorization() is deprecated, see https://developer.github.com/v3/oauth_authorizations/#create-a-new-authorization",method:"POST",params:{client_id:{type:"string"},client_secret:{type:"string"},fingerprint:{type:"string"},note:{required:true,type:"string"},note_url:{type:"string"},scopes:{type:"string[]"}},url:"/authorizations"},deleteAuthorization:{deprecated:"octokit.oauthAuthorizations.deleteAuthorization() is deprecated, see https://developer.github.com/v3/oauth_authorizations/#delete-an-authorization",method:"DELETE",params:{authorization_id:{required:true,type:"integer"}},url:"/authorizations/:authorization_id"},deleteGrant:{deprecated:"octokit.oauthAuthorizations.deleteGrant() is deprecated, see https://developer.github.com/v3/oauth_authorizations/#delete-a-grant",method:"DELETE",params:{grant_id:{required:true,type:"integer"}},url:"/applications/grants/:grant_id"},getAuthorization:{deprecated:"octokit.oauthAuthorizations.getAuthorization() is deprecated, see https://developer.github.com/v3/oauth_authorizations/#get-a-single-authorization",method:"GET",params:{authorization_id:{required:true,type:"integer"}},url:"/authorizations/:authorization_id"},getGrant:{deprecated:"octokit.oauthAuthorizations.getGrant() is deprecated, see https://developer.github.com/v3/oauth_authorizations/#get-a-single-grant",method:"GET",params:{grant_id:{required:true,type:"integer"}},url:"/applications/grants/:grant_id"},getOrCreateAuthorizationForApp:{deprecated:"octokit.oauthAuthorizations.getOrCreateAuthorizationForApp() is deprecated, see https://developer.github.com/v3/oauth_authorizations/#get-or-create-an-authorization-for-a-specific-app",method:"PUT",params:{client_id:{required:true,type:"string"},client_secret:{required:true,type:"string"},fingerprint:{type:"string"},note:{type:"string"},note_url:{type:"string"},scopes:{type:"string[]"}},url:"/authorizations/clients/:client_id"},getOrCreateAuthorizationForAppAndFingerprint:{deprecated:"octokit.oauthAuthorizations.getOrCreateAuthorizationForAppAndFingerprint() is deprecated, see https://developer.github.com/v3/oauth_authorizations/#get-or-create-an-authorization-for-a-specific-app-and-fingerprint",method:"PUT",params:{client_id:{required:true,type:"string"},client_secret:{required:true,type:"string"},fingerprint:{required:true,type:"string"},note:{type:"string"},note_url:{type:"string"},scopes:{type:"string[]"}},url:"/authorizations/clients/:client_id/:fingerprint"},getOrCreateAuthorizationForAppFingerprint:{deprecated:"octokit.oauthAuthorizations.getOrCreateAuthorizationForAppFingerprint() has been renamed to octokit.oauthAuthorizations.getOrCreateAuthorizationForAppAndFingerprint() (2018-12-27)",method:"PUT",params:{client_id:{required:true,type:"string"},client_secret:{required:true,type:"string"},fingerprint:{required:true,type:"string"},note:{type:"string"},note_url:{type:"string"},scopes:{type:"string[]"}},url:"/authorizations/clients/:client_id/:fingerprint"},listAuthorizations:{deprecated:"octokit.oauthAuthorizations.listAuthorizations() is deprecated, see https://developer.github.com/v3/oauth_authorizations/#list-your-authorizations",method:"GET",params:{page:{type:"integer"},per_page:{type:"integer"}},url:"/authorizations"},listGrants:{deprecated:"octokit.oauthAuthorizations.listGrants() is deprecated, see https://developer.github.com/v3/oauth_authorizations/#list-your-grants",method:"GET",params:{page:{type:"integer"},per_page:{type:"integer"}},url:"/applications/grants"},resetAuthorization:{deprecated:"octokit.oauthAuthorizations.resetAuthorization() has been renamed to octokit.apps.resetAuthorization() (2019-11-05)",method:"POST",params:{access_token:{required:true,type:"string"},client_id:{required:true,type:"string"}},url:"/applications/:client_id/tokens/:access_token"},revokeAuthorizationForApplication:{deprecated:"octokit.oauthAuthorizations.revokeAuthorizationForApplication() has been renamed to octokit.apps.revokeAuthorizationForApplication() (2019-11-05)",method:"DELETE",params:{access_token:{required:true,type:"string"},client_id:{required:true,type:"string"}},url:"/applications/:client_id/tokens/:access_token"},revokeGrantForApplication:{deprecated:"octokit.oauthAuthorizations.revokeGrantForApplication() has been renamed to octokit.apps.revokeGrantForApplication() (2019-11-05)",method:"DELETE",params:{access_token:{required:true,type:"string"},client_id:{required:true,type:"string"}},url:"/applications/:client_id/grants/:access_token"},updateAuthorization:{deprecated:"octokit.oauthAuthorizations.updateAuthorization() is deprecated, see https://developer.github.com/v3/oauth_authorizations/#update-an-existing-authorization",method:"PATCH",params:{add_scopes:{type:"string[]"},authorization_id:{required:true,type:"integer"},fingerprint:{type:"string"},note:{type:"string"},note_url:{type:"string"},remove_scopes:{type:"string[]"},scopes:{type:"string[]"}},url:"/authorizations/:authorization_id"}},orgs:{addOrUpdateMembership:{method:"PUT",params:{org:{required:true,type:"string"},role:{enum:["admin","member"],type:"string"},username:{required:true,type:"string"}},url:"/orgs/:org/memberships/:username"},blockUser:{method:"PUT",params:{org:{required:true,type:"string"},username:{required:true,type:"string"}},url:"/orgs/:org/blocks/:username"},checkBlockedUser:{method:"GET",params:{org:{required:true,type:"string"},username:{required:true,type:"string"}},url:"/orgs/:org/blocks/:username"},checkMembership:{method:"GET",params:{org:{required:true,type:"string"},username:{required:true,type:"string"}},url:"/orgs/:org/members/:username"},checkPublicMembership:{method:"GET",params:{org:{required:true,type:"string"},username:{required:true,type:"string"}},url:"/orgs/:org/public_members/:username"},concealMembership:{method:"DELETE",params:{org:{required:true,type:"string"},username:{required:true,type:"string"}},url:"/orgs/:org/public_members/:username"},convertMemberToOutsideCollaborator:{method:"PUT",params:{org:{required:true,type:"string"},username:{required:true,type:"string"}},url:"/orgs/:org/outside_collaborators/:username"},createHook:{method:"POST",params:{active:{type:"boolean"},config:{required:true,type:"object"},"config.content_type":{type:"string"},"config.insecure_ssl":{type:"string"},"config.secret":{type:"string"},"config.url":{required:true,type:"string"},events:{type:"string[]"},name:{required:true,type:"string"},org:{required:true,type:"string"}},url:"/orgs/:org/hooks"},createInvitation:{method:"POST",params:{email:{type:"string"},invitee_id:{type:"integer"},org:{required:true,type:"string"},role:{enum:["admin","direct_member","billing_manager"],type:"string"},team_ids:{type:"integer[]"}},url:"/orgs/:org/invitations"},deleteHook:{method:"DELETE",params:{hook_id:{required:true,type:"integer"},org:{required:true,type:"string"}},url:"/orgs/:org/hooks/:hook_id"},get:{method:"GET",params:{org:{required:true,type:"string"}},url:"/orgs/:org"},getHook:{method:"GET",params:{hook_id:{required:true,type:"integer"},org:{required:true,type:"string"}},url:"/orgs/:org/hooks/:hook_id"},getMembership:{method:"GET",params:{org:{required:true,type:"string"},username:{required:true,type:"string"}},url:"/orgs/:org/memberships/:username"},getMembershipForAuthenticatedUser:{method:"GET",params:{org:{required:true,type:"string"}},url:"/user/memberships/orgs/:org"},list:{method:"GET",params:{page:{type:"integer"},per_page:{type:"integer"},since:{type:"string"}},url:"/organizations"},listBlockedUsers:{method:"GET",params:{org:{required:true,type:"string"}},url:"/orgs/:org/blocks"},listForAuthenticatedUser:{method:"GET",params:{page:{type:"integer"},per_page:{type:"integer"}},url:"/user/orgs"},listForUser:{method:"GET",params:{page:{type:"integer"},per_page:{type:"integer"},username:{required:true,type:"string"}},url:"/users/:username/orgs"},listHooks:{method:"GET",params:{org:{required:true,type:"string"},page:{type:"integer"},per_page:{type:"integer"}},url:"/orgs/:org/hooks"},listInstallations:{headers:{accept:"application/vnd.github.machine-man-preview+json"},method:"GET",params:{org:{required:true,type:"string"},page:{type:"integer"},per_page:{type:"integer"}},url:"/orgs/:org/installations"},listInvitationTeams:{method:"GET",params:{invitation_id:{required:true,type:"integer"},org:{required:true,type:"string"},page:{type:"integer"},per_page:{type:"integer"}},url:"/orgs/:org/invitations/:invitation_id/teams"},listMembers:{method:"GET",params:{filter:{enum:["2fa_disabled","all"],type:"string"},org:{required:true,type:"string"},page:{type:"integer"},per_page:{type:"integer"},role:{enum:["all","admin","member"],type:"string"}},url:"/orgs/:org/members"},listMemberships:{method:"GET",params:{page:{type:"integer"},per_page:{type:"integer"},state:{enum:["active","pending"],type:"string"}},url:"/user/memberships/orgs"},listOutsideCollaborators:{method:"GET",params:{filter:{enum:["2fa_disabled","all"],type:"string"},org:{required:true,type:"string"},page:{type:"integer"},per_page:{type:"integer"}},url:"/orgs/:org/outside_collaborators"},listPendingInvitations:{method:"GET",params:{org:{required:true,type:"string"},page:{type:"integer"},per_page:{type:"integer"}},url:"/orgs/:org/invitations"},listPublicMembers:{method:"GET",params:{org:{required:true,type:"string"},page:{type:"integer"},per_page:{type:"integer"}},url:"/orgs/:org/public_members"},pingHook:{method:"POST",params:{hook_id:{required:true,type:"integer"},org:{required:true,type:"string"}},url:"/orgs/:org/hooks/:hook_id/pings"},publicizeMembership:{method:"PUT",params:{org:{required:true,type:"string"},username:{required:true,type:"string"}},url:"/orgs/:org/public_members/:username"},removeMember:{method:"DELETE",params:{org:{required:true,type:"string"},username:{required:true,type:"string"}},url:"/orgs/:org/members/:username"},removeMembership:{method:"DELETE",params:{org:{required:true,type:"string"},username:{required:true,type:"string"}},url:"/orgs/:org/memberships/:username"},removeOutsideCollaborator:{method:"DELETE",params:{org:{required:true,type:"string"},username:{required:true,type:"string"}},url:"/orgs/:org/outside_collaborators/:username"},unblockUser:{method:"DELETE",params:{org:{required:true,type:"string"},username:{required:true,type:"string"}},url:"/orgs/:org/blocks/:username"},update:{method:"PATCH",params:{billing_email:{type:"string"},company:{type:"string"},default_repository_permission:{enum:["read","write","admin","none"],type:"string"},description:{type:"string"},email:{type:"string"},has_organization_projects:{type:"boolean"},has_repository_projects:{type:"boolean"},location:{type:"string"},members_allowed_repository_creation_type:{enum:["all","private","none"],type:"string"},members_can_create_repositories:{type:"boolean"},name:{type:"string"},org:{required:true,type:"string"}},url:"/orgs/:org"},updateHook:{method:"PATCH",params:{active:{type:"boolean"},config:{type:"object"},"config.content_type":{type:"string"},"config.insecure_ssl":{type:"string"},"config.secret":{type:"string"},"config.url":{required:true,type:"string"},events:{type:"string[]"},hook_id:{required:true,type:"integer"},org:{required:true,type:"string"}},url:"/orgs/:org/hooks/:hook_id"},updateMembership:{method:"PATCH",params:{org:{required:true,type:"string"},state:{enum:["active"],required:true,type:"string"}},url:"/user/memberships/orgs/:org"}},projects:{addCollaborator:{headers:{accept:"application/vnd.github.inertia-preview+json"},method:"PUT",params:{permission:{enum:["read","write","admin"],type:"string"},project_id:{required:true,type:"integer"},username:{required:true,type:"string"}},url:"/projects/:project_id/collaborators/:username"},createCard:{headers:{accept:"application/vnd.github.inertia-preview+json"},method:"POST",params:{column_id:{required:true,type:"integer"},content_id:{type:"integer"},content_type:{type:"string"},note:{type:"string"}},url:"/projects/columns/:column_id/cards"},createColumn:{headers:{accept:"application/vnd.github.inertia-preview+json"},method:"POST",params:{name:{required:true,type:"string"},project_id:{required:true,type:"integer"}},url:"/projects/:project_id/columns"},createForAuthenticatedUser:{headers:{accept:"application/vnd.github.inertia-preview+json"},method:"POST",params:{body:{type:"string"},name:{required:true,type:"string"}},url:"/user/projects"},createForOrg:{headers:{accept:"application/vnd.github.inertia-preview+json"},method:"POST",params:{body:{type:"string"},name:{required:true,type:"string"},org:{required:true,type:"string"}},url:"/orgs/:org/projects"},createForRepo:{headers:{accept:"application/vnd.github.inertia-preview+json"},method:"POST",params:{body:{type:"string"},name:{required:true,type:"string"},owner:{required:true,type:"string"},repo:{required:true,type:"string"}},url:"/repos/:owner/:repo/projects"},delete:{headers:{accept:"application/vnd.github.inertia-preview+json"},method:"DELETE",params:{project_id:{required:true,type:"integer"}},url:"/projects/:project_id"},deleteCard:{headers:{accept:"application/vnd.github.inertia-preview+json"},method:"DELETE",params:{card_id:{required:true,type:"integer"}},url:"/projects/columns/cards/:card_id"},deleteColumn:{headers:{accept:"application/vnd.github.inertia-preview+json"},method:"DELETE",params:{column_id:{required:true,type:"integer"}},url:"/projects/columns/:column_id"},get:{headers:{accept:"application/vnd.github.inertia-preview+json"},method:"GET",params:{page:{type:"integer"},per_page:{type:"integer"},project_id:{required:true,type:"integer"}},url:"/projects/:project_id"},getCard:{headers:{accept:"application/vnd.github.inertia-preview+json"},method:"GET",params:{card_id:{required:true,type:"integer"}},url:"/projects/columns/cards/:card_id"},getColumn:{headers:{accept:"application/vnd.github.inertia-preview+json"},method:"GET",params:{column_id:{required:true,type:"integer"}},url:"/projects/columns/:column_id"},listCards:{headers:{accept:"application/vnd.github.inertia-preview+json"},method:"GET",params:{archived_state:{enum:["all","archived","not_archived"],type:"string"},column_id:{required:true,type:"integer"},page:{type:"integer"},per_page:{type:"integer"}},url:"/projects/columns/:column_id/cards"},listCollaborators:{headers:{accept:"application/vnd.github.inertia-preview+json"},method:"GET",params:{affiliation:{enum:["outside","direct","all"],type:"string"},page:{type:"integer"},per_page:{type:"integer"},project_id:{required:true,type:"integer"}},url:"/projects/:project_id/collaborators"},listColumns:{headers:{accept:"application/vnd.github.inertia-preview+json"},method:"GET",params:{page:{type:"integer"},per_page:{type:"integer"},project_id:{required:true,type:"integer"}},url:"/projects/:project_id/columns"},listForOrg:{headers:{accept:"application/vnd.github.inertia-preview+json"},method:"GET",params:{org:{required:true,type:"string"},page:{type:"integer"},per_page:{type:"integer"},state:{enum:["open","closed","all"],type:"string"}},url:"/orgs/:org/projects"},listForRepo:{headers:{accept:"application/vnd.github.inertia-preview+json"},method:"GET",params:{owner:{required:true,type:"string"},page:{type:"integer"},per_page:{type:"integer"},repo:{required:true,type:"string"},state:{enum:["open","closed","all"],type:"string"}},url:"/repos/:owner/:repo/projects"},listForUser:{headers:{accept:"application/vnd.github.inertia-preview+json"},method:"GET",params:{page:{type:"integer"},per_page:{type:"integer"},state:{enum:["open","closed","all"],type:"string"},username:{required:true,type:"string"}},url:"/users/:username/projects"},moveCard:{headers:{accept:"application/vnd.github.inertia-preview+json"},method:"POST",params:{card_id:{required:true,type:"integer"},column_id:{type:"integer"},position:{required:true,type:"string",validation:"^(top|bottom|after:\\d+)$"}},url:"/projects/columns/cards/:card_id/moves"},moveColumn:{headers:{accept:"application/vnd.github.inertia-preview+json"},method:"POST",params:{column_id:{required:true,type:"integer"},position:{required:true,type:"string",validation:"^(first|last|after:\\d+)$"}},url:"/projects/columns/:column_id/moves"},removeCollaborator:{headers:{accept:"application/vnd.github.inertia-preview+json"},method:"DELETE",params:{project_id:{required:true,type:"integer"},username:{required:true,type:"string"}},url:"/projects/:project_id/collaborators/:username"},reviewUserPermissionLevel:{headers:{accept:"application/vnd.github.inertia-preview+json"},method:"GET",params:{project_id:{required:true,type:"integer"},username:{required:true,type:"string"}},url:"/projects/:project_id/collaborators/:username/permission"},update:{headers:{accept:"application/vnd.github.inertia-preview+json"},method:"PATCH",params:{body:{type:"string"},name:{type:"string"},organization_permission:{type:"string"},private:{type:"boolean"},project_id:{required:true,type:"integer"},state:{enum:["open","closed"],type:"string"}},url:"/projects/:project_id"},updateCard:{headers:{accept:"application/vnd.github.inertia-preview+json"},method:"PATCH",params:{archived:{type:"boolean"},card_id:{required:true,type:"integer"},note:{type:"string"}},url:"/projects/columns/cards/:card_id"},updateColumn:{headers:{accept:"application/vnd.github.inertia-preview+json"},method:"PATCH",params:{column_id:{required:true,type:"integer"},name:{required:true,type:"string"}},url:"/projects/columns/:column_id"}},pulls:{checkIfMerged:{method:"GET",params:{number:{alias:"pull_number",deprecated:true,type:"integer"},owner:{required:true,type:"string"},pull_number:{required:true,type:"integer"},repo:{required:true,type:"string"}},url:"/repos/:owner/:repo/pulls/:pull_number/merge"},create:{method:"POST",params:{base:{required:true,type:"string"},body:{type:"string"},draft:{type:"boolean"},head:{required:true,type:"string"},maintainer_can_modify:{type:"boolean"},owner:{required:true,type:"string"},repo:{required:true,type:"string"},title:{required:true,type:"string"}},url:"/repos/:owner/:repo/pulls"},createComment:{method:"POST",params:{body:{required:true,type:"string"},commit_id:{required:true,type:"string"},in_reply_to:{deprecated:true,description:"The comment ID to reply to. **Note**: This must be the ID of a top-level comment, not a reply to that comment. Replies to replies are not supported.",type:"integer"},line:{type:"integer"},number:{alias:"pull_number",deprecated:true,type:"integer"},owner:{required:true,type:"string"},path:{required:true,type:"string"},position:{type:"integer"},pull_number:{required:true,type:"integer"},repo:{required:true,type:"string"},side:{enum:["LEFT","RIGHT"],type:"string"},start_line:{type:"integer"},start_side:{enum:["LEFT","RIGHT","side"],type:"string"}},url:"/repos/:owner/:repo/pulls/:pull_number/comments"},createCommentReply:{deprecated:"octokit.pulls.createCommentReply() has been renamed to octokit.pulls.createComment() (2019-09-09)",method:"POST",params:{body:{required:true,type:"string"},commit_id:{required:true,type:"string"},in_reply_to:{deprecated:true,description:"The comment ID to reply to. **Note**: This must be the ID of a top-level comment, not a reply to that comment. Replies to replies are not supported.",type:"integer"},line:{type:"integer"},number:{alias:"pull_number",deprecated:true,type:"integer"},owner:{required:true,type:"string"},path:{required:true,type:"string"},position:{type:"integer"},pull_number:{required:true,type:"integer"},repo:{required:true,type:"string"},side:{enum:["LEFT","RIGHT"],type:"string"},start_line:{type:"integer"},start_side:{enum:["LEFT","RIGHT","side"],type:"string"}},url:"/repos/:owner/:repo/pulls/:pull_number/comments"},createFromIssue:{deprecated:"octokit.pulls.createFromIssue() is deprecated, see https://developer.github.com/v3/pulls/#create-a-pull-request",method:"POST",params:{base:{required:true,type:"string"},draft:{type:"boolean"},head:{required:true,type:"string"},issue:{required:true,type:"integer"},maintainer_can_modify:{type:"boolean"},owner:{required:true,type:"string"},repo:{required:true,type:"string"}},url:"/repos/:owner/:repo/pulls"},createReview:{method:"POST",params:{body:{type:"string"},comments:{type:"object[]"},"comments[].body":{required:true,type:"string"},"comments[].path":{required:true,type:"string"},"comments[].position":{required:true,type:"integer"},commit_id:{type:"string"},event:{enum:["APPROVE","REQUEST_CHANGES","COMMENT"],type:"string"},number:{alias:"pull_number",deprecated:true,type:"integer"},owner:{required:true,type:"string"},pull_number:{required:true,type:"integer"},repo:{required:true,type:"string"}},url:"/repos/:owner/:repo/pulls/:pull_number/reviews"},createReviewCommentReply:{method:"POST",params:{body:{required:true,type:"string"},comment_id:{required:true,type:"integer"},owner:{required:true,type:"string"},pull_number:{required:true,type:"integer"},repo:{required:true,type:"string"}},url:"/repos/:owner/:repo/pulls/:pull_number/comments/:comment_id/replies"},createReviewRequest:{method:"POST",params:{number:{alias:"pull_number",deprecated:true,type:"integer"},owner:{required:true,type:"string"},pull_number:{required:true,type:"integer"},repo:{required:true,type:"string"},reviewers:{type:"string[]"},team_reviewers:{type:"string[]"}},url:"/repos/:owner/:repo/pulls/:pull_number/requested_reviewers"},deleteComment:{method:"DELETE",params:{comment_id:{required:true,type:"integer"},owner:{required:true,type:"string"},repo:{required:true,type:"string"}},url:"/repos/:owner/:repo/pulls/comments/:comment_id"},deletePendingReview:{method:"DELETE",params:{number:{alias:"pull_number",deprecated:true,type:"integer"},owner:{required:true,type:"string"},pull_number:{required:true,type:"integer"},repo:{required:true,type:"string"},review_id:{required:true,type:"integer"}},url:"/repos/:owner/:repo/pulls/:pull_number/reviews/:review_id"},deleteReviewRequest:{method:"DELETE",params:{number:{alias:"pull_number",deprecated:true,type:"integer"},owner:{required:true,type:"string"},pull_number:{required:true,type:"integer"},repo:{required:true,type:"string"},reviewers:{type:"string[]"},team_reviewers:{type:"string[]"}},url:"/repos/:owner/:repo/pulls/:pull_number/requested_reviewers"},dismissReview:{method:"PUT",params:{message:{required:true,type:"string"},number:{alias:"pull_number",deprecated:true,type:"integer"},owner:{required:true,type:"string"},pull_number:{required:true,type:"integer"},repo:{required:true,type:"string"},review_id:{required:true,type:"integer"}},url:"/repos/:owner/:repo/pulls/:pull_number/reviews/:review_id/dismissals"},get:{method:"GET",params:{number:{alias:"pull_number",deprecated:true,type:"integer"},owner:{required:true,type:"string"},pull_number:{required:true,type:"integer"},repo:{required:true,type:"string"}},url:"/repos/:owner/:repo/pulls/:pull_number"},getComment:{method:"GET",params:{comment_id:{required:true,type:"integer"},owner:{required:true,type:"string"},repo:{required:true,type:"string"}},url:"/repos/:owner/:repo/pulls/comments/:comment_id"},getCommentsForReview:{method:"GET",params:{number:{alias:"pull_number",deprecated:true,type:"integer"},owner:{required:true,type:"string"},page:{type:"integer"},per_page:{type:"integer"},pull_number:{required:true,type:"integer"},repo:{required:true,type:"string"},review_id:{required:true,type:"integer"}},url:"/repos/:owner/:repo/pulls/:pull_number/reviews/:review_id/comments"},getReview:{method:"GET",params:{number:{alias:"pull_number",deprecated:true,type:"integer"},owner:{required:true,type:"string"},pull_number:{required:true,type:"integer"},repo:{required:true,type:"string"},review_id:{required:true,type:"integer"}},url:"/repos/:owner/:repo/pulls/:pull_number/reviews/:review_id"},list:{method:"GET",params:{base:{type:"string"},direction:{enum:["asc","desc"],type:"string"},head:{type:"string"},owner:{required:true,type:"string"},page:{type:"integer"},per_page:{type:"integer"},repo:{required:true,type:"string"},sort:{enum:["created","updated","popularity","long-running"],type:"string"},state:{enum:["open","closed","all"],type:"string"}},url:"/repos/:owner/:repo/pulls"},listComments:{method:"GET",params:{direction:{enum:["asc","desc"],type:"string"},number:{alias:"pull_number",deprecated:true,type:"integer"},owner:{required:true,type:"string"},page:{type:"integer"},per_page:{type:"integer"},pull_number:{required:true,type:"integer"},repo:{required:true,type:"string"},since:{type:"string"},sort:{enum:["created","updated"],type:"string"}},url:"/repos/:owner/:repo/pulls/:pull_number/comments"},listCommentsForRepo:{method:"GET",params:{direction:{enum:["asc","desc"],type:"string"},owner:{required:true,type:"string"},page:{type:"integer"},per_page:{type:"integer"},repo:{required:true,type:"string"},since:{type:"string"},sort:{enum:["created","updated"],type:"string"}},url:"/repos/:owner/:repo/pulls/comments"},listCommits:{method:"GET",params:{number:{alias:"pull_number",deprecated:true,type:"integer"},owner:{required:true,type:"string"},page:{type:"integer"},per_page:{type:"integer"},pull_number:{required:true,type:"integer"},repo:{required:true,type:"string"}},url:"/repos/:owner/:repo/pulls/:pull_number/commits"},listFiles:{method:"GET",params:{number:{alias:"pull_number",deprecated:true,type:"integer"},owner:{required:true,type:"string"},page:{type:"integer"},per_page:{type:"integer"},pull_number:{required:true,type:"integer"},repo:{required:true,type:"string"}},url:"/repos/:owner/:repo/pulls/:pull_number/files"},listReviewRequests:{method:"GET",params:{number:{alias:"pull_number",deprecated:true,type:"integer"},owner:{required:true,type:"string"},page:{type:"integer"},per_page:{type:"integer"},pull_number:{required:true,type:"integer"},repo:{required:true,type:"string"}},url:"/repos/:owner/:repo/pulls/:pull_number/requested_reviewers"},listReviews:{method:"GET",params:{number:{alias:"pull_number",deprecated:true,type:"integer"},owner:{required:true,type:"string"},page:{type:"integer"},per_page:{type:"integer"},pull_number:{required:true,type:"integer"},repo:{required:true,type:"string"}},url:"/repos/:owner/:repo/pulls/:pull_number/reviews"},merge:{method:"PUT",params:{commit_message:{type:"string"},commit_title:{type:"string"},merge_method:{enum:["merge","squash","rebase"],type:"string"},number:{alias:"pull_number",deprecated:true,type:"integer"},owner:{required:true,type:"string"},pull_number:{required:true,type:"integer"},repo:{required:true,type:"string"},sha:{type:"string"}},url:"/repos/:owner/:repo/pulls/:pull_number/merge"},submitReview:{method:"POST",params:{body:{type:"string"},event:{enum:["APPROVE","REQUEST_CHANGES","COMMENT"],required:true,type:"string"},number:{alias:"pull_number",deprecated:true,type:"integer"},owner:{required:true,type:"string"},pull_number:{required:true,type:"integer"},repo:{required:true,type:"string"},review_id:{required:true,type:"integer"}},url:"/repos/:owner/:repo/pulls/:pull_number/reviews/:review_id/events"},update:{method:"PATCH",params:{base:{type:"string"},body:{type:"string"},maintainer_can_modify:{type:"boolean"},number:{alias:"pull_number",deprecated:true,type:"integer"},owner:{required:true,type:"string"},pull_number:{required:true,type:"integer"},repo:{required:true,type:"string"},state:{enum:["open","closed"],type:"string"},title:{type:"string"}},url:"/repos/:owner/:repo/pulls/:pull_number"},updateBranch:{headers:{accept:"application/vnd.github.lydian-preview+json"},method:"PUT",params:{expected_head_sha:{type:"string"},owner:{required:true,type:"string"},pull_number:{required:true,type:"integer"},repo:{required:true,type:"string"}},url:"/repos/:owner/:repo/pulls/:pull_number/update-branch"},updateComment:{method:"PATCH",params:{body:{required:true,type:"string"},comment_id:{required:true,type:"integer"},owner:{required:true,type:"string"},repo:{required:true,type:"string"}},url:"/repos/:owner/:repo/pulls/comments/:comment_id"},updateReview:{method:"PUT",params:{body:{required:true,type:"string"},number:{alias:"pull_number",deprecated:true,type:"integer"},owner:{required:true,type:"string"},pull_number:{required:true,type:"integer"},repo:{required:true,type:"string"},review_id:{required:true,type:"integer"}},url:"/repos/:owner/:repo/pulls/:pull_number/reviews/:review_id"}},rateLimit:{get:{method:"GET",params:{},url:"/rate_limit"}},reactions:{createForCommitComment:{headers:{accept:"application/vnd.github.squirrel-girl-preview+json"},method:"POST",params:{comment_id:{required:true,type:"integer"},content:{enum:["+1","-1","laugh","confused","heart","hooray","rocket","eyes"],required:true,type:"string"},owner:{required:true,type:"string"},repo:{required:true,type:"string"}},url:"/repos/:owner/:repo/comments/:comment_id/reactions"},createForIssue:{headers:{accept:"application/vnd.github.squirrel-girl-preview+json"},method:"POST",params:{content:{enum:["+1","-1","laugh","confused","heart","hooray","rocket","eyes"],required:true,type:"string"},issue_number:{required:true,type:"integer"},number:{alias:"issue_number",deprecated:true,type:"integer"},owner:{required:true,type:"string"},repo:{required:true,type:"string"}},url:"/repos/:owner/:repo/issues/:issue_number/reactions"},createForIssueComment:{headers:{accept:"application/vnd.github.squirrel-girl-preview+json"},method:"POST",params:{comment_id:{required:true,type:"integer"},content:{enum:["+1","-1","laugh","confused","heart","hooray","rocket","eyes"],required:true,type:"string"},owner:{required:true,type:"string"},repo:{required:true,type:"string"}},url:"/repos/:owner/:repo/issues/comments/:comment_id/reactions"},createForPullRequestReviewComment:{headers:{accept:"application/vnd.github.squirrel-girl-preview+json"},method:"POST",params:{comment_id:{required:true,type:"integer"},content:{enum:["+1","-1","laugh","confused","heart","hooray","rocket","eyes"],required:true,type:"string"},owner:{required:true,type:"string"},repo:{required:true,type:"string"}},url:"/repos/:owner/:repo/pulls/comments/:comment_id/reactions"},createForTeamDiscussion:{headers:{accept:"application/vnd.github.echo-preview+json,application/vnd.github.squirrel-girl-preview+json"},method:"POST",params:{content:{enum:["+1","-1","laugh","confused","heart","hooray","rocket","eyes"],required:true,type:"string"},discussion_number:{required:true,type:"integer"},team_id:{required:true,type:"integer"}},url:"/teams/:team_id/discussions/:discussion_number/reactions"},createForTeamDiscussionComment:{headers:{accept:"application/vnd.github.echo-preview+json,application/vnd.github.squirrel-girl-preview+json"},method:"POST",params:{comment_number:{required:true,type:"integer"},content:{enum:["+1","-1","laugh","confused","heart","hooray","rocket","eyes"],required:true,type:"string"},discussion_number:{required:true,type:"integer"},team_id:{required:true,type:"integer"}},url:"/teams/:team_id/discussions/:discussion_number/comments/:comment_number/reactions"},delete:{headers:{accept:"application/vnd.github.echo-preview+json,application/vnd.github.squirrel-girl-preview+json"},method:"DELETE",params:{reaction_id:{required:true,type:"integer"}},url:"/reactions/:reaction_id"},listForCommitComment:{headers:{accept:"application/vnd.github.squirrel-girl-preview+json"},method:"GET",params:{comment_id:{required:true,type:"integer"},content:{enum:["+1","-1","laugh","confused","heart","hooray","rocket","eyes"],type:"string"},owner:{required:true,type:"string"},page:{type:"integer"},per_page:{type:"integer"},repo:{required:true,type:"string"}},url:"/repos/:owner/:repo/comments/:comment_id/reactions"},listForIssue:{headers:{accept:"application/vnd.github.squirrel-girl-preview+json"},method:"GET",params:{content:{enum:["+1","-1","laugh","confused","heart","hooray","rocket","eyes"],type:"string"},issue_number:{required:true,type:"integer"},number:{alias:"issue_number",deprecated:true,type:"integer"},owner:{required:true,type:"string"},page:{type:"integer"},per_page:{type:"integer"},repo:{required:true,type:"string"}},url:"/repos/:owner/:repo/issues/:issue_number/reactions"},listForIssueComment:{headers:{accept:"application/vnd.github.squirrel-girl-preview+json"},method:"GET",params:{comment_id:{required:true,type:"integer"},content:{enum:["+1","-1","laugh","confused","heart","hooray","rocket","eyes"],type:"string"},owner:{required:true,type:"string"},page:{type:"integer"},per_page:{type:"integer"},repo:{required:true,type:"string"}},url:"/repos/:owner/:repo/issues/comments/:comment_id/reactions"},listForPullRequestReviewComment:{headers:{accept:"application/vnd.github.squirrel-girl-preview+json"},method:"GET",params:{comment_id:{required:true,type:"integer"},content:{enum:["+1","-1","laugh","confused","heart","hooray","rocket","eyes"],type:"string"},owner:{required:true,type:"string"},page:{type:"integer"},per_page:{type:"integer"},repo:{required:true,type:"string"}},url:"/repos/:owner/:repo/pulls/comments/:comment_id/reactions"},listForTeamDiscussion:{headers:{accept:"application/vnd.github.echo-preview+json,application/vnd.github.squirrel-girl-preview+json"},method:"GET",params:{content:{enum:["+1","-1","laugh","confused","heart","hooray","rocket","eyes"],type:"string"},discussion_number:{required:true,type:"integer"},page:{type:"integer"},per_page:{type:"integer"},team_id:{required:true,type:"integer"}},url:"/teams/:team_id/discussions/:discussion_number/reactions"},listForTeamDiscussionComment:{headers:{accept:"application/vnd.github.echo-preview+json,application/vnd.github.squirrel-girl-preview+json"},method:"GET",params:{comment_number:{required:true,type:"integer"},content:{enum:["+1","-1","laugh","confused","heart","hooray","rocket","eyes"],type:"string"},discussion_number:{required:true,type:"integer"},page:{type:"integer"},per_page:{type:"integer"},team_id:{required:true,type:"integer"}},url:"/teams/:team_id/discussions/:discussion_number/comments/:comment_number/reactions"}},repos:{acceptInvitation:{method:"PATCH",params:{invitation_id:{required:true,type:"integer"}},url:"/user/repository_invitations/:invitation_id"},addCollaborator:{method:"PUT",params:{owner:{required:true,type:"string"},permission:{enum:["pull","push","admin"],type:"string"},repo:{required:true,type:"string"},username:{required:true,type:"string"}},url:"/repos/:owner/:repo/collaborators/:username"},addDeployKey:{method:"POST",params:{key:{required:true,type:"string"},owner:{required:true,type:"string"},read_only:{type:"boolean"},repo:{required:true,type:"string"},title:{type:"string"}},url:"/repos/:owner/:repo/keys"},addProtectedBranchAdminEnforcement:{method:"POST",params:{branch:{required:true,type:"string"},owner:{required:true,type:"string"},repo:{required:true,type:"string"}},url:"/repos/:owner/:repo/branches/:branch/protection/enforce_admins"},addProtectedBranchAppRestrictions:{method:"POST",params:{apps:{mapTo:"data",required:true,type:"string[]"},branch:{required:true,type:"string"},owner:{required:true,type:"string"},repo:{required:true,type:"string"}},url:"/repos/:owner/:repo/branches/:branch/protection/restrictions/apps"},addProtectedBranchRequiredSignatures:{headers:{accept:"application/vnd.github.zzzax-preview+json"},method:"POST",params:{branch:{required:true,type:"string"},owner:{required:true,type:"string"},repo:{required:true,type:"string"}},url:"/repos/:owner/:repo/branches/:branch/protection/required_signatures"},addProtectedBranchRequiredStatusChecksContexts:{method:"POST",params:{branch:{required:true,type:"string"},contexts:{mapTo:"data",required:true,type:"string[]"},owner:{required:true,type:"string"},repo:{required:true,type:"string"}},url:"/repos/:owner/:repo/branches/:branch/protection/required_status_checks/contexts"},addProtectedBranchTeamRestrictions:{method:"POST",params:{branch:{required:true,type:"string"},owner:{required:true,type:"string"},repo:{required:true,type:"string"},teams:{mapTo:"data",required:true,type:"string[]"}},url:"/repos/:owner/:repo/branches/:branch/protection/restrictions/teams"},addProtectedBranchUserRestrictions:{method:"POST",params:{branch:{required:true,type:"string"},owner:{required:true,type:"string"},repo:{required:true,type:"string"},users:{mapTo:"data",required:true,type:"string[]"}},url:"/repos/:owner/:repo/branches/:branch/protection/restrictions/users"},checkCollaborator:{method:"GET",params:{owner:{required:true,type:"string"},repo:{required:true,type:"string"},username:{required:true,type:"string"}},url:"/repos/:owner/:repo/collaborators/:username"},checkVulnerabilityAlerts:{headers:{accept:"application/vnd.github.dorian-preview+json"},method:"GET",params:{owner:{required:true,type:"string"},repo:{required:true,type:"string"}},url:"/repos/:owner/:repo/vulnerability-alerts"},compareCommits:{method:"GET",params:{base:{required:true,type:"string"},head:{required:true,type:"string"},owner:{required:true,type:"string"},repo:{required:true,type:"string"}},url:"/repos/:owner/:repo/compare/:base...:head"},createCommitComment:{method:"POST",params:{body:{required:true,type:"string"},commit_sha:{required:true,type:"string"},line:{type:"integer"},owner:{required:true,type:"string"},path:{type:"string"},position:{type:"integer"},repo:{required:true,type:"string"},sha:{alias:"commit_sha",deprecated:true,type:"string"}},url:"/repos/:owner/:repo/commits/:commit_sha/comments"},createDeployment:{method:"POST",params:{auto_merge:{type:"boolean"},description:{type:"string"},environment:{type:"string"},owner:{required:true,type:"string"},payload:{type:"string"},production_environment:{type:"boolean"},ref:{required:true,type:"string"},repo:{required:true,type:"string"},required_contexts:{type:"string[]"},task:{type:"string"},transient_environment:{type:"boolean"}},url:"/repos/:owner/:repo/deployments"},createDeploymentStatus:{method:"POST",params:{auto_inactive:{type:"boolean"},deployment_id:{required:true,type:"integer"},description:{type:"string"},environment:{enum:["production","staging","qa"],type:"string"},environment_url:{type:"string"},log_url:{type:"string"},owner:{required:true,type:"string"},repo:{required:true,type:"string"},state:{enum:["error","failure","inactive","in_progress","queued","pending","success"],required:true,type:"string"},target_url:{type:"string"}},url:"/repos/:owner/:repo/deployments/:deployment_id/statuses"},createDispatchEvent:{headers:{accept:"application/vnd.github.everest-preview+json"},method:"POST",params:{client_payload:{type:"object"},event_type:{type:"string"},owner:{required:true,type:"string"},repo:{required:true,type:"string"}},url:"/repos/:owner/:repo/dispatches"},createFile:{deprecated:"octokit.repos.createFile() has been renamed to octokit.repos.createOrUpdateFile() (2019-06-07)",method:"PUT",params:{author:{type:"object"},"author.email":{required:true,type:"string"},"author.name":{required:true,type:"string"},branch:{type:"string"},committer:{type:"object"},"committer.email":{required:true,type:"string"},"committer.name":{required:true,type:"string"},content:{required:true,type:"string"},message:{required:true,type:"string"},owner:{required:true,type:"string"},path:{required:true,type:"string"},repo:{required:true,type:"string"},sha:{type:"string"}},url:"/repos/:owner/:repo/contents/:path"},createForAuthenticatedUser:{method:"POST",params:{allow_merge_commit:{type:"boolean"},allow_rebase_merge:{type:"boolean"},allow_squash_merge:{type:"boolean"},auto_init:{type:"boolean"},description:{type:"string"},gitignore_template:{type:"string"},has_issues:{type:"boolean"},has_projects:{type:"boolean"},has_wiki:{type:"boolean"},homepage:{type:"string"},is_template:{type:"boolean"},license_template:{type:"string"},name:{required:true,type:"string"},private:{type:"boolean"},team_id:{type:"integer"}},url:"/user/repos"},createFork:{method:"POST",params:{organization:{type:"string"},owner:{required:true,type:"string"},repo:{required:true,type:"string"}},url:"/repos/:owner/:repo/forks"},createHook:{method:"POST",params:{active:{type:"boolean"},config:{required:true,type:"object"},"config.content_type":{type:"string"},"config.insecure_ssl":{type:"string"},"config.secret":{type:"string"},"config.url":{required:true,type:"string"},events:{type:"string[]"},name:{type:"string"},owner:{required:true,type:"string"},repo:{required:true,type:"string"}},url:"/repos/:owner/:repo/hooks"},createInOrg:{method:"POST",params:{allow_merge_commit:{type:"boolean"},allow_rebase_merge:{type:"boolean"},allow_squash_merge:{type:"boolean"},auto_init:{type:"boolean"},description:{type:"string"},gitignore_template:{type:"string"},has_issues:{type:"boolean"},has_projects:{type:"boolean"},has_wiki:{type:"boolean"},homepage:{type:"string"},is_template:{type:"boolean"},license_template:{type:"string"},name:{required:true,type:"string"},org:{required:true,type:"string"},private:{type:"boolean"},team_id:{type:"integer"}},url:"/orgs/:org/repos"},createOrUpdateFile:{method:"PUT",params:{author:{type:"object"},"author.email":{required:true,type:"string"},"author.name":{required:true,type:"string"},branch:{type:"string"},committer:{type:"object"},"committer.email":{required:true,type:"string"},"committer.name":{required:true,type:"string"},content:{required:true,type:"string"},message:{required:true,type:"string"},owner:{required:true,type:"string"},path:{required:true,type:"string"},repo:{required:true,type:"string"},sha:{type:"string"}},url:"/repos/:owner/:repo/contents/:path"},createRelease:{method:"POST",params:{body:{type:"string"},draft:{type:"boolean"},name:{type:"string"},owner:{required:true,type:"string"},prerelease:{type:"boolean"},repo:{required:true,type:"string"},tag_name:{required:true,type:"string"},target_commitish:{type:"string"}},url:"/repos/:owner/:repo/releases"},createStatus:{method:"POST",params:{context:{type:"string"},description:{type:"string"},owner:{required:true,type:"string"},repo:{required:true,type:"string"},sha:{required:true,type:"string"},state:{enum:["error","failure","pending","success"],required:true,type:"string"},target_url:{type:"string"}},url:"/repos/:owner/:repo/statuses/:sha"},createUsingTemplate:{headers:{accept:"application/vnd.github.baptiste-preview+json"},method:"POST",params:{description:{type:"string"},name:{required:true,type:"string"},owner:{type:"string"},private:{type:"boolean"},template_owner:{required:true,type:"string"},template_repo:{required:true,type:"string"}},url:"/repos/:template_owner/:template_repo/generate"},declineInvitation:{method:"DELETE",params:{invitation_id:{required:true,type:"integer"}},url:"/user/repository_invitations/:invitation_id"},delete:{method:"DELETE",params:{owner:{required:true,type:"string"},repo:{required:true,type:"string"}},url:"/repos/:owner/:repo"},deleteCommitComment:{method:"DELETE",params:{comment_id:{required:true,type:"integer"},owner:{required:true,type:"string"},repo:{required:true,type:"string"}},url:"/repos/:owner/:repo/comments/:comment_id"},deleteDownload:{method:"DELETE",params:{download_id:{required:true,type:"integer"},owner:{required:true,type:"string"},repo:{required:true,type:"string"}},url:"/repos/:owner/:repo/downloads/:download_id"},deleteFile:{method:"DELETE",params:{author:{type:"object"},"author.email":{type:"string"},"author.name":{type:"string"},branch:{type:"string"},committer:{type:"object"},"committer.email":{type:"string"},"committer.name":{type:"string"},message:{required:true,type:"string"},owner:{required:true,type:"string"},path:{required:true,type:"string"},repo:{required:true,type:"string"},sha:{required:true,type:"string"}},url:"/repos/:owner/:repo/contents/:path"},deleteHook:{method:"DELETE",params:{hook_id:{required:true,type:"integer"},owner:{required:true,type:"string"},repo:{required:true,type:"string"}},url:"/repos/:owner/:repo/hooks/:hook_id"},deleteInvitation:{method:"DELETE",params:{invitation_id:{required:true,type:"integer"},owner:{required:true,type:"string"},repo:{required:true,type:"string"}},url:"/repos/:owner/:repo/invitations/:invitation_id"},deleteRelease:{method:"DELETE",params:{owner:{required:true,type:"string"},release_id:{required:true,type:"integer"},repo:{required:true,type:"string"}},url:"/repos/:owner/:repo/releases/:release_id"},deleteReleaseAsset:{method:"DELETE",params:{asset_id:{required:true,type:"integer"},owner:{required:true,type:"string"},repo:{required:true,type:"string"}},url:"/repos/:owner/:repo/releases/assets/:asset_id"},disableAutomatedSecurityFixes:{headers:{accept:"application/vnd.github.london-preview+json"},method:"DELETE",params:{owner:{required:true,type:"string"},repo:{required:true,type:"string"}},url:"/repos/:owner/:repo/automated-security-fixes"},disablePagesSite:{headers:{accept:"application/vnd.github.switcheroo-preview+json"},method:"DELETE",params:{owner:{required:true,type:"string"},repo:{required:true,type:"string"}},url:"/repos/:owner/:repo/pages"},disableVulnerabilityAlerts:{headers:{accept:"application/vnd.github.dorian-preview+json"},method:"DELETE",params:{owner:{required:true,type:"string"},repo:{required:true,type:"string"}},url:"/repos/:owner/:repo/vulnerability-alerts"},enableAutomatedSecurityFixes:{headers:{accept:"application/vnd.github.london-preview+json"},method:"PUT",params:{owner:{required:true,type:"string"},repo:{required:true,type:"string"}},url:"/repos/:owner/:repo/automated-security-fixes"},enablePagesSite:{headers:{accept:"application/vnd.github.switcheroo-preview+json"},method:"POST",params:{owner:{required:true,type:"string"},repo:{required:true,type:"string"},source:{type:"object"},"source.branch":{enum:["master","gh-pages"],type:"string"},"source.path":{type:"string"}},url:"/repos/:owner/:repo/pages"},enableVulnerabilityAlerts:{headers:{accept:"application/vnd.github.dorian-preview+json"},method:"PUT",params:{owner:{required:true,type:"string"},repo:{required:true,type:"string"}},url:"/repos/:owner/:repo/vulnerability-alerts"},get:{method:"GET",params:{owner:{required:true,type:"string"},repo:{required:true,type:"string"}},url:"/repos/:owner/:repo"},getAppsWithAccessToProtectedBranch:{method:"GET",params:{branch:{required:true,type:"string"},owner:{required:true,type:"string"},repo:{required:true,type:"string"}},url:"/repos/:owner/:repo/branches/:branch/protection/restrictions/apps"},getArchiveLink:{method:"GET",params:{archive_format:{required:true,type:"string"},owner:{required:true,type:"string"},ref:{required:true,type:"string"},repo:{required:true,type:"string"}},url:"/repos/:owner/:repo/:archive_format/:ref"},getBranch:{method:"GET",params:{branch:{required:true,type:"string"},owner:{required:true,type:"string"},repo:{required:true,type:"string"}},url:"/repos/:owner/:repo/branches/:branch"},getBranchProtection:{method:"GET",params:{branch:{required:true,type:"string"},owner:{required:true,type:"string"},repo:{required:true,type:"string"}},url:"/repos/:owner/:repo/branches/:branch/protection"},getClones:{method:"GET",params:{owner:{required:true,type:"string"},per:{enum:["day","week"],type:"string"},repo:{required:true,type:"string"}},url:"/repos/:owner/:repo/traffic/clones"},getCodeFrequencyStats:{method:"GET",params:{owner:{required:true,type:"string"},repo:{required:true,type:"string"}},url:"/repos/:owner/:repo/stats/code_frequency"},getCollaboratorPermissionLevel:{method:"GET",params:{owner:{required:true,type:"string"},repo:{required:true,type:"string"},username:{required:true,type:"string"}},url:"/repos/:owner/:repo/collaborators/:username/permission"},getCombinedStatusForRef:{method:"GET",params:{owner:{required:true,type:"string"},ref:{required:true,type:"string"},repo:{required:true,type:"string"}},url:"/repos/:owner/:repo/commits/:ref/status"},getCommit:{method:"GET",params:{commit_sha:{alias:"ref",deprecated:true,type:"string"},owner:{required:true,type:"string"},ref:{required:true,type:"string"},repo:{required:true,type:"string"},sha:{alias:"ref",deprecated:true,type:"string"}},url:"/repos/:owner/:repo/commits/:ref"},getCommitActivityStats:{method:"GET",params:{owner:{required:true,type:"string"},repo:{required:true,type:"string"}},url:"/repos/:owner/:repo/stats/commit_activity"},getCommitComment:{method:"GET",params:{comment_id:{required:true,type:"integer"},owner:{required:true,type:"string"},repo:{required:true,type:"string"}},url:"/repos/:owner/:repo/comments/:comment_id"},getCommitRefSha:{deprecated:"octokit.repos.getCommitRefSha() is deprecated, see https://developer.github.com/v3/repos/commits/#get-a-single-commit",headers:{accept:"application/vnd.github.v3.sha"},method:"GET",params:{owner:{required:true,type:"string"},ref:{required:true,type:"string"},repo:{required:true,type:"string"}},url:"/repos/:owner/:repo/commits/:ref"},getContents:{method:"GET",params:{owner:{required:true,type:"string"},path:{required:true,type:"string"},ref:{type:"string"},repo:{required:true,type:"string"}},url:"/repos/:owner/:repo/contents/:path"},getContributorsStats:{method:"GET",params:{owner:{required:true,type:"string"},repo:{required:true,type:"string"}},url:"/repos/:owner/:repo/stats/contributors"},getDeployKey:{method:"GET",params:{key_id:{required:true,type:"integer"},owner:{required:true,type:"string"},repo:{required:true,type:"string"}},url:"/repos/:owner/:repo/keys/:key_id"},getDeployment:{method:"GET",params:{deployment_id:{required:true,type:"integer"},owner:{required:true,type:"string"},repo:{required:true,type:"string"}},url:"/repos/:owner/:repo/deployments/:deployment_id"},getDeploymentStatus:{method:"GET",params:{deployment_id:{required:true,type:"integer"},owner:{required:true,type:"string"},repo:{required:true,type:"string"},status_id:{required:true,type:"integer"}},url:"/repos/:owner/:repo/deployments/:deployment_id/statuses/:status_id"},getDownload:{method:"GET",params:{download_id:{required:true,type:"integer"},owner:{required:true,type:"string"},repo:{required:true,type:"string"}},url:"/repos/:owner/:repo/downloads/:download_id"},getHook:{method:"GET",params:{hook_id:{required:true,type:"integer"},owner:{required:true,type:"string"},repo:{required:true,type:"string"}},url:"/repos/:owner/:repo/hooks/:hook_id"},getLatestPagesBuild:{method:"GET",params:{owner:{required:true,type:"string"},repo:{required:true,type:"string"}},url:"/repos/:owner/:repo/pages/builds/latest"},getLatestRelease:{method:"GET",params:{owner:{required:true,type:"string"},repo:{required:true,type:"string"}},url:"/repos/:owner/:repo/releases/latest"},getPages:{method:"GET",params:{owner:{required:true,type:"string"},repo:{required:true,type:"string"}},url:"/repos/:owner/:repo/pages"},getPagesBuild:{method:"GET",params:{build_id:{required:true,type:"integer"},owner:{required:true,type:"string"},repo:{required:true,type:"string"}},url:"/repos/:owner/:repo/pages/builds/:build_id"},getParticipationStats:{method:"GET",params:{owner:{required:true,type:"string"},repo:{required:true,type:"string"}},url:"/repos/:owner/:repo/stats/participation"},getProtectedBranchAdminEnforcement:{method:"GET",params:{branch:{required:true,type:"string"},owner:{required:true,type:"string"},repo:{required:true,type:"string"}},url:"/repos/:owner/:repo/branches/:branch/protection/enforce_admins"},getProtectedBranchPullRequestReviewEnforcement:{method:"GET",params:{branch:{required:true,type:"string"},owner:{required:true,type:"string"},repo:{required:true,type:"string"}},url:"/repos/:owner/:repo/branches/:branch/protection/required_pull_request_reviews"},getProtectedBranchRequiredSignatures:{headers:{accept:"application/vnd.github.zzzax-preview+json"},method:"GET",params:{branch:{required:true,type:"string"},owner:{required:true,type:"string"},repo:{required:true,type:"string"}},url:"/repos/:owner/:repo/branches/:branch/protection/required_signatures"},getProtectedBranchRequiredStatusChecks:{method:"GET",params:{branch:{required:true,type:"string"},owner:{required:true,type:"string"},repo:{required:true,type:"string"}},url:"/repos/:owner/:repo/branches/:branch/protection/required_status_checks"},getProtectedBranchRestrictions:{method:"GET",params:{branch:{required:true,type:"string"},owner:{required:true,type:"string"},repo:{required:true,type:"string"}},url:"/repos/:owner/:repo/branches/:branch/protection/restrictions"},getPunchCardStats:{method:"GET",params:{owner:{required:true,type:"string"},repo:{required:true,type:"string"}},url:"/repos/:owner/:repo/stats/punch_card"},getReadme:{method:"GET",params:{owner:{required:true,type:"string"},ref:{type:"string"},repo:{required:true,type:"string"}},url:"/repos/:owner/:repo/readme"},getRelease:{method:"GET",params:{owner:{required:true,type:"string"},release_id:{required:true,type:"integer"},repo:{required:true,type:"string"}},url:"/repos/:owner/:repo/releases/:release_id"},getReleaseAsset:{method:"GET",params:{asset_id:{required:true,type:"integer"},owner:{required:true,type:"string"},repo:{required:true,type:"string"}},url:"/repos/:owner/:repo/releases/assets/:asset_id"},getReleaseByTag:{method:"GET",params:{owner:{required:true,type:"string"},repo:{required:true,type:"string"},tag:{required:true,type:"string"}},url:"/repos/:owner/:repo/releases/tags/:tag"},getTeamsWithAccessToProtectedBranch:{method:"GET",params:{branch:{required:true,type:"string"},owner:{required:true,type:"string"},repo:{required:true,type:"string"}},url:"/repos/:owner/:repo/branches/:branch/protection/restrictions/teams"},getTopPaths:{method:"GET",params:{owner:{required:true,type:"string"},repo:{required:true,type:"string"}},url:"/repos/:owner/:repo/traffic/popular/paths"},getTopReferrers:{method:"GET",params:{owner:{required:true,type:"string"},repo:{required:true,type:"string"}},url:"/repos/:owner/:repo/traffic/popular/referrers"},getUsersWithAccessToProtectedBranch:{method:"GET",params:{branch:{required:true,type:"string"},owner:{required:true,type:"string"},repo:{required:true,type:"string"}},url:"/repos/:owner/:repo/branches/:branch/protection/restrictions/users"},getViews:{method:"GET",params:{owner:{required:true,type:"string"},per:{enum:["day","week"],type:"string"},repo:{required:true,type:"string"}},url:"/repos/:owner/:repo/traffic/views"},list:{method:"GET",params:{affiliation:{type:"string"},direction:{enum:["asc","desc"],type:"string"},page:{type:"integer"},per_page:{type:"integer"},sort:{enum:["created","updated","pushed","full_name"],type:"string"},type:{enum:["all","owner","public","private","member"],type:"string"},visibility:{enum:["all","public","private"],type:"string"}},url:"/user/repos"},listAppsWithAccessToProtectedBranch:{deprecated:"octokit.repos.listAppsWithAccessToProtectedBranch() has been renamed to octokit.repos.getAppsWithAccessToProtectedBranch() (2019-09-13)",method:"GET",params:{branch:{required:true,type:"string"},owner:{required:true,type:"string"},repo:{required:true,type:"string"}},url:"/repos/:owner/:repo/branches/:branch/protection/restrictions/apps"},listAssetsForRelease:{method:"GET",params:{owner:{required:true,type:"string"},page:{type:"integer"},per_page:{type:"integer"},release_id:{required:true,type:"integer"},repo:{required:true,type:"string"}},url:"/repos/:owner/:repo/releases/:release_id/assets"},listBranches:{method:"GET",params:{owner:{required:true,type:"string"},page:{type:"integer"},per_page:{type:"integer"},protected:{type:"boolean"},repo:{required:true,type:"string"}},url:"/repos/:owner/:repo/branches"},listBranchesForHeadCommit:{headers:{accept:"application/vnd.github.groot-preview+json"},method:"GET",params:{commit_sha:{required:true,type:"string"},owner:{required:true,type:"string"},repo:{required:true,type:"string"}},url:"/repos/:owner/:repo/commits/:commit_sha/branches-where-head"},listCollaborators:{method:"GET",params:{affiliation:{enum:["outside","direct","all"],type:"string"},owner:{required:true,type:"string"},page:{type:"integer"},per_page:{type:"integer"},repo:{required:true,type:"string"}},url:"/repos/:owner/:repo/collaborators"},listCommentsForCommit:{method:"GET",params:{commit_sha:{required:true,type:"string"},owner:{required:true,type:"string"},page:{type:"integer"},per_page:{type:"integer"},ref:{alias:"commit_sha",deprecated:true,type:"string"},repo:{required:true,type:"string"}},url:"/repos/:owner/:repo/commits/:commit_sha/comments"},listCommitComments:{method:"GET",params:{owner:{required:true,type:"string"},page:{type:"integer"},per_page:{type:"integer"},repo:{required:true,type:"string"}},url:"/repos/:owner/:repo/comments"},listCommits:{method:"GET",params:{author:{type:"string"},owner:{required:true,type:"string"},page:{type:"integer"},path:{type:"string"},per_page:{type:"integer"},repo:{required:true,type:"string"},sha:{type:"string"},since:{type:"string"},until:{type:"string"}},url:"/repos/:owner/:repo/commits"},listContributors:{method:"GET",params:{anon:{type:"string"},owner:{required:true,type:"string"},page:{type:"integer"},per_page:{type:"integer"},repo:{required:true,type:"string"}},url:"/repos/:owner/:repo/contributors"},listDeployKeys:{method:"GET",params:{owner:{required:true,type:"string"},page:{type:"integer"},per_page:{type:"integer"},repo:{required:true,type:"string"}},url:"/repos/:owner/:repo/keys"},listDeploymentStatuses:{method:"GET",params:{deployment_id:{required:true,type:"integer"},owner:{required:true,type:"string"},page:{type:"integer"},per_page:{type:"integer"},repo:{required:true,type:"string"}},url:"/repos/:owner/:repo/deployments/:deployment_id/statuses"},listDeployments:{method:"GET",params:{environment:{type:"string"},owner:{required:true,type:"string"},page:{type:"integer"},per_page:{type:"integer"},ref:{type:"string"},repo:{required:true,type:"string"},sha:{type:"string"},task:{type:"string"}},url:"/repos/:owner/:repo/deployments"},listDownloads:{method:"GET",params:{owner:{required:true,type:"string"},page:{type:"integer"},per_page:{type:"integer"},repo:{required:true,type:"string"}},url:"/repos/:owner/:repo/downloads"},listForOrg:{method:"GET",params:{direction:{enum:["asc","desc"],type:"string"},org:{required:true,type:"string"},page:{type:"integer"},per_page:{type:"integer"},sort:{enum:["created","updated","pushed","full_name"],type:"string"},type:{enum:["all","public","private","forks","sources","member"],type:"string"}},url:"/orgs/:org/repos"},listForUser:{method:"GET",params:{direction:{enum:["asc","desc"],type:"string"},page:{type:"integer"},per_page:{type:"integer"},sort:{enum:["created","updated","pushed","full_name"],type:"string"},type:{enum:["all","owner","member"],type:"string"},username:{required:true,type:"string"}},url:"/users/:username/repos"},listForks:{method:"GET",params:{owner:{required:true,type:"string"},page:{type:"integer"},per_page:{type:"integer"},repo:{required:true,type:"string"},sort:{enum:["newest","oldest","stargazers"],type:"string"}},url:"/repos/:owner/:repo/forks"},listHooks:{method:"GET",params:{owner:{required:true,type:"string"},page:{type:"integer"},per_page:{type:"integer"},repo:{required:true,type:"string"}},url:"/repos/:owner/:repo/hooks"},listInvitations:{method:"GET",params:{owner:{required:true,type:"string"},page:{type:"integer"},per_page:{type:"integer"},repo:{required:true,type:"string"}},url:"/repos/:owner/:repo/invitations"},listInvitationsForAuthenticatedUser:{method:"GET",params:{page:{type:"integer"},per_page:{type:"integer"}},url:"/user/repository_invitations"},listLanguages:{method:"GET",params:{owner:{required:true,type:"string"},repo:{required:true,type:"string"}},url:"/repos/:owner/:repo/languages"},listPagesBuilds:{method:"GET",params:{owner:{required:true,type:"string"},page:{type:"integer"},per_page:{type:"integer"},repo:{required:true,type:"string"}},url:"/repos/:owner/:repo/pages/builds"},listProtectedBranchRequiredStatusChecksContexts:{method:"GET",params:{branch:{required:true,type:"string"},owner:{required:true,type:"string"},repo:{required:true,type:"string"}},url:"/repos/:owner/:repo/branches/:branch/protection/required_status_checks/contexts"},listProtectedBranchTeamRestrictions:{deprecated:"octokit.repos.listProtectedBranchTeamRestrictions() has been renamed to octokit.repos.getTeamsWithAccessToProtectedBranch() (2019-09-09)",method:"GET",params:{branch:{required:true,type:"string"},owner:{required:true,type:"string"},repo:{required:true,type:"string"}},url:"/repos/:owner/:repo/branches/:branch/protection/restrictions/teams"},listProtectedBranchUserRestrictions:{deprecated:"octokit.repos.listProtectedBranchUserRestrictions() has been renamed to octokit.repos.getUsersWithAccessToProtectedBranch() (2019-09-09)",method:"GET",params:{branch:{required:true,type:"string"},owner:{required:true,type:"string"},repo:{required:true,type:"string"}},url:"/repos/:owner/:repo/branches/:branch/protection/restrictions/users"},listPublic:{method:"GET",params:{page:{type:"integer"},per_page:{type:"integer"},since:{type:"string"}},url:"/repositories"},listPullRequestsAssociatedWithCommit:{headers:{accept:"application/vnd.github.groot-preview+json"},method:"GET",params:{commit_sha:{required:true,type:"string"},owner:{required:true,type:"string"},page:{type:"integer"},per_page:{type:"integer"},repo:{required:true,type:"string"}},url:"/repos/:owner/:repo/commits/:commit_sha/pulls"},listReleases:{method:"GET",params:{owner:{required:true,type:"string"},page:{type:"integer"},per_page:{type:"integer"},repo:{required:true,type:"string"}},url:"/repos/:owner/:repo/releases"},listStatusesForRef:{method:"GET",params:{owner:{required:true,type:"string"},page:{type:"integer"},per_page:{type:"integer"},ref:{required:true,type:"string"},repo:{required:true,type:"string"}},url:"/repos/:owner/:repo/commits/:ref/statuses"},listTags:{method:"GET",params:{owner:{required:true,type:"string"},page:{type:"integer"},per_page:{type:"integer"},repo:{required:true,type:"string"}},url:"/repos/:owner/:repo/tags"},listTeams:{method:"GET",params:{owner:{required:true,type:"string"},page:{type:"integer"},per_page:{type:"integer"},repo:{required:true,type:"string"}},url:"/repos/:owner/:repo/teams"},listTeamsWithAccessToProtectedBranch:{deprecated:"octokit.repos.listTeamsWithAccessToProtectedBranch() has been renamed to octokit.repos.getTeamsWithAccessToProtectedBranch() (2019-09-13)",method:"GET",params:{branch:{required:true,type:"string"},owner:{required:true,type:"string"},repo:{required:true,type:"string"}},url:"/repos/:owner/:repo/branches/:branch/protection/restrictions/teams"},listTopics:{headers:{accept:"application/vnd.github.mercy-preview+json"},method:"GET",params:{owner:{required:true,type:"string"},repo:{required:true,type:"string"}},url:"/repos/:owner/:repo/topics"},listUsersWithAccessToProtectedBranch:{deprecated:"octokit.repos.listUsersWithAccessToProtectedBranch() has been renamed to octokit.repos.getUsersWithAccessToProtectedBranch() (2019-09-13)",method:"GET",params:{branch:{required:true,type:"string"},owner:{required:true,type:"string"},repo:{required:true,type:"string"}},url:"/repos/:owner/:repo/branches/:branch/protection/restrictions/users"},merge:{method:"POST",params:{base:{required:true,type:"string"},commit_message:{type:"string"},head:{required:true,type:"string"},owner:{required:true,type:"string"},repo:{required:true,type:"string"}},url:"/repos/:owner/:repo/merges"},pingHook:{method:"POST",params:{hook_id:{required:true,type:"integer"},owner:{required:true,type:"string"},repo:{required:true,type:"string"}},url:"/repos/:owner/:repo/hooks/:hook_id/pings"},removeBranchProtection:{method:"DELETE",params:{branch:{required:true,type:"string"},owner:{required:true,type:"string"},repo:{required:true,type:"string"}},url:"/repos/:owner/:repo/branches/:branch/protection"},removeCollaborator:{method:"DELETE",params:{owner:{required:true,type:"string"},repo:{required:true,type:"string"},username:{required:true,type:"string"}},url:"/repos/:owner/:repo/collaborators/:username"},removeDeployKey:{method:"DELETE",params:{key_id:{required:true,type:"integer"},owner:{required:true,type:"string"},repo:{required:true,type:"string"}},url:"/repos/:owner/:repo/keys/:key_id"},removeProtectedBranchAdminEnforcement:{method:"DELETE",params:{branch:{required:true,type:"string"},owner:{required:true,type:"string"},repo:{required:true,type:"string"}},url:"/repos/:owner/:repo/branches/:branch/protection/enforce_admins"},removeProtectedBranchAppRestrictions:{method:"DELETE",params:{apps:{mapTo:"data",required:true,type:"string[]"},branch:{required:true,type:"string"},owner:{required:true,type:"string"},repo:{required:true,type:"string"}},url:"/repos/:owner/:repo/branches/:branch/protection/restrictions/apps"},removeProtectedBranchPullRequestReviewEnforcement:{method:"DELETE",params:{branch:{required:true,type:"string"},owner:{required:true,type:"string"},repo:{required:true,type:"string"}},url:"/repos/:owner/:repo/branches/:branch/protection/required_pull_request_reviews"},removeProtectedBranchRequiredSignatures:{headers:{accept:"application/vnd.github.zzzax-preview+json"},method:"DELETE",params:{branch:{required:true,type:"string"},owner:{required:true,type:"string"},repo:{required:true,type:"string"}},url:"/repos/:owner/:repo/branches/:branch/protection/required_signatures"},removeProtectedBranchRequiredStatusChecks:{method:"DELETE",params:{branch:{required:true,type:"string"},owner:{required:true,type:"string"},repo:{required:true,type:"string"}},url:"/repos/:owner/:repo/branches/:branch/protection/required_status_checks"},removeProtectedBranchRequiredStatusChecksContexts:{method:"DELETE",params:{branch:{required:true,type:"string"},contexts:{mapTo:"data",required:true,type:"string[]"},owner:{required:true,type:"string"},repo:{required:true,type:"string"}},url:"/repos/:owner/:repo/branches/:branch/protection/required_status_checks/contexts"},removeProtectedBranchRestrictions:{method:"DELETE",params:{branch:{required:true,type:"string"},owner:{required:true,type:"string"},repo:{required:true,type:"string"}},url:"/repos/:owner/:repo/branches/:branch/protection/restrictions"},removeProtectedBranchTeamRestrictions:{method:"DELETE",params:{branch:{required:true,type:"string"},owner:{required:true,type:"string"},repo:{required:true,type:"string"},teams:{mapTo:"data",required:true,type:"string[]"}},url:"/repos/:owner/:repo/branches/:branch/protection/restrictions/teams"},removeProtectedBranchUserRestrictions:{method:"DELETE",params:{branch:{required:true,type:"string"},owner:{required:true,type:"string"},repo:{required:true,type:"string"},users:{mapTo:"data",required:true,type:"string[]"}},url:"/repos/:owner/:repo/branches/:branch/protection/restrictions/users"},replaceProtectedBranchAppRestrictions:{method:"PUT",params:{apps:{mapTo:"data",required:true,type:"string[]"},branch:{required:true,type:"string"},owner:{required:true,type:"string"},repo:{required:true,type:"string"}},url:"/repos/:owner/:repo/branches/:branch/protection/restrictions/apps"},replaceProtectedBranchRequiredStatusChecksContexts:{method:"PUT",params:{branch:{required:true,type:"string"},contexts:{mapTo:"data",required:true,type:"string[]"},owner:{required:true,type:"string"},repo:{required:true,type:"string"}},url:"/repos/:owner/:repo/branches/:branch/protection/required_status_checks/contexts"},replaceProtectedBranchTeamRestrictions:{method:"PUT",params:{branch:{required:true,type:"string"},owner:{required:true,type:"string"},repo:{required:true,type:"string"},teams:{mapTo:"data",required:true,type:"string[]"}},url:"/repos/:owner/:repo/branches/:branch/protection/restrictions/teams"},replaceProtectedBranchUserRestrictions:{method:"PUT",params:{branch:{required:true,type:"string"},owner:{required:true,type:"string"},repo:{required:true,type:"string"},users:{mapTo:"data",required:true,type:"string[]"}},url:"/repos/:owner/:repo/branches/:branch/protection/restrictions/users"},replaceTopics:{headers:{accept:"application/vnd.github.mercy-preview+json"},method:"PUT",params:{names:{required:true,type:"string[]"},owner:{required:true,type:"string"},repo:{required:true,type:"string"}},url:"/repos/:owner/:repo/topics"},requestPageBuild:{method:"POST",params:{owner:{required:true,type:"string"},repo:{required:true,type:"string"}},url:"/repos/:owner/:repo/pages/builds"},retrieveCommunityProfileMetrics:{method:"GET",params:{owner:{required:true,type:"string"},repo:{required:true,type:"string"}},url:"/repos/:owner/:repo/community/profile"},testPushHook:{method:"POST",params:{hook_id:{required:true,type:"integer"},owner:{required:true,type:"string"},repo:{required:true,type:"string"}},url:"/repos/:owner/:repo/hooks/:hook_id/tests"},transfer:{headers:{accept:"application/vnd.github.nightshade-preview+json"},method:"POST",params:{new_owner:{type:"string"},owner:{required:true,type:"string"},repo:{required:true,type:"string"},team_ids:{type:"integer[]"}},url:"/repos/:owner/:repo/transfer"},update:{method:"PATCH",params:{allow_merge_commit:{type:"boolean"},allow_rebase_merge:{type:"boolean"},allow_squash_merge:{type:"boolean"},archived:{type:"boolean"},default_branch:{type:"string"},description:{type:"string"},has_issues:{type:"boolean"},has_projects:{type:"boolean"},has_wiki:{type:"boolean"},homepage:{type:"string"},is_template:{type:"boolean"},name:{type:"string"},owner:{required:true,type:"string"},private:{type:"boolean"},repo:{required:true,type:"string"}},url:"/repos/:owner/:repo"},updateBranchProtection:{method:"PUT",params:{branch:{required:true,type:"string"},enforce_admins:{allowNull:true,required:true,type:"boolean"},owner:{required:true,type:"string"},repo:{required:true,type:"string"},required_pull_request_reviews:{allowNull:true,required:true,type:"object"},"required_pull_request_reviews.dismiss_stale_reviews":{type:"boolean"},"required_pull_request_reviews.dismissal_restrictions":{type:"object"},"required_pull_request_reviews.dismissal_restrictions.teams":{type:"string[]"},"required_pull_request_reviews.dismissal_restrictions.users":{type:"string[]"},"required_pull_request_reviews.require_code_owner_reviews":{type:"boolean"},"required_pull_request_reviews.required_approving_review_count":{type:"integer"},required_status_checks:{allowNull:true,required:true,type:"object"},"required_status_checks.contexts":{required:true,type:"string[]"},"required_status_checks.strict":{required:true,type:"boolean"},restrictions:{allowNull:true,required:true,type:"object"},"restrictions.apps":{type:"string[]"},"restrictions.teams":{required:true,type:"string[]"},"restrictions.users":{required:true,type:"string[]"}},url:"/repos/:owner/:repo/branches/:branch/protection"},updateCommitComment:{method:"PATCH",params:{body:{required:true,type:"string"},comment_id:{required:true,type:"integer"},owner:{required:true,type:"string"},repo:{required:true,type:"string"}},url:"/repos/:owner/:repo/comments/:comment_id"},updateFile:{deprecated:"octokit.repos.updateFile() has been renamed to octokit.repos.createOrUpdateFile() (2019-06-07)",method:"PUT",params:{author:{type:"object"},"author.email":{required:true,type:"string"},"author.name":{required:true,type:"string"},branch:{type:"string"},committer:{type:"object"},"committer.email":{required:true,type:"string"},"committer.name":{required:true,type:"string"},content:{required:true,type:"string"},message:{required:true,type:"string"},owner:{required:true,type:"string"},path:{required:true,type:"string"},repo:{required:true,type:"string"},sha:{type:"string"}},url:"/repos/:owner/:repo/contents/:path"},updateHook:{method:"PATCH",params:{active:{type:"boolean"},add_events:{type:"string[]"},config:{type:"object"},"config.content_type":{type:"string"},"config.insecure_ssl":{type:"string"},"config.secret":{type:"string"},"config.url":{required:true,type:"string"},events:{type:"string[]"},hook_id:{required:true,type:"integer"},owner:{required:true,type:"string"},remove_events:{type:"string[]"},repo:{required:true,type:"string"}},url:"/repos/:owner/:repo/hooks/:hook_id"},updateInformationAboutPagesSite:{method:"PUT",params:{cname:{type:"string"},owner:{required:true,type:"string"},repo:{required:true,type:"string"},source:{enum:['"gh-pages"','"master"','"master /docs"'],type:"string"}},url:"/repos/:owner/:repo/pages"},updateInvitation:{method:"PATCH",params:{invitation_id:{required:true,type:"integer"},owner:{required:true,type:"string"},permissions:{enum:["read","write","admin"],type:"string"},repo:{required:true,type:"string"}},url:"/repos/:owner/:repo/invitations/:invitation_id"},updateProtectedBranchPullRequestReviewEnforcement:{method:"PATCH",params:{branch:{required:true,type:"string"},dismiss_stale_reviews:{type:"boolean"},dismissal_restrictions:{type:"object"},"dismissal_restrictions.teams":{type:"string[]"},"dismissal_restrictions.users":{type:"string[]"},owner:{required:true,type:"string"},repo:{required:true,type:"string"},require_code_owner_reviews:{type:"boolean"},required_approving_review_count:{type:"integer"}},url:"/repos/:owner/:repo/branches/:branch/protection/required_pull_request_reviews"},updateProtectedBranchRequiredStatusChecks:{method:"PATCH",params:{branch:{required:true,type:"string"},contexts:{type:"string[]"},owner:{required:true,type:"string"},repo:{required:true,type:"string"},strict:{type:"boolean"}},url:"/repos/:owner/:repo/branches/:branch/protection/required_status_checks"},updateRelease:{method:"PATCH",params:{body:{type:"string"},draft:{type:"boolean"},name:{type:"string"},owner:{required:true,type:"string"},prerelease:{type:"boolean"},release_id:{required:true,type:"integer"},repo:{required:true,type:"string"},tag_name:{type:"string"},target_commitish:{type:"string"}},url:"/repos/:owner/:repo/releases/:release_id"},updateReleaseAsset:{method:"PATCH",params:{asset_id:{required:true,type:"integer"},label:{type:"string"},name:{type:"string"},owner:{required:true,type:"string"},repo:{required:true,type:"string"}},url:"/repos/:owner/:repo/releases/assets/:asset_id"},uploadReleaseAsset:{method:"POST",params:{file:{mapTo:"data",required:true,type:"string | object"},headers:{required:true,type:"object"},"headers.content-length":{required:true,type:"integer"},"headers.content-type":{required:true,type:"string"},label:{type:"string"},name:{required:true,type:"string"},url:{required:true,type:"string"}},url:":url"}},search:{code:{method:"GET",params:{order:{enum:["desc","asc"],type:"string"},page:{type:"integer"},per_page:{type:"integer"},q:{required:true,type:"string"},sort:{enum:["indexed"],type:"string"}},url:"/search/code"},commits:{headers:{accept:"application/vnd.github.cloak-preview+json"},method:"GET",params:{order:{enum:["desc","asc"],type:"string"},page:{type:"integer"},per_page:{type:"integer"},q:{required:true,type:"string"},sort:{enum:["author-date","committer-date"],type:"string"}},url:"/search/commits"},issues:{deprecated:"octokit.search.issues() has been renamed to octokit.search.issuesAndPullRequests() (2018-12-27)",method:"GET",params:{order:{enum:["desc","asc"],type:"string"},page:{type:"integer"},per_page:{type:"integer"},q:{required:true,type:"string"},sort:{enum:["comments","reactions","reactions-+1","reactions--1","reactions-smile","reactions-thinking_face","reactions-heart","reactions-tada","interactions","created","updated"],type:"string"}},url:"/search/issues"},issuesAndPullRequests:{method:"GET",params:{order:{enum:["desc","asc"],type:"string"},page:{type:"integer"},per_page:{type:"integer"},q:{required:true,type:"string"},sort:{enum:["comments","reactions","reactions-+1","reactions--1","reactions-smile","reactions-thinking_face","reactions-heart","reactions-tada","interactions","created","updated"],type:"string"}},url:"/search/issues"},labels:{method:"GET",params:{order:{enum:["desc","asc"],type:"string"},q:{required:true,type:"string"},repository_id:{required:true,type:"integer"},sort:{enum:["created","updated"],type:"string"}},url:"/search/labels"},repos:{method:"GET",params:{order:{enum:["desc","asc"],type:"string"},page:{type:"integer"},per_page:{type:"integer"},q:{required:true,type:"string"},sort:{enum:["stars","forks","help-wanted-issues","updated"],type:"string"}},url:"/search/repositories"},topics:{method:"GET",params:{q:{required:true,type:"string"}},url:"/search/topics"},users:{method:"GET",params:{order:{enum:["desc","asc"],type:"string"},page:{type:"integer"},per_page:{type:"integer"},q:{required:true,type:"string"},sort:{enum:["followers","repositories","joined"],type:"string"}},url:"/search/users"}},teams:{addMember:{deprecated:"octokit.teams.addMember() is deprecated, see https://developer.github.com/v3/teams/members/#add-team-member",method:"PUT",params:{team_id:{required:true,type:"integer"},username:{required:true,type:"string"}},url:"/teams/:team_id/members/:username"},addOrUpdateMembership:{method:"PUT",params:{role:{enum:["member","maintainer"],type:"string"},team_id:{required:true,type:"integer"},username:{required:true,type:"string"}},url:"/teams/:team_id/memberships/:username"},addOrUpdateProject:{headers:{accept:"application/vnd.github.inertia-preview+json"},method:"PUT",params:{permission:{enum:["read","write","admin"],type:"string"},project_id:{required:true,type:"integer"},team_id:{required:true,type:"integer"}},url:"/teams/:team_id/projects/:project_id"},addOrUpdateRepo:{method:"PUT",params:{owner:{required:true,type:"string"},permission:{enum:["pull","push","admin"],type:"string"},repo:{required:true,type:"string"},team_id:{required:true,type:"integer"}},url:"/teams/:team_id/repos/:owner/:repo"},checkManagesRepo:{method:"GET",params:{owner:{required:true,type:"string"},repo:{required:true,type:"string"},team_id:{required:true,type:"integer"}},url:"/teams/:team_id/repos/:owner/:repo"},create:{method:"POST",params:{description:{type:"string"},maintainers:{type:"string[]"},name:{required:true,type:"string"},org:{required:true,type:"string"},parent_team_id:{type:"integer"},permission:{enum:["pull","push","admin"],type:"string"},privacy:{enum:["secret","closed"],type:"string"},repo_names:{type:"string[]"}},url:"/orgs/:org/teams"},createDiscussion:{headers:{accept:"application/vnd.github.echo-preview+json"},method:"POST",params:{body:{required:true,type:"string"},private:{type:"boolean"},team_id:{required:true,type:"integer"},title:{required:true,type:"string"}},url:"/teams/:team_id/discussions"},createDiscussionComment:{headers:{accept:"application/vnd.github.echo-preview+json"},method:"POST",params:{body:{required:true,type:"string"},discussion_number:{required:true,type:"integer"},team_id:{required:true,type:"integer"}},url:"/teams/:team_id/discussions/:discussion_number/comments"},delete:{method:"DELETE",params:{team_id:{required:true,type:"integer"}},url:"/teams/:team_id"},deleteDiscussion:{headers:{accept:"application/vnd.github.echo-preview+json"},method:"DELETE",params:{discussion_number:{required:true,type:"integer"},team_id:{required:true,type:"integer"}},url:"/teams/:team_id/discussions/:discussion_number"},deleteDiscussionComment:{headers:{accept:"application/vnd.github.echo-preview+json"},method:"DELETE",params:{comment_number:{required:true,type:"integer"},discussion_number:{required:true,type:"integer"},team_id:{required:true,type:"integer"}},url:"/teams/:team_id/discussions/:discussion_number/comments/:comment_number"},get:{method:"GET",params:{team_id:{required:true,type:"integer"}},url:"/teams/:team_id"},getByName:{method:"GET",params:{org:{required:true,type:"string"},team_slug:{required:true,type:"string"}},url:"/orgs/:org/teams/:team_slug"},getDiscussion:{headers:{accept:"application/vnd.github.echo-preview+json"},method:"GET",params:{discussion_number:{required:true,type:"integer"},team_id:{required:true,type:"integer"}},url:"/teams/:team_id/discussions/:discussion_number"},getDiscussionComment:{headers:{accept:"application/vnd.github.echo-preview+json"},method:"GET",params:{comment_number:{required:true,type:"integer"},discussion_number:{required:true,type:"integer"},team_id:{required:true,type:"integer"}},url:"/teams/:team_id/discussions/:discussion_number/comments/:comment_number"},getMember:{deprecated:"octokit.teams.getMember() is deprecated, see https://developer.github.com/v3/teams/members/#get-team-member",method:"GET",params:{team_id:{required:true,type:"integer"},username:{required:true,type:"string"}},url:"/teams/:team_id/members/:username"},getMembership:{method:"GET",params:{team_id:{required:true,type:"integer"},username:{required:true,type:"string"}},url:"/teams/:team_id/memberships/:username"},list:{method:"GET",params:{org:{required:true,type:"string"},page:{type:"integer"},per_page:{type:"integer"}},url:"/orgs/:org/teams"},listChild:{headers:{accept:"application/vnd.github.hellcat-preview+json"},method:"GET",params:{page:{type:"integer"},per_page:{type:"integer"},team_id:{required:true,type:"integer"}},url:"/teams/:team_id/teams"},listDiscussionComments:{headers:{accept:"application/vnd.github.echo-preview+json"},method:"GET",params:{direction:{enum:["asc","desc"],type:"string"},discussion_number:{required:true,type:"integer"},page:{type:"integer"},per_page:{type:"integer"},team_id:{required:true,type:"integer"}},url:"/teams/:team_id/discussions/:discussion_number/comments"},listDiscussions:{headers:{accept:"application/vnd.github.echo-preview+json"},method:"GET",params:{direction:{enum:["asc","desc"],type:"string"},page:{type:"integer"},per_page:{type:"integer"},team_id:{required:true,type:"integer"}},url:"/teams/:team_id/discussions"},listForAuthenticatedUser:{method:"GET",params:{page:{type:"integer"},per_page:{type:"integer"}},url:"/user/teams"},listMembers:{method:"GET",params:{page:{type:"integer"},per_page:{type:"integer"},role:{enum:["member","maintainer","all"],type:"string"},team_id:{required:true,type:"integer"}},url:"/teams/:team_id/members"},listPendingInvitations:{method:"GET",params:{page:{type:"integer"},per_page:{type:"integer"},team_id:{required:true,type:"integer"}},url:"/teams/:team_id/invitations"},listProjects:{headers:{accept:"application/vnd.github.inertia-preview+json"},method:"GET",params:{page:{type:"integer"},per_page:{type:"integer"},team_id:{required:true,type:"integer"}},url:"/teams/:team_id/projects"},listRepos:{method:"GET",params:{page:{type:"integer"},per_page:{type:"integer"},team_id:{required:true,type:"integer"}},url:"/teams/:team_id/repos"},removeMember:{deprecated:"octokit.teams.removeMember() is deprecated, see https://developer.github.com/v3/teams/members/#remove-team-member",method:"DELETE",params:{team_id:{required:true,type:"integer"},username:{required:true,type:"string"}},url:"/teams/:team_id/members/:username"},removeMembership:{method:"DELETE",params:{team_id:{required:true,type:"integer"},username:{required:true,type:"string"}},url:"/teams/:team_id/memberships/:username"},removeProject:{method:"DELETE",params:{project_id:{required:true,type:"integer"},team_id:{required:true,type:"integer"}},url:"/teams/:team_id/projects/:project_id"},removeRepo:{method:"DELETE",params:{owner:{required:true,type:"string"},repo:{required:true,type:"string"},team_id:{required:true,type:"integer"}},url:"/teams/:team_id/repos/:owner/:repo"},reviewProject:{headers:{accept:"application/vnd.github.inertia-preview+json"},method:"GET",params:{project_id:{required:true,type:"integer"},team_id:{required:true,type:"integer"}},url:"/teams/:team_id/projects/:project_id"},update:{method:"PATCH",params:{description:{type:"string"},name:{required:true,type:"string"},parent_team_id:{type:"integer"},permission:{enum:["pull","push","admin"],type:"string"},privacy:{enum:["secret","closed"],type:"string"},team_id:{required:true,type:"integer"}},url:"/teams/:team_id"},updateDiscussion:{headers:{accept:"application/vnd.github.echo-preview+json"},method:"PATCH",params:{body:{type:"string"},discussion_number:{required:true,type:"integer"},team_id:{required:true,type:"integer"},title:{type:"string"}},url:"/teams/:team_id/discussions/:discussion_number"},updateDiscussionComment:{headers:{accept:"application/vnd.github.echo-preview+json"},method:"PATCH",params:{body:{required:true,type:"string"},comment_number:{required:true,type:"integer"},discussion_number:{required:true,type:"integer"},team_id:{required:true,type:"integer"}},url:"/teams/:team_id/discussions/:discussion_number/comments/:comment_number"}},users:{addEmails:{method:"POST",params:{emails:{required:true,type:"string[]"}},url:"/user/emails"},block:{method:"PUT",params:{username:{required:true,type:"string"}},url:"/user/blocks/:username"},checkBlocked:{method:"GET",params:{username:{required:true,type:"string"}},url:"/user/blocks/:username"},checkFollowing:{method:"GET",params:{username:{required:true,type:"string"}},url:"/user/following/:username"},checkFollowingForUser:{method:"GET",params:{target_user:{required:true,type:"string"},username:{required:true,type:"string"}},url:"/users/:username/following/:target_user"},createGpgKey:{method:"POST",params:{armored_public_key:{type:"string"}},url:"/user/gpg_keys"},createPublicKey:{method:"POST",params:{key:{type:"string"},title:{type:"string"}},url:"/user/keys"},deleteEmails:{method:"DELETE",params:{emails:{required:true,type:"string[]"}},url:"/user/emails"},deleteGpgKey:{method:"DELETE",params:{gpg_key_id:{required:true,type:"integer"}},url:"/user/gpg_keys/:gpg_key_id"},deletePublicKey:{method:"DELETE",params:{key_id:{required:true,type:"integer"}},url:"/user/keys/:key_id"},follow:{method:"PUT",params:{username:{required:true,type:"string"}},url:"/user/following/:username"},getAuthenticated:{method:"GET",params:{},url:"/user"},getByUsername:{method:"GET",params:{username:{required:true,type:"string"}},url:"/users/:username"},getContextForUser:{headers:{accept:"application/vnd.github.hagar-preview+json"},method:"GET",params:{subject_id:{type:"string"},subject_type:{enum:["organization","repository","issue","pull_request"],type:"string"},username:{required:true,type:"string"}},url:"/users/:username/hovercard"},getGpgKey:{method:"GET",params:{gpg_key_id:{required:true,type:"integer"}},url:"/user/gpg_keys/:gpg_key_id"},getPublicKey:{method:"GET",params:{key_id:{required:true,type:"integer"}},url:"/user/keys/:key_id"},list:{method:"GET",params:{page:{type:"integer"},per_page:{type:"integer"},since:{type:"string"}},url:"/users"},listBlocked:{method:"GET",params:{},url:"/user/blocks"},listEmails:{method:"GET",params:{page:{type:"integer"},per_page:{type:"integer"}},url:"/user/emails"},listFollowersForAuthenticatedUser:{method:"GET",params:{page:{type:"integer"},per_page:{type:"integer"}},url:"/user/followers"},listFollowersForUser:{method:"GET",params:{page:{type:"integer"},per_page:{type:"integer"},username:{required:true,type:"string"}},url:"/users/:username/followers"},listFollowingForAuthenticatedUser:{method:"GET",params:{page:{type:"integer"},per_page:{type:"integer"}},url:"/user/following"},listFollowingForUser:{method:"GET",params:{page:{type:"integer"},per_page:{type:"integer"},username:{required:true,type:"string"}},url:"/users/:username/following"},listGpgKeys:{method:"GET",params:{page:{type:"integer"},per_page:{type:"integer"}},url:"/user/gpg_keys"},listGpgKeysForUser:{method:"GET",params:{page:{type:"integer"},per_page:{type:"integer"},username:{required:true,type:"string"}},url:"/users/:username/gpg_keys"},listPublicEmails:{method:"GET",params:{page:{type:"integer"},per_page:{type:"integer"}},url:"/user/public_emails"},listPublicKeys:{method:"GET",params:{page:{type:"integer"},per_page:{type:"integer"}},url:"/user/keys"},listPublicKeysForUser:{method:"GET",params:{page:{type:"integer"},per_page:{type:"integer"},username:{required:true,type:"string"}},url:"/users/:username/keys"},togglePrimaryEmailVisibility:{method:"PATCH",params:{email:{required:true,type:"string"},visibility:{required:true,type:"string"}},url:"/user/email/visibility"},unblock:{method:"DELETE",params:{username:{required:true,type:"string"}},url:"/user/blocks/:username"},unfollow:{method:"DELETE",params:{username:{required:true,type:"string"}},url:"/user/following/:username"},updateAuthenticated:{method:"PATCH",params:{bio:{type:"string"},blog:{type:"string"},company:{type:"string"},email:{type:"string"},hireable:{type:"boolean"},location:{type:"string"},name:{type:"string"}},url:"/user"}}}},727:function(e){"use strict";e.exports=function bind(e,t){return function wrap(){var r=new Array(arguments.length);for(var n=0;n{n=i.url;r=i.status;for(const e of i.headers){t[e[0]]=e[1]}if(r===204||r===205){return}if(e.method==="HEAD"){if(r<400){return}throw new a.RequestError(i.statusText,r,{headers:t,request:e})}if(r===304){throw new a.RequestError("Not modified",r,{headers:t,request:e})}if(r>=400){return i.text().then(n=>{const i=new a.RequestError(n,r,{headers:t,request:e});try{let e=JSON.parse(i.message);Object.assign(i,e);let t=e.errors;i.message=i.message+": "+t.map(JSON.stringify).join(", ")}catch(e){}throw i})}const s=i.headers.get("content-type");if(/application\/json/.test(s)){return i.json()}if(!s||/^text\/|charset=utf-8$/.test(s)){return i.text()}return getBufferResponse(i)}).then(e=>{return{status:r,url:n,headers:t,data:e}}).catch(r=>{if(r instanceof a.RequestError){throw r}throw new a.RequestError(r.message,500,{headers:t,request:e})})}function withDefaults(e,t){const r=e.defaults(t);const n=function(e,t){const n=r.merge(e,t);if(!n.request||!n.request.hook){return fetchWrapper(r.parse(n))}const i=(e,t)=>{return fetchWrapper(r.parse(r.merge(e,t)))};Object.assign(i,{endpoint:r,defaults:withDefaults.bind(null,r)});return n.request.hook(i,n)};return Object.assign(n,{endpoint:r,defaults:withDefaults.bind(null,r)})}const p=withDefaults(n.endpoint,{headers:{"user-agent":`octokit-request.js/${u} ${i.getUserAgent()}`}});t.request=p},761:function(e){e.exports=require("zlib")},763:function(e){e.exports=removeHook;function removeHook(e,t,r){if(!e.registry[t]){return}var n=e.registry[t].map(function(e){return e.orig}).indexOf(r);if(n===-1){return}e.registry[t].splice(n,1)}},768:function(e){"use strict";e.exports=function(e){var t=typeof e==="string"?"\n":"\n".charCodeAt();var r=typeof e==="string"?"\r":"\r".charCodeAt();if(e[e.length-1]===t){e=e.slice(0,e.length-1)}if(e[e.length-1]===r){e=e.slice(0,e.length-1)}return e}},774:function(e,t,r){"use strict";var n=r(35);var i=r(411);var s={"Content-Type":"application/x-www-form-urlencoded"};function setContentTypeIfUnset(e,t){if(!n.isUndefined(e)&&n.isUndefined(e["Content-Type"])){e["Content-Type"]=t}}function getDefaultAdapter(){var e;if(typeof XMLHttpRequest!=="undefined"){e=r(219)}else if(typeof process!=="undefined"&&Object.prototype.toString.call(process)==="[object process]"){e=r(670)}return e}var o={adapter:getDefaultAdapter(),transformRequest:[function transformRequest(e,t){i(t,"Accept");i(t,"Content-Type");if(n.isFormData(e)||n.isArrayBuffer(e)||n.isBuffer(e)||n.isStream(e)||n.isFile(e)||n.isBlob(e)){return e}if(n.isArrayBufferView(e)){return e.buffer}if(n.isURLSearchParams(e)){setContentTypeIfUnset(t,"application/x-www-form-urlencoded;charset=utf-8");return e.toString()}if(n.isObject(e)){setContentTypeIfUnset(t,"application/json;charset=utf-8");return JSON.stringify(e)}return e}],transformResponse:[function transformResponse(e){if(typeof e==="string"){try{e=JSON.parse(e)}catch(e){}}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,validateStatus:function validateStatus(e){return e>=200&&e<300}};o.headers={common:{Accept:"application/json, text/plain, */*"}};n.forEach(["delete","get","head"],function forEachMethodNoData(e){o.headers[e]={}});n.forEach(["post","put","patch"],function forEachMethodWithData(e){o.headers[e]=n.merge(s)});e.exports=o},777:function(e,t,r){e.exports=getFirstPage;const n=r(265);function getFirstPage(e,t,r){return n(e,t,"first",r)}},779:function(e,t,r){"use strict";var n=r(35);var i=r(133);var s=r(283);var o=r(946);var a=r(825);function Axios(e){this.defaults=e;this.interceptors={request:new s,response:new s}}Axios.prototype.request=function request(e){if(typeof e==="string"){e=arguments[1]||{};e.url=arguments[0]}else{e=e||{}}e=a(this.defaults,e);if(e.method){e.method=e.method.toLowerCase()}else if(this.defaults.method){e.method=this.defaults.method.toLowerCase()}else{e.method="get"}var t=[o,undefined];var r=Promise.resolve(e);this.interceptors.request.forEach(function unshiftRequestInterceptors(e){t.unshift(e.fulfilled,e.rejected)});this.interceptors.response.forEach(function pushResponseInterceptors(e){t.push(e.fulfilled,e.rejected)});while(t.length){r=r.then(t.shift(),t.shift())}return r};Axios.prototype.getUri=function getUri(e){e=a(this.defaults,e);return i(e.url,e.params,e.paramsSerializer).replace(/^\?/,"")};n.forEach(["delete","get","head","options"],function forEachMethodNoData(e){Axios.prototype[e]=function(t,r){return this.request(n.merge(r||{},{method:e,url:t}))}});n.forEach(["post","put","patch"],function forEachMethodWithData(e){Axios.prototype[e]=function(t,r,i){return this.request(n.merge(i||{},{method:e,url:t,data:r}))}});e.exports=Axios},784:function(e,t,r){if(typeof process==="undefined"||process.type==="renderer"){e.exports=r(794)}else{e.exports=r(81)}},794:function(e,t,r){t=e.exports=r(25);t.log=log;t.formatArgs=formatArgs;t.save=save;t.load=load;t.useColors=useColors;t.storage="undefined"!=typeof chrome&&"undefined"!=typeof chrome.storage?chrome.storage.local:localstorage();t.colors=["#0000CC","#0000FF","#0033CC","#0033FF","#0066CC","#0066FF","#0099CC","#0099FF","#00CC00","#00CC33","#00CC66","#00CC99","#00CCCC","#00CCFF","#3300CC","#3300FF","#3333CC","#3333FF","#3366CC","#3366FF","#3399CC","#3399FF","#33CC00","#33CC33","#33CC66","#33CC99","#33CCCC","#33CCFF","#6600CC","#6600FF","#6633CC","#6633FF","#66CC00","#66CC33","#9900CC","#9900FF","#9933CC","#9933FF","#99CC00","#99CC33","#CC0000","#CC0033","#CC0066","#CC0099","#CC00CC","#CC00FF","#CC3300","#CC3333","#CC3366","#CC3399","#CC33CC","#CC33FF","#CC6600","#CC6633","#CC9900","#CC9933","#CCCC00","#CCCC33","#FF0000","#FF0033","#FF0066","#FF0099","#FF00CC","#FF00FF","#FF3300","#FF3333","#FF3366","#FF3399","#FF33CC","#FF33FF","#FF6600","#FF6633","#FF9900","#FF9933","#FFCC00","#FFCC33"];function useColors(){if(typeof window!=="undefined"&&window.process&&window.process.type==="renderer"){return true}if(typeof navigator!=="undefined"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/(edge|trident)\/(\d+)/)){return false}return typeof document!=="undefined"&&document.documentElement&&document.documentElement.style&&document.documentElement.style.WebkitAppearance||typeof window!=="undefined"&&window.console&&(window.console.firebug||window.console.exception&&window.console.table)||typeof navigator!=="undefined"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/)&&parseInt(RegExp.$1,10)>=31||typeof navigator!=="undefined"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/)}t.formatters.j=function(e){try{return JSON.stringify(e)}catch(e){return"[UnexpectedJSONParseError]: "+e.message}};function formatArgs(e){var r=this.useColors;e[0]=(r?"%c":"")+this.namespace+(r?" %c":" ")+e[0]+(r?"%c ":" ")+"+"+t.humanize(this.diff);if(!r)return;var n="color: "+this.color;e.splice(1,0,n,"color: inherit");var i=0;var s=0;e[0].replace(/%[a-zA-Z%]/g,function(e){if("%%"===e)return;i++;if("%c"===e){s=i}});e.splice(s,0,n)}function log(){return"object"===typeof console&&console.log&&Function.prototype.apply.call(console.log,console,arguments)}function save(e){try{if(null==e){t.storage.removeItem("debug")}else{t.storage.debug=e}}catch(e){}}function load(){var e;try{e=t.storage.debug}catch(e){}if(!e&&typeof process!=="undefined"&&"env"in process){e=process.env.DEBUG}return e}t.enable(load());function localstorage(){try{return window.localStorage}catch(e){}}},807:function(e,t,r){e.exports=paginate;const n=r(8);function paginate(e,t,r,i){if(typeof r==="function"){i=r;r=undefined}r=e.request.endpoint.merge(t,r);return gather(e,[],n(e,r)[Symbol.asyncIterator](),i)}function gather(e,t,r,n){return r.next().then(i=>{if(i.done){return t}let s=false;function done(){s=true}t=t.concat(n?n(i.value,done):i.value.data);if(s){return t}return gather(e,t,r,n)})}},814:function(e,t,r){e.exports=which;which.sync=whichSync;var n=process.platform==="win32"||process.env.OSTYPE==="cygwin"||process.env.OSTYPE==="msys";var i=r(622);var s=n?";":":";var o=r(742);function getNotFoundError(e){var t=new Error("not found: "+e);t.code="ENOENT";return t}function getPathInfo(e,t){var r=t.colon||s;var i=t.path||process.env.PATH||"";var o=[""];i=i.split(r);var a="";if(n){i.unshift(process.cwd());a=t.pathExt||process.env.PATHEXT||".EXE;.CMD;.BAT;.COM";o=a.split(r);if(e.indexOf(".")!==-1&&o[0]!=="")o.unshift("")}if(e.match(/\//)||n&&e.match(/\\/))i=[""];return{env:i,ext:o,extExe:a}}function which(e,t,r){if(typeof t==="function"){r=t;t={}}var n=getPathInfo(e,t);var s=n.env;var a=n.ext;var u=n.extExe;var p=[];(function F(n,c){if(n===c){if(t.all&&p.length)return r(null,p);else return r(getNotFoundError(e))}var d=s[n];if(d.charAt(0)==='"'&&d.slice(-1)==='"')d=d.slice(1,-1);var l=i.join(d,e);if(!d&&/^\.[\\\/]/.test(e)){l=e.slice(0,2)+l}(function E(e,i){if(e===i)return F(n+1,c);var s=a[e];o(l+s,{pathExt:u},function(n,o){if(!n&&o){if(t.all)p.push(l+s);else return r(null,l+s)}return E(e+1,i)})})(0,a.length)})(0,s.length)}function whichSync(e,t){t=t||{};var r=getPathInfo(e,t);var n=r.env;var s=r.ext;var a=r.extExe;var u=[];for(var p=0,c=n.length;p-1}function listCacheSet(e,t){var r=this.__data__,n=assocIndexOf(r,e);if(n<0){r.push([e,t])}else{r[n][1]=t}return this}ListCache.prototype.clear=listCacheClear;ListCache.prototype["delete"]=listCacheDelete;ListCache.prototype.get=listCacheGet;ListCache.prototype.has=listCacheHas;ListCache.prototype.set=listCacheSet;function MapCache(e){var t=-1,r=e?e.length:0;this.clear();while(++t{return e.auth()}).then(e=>{t.headers.authorization=i(e)})}},864:function(e,t,r){"use strict";var n=r(35);e.exports=n.isStandardBrowserEnv()?function standardBrowserEnv(){return{write:function write(e,t,r,i,s,o){var a=[];a.push(e+"="+encodeURIComponent(t));if(n.isNumber(r)){a.push("expires="+new Date(r).toGMTString())}if(n.isString(i)){a.push("path="+i)}if(n.isString(s)){a.push("domain="+s)}if(o===true){a.push("secure")}document.cookie=a.join("; ")},read:function read(e){var t=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return t?decodeURIComponent(t[3]):null},remove:function remove(e){this.write(e,"",Date.now()-864e5)}}}():function nonStandardBrowserEnv(){return{write:function write(){},read:function read(){return null},remove:function remove(){}}}()},866:function(e,t,r){"use strict";var n=r(816);e.exports=function(e){var t=e.match(n);if(!t){return null}var r=t[0].replace(/#! ?/,"").split(" ");var i=r[0].split("/").pop();var s=r[1];return i==="env"?s:i+(s?" "+s:"")}},867:function(e){e.exports=require("tty")},879:function(e){"use strict";e.exports=function spread(e){return function wrap(t){return e.apply(null,t)}}},881:function(e){"use strict";const t=process.platform==="win32";function notFoundError(e,t){return Object.assign(new Error(`${t} ${e.command} ENOENT`),{code:"ENOENT",errno:"ENOENT",syscall:`${t} ${e.command}`,path:e.command,spawnargs:e.args})}function hookChildProcess(e,r){if(!t){return}const n=e.emit;e.emit=function(t,i){if(t==="exit"){const t=verifyENOENT(i,r,"spawn");if(t){return n.call(e,"error",t)}}return n.apply(e,arguments)}}function verifyENOENT(e,r){if(t&&e===1&&!r.file){return notFoundError(r.original,"spawn")}return null}function verifyENOENTSync(e,r){if(t&&e===1&&!r.file){return notFoundError(r.original,"spawnSync")}return null}e.exports={hookChildProcess:hookChildProcess,verifyENOENT:verifyENOENT,verifyENOENTSync:verifyENOENTSync,notFoundError:notFoundError}},883:function(e){var t="Expected a function";var r="__lodash_hash_undefined__";var n=1/0,i=9007199254740991;var s="[object Function]",o="[object GeneratorFunction]",a="[object Symbol]";var u=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,p=/^\w*$/,c=/^\./,d=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g;var l=/[\\^$.*+?()[\]{}|]/g;var g=/\\(\\)?/g;var m=/^\[object .+?Constructor\]$/;var h=/^(?:0|[1-9]\d*)$/;var f=typeof global=="object"&&global&&global.Object===Object&&global;var y=typeof self=="object"&&self&&self.Object===Object&&self;var b=f||y||Function("return this")();function getValue(e,t){return e==null?undefined:e[t]}function isHostObject(e){var t=false;if(e!=null&&typeof e.toString!="function"){try{t=!!(e+"")}catch(e){}}return t}var w=Array.prototype,_=Function.prototype,q=Object.prototype;var v=b["__core-js_shared__"];var E=function(){var e=/[^.]+$/.exec(v&&v.keys&&v.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}();var T=_.toString;var C=q.hasOwnProperty;var j=q.toString;var k=RegExp("^"+T.call(C).replace(l,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");var S=b.Symbol,O=w.splice;var x=getNative(b,"Map"),P=getNative(Object,"create");var R=S?S.prototype:undefined,A=R?R.toString:undefined;function Hash(e){var t=-1,r=e?e.length:0;this.clear();while(++t-1}function listCacheSet(e,t){var r=this.__data__,n=assocIndexOf(r,e);if(n<0){r.push([e,t])}else{r[n][1]=t}return this}ListCache.prototype.clear=listCacheClear;ListCache.prototype["delete"]=listCacheDelete;ListCache.prototype.get=listCacheGet;ListCache.prototype.has=listCacheHas;ListCache.prototype.set=listCacheSet;function MapCache(e){var t=-1,r=e?e.length:0;this.clear();while(++t-1&&e%1==0&&e{if(!e[r]){e[r]={}}Object.keys(t[r]).forEach(i=>{const s=t[r][i];const o=["method","url","headers"].reduce((e,t)=>{if(typeof s[t]!=="undefined"){e[t]=s[t]}return e},{});o.request={validate:s.params};let a=e.request.defaults(o);const u=Object.keys(s.params||{}).find(e=>s.params[e].deprecated);if(u){const t=patchForDeprecation.bind(null,e,s);a=t(e.request.defaults(o),`.${r}.${i}()`);a.endpoint=t(a.endpoint,`.${r}.${i}.endpoint()`);a.endpoint.merge=t(a.endpoint.merge,`.${r}.${i}.endpoint.merge()`)}if(s.deprecated){e[r][i]=function deprecatedEndpointMethod(){e.log.warn(new n(`[@octokit/rest] ${s.deprecated}`));e[r][i]=a;return a.apply(null,arguments)};return}e[r][i]=a})})}function patchForDeprecation(e,t,r,i){const s=s=>{s=Object.assign({},s);Object.keys(s).forEach(r=>{if(t.params[r]&&t.params[r].deprecated){const o=t.params[r].alias;e.log.warn(new n(`[@octokit/rest] "${r}" parameter is deprecated for "${i}". Use "${o}" instead`));if(!(o in s)){s[o]=s[r]}delete s[r]}});return r(s)};Object.keys(r).forEach(e=>{s[e]=r[e]});return s}},929:function(e,t,r){e.exports=hasNextPage;const n=r(370);const i=r(577);function hasNextPage(e){n(`octokit.hasNextPage() – You can use octokit.paginate or async iterators instead: https://github.com/octokit/rest.js#pagination.`);return i(e).next}},946:function(e,t,r){"use strict";var n=r(35);var i=r(589);var s=r(732);var o=r(774);function throwIfCancellationRequested(e){if(e.cancelToken){e.cancelToken.throwIfRequested()}}e.exports=function dispatchRequest(e){throwIfCancellationRequested(e);e.headers=e.headers||{};e.data=i(e.data,e.headers,e.transformRequest);e.headers=n.merge(e.headers.common||{},e.headers[e.method]||{},e.headers);n.forEach(["delete","get","head","post","put","patch","common"],function cleanHeaderConfig(t){delete e.headers[t]});var t=e.adapter||o.adapter;return t(e).then(function onAdapterResolution(t){throwIfCancellationRequested(e);t.data=i(t.data,t.headers,e.transformResponse);return t},function onAdapterRejection(t){if(!s(t)){throwIfCancellationRequested(e);if(t&&t.response){t.response.data=i(t.response.data,t.response.headers,e.transformResponse)}}return Promise.reject(t)})}},948:function(e){"use strict";e.exports=function(e){try{return e()}catch(e){}}},954:function(e){e.exports=validateAuth;function validateAuth(e){if(typeof e==="string"){return}if(typeof e==="function"){return}if(e.username&&e.password){return}if(e.clientId&&e.clientSecret){return}throw new Error(`Invalid "auth" option: ${JSON.stringify(e)}`)}},955:function(e,t,r){"use strict";const n=r(622);const i=r(129);const s=r(20);const o=r(768);const a=r(621);const u=r(323);const p=r(145);const c=r(697);const d=r(260);const l=r(427);const g=r(168);const m=1e3*1e3*10;function handleArgs(e,t,r){let i;r=Object.assign({extendEnv:true,env:{}},r);if(r.extendEnv){r.env=Object.assign({},process.env,r.env)}if(r.__winShell===true){delete r.__winShell;i={command:e,args:t,options:r,file:e,original:{cmd:e,args:t}}}else{i=s._parse(e,t,r)}r=Object.assign({maxBuffer:m,buffer:true,stripEof:true,preferLocal:true,localDir:i.options.cwd||process.cwd(),encoding:"utf8",reject:true,cleanup:true},i.options);r.stdio=g(r);if(r.preferLocal){r.env=a.env(Object.assign({},r,{cwd:r.localDir}))}if(r.detached){r.cleanup=false}if(process.platform==="win32"&&n.basename(i.command)==="cmd.exe"){i.args.unshift("/q")}return{cmd:i.command,args:i.args,opts:r,parsed:i}}function handleInput(e,t){if(t===null||t===undefined){return}if(u(t)){t.pipe(e.stdin)}else{e.stdin.end(t)}}function handleOutput(e,t){if(t&&e.stripEof){t=o(t)}return t}function handleShell(e,t,r){let n="/bin/sh";let i=["-c",t];r=Object.assign({},r);if(process.platform==="win32"){r.__winShell=true;n=process.env.comspec||"cmd.exe";i=["/s","/c",`"${t}"`];r.windowsVerbatimArguments=true}if(r.shell){n=r.shell;delete r.shell}return e(n,i,r)}function getStream(e,t,{encoding:r,buffer:n,maxBuffer:i}){if(!e[t]){return null}let s;if(!n){s=new Promise((r,n)=>{e[t].once("end",r).once("error",n)})}else if(r){s=p(e[t],{encoding:r,maxBuffer:i})}else{s=p.buffer(e[t],{maxBuffer:i})}return s.catch(e=>{e.stream=t;e.message=`${t} ${e.message}`;throw e})}function makeError(e,t){const{stdout:r,stderr:n}=e;let i=e.error;const{code:s,signal:o}=e;const{parsed:a,joinedCmd:u}=t;const p=t.timedOut||false;if(!i){let e="";if(Array.isArray(a.opts.stdio)){if(a.opts.stdio[2]!=="inherit"){e+=e.length>0?n:`\n${n}`}if(a.opts.stdio[1]!=="inherit"){e+=`\n${r}`}}else if(a.opts.stdio!=="inherit"){e=`\n${n}${r}`}i=new Error(`Command failed: ${u}${e}`);i.code=s<0?l(s):s}i.stdout=r;i.stderr=n;i.failed=true;i.signal=o||null;i.cmd=u;i.timedOut=p;return i}function joinCmd(e,t){let r=e;if(Array.isArray(t)&&t.length>0){r+=" "+t.join(" ")}return r}e.exports=((e,t,r)=>{const n=handleArgs(e,t,r);const{encoding:o,buffer:a,maxBuffer:u}=n.opts;const p=joinCmd(e,t);let l;try{l=i.spawn(n.cmd,n.args,n.opts)}catch(e){return Promise.reject(e)}let g;if(n.opts.cleanup){g=d(()=>{l.kill()})}let m=null;let h=false;const f=()=>{if(m){clearTimeout(m);m=null}if(g){g()}};if(n.opts.timeout>0){m=setTimeout(()=>{m=null;h=true;l.kill(n.opts.killSignal)},n.opts.timeout)}const y=new Promise(e=>{l.on("exit",(t,r)=>{f();e({code:t,signal:r})});l.on("error",t=>{f();e({error:t})});if(l.stdin){l.stdin.on("error",t=>{f();e({error:t})})}});function destroy(){if(l.stdout){l.stdout.destroy()}if(l.stderr){l.stderr.destroy()}}const b=()=>c(Promise.all([y,getStream(l,"stdout",{encoding:o,buffer:a,maxBuffer:u}),getStream(l,"stderr",{encoding:o,buffer:a,maxBuffer:u})]).then(e=>{const t=e[0];t.stdout=e[1];t.stderr=e[2];if(t.error||t.code!==0||t.signal!==null){const e=makeError(t,{joinedCmd:p,parsed:n,timedOut:h});e.killed=e.killed||l.killed;if(!n.opts.reject){return e}throw e}return{stdout:handleOutput(n.opts,t.stdout),stderr:handleOutput(n.opts,t.stderr),code:0,failed:false,killed:false,signal:null,cmd:p,timedOut:false}}),destroy);s._enoent.hookChildProcess(l,n.parsed);handleInput(l,n.opts.input);l.then=((e,t)=>b().then(e,t));l.catch=(e=>b().catch(e));return l});e.exports.stdout=((...t)=>e.exports(...t).then(e=>e.stdout));e.exports.stderr=((...t)=>e.exports(...t).then(e=>e.stderr));e.exports.shell=((t,r)=>handleShell(e.exports,t,r));e.exports.sync=((e,t,r)=>{const n=handleArgs(e,t,r);const s=joinCmd(e,t);if(u(n.opts.input)){throw new TypeError("The `input` option cannot be a stream in sync mode")}const o=i.spawnSync(n.cmd,n.args,n.opts);o.code=o.status;if(o.error||o.status!==0||o.signal!==null){const e=makeError(o,{joinedCmd:s,parsed:n});if(!n.opts.reject){return e}throw e}return{stdout:handleOutput(n.opts,o.stdout),stderr:handleOutput(n.opts,o.stderr),code:0,failed:false,signal:null,cmd:s,timedOut:false}});e.exports.shellSync=((t,r)=>handleShell(e.exports.sync,t,r))},960:function(e,t,r){"use strict";var n=r(590);var i=r(887);e.exports=function buildFullPath(e,t){if(e&&!n(t)){return i(e,t)}return t}},966:function(e,t,r){"use strict";const{PassThrough:n}=r(413);e.exports=(e=>{e=Object.assign({},e);const{array:t}=e;let{encoding:r}=e;const i=r==="buffer";let s=false;if(t){s=!(r||i)}else{r=r||"utf8"}if(i){r=null}let o=0;const a=[];const u=new n({objectMode:s});if(r){u.setEncoding(r)}u.on("data",e=>{a.push(e);if(s){o=a.length}else{o+=e.length}});u.getBufferedValue=(()=>{if(t){return a}return i?Buffer.concat(a,o):a.join("")});u.getBufferedLength=(()=>o);return u})},969:function(e,t,r){var n=r(11);e.exports=n(once);e.exports.strict=n(onceStrict);once.proto=once(function(){Object.defineProperty(Function.prototype,"once",{value:function(){return once(this)},configurable:true});Object.defineProperty(Function.prototype,"onceStrict",{value:function(){return onceStrict(this)},configurable:true})});function once(e){var t=function(){if(t.called)return t.value;t.called=true;return t.value=e.apply(this,arguments)};t.called=false;return t}function onceStrict(e){var t=function(){if(t.called)throw new Error(t.onceError);t.called=true;return t.value=e.apply(this,arguments)};var r=e.name||"Function wrapped with `once`";t.onceError=r+" shouldn't be called more than once";t.called=false;return t}}}); \ No newline at end of file +module.exports=function(e,t){"use strict";var r={};function __webpack_require__(t){if(r[t]){return r[t].exports}var n=r[t]={i:t,l:false,exports:{}};e[t].call(n.exports,n,n.exports,__webpack_require__);n.l=true;return n.exports}__webpack_require__.ab=__dirname+"/";function startup(){return __webpack_require__(131)}return startup()}({0:function(e,t,r){e.exports=withDefaults;const n=r(500);function withDefaults(e,t){const r=e.defaults(t);const i=function(e,t){return n(r,e,t)};i.defaults=withDefaults.bind(null,r);return i}},2:function(e,t,r){"use strict";const n=r(87);const i=r(118);const s=r(49);const o=(e,t)=>{if(!e&&t){throw new Error("You can't specify a `release` without specifying `platform`")}e=e||n.platform();let r;if(e==="darwin"){if(!t&&n.platform()==="darwin"){t=n.release()}const e=t?Number(t.split(".")[0])>15?"macOS":"OS X":"macOS";r=t?i(t).name:"";return e+(r?" "+r:"")}if(e==="linux"){if(!t&&n.platform()==="linux"){t=n.release()}r=t?t.replace(/^(\d+\.\d+).*/,"$1"):"";return"Linux"+(r?" "+r:"")}if(e==="win32"){if(!t&&n.platform()==="win32"){t=n.release()}r=t?s(t):"";return"Windows"+(r?" "+r:"")}return e};e.exports=o},8:function(e,t,r){e.exports=iterator;const n=r(301);function iterator(e,t){const r=t.headers;let i=e.request.endpoint(t).url;return{[Symbol.asyncIterator]:()=>({next(){if(!i){return Promise.resolve({done:true})}return e.request({url:i,headers:r}).then(t=>{n(e,i,t);i=((t.headers.link||"").match(/<([^>]+)>;\s*rel="next"/)||[])[1];return{value:t}})}})}}},9:function(e,t,r){var n=r(969);var i=function(){};var s=function(e){return e.setHeader&&typeof e.abort==="function"};var o=function(e){return e.stdio&&Array.isArray(e.stdio)&&e.stdio.length===3};var a=function(e,t,r){if(typeof t==="function")return a(e,null,t);if(!t)t={};r=n(r||i);var u=e._writableState;var p=e._readableState;var c=t.readable||t.readable!==false&&e.readable;var d=t.writable||t.writable!==false&&e.writable;var l=false;var g=function(){if(!e.writable)m()};var m=function(){d=false;if(!c)r.call(e)};var h=function(){c=false;if(!d)r.call(e)};var f=function(t){r.call(e,t?new Error("exited with error code: "+t):null)};var y=function(t){r.call(e,t)};var b=function(){process.nextTick(w)};var w=function(){if(l)return;if(c&&!(p&&(p.ended&&!p.destroyed)))return r.call(e,new Error("premature close"));if(d&&!(u&&(u.ended&&!u.destroyed)))return r.call(e,new Error("premature close"))};var _=function(){e.req.on("finish",m)};if(s(e)){e.on("complete",m);e.on("abort",b);if(e.req)_();else e.on("request",_)}else if(d&&!u){e.on("end",g);e.on("close",g)}if(o(e))e.on("exit",f);e.on("end",h);e.on("finish",m);if(t.error!==false)e.on("error",y);e.on("close",b);return function(){l=true;e.removeListener("complete",m);e.removeListener("abort",b);e.removeListener("request",_);if(e.req)e.req.removeListener("finish",m);e.removeListener("end",g);e.removeListener("close",g);e.removeListener("finish",m);e.removeListener("exit",f);e.removeListener("end",h);e.removeListener("error",y);e.removeListener("close",b)}};e.exports=a},11:function(e){e.exports=wrappy;function wrappy(e,t){if(e&&t)return wrappy(e)(t);if(typeof e!=="function")throw new TypeError("need wrapper function");Object.keys(e).forEach(function(t){wrapper[t]=e[t]});return wrapper;function wrapper(){var t=new Array(arguments.length);for(var r=0;re.warn(t));const o=r(674);const a=r(471);const u=r(349);function authenticationPlugin(e,t){if(t.auth){e.authenticate=(()=>{s(e.log,new n('[@octokit/rest] octokit.authenticate() is deprecated and has no effect when "auth" option is set on Octokit constructor'))});return}const r={octokit:e,auth:false};e.authenticate=o.bind(null,r);e.hook.before("request",a.bind(null,r));e.hook.error("request",u.bind(null,r))}},20:function(e,t,r){"use strict";const n=r(129);const i=r(568);const s=r(881);function spawn(e,t,r){const o=i(e,t,r);const a=n.spawn(o.command,o.args,o.options);s.hookChildProcess(a,o);return a}function spawnSync(e,t,r){const o=i(e,t,r);const a=n.spawnSync(o.command,o.args,o.options);a.error=a.error||s.verifyENOENTSync(a.status,o);return a}e.exports=spawn;e.exports.spawn=spawn;e.exports.sync=spawnSync;e.exports._parse=i;e.exports._enoent=s},25:function(e,t,r){t=e.exports=createDebug.debug=createDebug["default"]=createDebug;t.coerce=coerce;t.disable=disable;t.enable=enable;t.enabled=enabled;t.humanize=r(317);t.instances=[];t.names=[];t.skips=[];t.formatters={};function selectColor(e){var r=0,n;for(n in e){r=(r<<5)-r+e.charCodeAt(n);r|=0}return t.colors[Math.abs(r)%t.colors.length]}function createDebug(e){var r;function debug(){if(!debug.enabled)return;var e=debug;var n=+new Date;var i=n-(r||n);e.diff=i;e.prev=r;e.curr=n;r=n;var s=new Array(arguments.length);for(var o=0;o{e=e||{};const t=e.env||process.env;const r=e.platform||process.platform;if(r!=="win32"){return"PATH"}return Object.keys(t).find(e=>e.toUpperCase()==="PATH")||"Path"})},46:function(e,t,r){e.exports=getUserAgentNode;const n=r(2);function getUserAgentNode(){try{return`Node.js/${process.version.substr(1)} (${n()}; ${process.arch})`}catch(e){if(/wmic os get Caption/.test(e.message)){return"Windows "}throw e}}},47:function(e,t,r){e.exports=factory;const n=r(402);const i=r(855);function factory(e){const t=n.bind(null,e||[]);t.plugin=i.bind(null,e||[]);return t}},49:function(e,t,r){"use strict";const n=r(87);const i=r(955);const s=new Map([["10.0","10"],["6.3","8.1"],["6.2","8"],["6.1","7"],["6.0","Vista"],["5.2","Server 2003"],["5.1","XP"],["5.0","2000"],["4.9","ME"],["4.1","98"],["4.0","95"]]);const o=e=>{const t=/\d+\.\d/.exec(e||n.release());if(e&&!t){throw new Error("`release` argument doesn't match `n.n`")}const r=(t||[])[0];if((!e||e===n.release())&&["6.1","6.2","6.3","10.0"].includes(r)){const e=i.sync("wmic",["os","get","Caption"]).stdout||"";const t=(e.match(/2008|2012|2016/)||[])[0];if(t){return`Server ${t}`}}return s.get(r)};e.exports=o},53:function(e,t,r){e.exports=r(352)},81:function(e,t,r){var n=r(867);var i=r(669);t=e.exports=r(25);t.init=init;t.log=log;t.formatArgs=formatArgs;t.save=save;t.load=load;t.useColors=useColors;t.colors=[6,2,3,4,5,1];try{var s=r(247);if(s&&s.level>=2){t.colors=[20,21,26,27,32,33,38,39,40,41,42,43,44,45,56,57,62,63,68,69,74,75,76,77,78,79,80,81,92,93,98,99,112,113,128,129,134,135,148,149,160,161,162,163,164,165,166,167,168,169,170,171,172,173,178,179,184,185,196,197,198,199,200,201,202,203,204,205,206,207,208,209,214,215,220,221]}}catch(e){}t.inspectOpts=Object.keys(process.env).filter(function(e){return/^debug_/i.test(e)}).reduce(function(e,t){var r=t.substring(6).toLowerCase().replace(/_([a-z])/g,function(e,t){return t.toUpperCase()});var n=process.env[t];if(/^(yes|on|true|enabled)$/i.test(n))n=true;else if(/^(no|off|false|disabled)$/i.test(n))n=false;else if(n==="null")n=null;else n=Number(n);e[r]=n;return e},{});function useColors(){return"colors"in t.inspectOpts?Boolean(t.inspectOpts.colors):n.isatty(process.stderr.fd)}t.formatters.o=function(e){this.inspectOpts.colors=this.useColors;return i.inspect(e,this.inspectOpts).split("\n").map(function(e){return e.trim()}).join(" ")};t.formatters.O=function(e){this.inspectOpts.colors=this.useColors;return i.inspect(e,this.inspectOpts)};function formatArgs(e){var r=this.namespace;var n=this.useColors;if(n){var i=this.color;var s="[3"+(i<8?i:"8;5;"+i);var o=" "+s+";1m"+r+" "+"";e[0]=o+e[0].split("\n").join("\n"+o);e.push(s+"m+"+t.humanize(this.diff)+"")}else{e[0]=getDate()+r+" "+e[0]}}function getDate(){if(t.inspectOpts.hideDate){return""}else{return(new Date).toISOString()+" "}}function log(){return process.stderr.write(i.format.apply(i,arguments)+"\n")}function save(e){if(null==e){delete process.env.DEBUG}else{process.env.DEBUG=e}}function load(){return process.env.DEBUG}function init(e){e.inspectOpts={};var r=Object.keys(t.inspectOpts);for(var n=0;n{e=Number((e||n.release()).split(".")[0]);return{name:i.get(e),version:"10."+(e-4)}};e.exports=s;e.exports.default=s},126:function(e){var t=200;var r="__lodash_hash_undefined__";var n=1/0;var i="[object Function]",s="[object GeneratorFunction]";var o=/[\\^$.*+?()[\]{}|]/g;var a=/^\[object .+?Constructor\]$/;var u=typeof global=="object"&&global&&global.Object===Object&&global;var p=typeof self=="object"&&self&&self.Object===Object&&self;var c=u||p||Function("return this")();function arrayIncludes(e,t){var r=e?e.length:0;return!!r&&baseIndexOf(e,t,0)>-1}function arrayIncludesWith(e,t,r){var n=-1,i=e?e.length:0;while(++n-1}function listCacheSet(e,t){var r=this.__data__,n=assocIndexOf(r,e);if(n<0){r.push([e,t])}else{r[n][1]=t}return this}ListCache.prototype.clear=listCacheClear;ListCache.prototype["delete"]=listCacheDelete;ListCache.prototype.get=listCacheGet;ListCache.prototype.has=listCacheHas;ListCache.prototype.set=listCacheSet;function MapCache(e){var t=-1,r=e?e.length:0;this.clear();while(++t=t){var c=r?null:T(e);if(c){return setToArray(c)}a=false;s=cacheHas;p=new SetCache}else{p=r?[]:u}e:while(++i{const e=s.getInput("jira-token",{required:true});const t=s.getInput("jira-base-url",{required:true});const r=s.getInput("github-token",{required:true});const n=s.getInput("skip-branches",{required:false})||"";const i=s.getInput("skip-comments",{required:false})==="true";const o=parseInt(s.getInput("pr-threshold",{required:false}),10);const a=s.getInput("validate_issue_status",{required:false})==="true";const p=s.getInput("allowed_issue_statuses");return{JIRA_TOKEN:e,GITHUB_TOKEN:r,BRANCH_IGNORE_PATTERN:n,SKIP_COMMENTS:i,PR_THRESHOLD:isNaN(o)?u.DEFAULT_PR_ADDITIONS_THRESHOLD:o,JIRA_BASE_URL:t.endsWith("/")?t.replace(/\/$/,""):t,VALIDATE_ISSUE_STATUS:a,ALLOWED_ISSUE_STATUSES:p}};function run(){var e,t;return n(this,void 0,void 0,function*(){try{const{JIRA_TOKEN:r,JIRA_BASE_URL:n,GITHUB_TOKEN:i,BRANCH_IGNORE_PATTERN:u,SKIP_COMMENTS:c,PR_THRESHOLD:d,VALIDATE_ISSUE_STATUS:l,ALLOWED_ISSUE_STATUSES:g}=p();const m=800;const h=d?Number(d):m;const{payload:{repository:f,organization:{login:y},pull_request:b}}=o.context;if(typeof f==="undefined"){throw new Error(`Missing 'repository' from github action context.`)}const{name:w}=f;const{base:{ref:_},head:{ref:q},number:v=0,body:E="",additions:T=0,title:C=""}=b;const j={owner:y,repo:w,issue_number:v};const k=new o.GitHub(i);if(!q&&!_){const e="jira-lint is unable to determine the head and base branch";const t=Object.assign(Object.assign({},j),{body:e});yield a.addComment(k,t);s.setFailed("Unable to get the head and base branch");process.exit(1)}console.log("Base branch -> ",_);console.log("Head branch -> ",q);if(a.shouldSkipBranchLint(q,u)){process.exit(0)}const S=a.getJIRAIssueKeys(q);if(!S.length){const e=Object.assign(Object.assign({},j),{body:a.getNoIdComment(q)});yield a.addComment(k,e);s.setFailed("JIRA issue id is missing in your branch.");process.exit(1)}const O=S[S.length-1];console.log(`JIRA key -> ${O}`);const{getTicketDetails:x}=a.getJIRAClient(n,r);const P=yield x(O);if(P.key){const r=((e=P===null||P===void 0?void 0:P.project)===null||e===void 0?void 0:e.name)||"";const n=a.getHotfixLabel(_);const i=((t=P===null||P===void 0?void 0:P.type)===null||t===void 0?void 0:t.name)||"";const o=[r,n,i].filter(a.isNotBlank);console.log("Adding lables -> ",o);yield a.addLabels(k,Object.assign(Object.assign({},j),{labels:o}));if(!a.isIssueStatusValid(l,g.split(","),P)){const e=Object.assign(Object.assign({},j),{body:a.getInvalidIssueStatusComment(P.status,g)});console.log("Adding comment for invalid issue status");yield a.addComment(k,e);s.setFailed("The found jira issue does is not in acceptable statuses");process.exit(1)}if(a.shouldUpdatePRDescription(E)){const e={owner:y,repo:w,pull_number:v,body:a.getPRDescription(E,P)};yield a.updatePrDetails(k,e);if(!c){const e=Object.assign(Object.assign({},j),{body:a.getPRTitleComment(P.summary,C)});console.log("Adding comment for the PR title");a.addComment(k,e);if(a.isHumongousPR(T,h)){const e=Object.assign(Object.assign({},j),{body:a.getHugePrComment(T,h)});console.log("Adding comment for huge PR");a.addComment(k,e)}}}}else{const e=Object.assign(Object.assign({},j),{body:a.getNoIdComment(q)});yield a.addComment(k,e);s.setFailed("Invalid JIRA key. Please create a branch with a valid JIRA issue key.");process.exit(1)}}catch(e){console.log({error:e});s.setFailed(e.message);process.exit(1)}})}run()},133:function(e,t,r){"use strict";var n=r(35);function encode(e){return encodeURIComponent(e).replace(/%40/gi,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}e.exports=function buildURL(e,t,r){if(!t){return e}var i;if(r){i=r(t)}else if(n.isURLSearchParams(t)){i=t.toString()}else{var s=[];n.forEach(t,function serialize(e,t){if(e===null||typeof e==="undefined"){return}if(n.isArray(e)){t=t+"[]"}else{e=[e]}n.forEach(e,function parseValue(e){if(n.isDate(e)){e=e.toISOString()}else if(n.isObject(e)){e=JSON.stringify(e)}s.push(encode(t)+"="+encode(e))})});i=s.join("&")}if(i){var o=e.indexOf("#");if(o!==-1){e=e.slice(0,o)}e+=(e.indexOf("?")===-1?"?":"&")+i}return e}},137:function(e,t,r){"use strict";var n=r(826);function CancelToken(e){if(typeof e!=="function"){throw new TypeError("executor must be a function.")}var t;this.promise=new Promise(function promiseExecutor(e){t=e});var r=this;e(function cancel(e){if(r.reason){return}r.reason=new n(e);t(r.reason)})}CancelToken.prototype.throwIfRequested=function throwIfRequested(){if(this.reason){throw this.reason}};CancelToken.source=function source(){var e;var t=new CancelToken(function executor(t){e=t});return{token:t,cancel:e}};e.exports=CancelToken},143:function(e,t,r){e.exports=withAuthorizationPrefix;const n=r(368);const i=/^[\w-]+:/;function withAuthorizationPrefix(e){if(/^(basic|bearer|token) /i.test(e)){return e}try{if(i.test(n(e))){return`basic ${e}`}}catch(e){}if(e.split(/\./).length===3){return`bearer ${e}`}return`token ${e}`}},145:function(e,t,r){"use strict";const n=r(453);const i=r(966);class MaxBufferError extends Error{constructor(){super("maxBuffer exceeded");this.name="MaxBufferError"}}function getStream(e,t){if(!e){return Promise.reject(new Error("Expected a stream"))}t=Object.assign({maxBuffer:Infinity},t);const{maxBuffer:r}=t;let s;return new Promise((o,a)=>{const u=e=>{if(e){e.bufferedData=s.getBufferedValue()}a(e)};s=n(e,i(t),e=>{if(e){u(e);return}o()});s.on("data",()=>{if(s.getBufferedLength()>r){u(new MaxBufferError)}})}).then(()=>s.getBufferedValue())}e.exports=getStream;e.exports.buffer=((e,t)=>getStream(e,Object.assign({},t,{encoding:"buffer"})));e.exports.array=((e,t)=>getStream(e,Object.assign({},t,{array:true})));e.exports.MaxBufferError=MaxBufferError},148:function(e,t,r){e.exports=paginatePlugin;const n=r(8);const i=r(807);function paginatePlugin(e){e.paginate=i.bind(null,e);e.paginate.iterator=n.bind(null,e)}},163:function(e,t,r){"use strict";var n=this&&this.__awaiter||function(e,t,r,n){function adopt(e){return e instanceof r?e:new r(function(t){t(e)})}return new(r||(r=Promise))(function(r,i){function fulfilled(e){try{step(n.next(e))}catch(e){i(e)}}function rejected(e){try{step(n["throw"](e))}catch(e){i(e)}}function step(e){e.done?r(e.value):adopt(e.value).then(fulfilled,rejected)}step((n=n.apply(e,t||[])).next())})};var i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};var s=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var r in e)if(Object.hasOwnProperty.call(e,r))t[r]=e[r];t["default"]=e;return t};Object.defineProperty(t,"__esModule",{value:true});const o=i(r(53));const a=s(r(470));const u=i(r(451));const p=r(694);t.isBlank=(e=>e.trim().length===0);t.isNotBlank=(e=>!t.isBlank(e));t.reverseString=(e=>e.split("").reverse().join(""));t.getJIRAIssueKeys=(e=>{const r=t.reverseString(e).toUpperCase().match(p.JIRA_REGEX_MATCHER);if(r===null||r===void 0?void 0:r.length){return r.map(t.reverseString).reverse()}else return[]});t.LABELS={HOTFIX_PRE_PROD:"HOTFIX-PRE-PROD",HOTFIX_PROD:"HOTFIX-PROD"};t.getHotfixLabel=(e=>{if(e.startsWith("release/v"))return t.LABELS.HOTFIX_PRE_PROD;if(e.startsWith("production"))return t.LABELS.HOTFIX_PROD;return""});t.getJIRAClient=((e,t)=>{const r=o.default.create({baseURL:`${e}/rest/api/3`,timeout:2e3,headers:{Authorization:`Basic ${t}`}});const i=e=>n(void 0,void 0,void 0,function*(){try{const t=yield r.get(`/issue/${e}?fields=project,summary,issuetype,labels,status,customfield_10016`);return t.data}catch(e){throw e}});const s=t=>n(void 0,void 0,void 0,function*(){try{const r=yield i(t);const{fields:{issuetype:n,project:s,summary:o,customfield_10016:a,labels:u,status:p}}=r;const c=u.map(t=>({name:t,url:`${e}/issues?jql=${encodeURIComponent(`project = ${s.key} AND labels = ${t} ORDER BY created DESC`)}`}));return{key:t,summary:o,url:`${e}/browse/${t}`,status:p.name,type:{name:n.name,icon:n.iconUrl},project:{name:s.name,url:`${e}/browse/${s.key}`,key:s.key},estimate:typeof a==="string"||typeof a==="number"?a:"N/A",labels:c}}catch(e){throw e}});return{client:r,getTicketDetails:s,getIssue:i}});t.addLabels=((e,t)=>n(void 0,void 0,void 0,function*(){try{yield e.issues.addLabels(t)}catch(e){a.setFailed(e.message);process.exit(1)}}));t.updatePrDetails=((e,t)=>n(void 0,void 0,void 0,function*(){try{yield e.pulls.update(t)}catch(e){a.setFailed(e.message);process.exit(1)}}));t.addComment=((e,t)=>n(void 0,void 0,void 0,function*(){try{yield e.issues.createComment(t)}catch(e){a.setFailed(e.message)}}));t.getPRTitleComment=((e,t)=>{const r=u.default.compareTwoStrings(e,t);if(r<.2){return`

\n Knock Knock! 🔍\n

\n

\n Just thought I'd let you know that your PR title and story title look quite different. PR titles\n that closely resemble the story title make it easier for reviewers to understand the context of the PR.\n

\n
\n An easy-to-understand PR title a day makes the reviewer review away! 😛⚡️\n
\n \n \n \n \n \n \n \n \n \n
Story Title${e}
PR Title${t}
\n

\n Check out this guide to learn more about PR best-practices.\n

\n `}else if(r>=.2&&r<=.4){return`

\n Let's make that PR title a 💯 shall we? 💪\n

\n

\n Your PR title and story title look slightly different. Just checking in to know if it was intentional!\n

\n \n \n \n \n \n \n \n \n \n
Story Title${e}
PR Title${t}
\n

\n Check out this guide to learn more about PR best-practices.\n

\n `}return`

I'm a bot and I 👍 this PR title. 🤖

\n\n `});t.shouldSkipBranchLint=((e,t)=>{if(p.BOT_BRANCH_PATTERNS.some(t=>t.test(e))){console.log(`You look like a bot 🤖 so we're letting you off the hook!`);return true}if(p.DEFAULT_BRANCH_PATTERNS.some(t=>t.test(e))){console.log(`Ignoring check for default branch ${e}`);return true}const r=new RegExp(t||"");if(!!t&&r.test(e)){console.log(`branch '${e}' ignored as it matches the ignore pattern '${t}' provided in skip-branches`);return true}console.log(`branch '${e}' does not match ignore pattern provided in 'skip-branches' option:`,r);return false});t.shouldUpdatePRDescription=(e=>typeof e==="string"&&!p.MARKER_REGEX.test(e));t.getLabelsForDisplay=(e=>{if(!e||!e.length){return"-"}const t=e.map(e=>`${e.name}`).join(", ");return t.replace(/\s+/," ")});t.getPRDescription=((e="",r)=>{const n=r.key.toUpperCase();return`\n
\n ${n}\n
\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n
Summary${r.summary}
Type\n ${r.type.name}\n ${r.type.name}\n
Status${r.status}
Points${r.estimate||"N/A"}
Labels${t.getLabelsForDisplay(r.labels)}
\n
\n\x3c!--\n do not remove this marker as it will break jira-lint's functionality.\n ${p.HIDDEN_MARKER}\n--\x3e\n\n---\n\n${e}`});t.isHumongousPR=((e,t)=>typeof e==="number"&&e>t);t.getHugePrComment=((e,t)=>`

This PR is too huge for one to review :broken_heart:

\n \n \n \n \n \n \n \n \n \n \n
Additions${e} :no_good_woman:
Expected:arrow_down: ${t}
\n

\n Consider breaking it down into multiple small PRs.\n

\n

\n Check out this guide to learn more about PR best-practices.\n

\n `);t.getNoIdComment=(e=>{return`

A JIRA Issue ID is missing from your branch name! 🦄

\n

Your branch: ${e}

\n

If this is your first time contributing to this repository - welcome!

\n
\n

Please refer to jira-lint to get started.\n

Without the JIRA Issue ID in your branch name you would lose out on automatic updates to JIRA via SCM; some GitHub status checks might fail.

\nValid sample branch names:\n\n ‣ feature/shiny-new-feature--mojo-10'\n ‣ 'chore/changelogUpdate_mojo-123'\n ‣ 'bugfix/fix-some-strange-bug_GAL-2345'\n`});t.isIssueStatusValid=((e,t,r)=>{if(!e){a.info("Skipping Jira issue status validation as shouldValidate is false");return true}return t.includes(r.status)});t.getInvalidIssueStatusComment=((e,t)=>`

:broken_heart: The detected issue is not in one of the allowed statuses :broken_heart:

\n \n \n \n \n \n \n \n \n \n \n \n
Detected Status${e}:x:
Allowed Statuses${t}:heavy_check_mark:
\n

Please ensure your jira story is in one of the allowed statuses

\n `)},168:function(e){"use strict";const t=["stdin","stdout","stderr"];const r=e=>t.some(t=>Boolean(e[t]));e.exports=(e=>{if(!e){return null}if(e.stdio&&r(e)){throw new Error(`It's not possible to provide \`stdio\` in combination with one of ${t.map(e=>`\`${e}\``).join(", ")}`)}if(typeof e.stdio==="string"){return e.stdio}const n=e.stdio||[];if(!Array.isArray(n)){throw new TypeError(`Expected \`stdio\` to be of type \`string\` or \`Array\`, got \`${typeof n}\``)}const i=[];const s=Math.max(n.length,t.length);for(let r=0;r"}throw e}}t.getUserAgent=getUserAgent},215:function(e){e.exports={name:"@octokit/rest",version:"16.35.0",publishConfig:{access:"public"},description:"GitHub REST API client for Node.js",keywords:["octokit","github","rest","api-client"],author:"Gregor Martynus (https://github.com/gr2m)",contributors:[{name:"Mike de Boer",email:"info@mikedeboer.nl"},{name:"Fabian Jakobs",email:"fabian@c9.io"},{name:"Joe Gallo",email:"joe@brassafrax.com"},{name:"Gregor Martynus",url:"https://github.com/gr2m"}],repository:"https://github.com/octokit/rest.js",dependencies:{"@octokit/request":"^5.2.0","@octokit/request-error":"^1.0.2","atob-lite":"^2.0.0","before-after-hook":"^2.0.0","btoa-lite":"^1.0.0",deprecation:"^2.0.0","lodash.get":"^4.4.2","lodash.set":"^4.3.2","lodash.uniq":"^4.5.0","octokit-pagination-methods":"^1.1.0",once:"^1.4.0","universal-user-agent":"^4.0.0"},devDependencies:{"@gimenete/type-writer":"^0.1.3","@octokit/fixtures-server":"^5.0.6","@octokit/graphql":"^4.2.0","@types/node":"^12.0.0",bundlesize:"^0.18.0",chai:"^4.1.2","compression-webpack-plugin":"^3.0.0",cypress:"^3.0.0",glob:"^7.1.2","http-proxy-agent":"^2.1.0","lodash.camelcase":"^4.3.0","lodash.merge":"^4.6.1","lodash.upperfirst":"^4.3.1",mkdirp:"^0.5.1",mocha:"^6.0.0",mustache:"^3.0.0",nock:"^11.3.3","npm-run-all":"^4.1.2",nyc:"^14.0.0",prettier:"^1.14.2",proxy:"^1.0.0","semantic-release":"^15.0.0",sinon:"^7.2.4","sinon-chai":"^3.0.0","sort-keys":"^4.0.0","string-to-arraybuffer":"^1.0.0","string-to-jsdoc-comment":"^1.0.0",typescript:"^3.3.1",webpack:"^4.0.0","webpack-bundle-analyzer":"^3.0.0","webpack-cli":"^3.0.0"},types:"index.d.ts",scripts:{coverage:"nyc report --reporter=html && open coverage/index.html",lint:"prettier --check '{lib,plugins,scripts,test}/**/*.{js,json,ts}' 'docs/*.{js,json}' 'docs/src/**/*' index.js README.md package.json","lint:fix":"prettier --write '{lib,plugins,scripts,test}/**/*.{js,json,ts}' 'docs/*.{js,json}' 'docs/src/**/*' index.js README.md package.json",pretest:"npm run -s lint",test:'nyc mocha test/mocha-node-setup.js "test/*/**/*-test.js"',"test:browser":"cypress run --browser chrome",build:"npm-run-all build:*","build:ts":"npm run -s update-endpoints:typescript","prebuild:browser":"mkdirp dist/","build:browser":"npm-run-all build:browser:*","build:browser:development":"webpack --mode development --entry . --output-library=Octokit --output=./dist/octokit-rest.js --profile --json > dist/bundle-stats.json","build:browser:production":"webpack --mode production --entry . --plugin=compression-webpack-plugin --output-library=Octokit --output-path=./dist --output-filename=octokit-rest.min.js --devtool source-map","generate-bundle-report":"webpack-bundle-analyzer dist/bundle-stats.json --mode=static --no-open --report dist/bundle-report.html","update-endpoints":"npm-run-all update-endpoints:*","update-endpoints:fetch-json":"node scripts/update-endpoints/fetch-json","update-endpoints:code":"node scripts/update-endpoints/code","update-endpoints:typescript":"node scripts/update-endpoints/typescript","prevalidate:ts":"npm run -s build:ts","validate:ts":"tsc --target es6 --noImplicitAny index.d.ts","postvalidate:ts":"tsc --noEmit --target es6 test/typescript-validate.ts","start-fixtures-server":"octokit-fixtures-server"},license:"MIT",files:["index.js","index.d.ts","lib","plugins"],nyc:{ignore:["test"]},release:{publish:["@semantic-release/npm",{path:"@semantic-release/github",assets:["dist/*","!dist/*.map.gz"]}]},bundlesize:[{path:"./dist/octokit-rest.min.js.gz",maxSize:"33 kB"}],_resolved:"https://registry.npmjs.org/@octokit/rest/-/rest-16.35.0.tgz",_integrity:"sha512-9ShFqYWo0CLoGYhA1FdtdykJuMzS/9H6vSbbQWDX4pWr4p9v+15MsH/wpd/3fIU+tSxylaNO48+PIHqOkBRx3w==",_from:"@octokit/rest@16.35.0"}},219:function(e,t,r){"use strict";var n=r(35);var i=r(564);var s=r(133);var o=r(960);var a=r(631);var u=r(688);var p=r(26);e.exports=function xhrAdapter(e){return new Promise(function dispatchXhrRequest(t,c){var d=e.data;var l=e.headers;if(n.isFormData(d)){delete l["Content-Type"]}var g=new XMLHttpRequest;if(e.auth){var m=e.auth.username||"";var h=e.auth.password||"";l.Authorization="Basic "+btoa(m+":"+h)}var f=o(e.baseURL,e.url);g.open(e.method.toUpperCase(),s(f,e.params,e.paramsSerializer),true);g.timeout=e.timeout;g.onreadystatechange=function handleLoad(){if(!g||g.readyState!==4){return}if(g.status===0&&!(g.responseURL&&g.responseURL.indexOf("file:")===0)){return}var r="getAllResponseHeaders"in g?a(g.getAllResponseHeaders()):null;var n=!e.responseType||e.responseType==="text"?g.responseText:g.response;var s={data:n,status:g.status,statusText:g.statusText,headers:r,config:e,request:g};i(t,c,s);g=null};g.onabort=function handleAbort(){if(!g){return}c(p("Request aborted",e,"ECONNABORTED",g));g=null};g.onerror=function handleError(){c(p("Network Error",e,null,g));g=null};g.ontimeout=function handleTimeout(){var t="timeout of "+e.timeout+"ms exceeded";if(e.timeoutErrorMessage){t=e.timeoutErrorMessage}c(p(t,e,"ECONNABORTED",g));g=null};if(n.isStandardBrowserEnv()){var y=r(864);var b=(e.withCredentials||u(f))&&e.xsrfCookieName?y.read(e.xsrfCookieName):undefined;if(b){l[e.xsrfHeaderName]=b}}if("setRequestHeader"in g){n.forEach(l,function setRequestHeader(e,t){if(typeof d==="undefined"&&t.toLowerCase()==="content-type"){delete l[t]}else{g.setRequestHeader(t,e)}})}if(!n.isUndefined(e.withCredentials)){g.withCredentials=!!e.withCredentials}if(e.responseType){try{g.responseType=e.responseType}catch(t){if(e.responseType!=="json"){throw t}}}if(typeof e.onDownloadProgress==="function"){g.addEventListener("progress",e.onDownloadProgress)}if(typeof e.onUploadProgress==="function"&&g.upload){g.upload.addEventListener("progress",e.onUploadProgress)}if(e.cancelToken){e.cancelToken.promise.then(function onCanceled(e){if(!g){return}g.abort();c(e);g=null})}if(d===undefined){d=null}g.send(d)})}},247:function(e,t,r){"use strict";const n=r(87);const i=r(364);const s=process.env;let o;if(i("no-color")||i("no-colors")||i("color=false")){o=false}else if(i("color")||i("colors")||i("color=true")||i("color=always")){o=true}if("FORCE_COLOR"in s){o=s.FORCE_COLOR.length===0||parseInt(s.FORCE_COLOR,10)!==0}function translateLevel(e){if(e===0){return false}return{level:e,hasBasic:true,has256:e>=2,has16m:e>=3}}function supportsColor(e){if(o===false){return 0}if(i("color=16m")||i("color=full")||i("color=truecolor")){return 3}if(i("color=256")){return 2}if(e&&!e.isTTY&&o!==true){return 0}const t=o?1:0;if(process.platform==="win32"){const e=n.release().split(".");if(Number(process.versions.node.split(".")[0])>=8&&Number(e[0])>=10&&Number(e[2])>=10586){return Number(e[2])>=14931?3:2}return 1}if("CI"in s){if(["TRAVIS","CIRCLECI","APPVEYOR","GITLAB_CI"].some(e=>e in s)||s.CI_NAME==="codeship"){return 1}return t}if("TEAMCITY_VERSION"in s){return/^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(s.TEAMCITY_VERSION)?1:0}if(s.COLORTERM==="truecolor"){return 3}if("TERM_PROGRAM"in s){const e=parseInt((s.TERM_PROGRAM_VERSION||"").split(".")[0],10);switch(s.TERM_PROGRAM){case"iTerm.app":return e>=3?3:2;case"Apple_Terminal":return 2}}if(/-256(color)?$/i.test(s.TERM)){return 2}if(/^screen|^xterm|^vt100|^vt220|^rxvt|color|ansi|cygwin|linux/i.test(s.TERM)){return 1}if("COLORTERM"in s){return 1}if(s.TERM==="dumb"){return t}return t}function getSupportLevel(e){const t=supportsColor(e);return translateLevel(t)}e.exports={supportsColor:getSupportLevel,stdout:getSupportLevel(process.stdout),stderr:getSupportLevel(process.stderr)}},248:function(e,t,r){e.exports=octokitRegisterEndpoints;const n=r(899);function octokitRegisterEndpoints(e){e.registerEndpoints=n.bind(null,e)}},260:function(e,t,r){var n=r(357);var i=r(654);var s=r(614);if(typeof s!=="function"){s=s.EventEmitter}var o;if(process.__signal_exit_emitter__){o=process.__signal_exit_emitter__}else{o=process.__signal_exit_emitter__=new s;o.count=0;o.emitted={}}if(!o.infinite){o.setMaxListeners(Infinity);o.infinite=true}e.exports=function(e,t){n.equal(typeof e,"function","a callback must be provided for exit handler");if(u===false){load()}var r="exit";if(t&&t.alwaysLast){r="afterexit"}var i=function(){o.removeListener(r,e);if(o.listeners("exit").length===0&&o.listeners("afterexit").length===0){unload()}};o.on(r,e);return i};e.exports.unload=unload;function unload(){if(!u){return}u=false;i.forEach(function(e){try{process.removeListener(e,a[e])}catch(e){}});process.emit=c;process.reallyExit=p;o.count-=1}function emit(e,t,r){if(o.emitted[e]){return}o.emitted[e]=true;o.emit(e,t,r)}var a={};i.forEach(function(e){a[e]=function listener(){var t=process.listeners(e);if(t.length===o.count){unload();emit("exit",null,e);emit("afterexit",null,e);process.kill(process.pid,e)}}});e.exports.signals=function(){return i};e.exports.load=load;var u=false;function load(){if(u){return}u=true;o.count+=1;i=i.filter(function(e){try{process.on(e,a[e]);return true}catch(e){return false}});process.emit=processEmit;process.reallyExit=processReallyExit}var p=process.reallyExit;function processReallyExit(e){process.exitCode=e||0;emit("exit",process.exitCode,null);emit("afterexit",process.exitCode,null);p.call(process,process.exitCode)}var c=process.emit;function processEmit(e,t){if(e==="exit"){if(t!==undefined){process.exitCode=t}var r=c.apply(this,arguments);emit("exit",process.exitCode,null);emit("afterexit",process.exitCode,null);return r}else{return c.apply(this,arguments)}}},262:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:true});const n=r(747);const i=r(87);class Context{constructor(){this.payload={};if(process.env.GITHUB_EVENT_PATH){if(n.existsSync(process.env.GITHUB_EVENT_PATH)){this.payload=JSON.parse(n.readFileSync(process.env.GITHUB_EVENT_PATH,{encoding:"utf8"}))}else{process.stdout.write(`GITHUB_EVENT_PATH ${process.env.GITHUB_EVENT_PATH} does not exist${i.EOL}`)}}this.eventName=process.env.GITHUB_EVENT_NAME;this.sha=process.env.GITHUB_SHA;this.ref=process.env.GITHUB_REF;this.workflow=process.env.GITHUB_WORKFLOW;this.action=process.env.GITHUB_ACTION;this.actor=process.env.GITHUB_ACTOR}get issue(){const e=this.payload;return Object.assign(Object.assign({},this.repo),{number:(e.issue||e.pullRequest||e).number})}get repo(){if(process.env.GITHUB_REPOSITORY){const[e,t]=process.env.GITHUB_REPOSITORY.split("/");return{owner:e,repo:t}}if(this.payload.repository){return{owner:this.payload.repository.owner.login,repo:this.payload.repository.name}}throw new Error("context.repo requires a GITHUB_REPOSITORY environment variable like 'owner/repo'")}}t.Context=Context},265:function(e,t,r){e.exports=getPage;const n=r(370);const i=r(577);const s=r(297);function getPage(e,t,r,o){n(`octokit.get${r.charAt(0).toUpperCase()+r.slice(1)}Page() – You can use octokit.paginate or async iterators instead: https://github.com/octokit/rest.js#pagination.`);const a=i(t)[r];if(!a){const e=new s(`No ${r} page found`,404);return Promise.reject(e)}const u={url:a,headers:applyAcceptHeader(t,o)};const p=e.request(u);return p}function applyAcceptHeader(e,t){const r=e.headers&&e.headers["x-github-media-type"];if(!r||t&&t.accept){return t}t=t||{};t.accept="application/vnd."+r.replace("; param=",".").replace("; format=","+");return t}},280:function(e,t){t=e.exports=SemVer;var r;if(typeof process==="object"&&process.env&&process.env.NODE_DEBUG&&/\bsemver\b/i.test(process.env.NODE_DEBUG)){r=function(){var e=Array.prototype.slice.call(arguments,0);e.unshift("SEMVER");console.log.apply(console,e)}}else{r=function(){}}t.SEMVER_SPEC_VERSION="2.0.0";var n=256;var i=Number.MAX_SAFE_INTEGER||9007199254740991;var s=16;var o=t.re=[];var a=t.src=[];var u=0;var p=u++;a[p]="0|[1-9]\\d*";var c=u++;a[c]="[0-9]+";var d=u++;a[d]="\\d*[a-zA-Z-][a-zA-Z0-9-]*";var l=u++;a[l]="("+a[p]+")\\."+"("+a[p]+")\\."+"("+a[p]+")";var g=u++;a[g]="("+a[c]+")\\."+"("+a[c]+")\\."+"("+a[c]+")";var m=u++;a[m]="(?:"+a[p]+"|"+a[d]+")";var h=u++;a[h]="(?:"+a[c]+"|"+a[d]+")";var f=u++;a[f]="(?:-("+a[m]+"(?:\\."+a[m]+")*))";var y=u++;a[y]="(?:-?("+a[h]+"(?:\\."+a[h]+")*))";var b=u++;a[b]="[0-9A-Za-z-]+";var w=u++;a[w]="(?:\\+("+a[b]+"(?:\\."+a[b]+")*))";var _=u++;var q="v?"+a[l]+a[f]+"?"+a[w]+"?";a[_]="^"+q+"$";var v="[v=\\s]*"+a[g]+a[y]+"?"+a[w]+"?";var E=u++;a[E]="^"+v+"$";var T=u++;a[T]="((?:<|>)?=?)";var C=u++;a[C]=a[c]+"|x|X|\\*";var j=u++;a[j]=a[p]+"|x|X|\\*";var k=u++;a[k]="[v=\\s]*("+a[j]+")"+"(?:\\.("+a[j]+")"+"(?:\\.("+a[j]+")"+"(?:"+a[f]+")?"+a[w]+"?"+")?)?";var S=u++;a[S]="[v=\\s]*("+a[C]+")"+"(?:\\.("+a[C]+")"+"(?:\\.("+a[C]+")"+"(?:"+a[y]+")?"+a[w]+"?"+")?)?";var O=u++;a[O]="^"+a[T]+"\\s*"+a[k]+"$";var x=u++;a[x]="^"+a[T]+"\\s*"+a[S]+"$";var P=u++;a[P]="(?:^|[^\\d])"+"(\\d{1,"+s+"})"+"(?:\\.(\\d{1,"+s+"}))?"+"(?:\\.(\\d{1,"+s+"}))?"+"(?:$|[^\\d])";var R=u++;a[R]="(?:~>?)";var A=u++;a[A]="(\\s*)"+a[R]+"\\s+";o[A]=new RegExp(a[A],"g");var G="$1~";var F=u++;a[F]="^"+a[R]+a[k]+"$";var D=u++;a[D]="^"+a[R]+a[S]+"$";var B=u++;a[B]="(?:\\^)";var I=u++;a[I]="(\\s*)"+a[B]+"\\s+";o[I]=new RegExp(a[I],"g");var L="$1^";var U=u++;a[U]="^"+a[B]+a[k]+"$";var $=u++;a[$]="^"+a[B]+a[S]+"$";var H=u++;a[H]="^"+a[T]+"\\s*("+v+")$|^$";var N=u++;a[N]="^"+a[T]+"\\s*("+q+")$|^$";var z=u++;a[z]="(\\s*)"+a[T]+"\\s*("+v+"|"+a[k]+")";o[z]=new RegExp(a[z],"g");var V="$1$2$3";var K=u++;a[K]="^\\s*("+a[k]+")"+"\\s+-\\s+"+"("+a[k]+")"+"\\s*$";var W=u++;a[W]="^\\s*("+a[S]+")"+"\\s+-\\s+"+"("+a[S]+")"+"\\s*$";var X=u++;a[X]="(<|>)?=?\\s*\\*";for(var J=0;Jn){return null}var r=t.loose?o[E]:o[_];if(!r.test(e)){return null}try{return new SemVer(e,t)}catch(e){return null}}t.valid=valid;function valid(e,t){var r=parse(e,t);return r?r.version:null}t.clean=clean;function clean(e,t){var r=parse(e.trim().replace(/^[=v]+/,""),t);return r?r.version:null}t.SemVer=SemVer;function SemVer(e,t){if(!t||typeof t!=="object"){t={loose:!!t,includePrerelease:false}}if(e instanceof SemVer){if(e.loose===t.loose){return e}else{e=e.version}}else if(typeof e!=="string"){throw new TypeError("Invalid Version: "+e)}if(e.length>n){throw new TypeError("version is longer than "+n+" characters")}if(!(this instanceof SemVer)){return new SemVer(e,t)}r("SemVer",e,t);this.options=t;this.loose=!!t.loose;var s=e.trim().match(t.loose?o[E]:o[_]);if(!s){throw new TypeError("Invalid Version: "+e)}this.raw=e;this.major=+s[1];this.minor=+s[2];this.patch=+s[3];if(this.major>i||this.major<0){throw new TypeError("Invalid major version")}if(this.minor>i||this.minor<0){throw new TypeError("Invalid minor version")}if(this.patch>i||this.patch<0){throw new TypeError("Invalid patch version")}if(!s[4]){this.prerelease=[]}else{this.prerelease=s[4].split(".").map(function(e){if(/^[0-9]+$/.test(e)){var t=+e;if(t>=0&&t=0){if(typeof this.prerelease[r]==="number"){this.prerelease[r]++;r=-2}}if(r===-1){this.prerelease.push(0)}}if(t){if(this.prerelease[0]===t){if(isNaN(this.prerelease[1])){this.prerelease=[t,0]}}else{this.prerelease=[t,0]}}break;default:throw new Error("invalid increment argument: "+e)}this.format();this.raw=this.version;return this};t.inc=inc;function inc(e,t,r,n){if(typeof r==="string"){n=r;r=undefined}try{return new SemVer(e,r).inc(t,n).version}catch(e){return null}}t.diff=diff;function diff(e,t){if(eq(e,t)){return null}else{var r=parse(e);var n=parse(t);var i="";if(r.prerelease.length||n.prerelease.length){i="pre";var s="prerelease"}for(var o in r){if(o==="major"||o==="minor"||o==="patch"){if(r[o]!==n[o]){return i+o}}}return s}}t.compareIdentifiers=compareIdentifiers;var Y=/^[0-9]+$/;function compareIdentifiers(e,t){var r=Y.test(e);var n=Y.test(t);if(r&&n){e=+e;t=+t}return e===t?0:r&&!n?-1:n&&!r?1:e0}t.lt=lt;function lt(e,t,r){return compare(e,t,r)<0}t.eq=eq;function eq(e,t,r){return compare(e,t,r)===0}t.neq=neq;function neq(e,t,r){return compare(e,t,r)!==0}t.gte=gte;function gte(e,t,r){return compare(e,t,r)>=0}t.lte=lte;function lte(e,t,r){return compare(e,t,r)<=0}t.cmp=cmp;function cmp(e,t,r,n){switch(t){case"===":if(typeof e==="object")e=e.version;if(typeof r==="object")r=r.version;return e===r;case"!==":if(typeof e==="object")e=e.version;if(typeof r==="object")r=r.version;return e!==r;case"":case"=":case"==":return eq(e,r,n);case"!=":return neq(e,r,n);case">":return gt(e,r,n);case">=":return gte(e,r,n);case"<":return lt(e,r,n);case"<=":return lte(e,r,n);default:throw new TypeError("Invalid operator: "+t)}}t.Comparator=Comparator;function Comparator(e,t){if(!t||typeof t!=="object"){t={loose:!!t,includePrerelease:false}}if(e instanceof Comparator){if(e.loose===!!t.loose){return e}else{e=e.value}}if(!(this instanceof Comparator)){return new Comparator(e,t)}r("comparator",e,t);this.options=t;this.loose=!!t.loose;this.parse(e);if(this.semver===Z){this.value=""}else{this.value=this.operator+this.semver.version}r("comp",this)}var Z={};Comparator.prototype.parse=function(e){var t=this.options.loose?o[H]:o[N];var r=e.match(t);if(!r){throw new TypeError("Invalid comparator: "+e)}this.operator=r[1];if(this.operator==="="){this.operator=""}if(!r[2]){this.semver=Z}else{this.semver=new SemVer(r[2],this.options.loose)}};Comparator.prototype.toString=function(){return this.value};Comparator.prototype.test=function(e){r("Comparator.test",e,this.options.loose);if(this.semver===Z){return true}if(typeof e==="string"){e=new SemVer(e,this.options)}return cmp(e,this.operator,this.semver,this.options)};Comparator.prototype.intersects=function(e,t){if(!(e instanceof Comparator)){throw new TypeError("a Comparator is required")}if(!t||typeof t!=="object"){t={loose:!!t,includePrerelease:false}}var r;if(this.operator===""){r=new Range(e.value,t);return satisfies(this.value,r,t)}else if(e.operator===""){r=new Range(this.value,t);return satisfies(e.semver,r,t)}var n=(this.operator===">="||this.operator===">")&&(e.operator===">="||e.operator===">");var i=(this.operator==="<="||this.operator==="<")&&(e.operator==="<="||e.operator==="<");var s=this.semver.version===e.semver.version;var o=(this.operator===">="||this.operator==="<=")&&(e.operator===">="||e.operator==="<=");var a=cmp(this.semver,"<",e.semver,t)&&((this.operator===">="||this.operator===">")&&(e.operator==="<="||e.operator==="<"));var u=cmp(this.semver,">",e.semver,t)&&((this.operator==="<="||this.operator==="<")&&(e.operator===">="||e.operator===">"));return n||i||s&&o||a||u};t.Range=Range;function Range(e,t){if(!t||typeof t!=="object"){t={loose:!!t,includePrerelease:false}}if(e instanceof Range){if(e.loose===!!t.loose&&e.includePrerelease===!!t.includePrerelease){return e}else{return new Range(e.raw,t)}}if(e instanceof Comparator){return new Range(e.value,t)}if(!(this instanceof Range)){return new Range(e,t)}this.options=t;this.loose=!!t.loose;this.includePrerelease=!!t.includePrerelease;this.raw=e;this.set=e.split(/\s*\|\|\s*/).map(function(e){return this.parseRange(e.trim())},this).filter(function(e){return e.length});if(!this.set.length){throw new TypeError("Invalid SemVer Range: "+e)}this.format()}Range.prototype.format=function(){this.range=this.set.map(function(e){return e.join(" ").trim()}).join("||").trim();return this.range};Range.prototype.toString=function(){return this.range};Range.prototype.parseRange=function(e){var t=this.options.loose;e=e.trim();var n=t?o[W]:o[K];e=e.replace(n,hyphenReplace);r("hyphen replace",e);e=e.replace(o[z],V);r("comparator trim",e,o[z]);e=e.replace(o[A],G);e=e.replace(o[I],L);e=e.split(/\s+/).join(" ");var i=t?o[H]:o[N];var s=e.split(" ").map(function(e){return parseComparator(e,this.options)},this).join(" ").split(/\s+/);if(this.options.loose){s=s.filter(function(e){return!!e.match(i)})}s=s.map(function(e){return new Comparator(e,this.options)},this);return s};Range.prototype.intersects=function(e,t){if(!(e instanceof Range)){throw new TypeError("a Range is required")}return this.set.some(function(r){return r.every(function(r){return e.set.some(function(e){return e.every(function(e){return r.intersects(e,t)})})})})};t.toComparators=toComparators;function toComparators(e,t){return new Range(e,t).set.map(function(e){return e.map(function(e){return e.value}).join(" ").trim().split(" ")})}function parseComparator(e,t){r("comp",e,t);e=replaceCarets(e,t);r("caret",e);e=replaceTildes(e,t);r("tildes",e);e=replaceXRanges(e,t);r("xrange",e);e=replaceStars(e,t);r("stars",e);return e}function isX(e){return!e||e.toLowerCase()==="x"||e==="*"}function replaceTildes(e,t){return e.trim().split(/\s+/).map(function(e){return replaceTilde(e,t)}).join(" ")}function replaceTilde(e,t){var n=t.loose?o[D]:o[F];return e.replace(n,function(t,n,i,s,o){r("tilde",e,t,n,i,s,o);var a;if(isX(n)){a=""}else if(isX(i)){a=">="+n+".0.0 <"+(+n+1)+".0.0"}else if(isX(s)){a=">="+n+"."+i+".0 <"+n+"."+(+i+1)+".0"}else if(o){r("replaceTilde pr",o);a=">="+n+"."+i+"."+s+"-"+o+" <"+n+"."+(+i+1)+".0"}else{a=">="+n+"."+i+"."+s+" <"+n+"."+(+i+1)+".0"}r("tilde return",a);return a})}function replaceCarets(e,t){return e.trim().split(/\s+/).map(function(e){return replaceCaret(e,t)}).join(" ")}function replaceCaret(e,t){r("caret",e,t);var n=t.loose?o[$]:o[U];return e.replace(n,function(t,n,i,s,o){r("caret",e,t,n,i,s,o);var a;if(isX(n)){a=""}else if(isX(i)){a=">="+n+".0.0 <"+(+n+1)+".0.0"}else if(isX(s)){if(n==="0"){a=">="+n+"."+i+".0 <"+n+"."+(+i+1)+".0"}else{a=">="+n+"."+i+".0 <"+(+n+1)+".0.0"}}else if(o){r("replaceCaret pr",o);if(n==="0"){if(i==="0"){a=">="+n+"."+i+"."+s+"-"+o+" <"+n+"."+i+"."+(+s+1)}else{a=">="+n+"."+i+"."+s+"-"+o+" <"+n+"."+(+i+1)+".0"}}else{a=">="+n+"."+i+"."+s+"-"+o+" <"+(+n+1)+".0.0"}}else{r("no pr");if(n==="0"){if(i==="0"){a=">="+n+"."+i+"."+s+" <"+n+"."+i+"."+(+s+1)}else{a=">="+n+"."+i+"."+s+" <"+n+"."+(+i+1)+".0"}}else{a=">="+n+"."+i+"."+s+" <"+(+n+1)+".0.0"}}r("caret return",a);return a})}function replaceXRanges(e,t){r("replaceXRanges",e,t);return e.split(/\s+/).map(function(e){return replaceXRange(e,t)}).join(" ")}function replaceXRange(e,t){e=e.trim();var n=t.loose?o[x]:o[O];return e.replace(n,function(t,n,i,s,o,a){r("xRange",e,t,n,i,s,o,a);var u=isX(i);var p=u||isX(s);var c=p||isX(o);var d=c;if(n==="="&&d){n=""}if(u){if(n===">"||n==="<"){t="<0.0.0"}else{t="*"}}else if(n&&d){if(p){s=0}o=0;if(n===">"){n=">=";if(p){i=+i+1;s=0;o=0}else{s=+s+1;o=0}}else if(n==="<="){n="<";if(p){i=+i+1}else{s=+s+1}}t=n+i+"."+s+"."+o}else if(p){t=">="+i+".0.0 <"+(+i+1)+".0.0"}else if(c){t=">="+i+"."+s+".0 <"+i+"."+(+s+1)+".0"}r("xRange return",t);return t})}function replaceStars(e,t){r("replaceStars",e,t);return e.trim().replace(o[X],"")}function hyphenReplace(e,t,r,n,i,s,o,a,u,p,c,d,l){if(isX(r)){t=""}else if(isX(n)){t=">="+r+".0.0"}else if(isX(i)){t=">="+r+"."+n+".0"}else{t=">="+t}if(isX(u)){a=""}else if(isX(p)){a="<"+(+u+1)+".0.0"}else if(isX(c)){a="<"+u+"."+(+p+1)+".0"}else if(d){a="<="+u+"."+p+"."+c+"-"+d}else{a="<="+a}return(t+" "+a).trim()}Range.prototype.test=function(e){if(!e){return false}if(typeof e==="string"){e=new SemVer(e,this.options)}for(var t=0;t0){var s=e[i].semver;if(s.major===t.major&&s.minor===t.minor&&s.patch===t.patch){return true}}}return false}return true}t.satisfies=satisfies;function satisfies(e,t,r){try{t=new Range(t,r)}catch(e){return false}return t.test(e)}t.maxSatisfying=maxSatisfying;function maxSatisfying(e,t,r){var n=null;var i=null;try{var s=new Range(t,r)}catch(e){return null}e.forEach(function(e){if(s.test(e)){if(!n||i.compare(e)===-1){n=e;i=new SemVer(n,r)}}});return n}t.minSatisfying=minSatisfying;function minSatisfying(e,t,r){var n=null;var i=null;try{var s=new Range(t,r)}catch(e){return null}e.forEach(function(e){if(s.test(e)){if(!n||i.compare(e)===1){n=e;i=new SemVer(n,r)}}});return n}t.minVersion=minVersion;function minVersion(e,t){e=new Range(e,t);var r=new SemVer("0.0.0");if(e.test(r)){return r}r=new SemVer("0.0.0-0");if(e.test(r)){return r}r=null;for(var n=0;n":if(t.prerelease.length===0){t.patch++}else{t.prerelease.push(0)}t.raw=t.format();case"":case">=":if(!r||gt(r,t)){r=t}break;case"<":case"<=":break;default:throw new Error("Unexpected operation: "+e.operator)}})}if(r&&e.test(r)){return r}return null}t.validRange=validRange;function validRange(e,t){try{return new Range(e,t).range||"*"}catch(e){return null}}t.ltr=ltr;function ltr(e,t,r){return outside(e,t,"<",r)}t.gtr=gtr;function gtr(e,t,r){return outside(e,t,">",r)}t.outside=outside;function outside(e,t,r,n){e=new SemVer(e,n);t=new Range(t,n);var i,s,o,a,u;switch(r){case">":i=gt;s=lte;o=lt;a=">";u=">=";break;case"<":i=lt;s=gte;o=gt;a="<";u="<=";break;default:throw new TypeError('Must provide a hilo val of "<" or ">"')}if(satisfies(e,t,n)){return false}for(var p=0;p=0.0.0")}d=d||e;l=l||e;if(i(e.semver,d.semver,n)){d=e}else if(o(e.semver,l.semver,n)){l=e}});if(d.operator===a||d.operator===u){return false}if((!l.operator||l.operator===a)&&s(e,l.semver)){return false}else if(l.operator===u&&o(e,l.semver)){return false}}return true}t.prerelease=prerelease;function prerelease(e,t){var r=parse(e,t);return r&&r.prerelease.length?r.prerelease:null}t.intersects=intersects;function intersects(e,t,r){e=new Range(e,r);t=new Range(t,r);return e.intersects(t)}t.coerce=coerce;function coerce(e){if(e instanceof SemVer){return e}if(typeof e!=="string"){return null}var t=e.match(o[P]);if(t==null){return null}return parse(t[1]+"."+(t[2]||"0")+"."+(t[3]||"0"))}},283:function(e,t,r){"use strict";var n=r(35);function InterceptorManager(){this.handlers=[]}InterceptorManager.prototype.use=function use(e,t){this.handlers.push({fulfilled:e,rejected:t});return this.handlers.length-1};InterceptorManager.prototype.eject=function eject(e){if(this.handlers[e]){this.handlers[e]=null}};InterceptorManager.prototype.forEach=function forEach(e){n.forEach(this.handlers,function forEachHandler(t){if(t!==null){e(t)}})};e.exports=InterceptorManager},293:function(e,t,r){e.exports=authenticationRequestError;const{RequestError:n}=r(463);function authenticationRequestError(e,t,r){if(!t.headers)throw t;const i=/required/.test(t.headers["x-github-otp"]||"");if(t.status!==401||!i){throw t}if(t.status===401&&i&&t.request&&t.request.headers["x-github-otp"]){if(e.otp){delete e.otp}else{throw new n("Invalid one-time password for two-factor authentication",401,{headers:t.headers,request:r})}}if(typeof e.auth.on2fa!=="function"){throw new n("2FA required, but options.on2fa is not a function. See https://github.com/octokit/rest.js#authentication",401,{headers:t.headers,request:r})}return Promise.resolve().then(()=>{return e.auth.on2fa()}).then(t=>{const n=Object.assign(r,{headers:Object.assign(r.headers,{"x-github-otp":t})});return e.octokit.request(n).then(r=>{e.otp=t;return r})})}},294:function(e,t,r){e.exports=parseOptions;const{Deprecation:n}=r(692);const{getUserAgent:i}=r(619);const s=r(969);const o=r(215);const a=s((e,t)=>e.warn(t));const u=s((e,t)=>e.warn(t));const p=s((e,t)=>e.warn(t));function parseOptions(e,t,r){if(e.headers){e.headers=Object.keys(e.headers).reduce((t,r)=>{t[r.toLowerCase()]=e.headers[r];return t},{})}const s={headers:e.headers||{},request:e.request||{},mediaType:{previews:[],format:""}};if(e.baseUrl){s.baseUrl=e.baseUrl}if(e.userAgent){s.headers["user-agent"]=e.userAgent}if(e.previews){s.mediaType.previews=e.previews}if(e.timeZone){s.headers["time-zone"]=e.timeZone}if(e.timeout){a(t,new n("[@octokit/rest] new Octokit({timeout}) is deprecated. Use {request: {timeout}} instead. See https://github.com/octokit/request.js#request"));s.request.timeout=e.timeout}if(e.agent){u(t,new n("[@octokit/rest] new Octokit({agent}) is deprecated. Use {request: {agent}} instead. See https://github.com/octokit/request.js#request"));s.request.agent=e.agent}if(e.headers){p(t,new n("[@octokit/rest] new Octokit({headers}) is deprecated. Use {userAgent, previews} instead. See https://github.com/octokit/request.js#request"))}const c=s.headers["user-agent"];const d=`octokit.js/${o.version} ${i()}`;s.headers["user-agent"]=[c,d].filter(Boolean).join(" ");s.request.hook=r.bind(null,"request");return s}},297:function(e){e.exports=class HttpError extends Error{constructor(e,t,r){super(e);if(Error.captureStackTrace){Error.captureStackTrace(this,this.constructor)}this.name="HttpError";this.code=t;this.headers=r}}},301:function(e,t,r){e.exports=normalizePaginatedListResponse;const{Deprecation:n}=r(692);const i=r(969);const s=i((e,t)=>e.warn(t));const o=i((e,t)=>e.warn(t));const a=i((e,t)=>e.warn(t));const u=/^\/search\//;const p=/^\/repos\/[^/]+\/[^/]+\/commits\/[^/]+\/(check-runs|check-suites)/;const c=/^\/installation\/repositories/;const d=/^\/user\/installations/;const l=/^\/orgs\/[^/]+\/installations/;function normalizePaginatedListResponse(e,t,r){const i=t.replace(e.request.endpoint.DEFAULTS.baseUrl,"");if(!u.test(i)&&!p.test(i)&&!c.test(i)&&!d.test(i)&&!l.test(i)){return}const g=r.data.incomplete_results;const m=r.data.repository_selection;const h=r.data.total_count;delete r.data.incomplete_results;delete r.data.repository_selection;delete r.data.total_count;const f=Object.keys(r.data)[0];r.data=r.data[f];Object.defineProperty(r.data,f,{get(){a(e.log,new n(`[@octokit/rest] "result.data.${f}" is deprecated. Use "result.data" instead`));return r.data}});if(typeof g!=="undefined"){Object.defineProperty(r.data,"incomplete_results",{get(){s(e.log,new n('[@octokit/rest] "result.data.incomplete_results" is deprecated.'));return g}})}if(typeof m!=="undefined"){Object.defineProperty(r.data,"repository_selection",{get(){o(e.log,new n('[@octokit/rest] "result.data.repository_selection" is deprecated.'));return m}})}Object.defineProperty(r.data,"total_count",{get(){o(e.log,new n('[@octokit/rest] "result.data.total_count" is deprecated.'));return h}})}},314:function(e){e.exports={name:"@octokit/graphql",version:"2.1.3",publishConfig:{access:"public"},description:"GitHub GraphQL API client for browsers and Node",main:"index.js",scripts:{prebuild:"mkdirp dist/",build:"npm-run-all build:*","build:development":"webpack --mode development --entry . --output-library=octokitGraphql --output=./dist/octokit-graphql.js --profile --json > dist/bundle-stats.json","build:production":"webpack --mode production --entry . --plugin=compression-webpack-plugin --output-library=octokitGraphql --output-path=./dist --output-filename=octokit-graphql.min.js --devtool source-map","bundle-report":"webpack-bundle-analyzer dist/bundle-stats.json --mode=static --no-open --report dist/bundle-report.html",coverage:"nyc report --reporter=html && open coverage/index.html","coverage:upload":"nyc report --reporter=text-lcov | coveralls",pretest:"standard",test:"nyc mocha test/*-test.js","test:browser":"cypress run --browser chrome"},repository:{type:"git",url:"https://github.com/octokit/graphql.js.git"},keywords:["octokit","github","api","graphql"],author:"Gregor Martynus (https://github.com/gr2m)",license:"MIT",bugs:{url:"https://github.com/octokit/graphql.js/issues"},homepage:"https://github.com/octokit/graphql.js#readme",dependencies:{"@octokit/request":"^5.0.0","universal-user-agent":"^2.0.3"},devDependencies:{chai:"^4.2.0","compression-webpack-plugin":"^2.0.0",coveralls:"^3.0.3",cypress:"^3.1.5","fetch-mock":"^7.3.1",mkdirp:"^0.5.1",mocha:"^6.0.0","npm-run-all":"^4.1.3",nyc:"^14.0.0","semantic-release":"^15.13.3","simple-mock":"^0.8.0",standard:"^12.0.1",webpack:"^4.29.6","webpack-bundle-analyzer":"^3.1.0","webpack-cli":"^3.2.3"},bundlesize:[{path:"./dist/octokit-graphql.min.js.gz",maxSize:"5KB"}],release:{publish:["@semantic-release/npm",{path:"@semantic-release/github",assets:["dist/*","!dist/*.map.gz"]}]},standard:{globals:["describe","before","beforeEach","afterEach","after","it","expect"]},files:["lib"],_resolved:"https://registry.npmjs.org/@octokit/graphql/-/graphql-2.1.3.tgz",_integrity:"sha512-XoXJqL2ondwdnMIW3wtqJWEwcBfKk37jO/rYkoxNPEVeLBDGsGO1TCWggrAlq3keGt/O+C/7VepXnukUxwt5vA==",_from:"@octokit/graphql@2.1.3"}},317:function(e){var t=1e3;var r=t*60;var n=r*60;var i=n*24;var s=i*365.25;e.exports=function(e,t){t=t||{};var r=typeof e;if(r==="string"&&e.length>0){return parse(e)}else if(r==="number"&&isNaN(e)===false){return t.long?fmtLong(e):fmtShort(e)}throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(e))};function parse(e){e=String(e);if(e.length>100){return}var o=/^((?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|years?|yrs?|y)?$/i.exec(e);if(!o){return}var a=parseFloat(o[1]);var u=(o[2]||"ms").toLowerCase();switch(u){case"years":case"year":case"yrs":case"yr":case"y":return a*s;case"days":case"day":case"d":return a*i;case"hours":case"hour":case"hrs":case"hr":case"h":return a*n;case"minutes":case"minute":case"mins":case"min":case"m":return a*r;case"seconds":case"second":case"secs":case"sec":case"s":return a*t;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return a;default:return undefined}}function fmtShort(e){if(e>=i){return Math.round(e/i)+"d"}if(e>=n){return Math.round(e/n)+"h"}if(e>=r){return Math.round(e/r)+"m"}if(e>=t){return Math.round(e/t)+"s"}return e+"ms"}function fmtLong(e){return plural(e,i,"day")||plural(e,n,"hour")||plural(e,r,"minute")||plural(e,t,"second")||e+" ms"}function plural(e,t,r){if(e{const o=i(r,e);const a=o.type;let u;let p;let c=true;let d=false;if(/\./.test(e)){u=e.replace(/\.[^.]+$/,"");d=u.slice(-2)==="[]";if(d){u=u.slice(0,-2)}p=i(t,u);c=u==="headers"||typeof p==="object"&&p!==null}const l=d?(i(t,u)||[]).map(t=>t[e.split(/\./).pop()]):[i(t,e)];l.forEach((r,i)=>{const u=typeof r!=="undefined";const p=r===null;const l=d?e.replace(/\[\]/,`[${i}]`):e;if(!o.required&&!u){return}if(!c){return}if(o.allowNull&&p){return}if(!o.allowNull&&p){throw new n(`'${l}' cannot be null`,400,{request:t})}if(o.required&&!u){throw new n(`Empty value for parameter '${l}': ${JSON.stringify(r)}`,400,{request:t})}if(a==="integer"){const e=r;r=parseInt(r,10);if(isNaN(r)){throw new n(`Invalid value for parameter '${l}': ${JSON.stringify(e)} is NaN`,400,{request:t})}}if(o.enum&&o.enum.indexOf(String(r))===-1){throw new n(`Invalid value for parameter '${l}': ${JSON.stringify(r)}`,400,{request:t})}if(o.validation){const e=new RegExp(o.validation);if(!e.test(r)){throw new n(`Invalid value for parameter '${l}': ${JSON.stringify(r)}`,400,{request:t})}}if(a==="object"&&typeof r==="string"){try{r=JSON.parse(r)}catch(e){throw new n(`JSON parse error of value for parameter '${l}': ${JSON.stringify(r)}`,400,{request:t})}}s(t,o.mapTo||l,r)})});return t}},349:function(e,t,r){e.exports=authenticationRequestError;const{RequestError:n}=r(463);function authenticationRequestError(e,t,r){if(!t.headers)throw t;const i=/required/.test(t.headers["x-github-otp"]||"");if(t.status!==401||!i){throw t}if(t.status===401&&i&&t.request&&t.request.headers["x-github-otp"]){throw new n("Invalid one-time password for two-factor authentication",401,{headers:t.headers,request:r})}if(typeof e.auth.on2fa!=="function"){throw new n("2FA required, but options.on2fa is not a function. See https://github.com/octokit/rest.js#authentication",401,{headers:t.headers,request:r})}return Promise.resolve().then(()=>{return e.auth.on2fa()}).then(t=>{const n=Object.assign(r,{headers:Object.assign({"x-github-otp":t},r.headers)});return e.octokit.request(n)})}},352:function(e,t,r){"use strict";var n=r(35);var i=r(727);var s=r(779);var o=r(825);var a=r(774);function createInstance(e){var t=new s(e);var r=i(s.prototype.request,t);n.extend(r,s.prototype,t);n.extend(r,t);return r}var u=createInstance(a);u.Axios=s;u.create=function create(e){return createInstance(o(u.defaults,e))};u.Cancel=r(826);u.CancelToken=r(137);u.isCancel=r(732);u.all=function all(e){return Promise.all(e)};u.spread=r(879);e.exports=u;e.exports.default=u},357:function(e){e.exports=require("assert")},361:function(e){e.exports={name:"axios",version:"0.19.2",description:"Promise based HTTP client for the browser and node.js",main:"index.js",scripts:{test:"grunt test && bundlesize",start:"node ./sandbox/server.js",build:"NODE_ENV=production grunt build",preversion:"npm test",version:"npm run build && grunt version && git add -A dist && git add CHANGELOG.md bower.json package.json",postversion:"git push && git push --tags",examples:"node ./examples/server.js",coveralls:"cat coverage/lcov.info | ./node_modules/coveralls/bin/coveralls.js",fix:"eslint --fix lib/**/*.js"},repository:{type:"git",url:"https://github.com/axios/axios.git"},keywords:["xhr","http","ajax","promise","node"],author:"Matt Zabriskie",license:"MIT",bugs:{url:"https://github.com/axios/axios/issues"},homepage:"https://github.com/axios/axios",devDependencies:{bundlesize:"^0.17.0",coveralls:"^3.0.0","es6-promise":"^4.2.4",grunt:"^1.0.2","grunt-banner":"^0.6.0","grunt-cli":"^1.2.0","grunt-contrib-clean":"^1.1.0","grunt-contrib-watch":"^1.0.0","grunt-eslint":"^20.1.0","grunt-karma":"^2.0.0","grunt-mocha-test":"^0.13.3","grunt-ts":"^6.0.0-beta.19","grunt-webpack":"^1.0.18","istanbul-instrumenter-loader":"^1.0.0","jasmine-core":"^2.4.1",karma:"^1.3.0","karma-chrome-launcher":"^2.2.0","karma-coverage":"^1.1.1","karma-firefox-launcher":"^1.1.0","karma-jasmine":"^1.1.1","karma-jasmine-ajax":"^0.1.13","karma-opera-launcher":"^1.0.0","karma-safari-launcher":"^1.0.0","karma-sauce-launcher":"^1.2.0","karma-sinon":"^1.0.5","karma-sourcemap-loader":"^0.3.7","karma-webpack":"^1.7.0","load-grunt-tasks":"^3.5.2",minimist:"^1.2.0",mocha:"^5.2.0",sinon:"^4.5.0",typescript:"^2.8.1","url-search-params":"^0.10.0",webpack:"^1.13.1","webpack-dev-server":"^1.14.1"},browser:{"./lib/adapters/http.js":"./lib/adapters/xhr.js"},typings:"./index.d.ts",dependencies:{"follow-redirects":"1.5.10"},bundlesize:[{path:"./dist/axios.min.js",threshold:"5kB"}],_resolved:"https://registry.npmjs.org/axios/-/axios-0.19.2.tgz",_integrity:"sha512-fjgm5MvRHLhx+osE2xoekY70AhARk3a6hkN+3Io1jc00jtquGvxYlKlsFUhmUET0V5te6CcZI7lcv2Ym61mjHA==",_from:"axios@0.19.2"}},363:function(e){e.exports=register;function register(e,t,r,n){if(typeof r!=="function"){throw new Error("method for before hook must be a function")}if(!n){n={}}if(Array.isArray(t)){return t.reverse().reduce(function(t,r){return register.bind(null,e,r,t,n)},r)()}return Promise.resolve().then(function(){if(!e.registry[t]){return r(n)}return e.registry[t].reduce(function(e,t){return t.hook.bind(null,e,n)},r)()})}},364:function(e){"use strict";e.exports=((e,t)=>{t=t||process.argv;const r=e.startsWith("-")?"":e.length===1?"-":"--";const n=t.indexOf(r+e);const i=t.indexOf("--");return n!==-1&&(i===-1?true:n{e.log.debug("request",r);const n=Date.now();const i=e.request.endpoint.parse(r);const s=i.url.replace(r.baseUrl,"");return t(r).then(t=>{e.log.info(`${i.method} ${s} - ${t.status} in ${Date.now()-n}ms`);return t}).catch(t=>{e.log.info(`${i.method} ${s} - ${t.status} in ${Date.now()-n}ms`);throw t})})}},385:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:true});function _interopDefault(e){return e&&typeof e==="object"&&"default"in e?e["default"]:e}var n=_interopDefault(r(696));var i=r(562);function lowercaseKeys(e){if(!e){return{}}return Object.keys(e).reduce((t,r)=>{t[r.toLowerCase()]=e[r];return t},{})}function mergeDeep(e,t){const r=Object.assign({},e);Object.keys(t).forEach(i=>{if(n(t[i])){if(!(i in e))Object.assign(r,{[i]:t[i]});else r[i]=mergeDeep(e[i],t[i])}else{Object.assign(r,{[i]:t[i]})}});return r}function merge(e,t,r){if(typeof t==="string"){let[e,n]=t.split(" ");r=Object.assign(n?{method:e,url:n}:{url:e},r)}else{r=Object.assign({},t)}r.headers=lowercaseKeys(r.headers);const n=mergeDeep(e||{},r);if(e&&e.mediaType.previews.length){n.mediaType.previews=e.mediaType.previews.filter(e=>!n.mediaType.previews.includes(e)).concat(n.mediaType.previews)}n.mediaType.previews=n.mediaType.previews.map(e=>e.replace(/-preview/,""));return n}function addQueryParameters(e,t){const r=/\?/.test(e)?"&":"?";const n=Object.keys(t);if(n.length===0){return e}return e+r+n.map(e=>{if(e==="q"){return"q="+t.q.split("+").map(encodeURIComponent).join("+")}return`${e}=${encodeURIComponent(t[e])}`}).join("&")}const s=/\{[^}]+\}/g;function removeNonChars(e){return e.replace(/^\W+|\W+$/g,"").split(/,/)}function extractUrlVariableNames(e){const t=e.match(s);if(!t){return[]}return t.map(removeNonChars).reduce((e,t)=>e.concat(t),[])}function omit(e,t){return Object.keys(e).filter(e=>!t.includes(e)).reduce((t,r)=>{t[r]=e[r];return t},{})}function encodeReserved(e){return e.split(/(%[0-9A-Fa-f]{2})/g).map(function(e){if(!/%[0-9A-Fa-f]/.test(e)){e=encodeURI(e).replace(/%5B/g,"[").replace(/%5D/g,"]")}return e}).join("")}function encodeUnreserved(e){return encodeURIComponent(e).replace(/[!'()*]/g,function(e){return"%"+e.charCodeAt(0).toString(16).toUpperCase()})}function encodeValue(e,t,r){t=e==="+"||e==="#"?encodeReserved(t):encodeUnreserved(t);if(r){return encodeUnreserved(r)+"="+t}else{return t}}function isDefined(e){return e!==undefined&&e!==null}function isKeyOperator(e){return e===";"||e==="&"||e==="?"}function getValues(e,t,r,n){var i=e[r],s=[];if(isDefined(i)&&i!==""){if(typeof i==="string"||typeof i==="number"||typeof i==="boolean"){i=i.toString();if(n&&n!=="*"){i=i.substring(0,parseInt(n,10))}s.push(encodeValue(t,i,isKeyOperator(t)?r:""))}else{if(n==="*"){if(Array.isArray(i)){i.filter(isDefined).forEach(function(e){s.push(encodeValue(t,e,isKeyOperator(t)?r:""))})}else{Object.keys(i).forEach(function(e){if(isDefined(i[e])){s.push(encodeValue(t,i[e],e))}})}}else{const e=[];if(Array.isArray(i)){i.filter(isDefined).forEach(function(r){e.push(encodeValue(t,r))})}else{Object.keys(i).forEach(function(r){if(isDefined(i[r])){e.push(encodeUnreserved(r));e.push(encodeValue(t,i[r].toString()))}})}if(isKeyOperator(t)){s.push(encodeUnreserved(r)+"="+e.join(","))}else if(e.length!==0){s.push(e.join(","))}}}}else{if(t===";"){if(isDefined(i)){s.push(encodeUnreserved(r))}}else if(i===""&&(t==="&"||t==="?")){s.push(encodeUnreserved(r)+"=")}else if(i===""){s.push("")}}return s}function parseUrl(e){return{expand:expand.bind(null,e)}}function expand(e,t){var r=["+","#",".","/",";","?","&"];return e.replace(/\{([^\{\}]+)\}|([^\{\}]+)/g,function(e,n,i){if(n){let e="";const i=[];if(r.indexOf(n.charAt(0))!==-1){e=n.charAt(0);n=n.substr(1)}n.split(/,/g).forEach(function(r){var n=/([^:\*]*)(?::(\d+)|(\*))?/.exec(r);i.push(getValues(t,e,n[1],n[2]||n[3]))});if(e&&e!=="+"){var s=",";if(e==="?"){s="&"}else if(e!=="#"){s=e}return(i.length!==0?e:"")+i.join(s)}else{return i.join(",")}}else{return encodeReserved(i)}})}function parse(e){let t=e.method.toUpperCase();let r=(e.url||"/").replace(/:([a-z]\w+)/g,"{+$1}");let n=Object.assign({},e.headers);let i;let s=omit(e,["method","baseUrl","url","headers","request","mediaType"]);const o=extractUrlVariableNames(r);r=parseUrl(r).expand(s);if(!/^http/.test(r)){r=e.baseUrl+r}const a=Object.keys(e).filter(e=>o.includes(e)).concat("baseUrl");const u=omit(s,a);const p=/application\/octet-stream/i.test(n.accept);if(!p){if(e.mediaType.format){n.accept=n.accept.split(/,/).map(t=>t.replace(/application\/vnd(\.\w+)(\.v3)?(\.\w+)?(\+json)?$/,`application/vnd$1$2.${e.mediaType.format}`)).join(",")}if(e.mediaType.previews.length){const t=n.accept.match(/[\w-]+(?=-preview)/g)||[];n.accept=t.concat(e.mediaType.previews).map(t=>{const r=e.mediaType.format?`.${e.mediaType.format}`:"+json";return`application/vnd.github.${t}-preview${r}`}).join(",")}}if(["GET","HEAD"].includes(t)){r=addQueryParameters(r,u)}else{if("data"in u){i=u.data}else{if(Object.keys(u).length){i=u}else{n["content-length"]=0}}}if(!n["content-type"]&&typeof i!=="undefined"){n["content-type"]="application/json; charset=utf-8"}if(["PATCH","PUT"].includes(t)&&typeof i==="undefined"){i=""}return Object.assign({method:t,url:r,headers:n},typeof i!=="undefined"?{body:i}:null,e.request?{request:e.request}:null)}function endpointWithDefaults(e,t,r){return parse(merge(e,t,r))}function withDefaults(e,t){const r=merge(e,t);const n=endpointWithDefaults.bind(null,r);return Object.assign(n,{DEFAULTS:r,defaults:withDefaults.bind(null,r),merge:merge.bind(null,r),parse:parse})}const o="5.5.1";const a=`octokit-endpoint.js/${o} ${i.getUserAgent()}`;const u={method:"GET",baseUrl:"https://api.github.com",headers:{accept:"application/vnd.github.v3+json","user-agent":a},mediaType:{format:"",previews:[]}};const p=withDefaults(null,u);t.endpoint=p},389:function(e,t,r){"use strict";const n=r(747);const i=r(866);function readShebang(e){const t=150;let r;if(Buffer.alloc){r=Buffer.alloc(t)}else{r=new Buffer(t);r.fill(0)}let s;try{s=n.openSync(e,"r");n.readSync(s,r,0,t,0);n.closeSync(s)}catch(e){}return i(r.toString())}e.exports=readShebang},402:function(e,t,r){e.exports=Octokit;const{request:n}=r(753);const i=r(523);const s=r(294);function Octokit(e,t){t=t||{};const r=new i.Collection;const o=Object.assign({debug:()=>{},info:()=>{},warn:console.warn,error:console.error},t&&t.log);const a={hook:r,log:o,request:n.defaults(s(t,o,r))};e.forEach(e=>e(a,t));return a}},411:function(e,t,r){"use strict";var n=r(35);e.exports=function normalizeHeaderName(e,t){n.forEach(e,function processHeader(r,n){if(n!==t&&n.toUpperCase()===t.toUpperCase()){e[t]=r;delete e[n]}})}},413:function(e){e.exports=require("stream")},427:function(e,t,r){"use strict";const n=r(669);let i;if(typeof n.getSystemErrorName==="function"){e.exports=n.getSystemErrorName}else{try{i=process.binding("uv");if(typeof i.errname!=="function"){throw new TypeError("uv.errname is not a function")}}catch(e){console.error("execa/lib/errname: unable to establish process.binding('uv')",e);i=null}e.exports=(e=>errname(i,e))}e.exports.__test__=errname;function errname(e,t){if(e){return e.errname(t)}if(!(t<0)){throw new Error("err >= 0")}return`Unknown system error ${t}`}},430:function(e,t,r){e.exports=octokitValidate;const n=r(348);function octokitValidate(e){e.hook.before("request",n.bind(null,e))}},431:function(e,t,r){"use strict";var n=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var r in e)if(Object.hasOwnProperty.call(e,r))t[r]=e[r];t["default"]=e;return t};Object.defineProperty(t,"__esModule",{value:true});const i=n(r(87));const s=r(82);function issueCommand(e,t,r){const n=new Command(e,t,r);process.stdout.write(n.toString()+i.EOL)}t.issueCommand=issueCommand;function issue(e,t=""){issueCommand(e,{},t)}t.issue=issue;const o="::";class Command{constructor(e,t,r){if(!e){e="missing.command"}this.command=e;this.properties=t;this.message=r}toString(){let e=o+this.command;if(this.properties&&Object.keys(this.properties).length>0){e+=" ";let t=true;for(const r in this.properties){if(this.properties.hasOwnProperty(r)){const n=this.properties[r];if(n){if(t){t=false}else{e+=","}e+=`${r}=${escapeProperty(n)}`}}}}e+=`${o}${escapeData(this.message)}`;return e}}function escapeData(e){return s.toCommandValue(e).replace(/%/g,"%25").replace(/\r/g,"%0D").replace(/\n/g,"%0A")}function escapeProperty(e){return s.toCommandValue(e).replace(/%/g,"%25").replace(/\r/g,"%0D").replace(/\n/g,"%0A").replace(/:/g,"%3A").replace(/,/g,"%2C")}},451:function(e){e.exports={compareTwoStrings:compareTwoStrings,findBestMatch:findBestMatch};function compareTwoStrings(e,t){e=e.replace(/\s+/g,"");t=t.replace(/\s+/g,"");if(!e.length&&!t.length)return 1;if(!e.length||!t.length)return 0;if(e===t)return 1;if(e.length===1&&t.length===1)return 0;if(e.length<2||t.length<2)return 0;let r=new Map;for(let t=0;t0){r.set(i,s-1);n++}}return 2*n/(e.length+t.length-2)}function findBestMatch(e,t){if(!areArgsValid(e,t))throw new Error("Bad arguments: First argument should be a string, second should be an array of strings");const r=[];let n=0;for(let i=0;ir[n].rating){n=i}}const i=r[n];return{ratings:r,bestMatch:i,bestMatchIndex:n}}function areArgsValid(e,t){if(typeof e!=="string")return false;if(!Array.isArray(t))return false;if(!t.length)return false;if(t.find(e=>typeof e!=="string"))return false;return true}},453:function(e,t,r){var n=r(969);var i=r(9);var s=r(747);var o=function(){};var a=/^v?\.0/.test(process.version);var u=function(e){return typeof e==="function"};var p=function(e){if(!a)return false;if(!s)return false;return(e instanceof(s.ReadStream||o)||e instanceof(s.WriteStream||o))&&u(e.close)};var c=function(e){return e.setHeader&&u(e.abort)};var d=function(e,t,r,s){s=n(s);var a=false;e.on("close",function(){a=true});i(e,{readable:t,writable:r},function(e){if(e)return s(e);a=true;s()});var d=false;return function(t){if(a)return;if(d)return;d=true;if(p(e))return e.close(o);if(c(e))return e.abort();if(u(e.destroy))return e.destroy();s(t||new Error("stream was destroyed"))}};var l=function(e){e()};var g=function(e,t){return e.pipe(t)};var m=function(){var e=Array.prototype.slice.call(arguments);var t=u(e[e.length-1]||o)&&e.pop()||o;if(Array.isArray(e[0]))e=e[0];if(e.length<2)throw new Error("pump requires two streams per minimum");var r;var n=e.map(function(i,s){var o=s0;return d(i,o,a,function(e){if(!r)r=e;if(e)n.forEach(l);if(o)return;n.forEach(l);t(r)})});return e.reduce(g)};e.exports=m},454:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:true});function _interopDefault(e){return e&&typeof e==="object"&&"default"in e?e["default"]:e}var n=_interopDefault(r(413));var i=_interopDefault(r(605));var s=_interopDefault(r(835));var o=_interopDefault(r(34));var a=_interopDefault(r(761));const u=n.Readable;const p=Symbol("buffer");const c=Symbol("type");class Blob{constructor(){this[c]="";const e=arguments[0];const t=arguments[1];const r=[];let n=0;if(e){const t=e;const i=Number(t.length);for(let e=0;e1&&arguments[1]!==undefined?arguments[1]:{},i=r.size;let s=i===undefined?0:i;var o=r.timeout;let a=o===undefined?0:o;if(e==null){e=null}else if(isURLSearchParams(e)){e=Buffer.from(e.toString())}else if(isBlob(e)) ;else if(Buffer.isBuffer(e)) ;else if(Object.prototype.toString.call(e)==="[object ArrayBuffer]"){e=Buffer.from(e)}else if(ArrayBuffer.isView(e)){e=Buffer.from(e.buffer,e.byteOffset,e.byteLength)}else if(e instanceof n) ;else{e=Buffer.from(String(e))}this[l]={body:e,disturbed:false,error:null};this.size=s;this.timeout=a;if(e instanceof n){e.on("error",function(e){const r=e.name==="AbortError"?e:new FetchError(`Invalid response body while trying to fetch ${t.url}: ${e.message}`,"system",e);t[l].error=r})}}Body.prototype={get body(){return this[l].body},get bodyUsed(){return this[l].disturbed},arrayBuffer(){return consumeBody.call(this).then(function(e){return e.buffer.slice(e.byteOffset,e.byteOffset+e.byteLength)})},blob(){let e=this.headers&&this.headers.get("content-type")||"";return consumeBody.call(this).then(function(t){return Object.assign(new Blob([],{type:e.toLowerCase()}),{[p]:t})})},json(){var e=this;return consumeBody.call(this).then(function(t){try{return JSON.parse(t.toString())}catch(t){return Body.Promise.reject(new FetchError(`invalid json response body at ${e.url} reason: ${t.message}`,"invalid-json"))}})},text(){return consumeBody.call(this).then(function(e){return e.toString()})},buffer(){return consumeBody.call(this)},textConverted(){var e=this;return consumeBody.call(this).then(function(t){return convertBody(t,e.headers)})}};Object.defineProperties(Body.prototype,{body:{enumerable:true},bodyUsed:{enumerable:true},arrayBuffer:{enumerable:true},blob:{enumerable:true},json:{enumerable:true},text:{enumerable:true}});Body.mixIn=function(e){for(const t of Object.getOwnPropertyNames(Body.prototype)){if(!(t in e)){const r=Object.getOwnPropertyDescriptor(Body.prototype,t);Object.defineProperty(e,t,r)}}};function consumeBody(){var e=this;if(this[l].disturbed){return Body.Promise.reject(new TypeError(`body used already for: ${this.url}`))}this[l].disturbed=true;if(this[l].error){return Body.Promise.reject(this[l].error)}let t=this.body;if(t===null){return Body.Promise.resolve(Buffer.alloc(0))}if(isBlob(t)){t=t.stream()}if(Buffer.isBuffer(t)){return Body.Promise.resolve(t)}if(!(t instanceof n)){return Body.Promise.resolve(Buffer.alloc(0))}let r=[];let i=0;let s=false;return new Body.Promise(function(n,o){let a;if(e.timeout){a=setTimeout(function(){s=true;o(new FetchError(`Response timeout while trying to fetch ${e.url} (over ${e.timeout}ms)`,"body-timeout"))},e.timeout)}t.on("error",function(t){if(t.name==="AbortError"){s=true;o(t)}else{o(new FetchError(`Invalid response body while trying to fetch ${e.url}: ${t.message}`,"system",t))}});t.on("data",function(t){if(s||t===null){return}if(e.size&&i+t.length>e.size){s=true;o(new FetchError(`content size at ${e.url} over limit: ${e.size}`,"max-size"));return}i+=t.length;r.push(t)});t.on("end",function(){if(s){return}clearTimeout(a);try{n(Buffer.concat(r,i))}catch(t){o(new FetchError(`Could not create Buffer from response body for ${e.url}: ${t.message}`,"system",t))}})})}function convertBody(e,t){if(typeof d!=="function"){throw new Error("The package `encoding` must be installed to use the textConverted() function")}const r=t.get("content-type");let n="utf-8";let i,s;if(r){i=/charset=([^;]*)/i.exec(r)}s=e.slice(0,1024).toString();if(!i&&s){i=/0&&arguments[0]!==undefined?arguments[0]:undefined;this[f]=Object.create(null);if(e instanceof Headers){const t=e.raw();const r=Object.keys(t);for(const e of r){for(const r of t[e]){this.append(e,r)}}return}if(e==null) ;else if(typeof e==="object"){const t=e[Symbol.iterator];if(t!=null){if(typeof t!=="function"){throw new TypeError("Header pairs must be iterable")}const r=[];for(const t of e){if(typeof t!=="object"||typeof t[Symbol.iterator]!=="function"){throw new TypeError("Each header pair must be iterable")}r.push(Array.from(t))}for(const e of r){if(e.length!==2){throw new TypeError("Each header pair must be a name/value tuple")}this.append(e[0],e[1])}}else{for(const t of Object.keys(e)){const r=e[t];this.append(t,r)}}}else{throw new TypeError("Provided initializer must be an object")}}get(e){e=`${e}`;validateName(e);const t=find(this[f],e);if(t===undefined){return null}return this[f][t].join(", ")}forEach(e){let t=arguments.length>1&&arguments[1]!==undefined?arguments[1]:undefined;let r=getHeaders(this);let n=0;while(n1&&arguments[1]!==undefined?arguments[1]:"key+value";const r=Object.keys(e[f]).sort();return r.map(t==="key"?function(e){return e.toLowerCase()}:t==="value"?function(t){return e[f][t].join(", ")}:function(t){return[t.toLowerCase(),e[f][t].join(", ")]})}const y=Symbol("internal");function createHeadersIterator(e,t){const r=Object.create(b);r[y]={target:e,kind:t,index:0};return r}const b=Object.setPrototypeOf({next(){if(!this||Object.getPrototypeOf(this)!==b){throw new TypeError("Value of `this` is not a HeadersIterator")}var e=this[y];const t=e.target,r=e.kind,n=e.index;const i=getHeaders(t,r);const s=i.length;if(n>=s){return{value:undefined,done:true}}this[y].index=n+1;return{value:i[n],done:false}}},Object.getPrototypeOf(Object.getPrototypeOf([][Symbol.iterator]())));Object.defineProperty(b,Symbol.toStringTag,{value:"HeadersIterator",writable:false,enumerable:false,configurable:true});function exportNodeCompatibleHeaders(e){const t=Object.assign({__proto__:null},e[f]);const r=find(e[f],"Host");if(r!==undefined){t[r]=t[r][0]}return t}function createHeadersLenient(e){const t=new Headers;for(const r of Object.keys(e)){if(m.test(r)){continue}if(Array.isArray(e[r])){for(const n of e[r]){if(h.test(n)){continue}if(t[f][r]===undefined){t[f][r]=[n]}else{t[f][r].push(n)}}}else if(!h.test(e[r])){t[f][r]=[e[r]]}}return t}const w=Symbol("Response internals");const _=i.STATUS_CODES;class Response{constructor(){let e=arguments.length>0&&arguments[0]!==undefined?arguments[0]:null;let t=arguments.length>1&&arguments[1]!==undefined?arguments[1]:{};Body.call(this,e,t);const r=t.status||200;const n=new Headers(t.headers);if(e!=null&&!n.has("Content-Type")){const t=extractContentType(e);if(t){n.append("Content-Type",t)}}this[w]={url:t.url,status:r,statusText:t.statusText||_[r],headers:n,counter:t.counter}}get url(){return this[w].url||""}get status(){return this[w].status}get ok(){return this[w].status>=200&&this[w].status<300}get redirected(){return this[w].counter>0}get statusText(){return this[w].statusText}get headers(){return this[w].headers}clone(){return new Response(clone(this),{url:this.url,status:this.status,statusText:this.statusText,headers:this.headers,ok:this.ok,redirected:this.redirected})}}Body.mixIn(Response.prototype);Object.defineProperties(Response.prototype,{url:{enumerable:true},status:{enumerable:true},ok:{enumerable:true},redirected:{enumerable:true},statusText:{enumerable:true},headers:{enumerable:true},clone:{enumerable:true}});Object.defineProperty(Response.prototype,Symbol.toStringTag,{value:"Response",writable:false,enumerable:false,configurable:true});const q=Symbol("Request internals");const v=s.parse;const E=s.format;const T="destroy"in n.Readable.prototype;function isRequest(e){return typeof e==="object"&&typeof e[q]==="object"}function isAbortSignal(e){const t=e&&typeof e==="object"&&Object.getPrototypeOf(e);return!!(t&&t.constructor.name==="AbortSignal")}class Request{constructor(e){let t=arguments.length>1&&arguments[1]!==undefined?arguments[1]:{};let r;if(!isRequest(e)){if(e&&e.href){r=v(e.href)}else{r=v(`${e}`)}e={}}else{r=v(e.url)}let n=t.method||e.method||"GET";n=n.toUpperCase();if((t.body!=null||isRequest(e)&&e.body!==null)&&(n==="GET"||n==="HEAD")){throw new TypeError("Request with GET/HEAD method cannot have body")}let i=t.body!=null?t.body:isRequest(e)&&e.body!==null?clone(e):null;Body.call(this,i,{timeout:t.timeout||e.timeout||0,size:t.size||e.size||0});const s=new Headers(t.headers||e.headers||{});if(i!=null&&!s.has("Content-Type")){const e=extractContentType(i);if(e){s.append("Content-Type",e)}}let o=isRequest(e)?e.signal:null;if("signal"in t)o=t.signal;if(o!=null&&!isAbortSignal(o)){throw new TypeError("Expected signal to be an instanceof AbortSignal")}this[q]={method:n,redirect:t.redirect||e.redirect||"follow",headers:s,parsedURL:r,signal:o};this.follow=t.follow!==undefined?t.follow:e.follow!==undefined?e.follow:20;this.compress=t.compress!==undefined?t.compress:e.compress!==undefined?e.compress:true;this.counter=t.counter||e.counter||0;this.agent=t.agent||e.agent}get method(){return this[q].method}get url(){return E(this[q].parsedURL)}get headers(){return this[q].headers}get redirect(){return this[q].redirect}get signal(){return this[q].signal}clone(){return new Request(this)}}Body.mixIn(Request.prototype);Object.defineProperty(Request.prototype,Symbol.toStringTag,{value:"Request",writable:false,enumerable:false,configurable:true});Object.defineProperties(Request.prototype,{method:{enumerable:true},url:{enumerable:true},headers:{enumerable:true},redirect:{enumerable:true},clone:{enumerable:true},signal:{enumerable:true}});function getNodeRequestOptions(e){const t=e[q].parsedURL;const r=new Headers(e[q].headers);if(!r.has("Accept")){r.set("Accept","*/*")}if(!t.protocol||!t.hostname){throw new TypeError("Only absolute URLs are supported")}if(!/^https?:$/.test(t.protocol)){throw new TypeError("Only HTTP(S) protocols are supported")}if(e.signal&&e.body instanceof n.Readable&&!T){throw new Error("Cancellation of streamed requests with AbortSignal is not supported in node < 8")}let i=null;if(e.body==null&&/^(POST|PUT)$/i.test(e.method)){i="0"}if(e.body!=null){const t=getTotalBytes(e);if(typeof t==="number"){i=String(t)}}if(i){r.set("Content-Length",i)}if(!r.has("User-Agent")){r.set("User-Agent","node-fetch/1.0 (+https://github.com/bitinn/node-fetch)")}if(e.compress&&!r.has("Accept-Encoding")){r.set("Accept-Encoding","gzip,deflate")}let s=e.agent;if(typeof s==="function"){s=s(t)}if(!r.has("Connection")&&!s){r.set("Connection","close")}return Object.assign({},t,{method:e.method,headers:exportNodeCompatibleHeaders(r),agent:s})}function AbortError(e){Error.call(this,e);this.type="aborted";this.message=e;Error.captureStackTrace(this,this.constructor)}AbortError.prototype=Object.create(Error.prototype);AbortError.prototype.constructor=AbortError;AbortError.prototype.name="AbortError";const C=n.PassThrough;const j=s.resolve;function fetch(e,t){if(!fetch.Promise){throw new Error("native promise missing, set fetch.Promise to your favorite alternative")}Body.Promise=fetch.Promise;return new fetch.Promise(function(r,s){const u=new Request(e,t);const p=getNodeRequestOptions(u);const c=(p.protocol==="https:"?o:i).request;const d=u.signal;let l=null;const g=function abort(){let e=new AbortError("The user aborted a request.");s(e);if(u.body&&u.body instanceof n.Readable){u.body.destroy(e)}if(!l||!l.body)return;l.body.emit("error",e)};if(d&&d.aborted){g();return}const m=function abortAndFinalize(){g();finalize()};const h=c(p);let f;if(d){d.addEventListener("abort",m)}function finalize(){h.abort();if(d)d.removeEventListener("abort",m);clearTimeout(f)}if(u.timeout){h.once("socket",function(e){f=setTimeout(function(){s(new FetchError(`network timeout at: ${u.url}`,"request-timeout"));finalize()},u.timeout)})}h.on("error",function(e){s(new FetchError(`request to ${u.url} failed, reason: ${e.message}`,"system",e));finalize()});h.on("response",function(e){clearTimeout(f);const t=createHeadersLenient(e.headers);if(fetch.isRedirect(e.statusCode)){const n=t.get("Location");const i=n===null?null:j(u.url,n);switch(u.redirect){case"error":s(new FetchError(`redirect mode is set to error: ${u.url}`,"no-redirect"));finalize();return;case"manual":if(i!==null){try{t.set("Location",i)}catch(e){s(e)}}break;case"follow":if(i===null){break}if(u.counter>=u.follow){s(new FetchError(`maximum redirect reached at: ${u.url}`,"max-redirect"));finalize();return}const n={headers:new Headers(u.headers),follow:u.follow,counter:u.counter+1,agent:u.agent,compress:u.compress,method:u.method,body:u.body,signal:u.signal,timeout:u.timeout};if(e.statusCode!==303&&u.body&&getTotalBytes(u)===null){s(new FetchError("Cannot follow redirect with body being a readable stream","unsupported-redirect"));finalize();return}if(e.statusCode===303||(e.statusCode===301||e.statusCode===302)&&u.method==="POST"){n.method="GET";n.body=undefined;n.headers.delete("content-length")}r(fetch(new Request(i,n)));finalize();return}}e.once("end",function(){if(d)d.removeEventListener("abort",m)});let n=e.pipe(new C);const i={url:u.url,status:e.statusCode,statusText:e.statusMessage,headers:t,size:u.size,timeout:u.timeout,counter:u.counter};const o=t.get("Content-Encoding");if(!u.compress||u.method==="HEAD"||o===null||e.statusCode===204||e.statusCode===304){l=new Response(n,i);r(l);return}const p={flush:a.Z_SYNC_FLUSH,finishFlush:a.Z_SYNC_FLUSH};if(o=="gzip"||o=="x-gzip"){n=n.pipe(a.createGunzip(p));l=new Response(n,i);r(l);return}if(o=="deflate"||o=="x-deflate"){const t=e.pipe(new C);t.once("data",function(e){if((e[0]&15)===8){n=n.pipe(a.createInflate())}else{n=n.pipe(a.createInflateRaw())}l=new Response(n,i);r(l)});return}if(o=="br"&&typeof a.createBrotliDecompress==="function"){n=n.pipe(a.createBrotliDecompress());l=new Response(n,i);r(l);return}l=new Response(n,i);r(l)});writeToStream(h,u)})}fetch.isRedirect=function(e){return e===301||e===302||e===303||e===307||e===308};fetch.Promise=global.Promise;e.exports=t=fetch;Object.defineProperty(t,"__esModule",{value:true});t.default=t;t.Headers=Headers;t.Request=Request;t.Response=Response;t.FetchError=FetchError},462:function(e){"use strict";const t=/([()\][%!^"`<>&|;, *?])/g;function escapeCommand(e){e=e.replace(t,"^$1");return e}function escapeArgument(e,r){e=`${e}`;e=e.replace(/(\\*)"/g,'$1$1\\"');e=e.replace(/(\\*)$/,"$1$1");e=`"${e}"`;e=e.replace(t,"^$1");if(r){e=e.replace(t,"^$1")}return e}e.exports.command=escapeCommand;e.exports.argument=escapeArgument},463:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:true});function _interopDefault(e){return e&&typeof e==="object"&&"default"in e?e["default"]:e}var n=r(692);var i=_interopDefault(r(969));const s=i(e=>console.warn(e));class RequestError extends Error{constructor(e,t,r){super(e);if(Error.captureStackTrace){Error.captureStackTrace(this,this.constructor)}this.name="HttpError";this.status=t;Object.defineProperty(this,"code",{get(){s(new n.Deprecation("[@octokit/request-error] `error.code` is deprecated, use `error.status`."));return t}});this.headers=r.headers||{};const i=Object.assign({},r.request);if(r.request.headers.authorization){i.headers=Object.assign({},r.request.headers,{authorization:r.request.headers.authorization.replace(/ .*$/," [REDACTED]")})}i.url=i.url.replace(/\bclient_secret=\w+/g,"client_secret=[REDACTED]").replace(/\baccess_token=\w+/g,"access_token=[REDACTED]");this.request=i}}t.RequestError=RequestError},469:function(e,t,r){"use strict";var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};var i=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var r in e)if(Object.hasOwnProperty.call(e,r))t[r]=e[r];t["default"]=e;return t};Object.defineProperty(t,"__esModule",{value:true});const s=r(503);const o=n(r(613));const a=i(r(262));o.default.prototype=new o.default;t.context=new a.Context;class GitHub extends o.default{constructor(e,t={}){super(Object.assign(Object.assign({},t),{auth:`token ${e}`}));this.graphql=s.defaults({headers:{authorization:`token ${e}`}})}}t.GitHub=GitHub},470:function(e,t,r){"use strict";var n=this&&this.__awaiter||function(e,t,r,n){function adopt(e){return e instanceof r?e:new r(function(t){t(e)})}return new(r||(r=Promise))(function(r,i){function fulfilled(e){try{step(n.next(e))}catch(e){i(e)}}function rejected(e){try{step(n["throw"](e))}catch(e){i(e)}}function step(e){e.done?r(e.value):adopt(e.value).then(fulfilled,rejected)}step((n=n.apply(e,t||[])).next())})};var i=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var r in e)if(Object.hasOwnProperty.call(e,r))t[r]=e[r];t["default"]=e;return t};Object.defineProperty(t,"__esModule",{value:true});const s=r(431);const o=r(102);const a=r(82);const u=i(r(87));const p=i(r(622));var c;(function(e){e[e["Success"]=0]="Success";e[e["Failure"]=1]="Failure"})(c=t.ExitCode||(t.ExitCode={}));function exportVariable(e,t){const r=a.toCommandValue(t);process.env[e]=r;const n=process.env["GITHUB_ENV"]||"";if(n){const t="_GitHubActionsFileCommandDelimeter_";const n=`${e}<<${t}${u.EOL}${r}${u.EOL}${t}`;o.issueCommand("ENV",n)}else{s.issueCommand("set-env",{name:e},r)}}t.exportVariable=exportVariable;function setSecret(e){s.issueCommand("add-mask",{},e)}t.setSecret=setSecret;function addPath(e){const t=process.env["GITHUB_PATH"]||"";if(t){o.issueCommand("PATH",e)}else{s.issueCommand("add-path",{},e)}process.env["PATH"]=`${e}${p.delimiter}${process.env["PATH"]}`}t.addPath=addPath;function getInput(e,t){const r=process.env[`INPUT_${e.replace(/ /g,"_").toUpperCase()}`]||"";if(t&&t.required&&!r){throw new Error(`Input required and not supplied: ${e}`)}return r.trim()}t.getInput=getInput;function setOutput(e,t){s.issueCommand("set-output",{name:e},t)}t.setOutput=setOutput;function setCommandEcho(e){s.issue("echo",e?"on":"off")}t.setCommandEcho=setCommandEcho;function setFailed(e){process.exitCode=c.Failure;error(e)}t.setFailed=setFailed;function isDebug(){return process.env["RUNNER_DEBUG"]==="1"}t.isDebug=isDebug;function debug(e){s.issueCommand("debug",{},e)}t.debug=debug;function error(e){s.issue("error",e instanceof Error?e.toString():e)}t.error=error;function warning(e){s.issue("warning",e instanceof Error?e.toString():e)}t.warning=warning;function info(e){process.stdout.write(e+u.EOL)}t.info=info;function startGroup(e){s.issue("group",e)}t.startGroup=startGroup;function endGroup(){s.issue("endgroup")}t.endGroup=endGroup;function group(e,t){return n(this,void 0,void 0,function*(){startGroup(e);let r;try{r=yield t()}finally{endGroup()}return r})}t.group=group;function saveState(e,t){s.issueCommand("save-state",{name:e},t)}t.saveState=saveState;function getState(e){return process.env[`STATE_${e}`]||""}t.getState=getState},471:function(e,t,r){e.exports=authenticationBeforeRequest;const n=r(675);const i=r(126);function authenticationBeforeRequest(e,t){if(!e.auth.type){return}if(e.auth.type==="basic"){const r=n(`${e.auth.username}:${e.auth.password}`);t.headers.authorization=`Basic ${r}`;return}if(e.auth.type==="token"){t.headers.authorization=`token ${e.auth.token}`;return}if(e.auth.type==="app"){t.headers.authorization=`Bearer ${e.auth.token}`;const r=t.headers.accept.split(",").concat("application/vnd.github.machine-man-preview+json");t.headers.accept=i(r).filter(Boolean).join(",");return}t.url+=t.url.indexOf("?")===-1?"?":"&";if(e.auth.token){t.url+=`access_token=${encodeURIComponent(e.auth.token)}`;return}const r=encodeURIComponent(e.auth.key);const s=encodeURIComponent(e.auth.secret);t.url+=`client_id=${r}&client_secret=${s}`}},489:function(e,t,r){"use strict";const n=r(622);const i=r(814);const s=r(39)();function resolveCommandAttempt(e,t){const r=process.cwd();const o=e.options.cwd!=null;if(o){try{process.chdir(e.options.cwd)}catch(e){}}let a;try{a=i.sync(e.command,{path:(e.options.env||process.env)[s],pathExt:t?n.delimiter:undefined})}catch(e){}finally{process.chdir(r)}if(a){a=n.resolve(o?e.options.cwd:"",a)}return a}function resolveCommand(e){return resolveCommandAttempt(e)||resolveCommandAttempt(e,true)}e.exports=resolveCommand},500:function(e,t,r){e.exports=graphql;const n=r(862);const i=["method","baseUrl","url","headers","request","query"];function graphql(e,t,r){if(typeof t==="string"){r=Object.assign({query:t},r)}else{r=t}const s=Object.keys(r).reduce((e,t)=>{if(i.includes(t)){e[t]=r[t];return e}if(!e.variables){e.variables={}}e.variables[t]=r[t];return e},{});return e(s).then(e=>{if(e.data.errors){throw new n(s,e)}return e.data.data})}},503:function(e,t,r){const{request:n}=r(753);const i=r(46);const s=r(314).version;const o=`octokit-graphql.js/${s} ${i()}`;const a=r(0);e.exports=a(n,{method:"POST",url:"/graphql",headers:{"user-agent":o}})},510:function(e){e.exports=addHook;function addHook(e,t,r,n){var i=n;if(!e.registry[r]){e.registry[r]=[]}if(t==="before"){n=function(e,t){return Promise.resolve().then(i.bind(null,t)).then(e.bind(null,t))}}if(t==="after"){n=function(e,t){var r;return Promise.resolve().then(e.bind(null,t)).then(function(e){r=e;return i(r,t)}).then(function(){return r})}}if(t==="error"){n=function(e,t){return Promise.resolve().then(e.bind(null,t)).catch(function(e){return i(e,t)})}}e.registry[r].push({hook:n,orig:i})}},523:function(e,t,r){var n=r(363);var i=r(510);var s=r(763);var o=Function.bind;var a=o.bind(o);function bindApi(e,t,r){var n=a(s,null).apply(null,r?[t,r]:[t]);e.api={remove:n};e.remove=n;["before","error","after","wrap"].forEach(function(n){var s=r?[t,n,r]:[t,n];e[n]=e.api[n]=a(i,null).apply(null,s)})}function HookSingular(){var e="h";var t={registry:{}};var r=n.bind(null,t,e);bindApi(r,t,e);return r}function HookCollection(){var e={registry:{}};var t=n.bind(null,e);bindApi(t,e);return t}var u=false;function Hook(){if(!u){console.warn('[before-after-hook]: "Hook()" repurposing warning, use "Hook.Collection()". Read more: https://git.io/upgrade-before-after-hook-to-1.4');u=true}return HookCollection()}Hook.Singular=HookSingular.bind();Hook.Collection=HookCollection.bind();e.exports=Hook;e.exports.Hook=Hook;e.exports.Singular=Hook.Singular;e.exports.Collection=Hook.Collection},529:function(e,t,r){const n=r(47);e.exports=n()},536:function(e,t,r){e.exports=hasFirstPage;const n=r(370);const i=r(577);function hasFirstPage(e){n(`octokit.hasFirstPage() – You can use octokit.paginate or async iterators instead: https://github.com/octokit/rest.js#pagination.`);return i(e).first}},549:function(e,t,r){var n=r(835);var i=r(605);var s=r(34);var o=r(357);var a=r(413).Writable;var u=r(784)("follow-redirects");var p={GET:true,HEAD:true,OPTIONS:true,TRACE:true};var c=Object.create(null);["abort","aborted","error","socket","timeout"].forEach(function(e){c[e]=function(t){this._redirectable.emit(e,t)}});function RedirectableRequest(e,t){a.call(this);e.headers=e.headers||{};this._options=e;this._redirectCount=0;this._redirects=[];this._requestBodyLength=0;this._requestBodyBuffers=[];if(e.host){if(!e.hostname){e.hostname=e.host}delete e.host}if(t){this.on("response",t)}var r=this;this._onNativeResponse=function(e){r._processResponse(e)};if(!e.pathname&&e.path){var n=e.path.indexOf("?");if(n<0){e.pathname=e.path}else{e.pathname=e.path.substring(0,n);e.search=e.path.substring(n)}}this._performRequest()}RedirectableRequest.prototype=Object.create(a.prototype);RedirectableRequest.prototype.write=function(e,t,r){if(!(typeof e==="string"||typeof e==="object"&&"length"in e)){throw new Error("data should be a string, Buffer or Uint8Array")}if(typeof t==="function"){r=t;t=null}if(e.length===0){if(r){r()}return}if(this._requestBodyLength+e.length<=this._options.maxBodyLength){this._requestBodyLength+=e.length;this._requestBodyBuffers.push({data:e,encoding:t});this._currentRequest.write(e,t,r)}else{this.emit("error",new Error("Request body larger than maxBodyLength limit"));this.abort()}};RedirectableRequest.prototype.end=function(e,t,r){if(typeof e==="function"){r=e;e=t=null}else if(typeof t==="function"){r=t;t=null}var n=this._currentRequest;this.write(e||"",t,function(){n.end(null,null,r)})};RedirectableRequest.prototype.setHeader=function(e,t){this._options.headers[e]=t;this._currentRequest.setHeader(e,t)};RedirectableRequest.prototype.removeHeader=function(e){delete this._options.headers[e];this._currentRequest.removeHeader(e)};["abort","flushHeaders","getHeader","setNoDelay","setSocketKeepAlive","setTimeout"].forEach(function(e){RedirectableRequest.prototype[e]=function(t,r){return this._currentRequest[e](t,r)}});["aborted","connection","socket"].forEach(function(e){Object.defineProperty(RedirectableRequest.prototype,e,{get:function(){return this._currentRequest[e]}})});RedirectableRequest.prototype._performRequest=function(){var e=this._options.protocol;var t=this._options.nativeProtocols[e];if(!t){this.emit("error",new Error("Unsupported protocol "+e));return}if(this._options.agents){var r=e.substr(0,e.length-1);this._options.agent=this._options.agents[r]}var i=this._currentRequest=t.request(this._options,this._onNativeResponse);this._currentUrl=n.format(this._options);i._redirectable=this;for(var s in c){if(s){i.on(s,c[s])}}if(this._isRedirect){var o=0;var a=this._requestBodyBuffers;(function writeNext(){if(o=300&&e.statusCode<400){if(++this._redirectCount>this._options.maxRedirects){this.emit("error",new Error("Max redirects exceeded."));return}var r;var i=this._options.headers;if(e.statusCode!==307&&!(this._options.method in p)){this._options.method="GET";this._requestBodyBuffers=[];for(r in i){if(/^content-/i.test(r)){delete i[r]}}}if(!this._isRedirect){for(r in i){if(/^host$/i.test(r)){delete i[r]}}}var s=n.resolve(this._currentUrl,t);u("redirecting to",s);Object.assign(this._options,n.parse(s));this._isRedirect=true;this._performRequest();e.destroy()}else{e.responseUrl=this._currentUrl;e.redirects=this._redirects;this.emit("response",e);this._requestBodyBuffers=[]}};function wrap(e){var t={maxRedirects:21,maxBodyLength:10*1024*1024};var r={};Object.keys(e).forEach(function(i){var s=i+":";var a=r[s]=e[i];var p=t[i]=Object.create(a);p.request=function(e,i){if(typeof e==="string"){e=n.parse(e);e.maxRedirects=t.maxRedirects}else{e=Object.assign({protocol:s,maxRedirects:t.maxRedirects,maxBodyLength:t.maxBodyLength},e)}e.nativeProtocols=r;o.equal(e.protocol,s,"protocol mismatch");u("options",e);return new RedirectableRequest(e,i)};p.get=function(e,t){var r=p.request(e,t);r.end();return r}});return t}e.exports=wrap({http:i,https:s});e.exports.wrap=wrap},550:function(e,t,r){e.exports=getNextPage;const n=r(265);function getNextPage(e,t,r){return n(e,t,"next",r)}},558:function(e,t,r){e.exports=hasPreviousPage;const n=r(370);const i=r(577);function hasPreviousPage(e){n(`octokit.hasPreviousPage() – You can use octokit.paginate or async iterators instead: https://github.com/octokit/rest.js#pagination.`);return i(e).prev}},562:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:true});function _interopDefault(e){return e&&typeof e==="object"&&"default"in e?e["default"]:e}var n=_interopDefault(r(2));function getUserAgent(){try{return`Node.js/${process.version.substr(1)} (${n()}; ${process.arch})`}catch(e){if(/wmic os get Caption/.test(e.message)){return"Windows "}throw e}}t.getUserAgent=getUserAgent},563:function(e,t,r){e.exports=getPreviousPage;const n=r(265);function getPreviousPage(e,t,r){return n(e,t,"prev",r)}},564:function(e,t,r){"use strict";var n=r(26);e.exports=function settle(e,t,r){var i=r.config.validateStatus;if(!i||i(r.status)){e(r)}else{t(n("Request failed with status code "+r.status,r.config,null,r.request,r))}}},568:function(e,t,r){"use strict";const n=r(622);const i=r(948);const s=r(489);const o=r(462);const a=r(389);const u=r(280);const p=process.platform==="win32";const c=/\.(?:com|exe)$/i;const d=/node_modules[\\/].bin[\\/][^\\/]+\.cmd$/i;const l=i(()=>u.satisfies(process.version,"^4.8.0 || ^5.7.0 || >= 6.0.0",true))||false;function detectShebang(e){e.file=s(e);const t=e.file&&a(e.file);if(t){e.args.unshift(e.file);e.command=t;return s(e)}return e.file}function parseNonShell(e){if(!p){return e}const t=detectShebang(e);const r=!c.test(t);if(e.options.forceShell||r){const r=d.test(t);e.command=n.normalize(e.command);e.command=o.command(e.command);e.args=e.args.map(e=>o.argument(e,r));const i=[e.command].concat(e.args).join(" ");e.args=["/d","/s","/c",`"${i}"`];e.command=process.env.comspec||"cmd.exe";e.options.windowsVerbatimArguments=true}return e}function parseShell(e){if(l){return e}const t=[e.command].concat(e.args).join(" ");if(p){e.command=typeof e.options.shell==="string"?e.options.shell:process.env.comspec||"cmd.exe";e.args=["/d","/s","/c",`"${t}"`];e.options.windowsVerbatimArguments=true}else{if(typeof e.options.shell==="string"){e.command=e.options.shell}else if(process.platform==="android"){e.command="/system/bin/sh"}else{e.command="/bin/sh"}e.args=["-c",t]}return e}function parse(e,t,r){if(t&&!Array.isArray(t)){r=t;t=null}t=t?t.slice(0):[];r=Object.assign({},r);const n={command:e,args:t,options:r,file:undefined,original:{command:e,args:t}};return r.shell?parseShell(n):parseNonShell(n)}e.exports=parse},577:function(e){e.exports=getPageLinks;function getPageLinks(e){e=e.link||e.headers.link||"";const t={};e.replace(/<([^>]*)>;\s*rel="([\w]*)"/g,(e,r,n)=>{t[n]=r});return t}},586:function(e,t,r){e.exports=octokitRestApiEndpoints;const n=r(705);function octokitRestApiEndpoints(e){n.gitdata=n.git;n.authorization=n.oauthAuthorizations;n.pullRequests=n.pulls;e.registerEndpoints(n)}},589:function(e,t,r){"use strict";var n=r(35);e.exports=function transformData(e,t,r){n.forEach(r,function transform(r){e=r(e,t)});return e}},590:function(e){"use strict";e.exports=function isAbsoluteURL(e){return/^([a-z][a-z\d\+\-\.]*:)?\/\//i.test(e)}},605:function(e){e.exports=require("http")},613:function(e,t,r){const n=r(529);const i=[r(372),r(19),r(190),r(148),r(248),r(586),r(430),r(850)];e.exports=n.plugin(i)},614:function(e){e.exports=require("events")},619:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:true});function _interopDefault(e){return e&&typeof e==="object"&&"default"in e?e["default"]:e}var n=_interopDefault(r(2));function getUserAgent(){try{return`Node.js/${process.version.substr(1)} (${n()}; ${process.arch})`}catch(e){if(/wmic os get Caption/.test(e.message)){return"Windows "}throw e}}t.getUserAgent=getUserAgent},621:function(e,t,r){"use strict";const n=r(622);const i=r(39);e.exports=(e=>{e=Object.assign({cwd:process.cwd(),path:process.env[i()]},e);let t;let r=n.resolve(e.cwd);const s=[];while(t!==r){s.push(n.join(r,"node_modules/.bin"));t=r;r=n.resolve(r,"..")}s.push(n.dirname(process.execPath));return s.concat(e.path).join(n.delimiter)});e.exports.env=(t=>{t=Object.assign({env:process.env},t);const r=Object.assign({},t.env);const n=i({env:r});t.path=r[n];r[n]=e.exports(t);return r})},622:function(e){e.exports=require("path")},631:function(e,t,r){"use strict";var n=r(35);var i=["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"];e.exports=function parseHeaders(e){var t={};var r;var s;var o;if(!e){return t}n.forEach(e.split("\n"),function parser(e){o=e.indexOf(":");r=n.trim(e.substr(0,o)).toLowerCase();s=n.trim(e.substr(o+1));if(r){if(t[r]&&i.indexOf(r)>=0){return}if(r==="set-cookie"){t[r]=(t[r]?t[r]:[]).concat([s])}else{t[r]=t[r]?t[r]+", "+s:s}}});return t}},649:function(e,t,r){e.exports=getLastPage;const n=r(265);function getLastPage(e,t,r){return n(e,t,"last",r)}},654:function(e){e.exports=["SIGABRT","SIGALRM","SIGHUP","SIGINT","SIGTERM"];if(process.platform!=="win32"){e.exports.push("SIGVTALRM","SIGXCPU","SIGXFSZ","SIGUSR2","SIGTRAP","SIGSYS","SIGQUIT","SIGIOT")}if(process.platform==="linux"){e.exports.push("SIGIO","SIGPOLL","SIGPWR","SIGSTKFLT","SIGUNUSED")}},669:function(e){e.exports=require("util")},670:function(e,t,r){"use strict";var n=r(35);var i=r(564);var s=r(960);var o=r(133);var a=r(605);var u=r(34);var p=r(549).http;var c=r(549).https;var d=r(835);var l=r(761);var g=r(361);var m=r(26);var h=r(369);var f=/https:?/;e.exports=function httpAdapter(e){return new Promise(function dispatchHttpRequest(t,r){var y=function resolve(e){t(e)};var b=function reject(e){r(e)};var w=e.data;var _=e.headers;if(!_["User-Agent"]&&!_["user-agent"]){_["User-Agent"]="axios/"+g.version}if(w&&!n.isStream(w)){if(Buffer.isBuffer(w)){}else if(n.isArrayBuffer(w)){w=Buffer.from(new Uint8Array(w))}else if(n.isString(w)){w=Buffer.from(w,"utf-8")}else{return b(m("Data after transformation must be a string, an ArrayBuffer, a Buffer, or a Stream",e))}_["Content-Length"]=w.length}var q=undefined;if(e.auth){var v=e.auth.username||"";var E=e.auth.password||"";q=v+":"+E}var T=s(e.baseURL,e.url);var C=d.parse(T);var j=C.protocol||"http:";if(!q&&C.auth){var k=C.auth.split(":");var S=k[0]||"";var O=k[1]||"";q=S+":"+O}if(q){delete _.Authorization}var x=f.test(j);var P=x?e.httpsAgent:e.httpAgent;var R={path:o(C.path,e.params,e.paramsSerializer).replace(/^\?/,""),method:e.method.toUpperCase(),headers:_,agent:P,agents:{http:e.httpAgent,https:e.httpsAgent},auth:q};if(e.socketPath){R.socketPath=e.socketPath}else{R.hostname=C.hostname;R.port=C.port}var A=e.proxy;if(!A&&A!==false){var G=j.slice(0,-1)+"_proxy";var F=process.env[G]||process.env[G.toUpperCase()];if(F){var D=d.parse(F);var B=process.env.no_proxy||process.env.NO_PROXY;var I=true;if(B){var L=B.split(",").map(function trim(e){return e.trim()});I=!L.some(function proxyMatch(e){if(!e){return false}if(e==="*"){return true}if(e[0]==="."&&C.hostname.substr(C.hostname.length-e.length)===e){return true}return C.hostname===e})}if(I){A={host:D.hostname,port:D.port};if(D.auth){var U=D.auth.split(":");A.auth={username:U[0],password:U[1]}}}}}if(A){R.hostname=A.host;R.host=A.host;R.headers.host=C.hostname+(C.port?":"+C.port:"");R.port=A.port;R.path=j+"//"+C.hostname+(C.port?":"+C.port:"")+R.path;if(A.auth){var $=Buffer.from(A.auth.username+":"+A.auth.password,"utf8").toString("base64");R.headers["Proxy-Authorization"]="Basic "+$}}var H;var N=x&&(A?f.test(A.protocol):true);if(e.transport){H=e.transport}else if(e.maxRedirects===0){H=N?u:a}else{if(e.maxRedirects){R.maxRedirects=e.maxRedirects}H=N?c:p}if(e.maxContentLength&&e.maxContentLength>-1){R.maxBodyLength=e.maxContentLength}var z=H.request(R,function handleResponse(t){if(z.aborted)return;var r=t;switch(t.headers["content-encoding"]){case"gzip":case"compress":case"deflate":r=t.statusCode===204?r:r.pipe(l.createUnzip());delete t.headers["content-encoding"];break}var n=t.req||z;var s={status:t.statusCode,statusText:t.statusMessage,headers:t.headers,config:e,request:n};if(e.responseType==="stream"){s.data=r;i(y,b,s)}else{var o=[];r.on("data",function handleStreamData(t){o.push(t);if(e.maxContentLength>-1&&Buffer.concat(o).length>e.maxContentLength){r.destroy();b(m("maxContentLength size of "+e.maxContentLength+" exceeded",e,null,n))}});r.on("error",function handleStreamError(t){if(z.aborted)return;b(h(t,e,null,n))});r.on("end",function handleStreamEnd(){var t=Buffer.concat(o);if(e.responseType!=="arraybuffer"){t=t.toString(e.responseEncoding)}s.data=t;i(y,b,s)})}});z.on("error",function handleRequestError(t){if(z.aborted)return;b(h(t,e,null,z))});if(e.timeout){z.setTimeout(e.timeout,function handleRequestTimeout(){z.abort();b(m("timeout of "+e.timeout+"ms exceeded",e,"ECONNABORTED",z))})}if(e.cancelToken){e.cancelToken.promise.then(function onCanceled(e){if(z.aborted)return;z.abort();b(e)})}if(n.isStream(w)){w.on("error",function handleStreamError(t){b(h(t,e,null,z))}).pipe(z)}else{z.end(w)}})}},674:function(e,t,r){e.exports=authenticate;const{Deprecation:n}=r(692);const i=r(969);const s=i((e,t)=>e.warn(t));function authenticate(e,t){s(e.octokit.log,new n('[@octokit/rest] octokit.authenticate() is deprecated. Use "auth" constructor option instead.'));if(!t){e.auth=false;return}switch(t.type){case"basic":if(!t.username||!t.password){throw new Error("Basic authentication requires both a username and password to be set")}break;case"oauth":if(!t.token&&!(t.key&&t.secret)){throw new Error("OAuth2 authentication requires a token or key & secret to be set")}break;case"token":case"app":if(!t.token){throw new Error("Token authentication requires a token to be set")}break;default:throw new Error("Invalid authentication type, must be 'basic', 'oauth', 'token' or 'app'")}e.auth=t}},675:function(e){e.exports=function btoa(e){return new Buffer(e).toString("base64")}},688:function(e,t,r){"use strict";var n=r(35);e.exports=n.isStandardBrowserEnv()?function standardBrowserEnv(){var e=/(msie|trident)/i.test(navigator.userAgent);var t=document.createElement("a");var r;function resolveURL(r){var n=r;if(e){t.setAttribute("href",n);n=t.href}t.setAttribute("href",n);return{href:t.href,protocol:t.protocol?t.protocol.replace(/:$/,""):"",host:t.host,search:t.search?t.search.replace(/^\?/,""):"",hash:t.hash?t.hash.replace(/^#/,""):"",hostname:t.hostname,port:t.port,pathname:t.pathname.charAt(0)==="/"?t.pathname:"/"+t.pathname}}r=resolveURL(window.location.href);return function isURLSameOrigin(e){var t=n.isString(e)?resolveURL(e):e;return t.protocol===r.protocol&&t.host===r.host}}():function nonStandardBrowserEnv(){return function isURLSameOrigin(){return true}}()},692:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:true});class Deprecation extends Error{constructor(e){super(e);if(Error.captureStackTrace){Error.captureStackTrace(this,this.constructor)}this.name="Deprecation"}}t.Deprecation=Deprecation},694:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:true});t.HIDDEN_MARKER="added_by_jira_lint";t.MARKER_REGEX=new RegExp(t.HIDDEN_MARKER);t.BOT_BRANCH_PATTERNS=[/^dependabot/,/^all-contributors/];t.DEFAULT_BRANCH_PATTERNS=[/^master$/,/^production$/,/^gh-pages$/];t.JIRA_REGEX_MATCHER=/\d+-(([A-Z0-9]{1,10})|[a-z0-9]{1,10})/g;t.DEFAULT_PR_ADDITIONS_THRESHOLD=800},696:function(e){"use strict";function isObject(e){return e!=null&&typeof e==="object"&&Array.isArray(e)===false}function isObjectObject(e){return isObject(e)===true&&Object.prototype.toString.call(e)==="[object Object]"}function isPlainObject(e){var t,r;if(isObjectObject(e)===false)return false;t=e.constructor;if(typeof t!=="function")return false;r=t.prototype;if(isObjectObject(r)===false)return false;if(r.hasOwnProperty("isPrototypeOf")===false){return false}return true}e.exports=isPlainObject},697:function(e){"use strict";e.exports=((e,t)=>{t=t||(()=>{});return e.then(e=>new Promise(e=>{e(t())}).then(()=>e),e=>new Promise(e=>{e(t())}).then(()=>{throw e}))})},705:function(e){e.exports={activity:{checkStarringRepo:{method:"GET",params:{owner:{required:true,type:"string"},repo:{required:true,type:"string"}},url:"/user/starred/:owner/:repo"},deleteRepoSubscription:{method:"DELETE",params:{owner:{required:true,type:"string"},repo:{required:true,type:"string"}},url:"/repos/:owner/:repo/subscription"},deleteThreadSubscription:{method:"DELETE",params:{thread_id:{required:true,type:"integer"}},url:"/notifications/threads/:thread_id/subscription"},getRepoSubscription:{method:"GET",params:{owner:{required:true,type:"string"},repo:{required:true,type:"string"}},url:"/repos/:owner/:repo/subscription"},getThread:{method:"GET",params:{thread_id:{required:true,type:"integer"}},url:"/notifications/threads/:thread_id"},getThreadSubscription:{method:"GET",params:{thread_id:{required:true,type:"integer"}},url:"/notifications/threads/:thread_id/subscription"},listEventsForOrg:{method:"GET",params:{org:{required:true,type:"string"},page:{type:"integer"},per_page:{type:"integer"},username:{required:true,type:"string"}},url:"/users/:username/events/orgs/:org"},listEventsForUser:{method:"GET",params:{page:{type:"integer"},per_page:{type:"integer"},username:{required:true,type:"string"}},url:"/users/:username/events"},listFeeds:{method:"GET",params:{},url:"/feeds"},listNotifications:{method:"GET",params:{all:{type:"boolean"},before:{type:"string"},page:{type:"integer"},participating:{type:"boolean"},per_page:{type:"integer"},since:{type:"string"}},url:"/notifications"},listNotificationsForRepo:{method:"GET",params:{all:{type:"boolean"},before:{type:"string"},owner:{required:true,type:"string"},page:{type:"integer"},participating:{type:"boolean"},per_page:{type:"integer"},repo:{required:true,type:"string"},since:{type:"string"}},url:"/repos/:owner/:repo/notifications"},listPublicEvents:{method:"GET",params:{page:{type:"integer"},per_page:{type:"integer"}},url:"/events"},listPublicEventsForOrg:{method:"GET",params:{org:{required:true,type:"string"},page:{type:"integer"},per_page:{type:"integer"}},url:"/orgs/:org/events"},listPublicEventsForRepoNetwork:{method:"GET",params:{owner:{required:true,type:"string"},page:{type:"integer"},per_page:{type:"integer"},repo:{required:true,type:"string"}},url:"/networks/:owner/:repo/events"},listPublicEventsForUser:{method:"GET",params:{page:{type:"integer"},per_page:{type:"integer"},username:{required:true,type:"string"}},url:"/users/:username/events/public"},listReceivedEventsForUser:{method:"GET",params:{page:{type:"integer"},per_page:{type:"integer"},username:{required:true,type:"string"}},url:"/users/:username/received_events"},listReceivedPublicEventsForUser:{method:"GET",params:{page:{type:"integer"},per_page:{type:"integer"},username:{required:true,type:"string"}},url:"/users/:username/received_events/public"},listRepoEvents:{method:"GET",params:{owner:{required:true,type:"string"},page:{type:"integer"},per_page:{type:"integer"},repo:{required:true,type:"string"}},url:"/repos/:owner/:repo/events"},listReposStarredByAuthenticatedUser:{method:"GET",params:{direction:{enum:["asc","desc"],type:"string"},page:{type:"integer"},per_page:{type:"integer"},sort:{enum:["created","updated"],type:"string"}},url:"/user/starred"},listReposStarredByUser:{method:"GET",params:{direction:{enum:["asc","desc"],type:"string"},page:{type:"integer"},per_page:{type:"integer"},sort:{enum:["created","updated"],type:"string"},username:{required:true,type:"string"}},url:"/users/:username/starred"},listReposWatchedByUser:{method:"GET",params:{page:{type:"integer"},per_page:{type:"integer"},username:{required:true,type:"string"}},url:"/users/:username/subscriptions"},listStargazersForRepo:{method:"GET",params:{owner:{required:true,type:"string"},page:{type:"integer"},per_page:{type:"integer"},repo:{required:true,type:"string"}},url:"/repos/:owner/:repo/stargazers"},listWatchedReposForAuthenticatedUser:{method:"GET",params:{page:{type:"integer"},per_page:{type:"integer"}},url:"/user/subscriptions"},listWatchersForRepo:{method:"GET",params:{owner:{required:true,type:"string"},page:{type:"integer"},per_page:{type:"integer"},repo:{required:true,type:"string"}},url:"/repos/:owner/:repo/subscribers"},markAsRead:{method:"PUT",params:{last_read_at:{type:"string"}},url:"/notifications"},markNotificationsAsReadForRepo:{method:"PUT",params:{last_read_at:{type:"string"},owner:{required:true,type:"string"},repo:{required:true,type:"string"}},url:"/repos/:owner/:repo/notifications"},markThreadAsRead:{method:"PATCH",params:{thread_id:{required:true,type:"integer"}},url:"/notifications/threads/:thread_id"},setRepoSubscription:{method:"PUT",params:{ignored:{type:"boolean"},owner:{required:true,type:"string"},repo:{required:true,type:"string"},subscribed:{type:"boolean"}},url:"/repos/:owner/:repo/subscription"},setThreadSubscription:{method:"PUT",params:{ignored:{type:"boolean"},thread_id:{required:true,type:"integer"}},url:"/notifications/threads/:thread_id/subscription"},starRepo:{method:"PUT",params:{owner:{required:true,type:"string"},repo:{required:true,type:"string"}},url:"/user/starred/:owner/:repo"},unstarRepo:{method:"DELETE",params:{owner:{required:true,type:"string"},repo:{required:true,type:"string"}},url:"/user/starred/:owner/:repo"}},apps:{addRepoToInstallation:{headers:{accept:"application/vnd.github.machine-man-preview+json"},method:"PUT",params:{installation_id:{required:true,type:"integer"},repository_id:{required:true,type:"integer"}},url:"/user/installations/:installation_id/repositories/:repository_id"},checkAccountIsAssociatedWithAny:{method:"GET",params:{account_id:{required:true,type:"integer"},page:{type:"integer"},per_page:{type:"integer"}},url:"/marketplace_listing/accounts/:account_id"},checkAccountIsAssociatedWithAnyStubbed:{method:"GET",params:{account_id:{required:true,type:"integer"},page:{type:"integer"},per_page:{type:"integer"}},url:"/marketplace_listing/stubbed/accounts/:account_id"},checkAuthorization:{deprecated:"octokit.oauthAuthorizations.checkAuthorization() has been renamed to octokit.apps.checkAuthorization() (2019-11-05)",method:"GET",params:{access_token:{required:true,type:"string"},client_id:{required:true,type:"string"}},url:"/applications/:client_id/tokens/:access_token"},checkToken:{headers:{accept:"application/vnd.github.doctor-strange-preview+json"},method:"POST",params:{access_token:{type:"string"},client_id:{required:true,type:"string"}},url:"/applications/:client_id/token"},createContentAttachment:{headers:{accept:"application/vnd.github.corsair-preview+json"},method:"POST",params:{body:{required:true,type:"string"},content_reference_id:{required:true,type:"integer"},title:{required:true,type:"string"}},url:"/content_references/:content_reference_id/attachments"},createFromManifest:{headers:{accept:"application/vnd.github.fury-preview+json"},method:"POST",params:{code:{required:true,type:"string"}},url:"/app-manifests/:code/conversions"},createInstallationToken:{headers:{accept:"application/vnd.github.machine-man-preview+json"},method:"POST",params:{installation_id:{required:true,type:"integer"},permissions:{type:"object"},repository_ids:{type:"integer[]"}},url:"/app/installations/:installation_id/access_tokens"},deleteAuthorization:{headers:{accept:"application/vnd.github.doctor-strange-preview+json"},method:"DELETE",params:{access_token:{type:"string"},client_id:{required:true,type:"string"}},url:"/applications/:client_id/grant"},deleteInstallation:{headers:{accept:"application/vnd.github.gambit-preview+json,application/vnd.github.machine-man-preview+json"},method:"DELETE",params:{installation_id:{required:true,type:"integer"}},url:"/app/installations/:installation_id"},deleteToken:{headers:{accept:"application/vnd.github.doctor-strange-preview+json"},method:"DELETE",params:{access_token:{type:"string"},client_id:{required:true,type:"string"}},url:"/applications/:client_id/token"},findOrgInstallation:{deprecated:"octokit.apps.findOrgInstallation() has been renamed to octokit.apps.getOrgInstallation() (2019-04-10)",headers:{accept:"application/vnd.github.machine-man-preview+json"},method:"GET",params:{org:{required:true,type:"string"}},url:"/orgs/:org/installation"},findRepoInstallation:{deprecated:"octokit.apps.findRepoInstallation() has been renamed to octokit.apps.getRepoInstallation() (2019-04-10)",headers:{accept:"application/vnd.github.machine-man-preview+json"},method:"GET",params:{owner:{required:true,type:"string"},repo:{required:true,type:"string"}},url:"/repos/:owner/:repo/installation"},findUserInstallation:{deprecated:"octokit.apps.findUserInstallation() has been renamed to octokit.apps.getUserInstallation() (2019-04-10)",headers:{accept:"application/vnd.github.machine-man-preview+json"},method:"GET",params:{username:{required:true,type:"string"}},url:"/users/:username/installation"},getAuthenticated:{headers:{accept:"application/vnd.github.machine-man-preview+json"},method:"GET",params:{},url:"/app"},getBySlug:{headers:{accept:"application/vnd.github.machine-man-preview+json"},method:"GET",params:{app_slug:{required:true,type:"string"}},url:"/apps/:app_slug"},getInstallation:{headers:{accept:"application/vnd.github.machine-man-preview+json"},method:"GET",params:{installation_id:{required:true,type:"integer"}},url:"/app/installations/:installation_id"},getOrgInstallation:{headers:{accept:"application/vnd.github.machine-man-preview+json"},method:"GET",params:{org:{required:true,type:"string"}},url:"/orgs/:org/installation"},getRepoInstallation:{headers:{accept:"application/vnd.github.machine-man-preview+json"},method:"GET",params:{owner:{required:true,type:"string"},repo:{required:true,type:"string"}},url:"/repos/:owner/:repo/installation"},getUserInstallation:{headers:{accept:"application/vnd.github.machine-man-preview+json"},method:"GET",params:{username:{required:true,type:"string"}},url:"/users/:username/installation"},listAccountsUserOrOrgOnPlan:{method:"GET",params:{direction:{enum:["asc","desc"],type:"string"},page:{type:"integer"},per_page:{type:"integer"},plan_id:{required:true,type:"integer"},sort:{enum:["created","updated"],type:"string"}},url:"/marketplace_listing/plans/:plan_id/accounts"},listAccountsUserOrOrgOnPlanStubbed:{method:"GET",params:{direction:{enum:["asc","desc"],type:"string"},page:{type:"integer"},per_page:{type:"integer"},plan_id:{required:true,type:"integer"},sort:{enum:["created","updated"],type:"string"}},url:"/marketplace_listing/stubbed/plans/:plan_id/accounts"},listInstallationReposForAuthenticatedUser:{headers:{accept:"application/vnd.github.machine-man-preview+json"},method:"GET",params:{installation_id:{required:true,type:"integer"},page:{type:"integer"},per_page:{type:"integer"}},url:"/user/installations/:installation_id/repositories"},listInstallations:{headers:{accept:"application/vnd.github.machine-man-preview+json"},method:"GET",params:{page:{type:"integer"},per_page:{type:"integer"}},url:"/app/installations"},listInstallationsForAuthenticatedUser:{headers:{accept:"application/vnd.github.machine-man-preview+json"},method:"GET",params:{page:{type:"integer"},per_page:{type:"integer"}},url:"/user/installations"},listMarketplacePurchasesForAuthenticatedUser:{method:"GET",params:{page:{type:"integer"},per_page:{type:"integer"}},url:"/user/marketplace_purchases"},listMarketplacePurchasesForAuthenticatedUserStubbed:{method:"GET",params:{page:{type:"integer"},per_page:{type:"integer"}},url:"/user/marketplace_purchases/stubbed"},listPlans:{method:"GET",params:{page:{type:"integer"},per_page:{type:"integer"}},url:"/marketplace_listing/plans"},listPlansStubbed:{method:"GET",params:{page:{type:"integer"},per_page:{type:"integer"}},url:"/marketplace_listing/stubbed/plans"},listRepos:{headers:{accept:"application/vnd.github.machine-man-preview+json"},method:"GET",params:{page:{type:"integer"},per_page:{type:"integer"}},url:"/installation/repositories"},removeRepoFromInstallation:{headers:{accept:"application/vnd.github.machine-man-preview+json"},method:"DELETE",params:{installation_id:{required:true,type:"integer"},repository_id:{required:true,type:"integer"}},url:"/user/installations/:installation_id/repositories/:repository_id"},resetAuthorization:{deprecated:"octokit.oauthAuthorizations.resetAuthorization() has been renamed to octokit.apps.resetAuthorization() (2019-11-05)",method:"POST",params:{access_token:{required:true,type:"string"},client_id:{required:true,type:"string"}},url:"/applications/:client_id/tokens/:access_token"},resetToken:{headers:{accept:"application/vnd.github.doctor-strange-preview+json"},method:"PATCH",params:{access_token:{type:"string"},client_id:{required:true,type:"string"}},url:"/applications/:client_id/token"},revokeAuthorizationForApplication:{deprecated:"octokit.oauthAuthorizations.revokeAuthorizationForApplication() has been renamed to octokit.apps.revokeAuthorizationForApplication() (2019-11-05)",method:"DELETE",params:{access_token:{required:true,type:"string"},client_id:{required:true,type:"string"}},url:"/applications/:client_id/tokens/:access_token"},revokeGrantForApplication:{deprecated:"octokit.oauthAuthorizations.revokeGrantForApplication() has been renamed to octokit.apps.revokeGrantForApplication() (2019-11-05)",method:"DELETE",params:{access_token:{required:true,type:"string"},client_id:{required:true,type:"string"}},url:"/applications/:client_id/grants/:access_token"}},checks:{create:{headers:{accept:"application/vnd.github.antiope-preview+json"},method:"POST",params:{actions:{type:"object[]"},"actions[].description":{required:true,type:"string"},"actions[].identifier":{required:true,type:"string"},"actions[].label":{required:true,type:"string"},completed_at:{type:"string"},conclusion:{enum:["success","failure","neutral","cancelled","timed_out","action_required"],type:"string"},details_url:{type:"string"},external_id:{type:"string"},head_sha:{required:true,type:"string"},name:{required:true,type:"string"},output:{type:"object"},"output.annotations":{type:"object[]"},"output.annotations[].annotation_level":{enum:["notice","warning","failure"],required:true,type:"string"},"output.annotations[].end_column":{type:"integer"},"output.annotations[].end_line":{required:true,type:"integer"},"output.annotations[].message":{required:true,type:"string"},"output.annotations[].path":{required:true,type:"string"},"output.annotations[].raw_details":{type:"string"},"output.annotations[].start_column":{type:"integer"},"output.annotations[].start_line":{required:true,type:"integer"},"output.annotations[].title":{type:"string"},"output.images":{type:"object[]"},"output.images[].alt":{required:true,type:"string"},"output.images[].caption":{type:"string"},"output.images[].image_url":{required:true,type:"string"},"output.summary":{required:true,type:"string"},"output.text":{type:"string"},"output.title":{required:true,type:"string"},owner:{required:true,type:"string"},repo:{required:true,type:"string"},started_at:{type:"string"},status:{enum:["queued","in_progress","completed"],type:"string"}},url:"/repos/:owner/:repo/check-runs"},createSuite:{headers:{accept:"application/vnd.github.antiope-preview+json"},method:"POST",params:{head_sha:{required:true,type:"string"},owner:{required:true,type:"string"},repo:{required:true,type:"string"}},url:"/repos/:owner/:repo/check-suites"},get:{headers:{accept:"application/vnd.github.antiope-preview+json"},method:"GET",params:{check_run_id:{required:true,type:"integer"},owner:{required:true,type:"string"},repo:{required:true,type:"string"}},url:"/repos/:owner/:repo/check-runs/:check_run_id"},getSuite:{headers:{accept:"application/vnd.github.antiope-preview+json"},method:"GET",params:{check_suite_id:{required:true,type:"integer"},owner:{required:true,type:"string"},repo:{required:true,type:"string"}},url:"/repos/:owner/:repo/check-suites/:check_suite_id"},listAnnotations:{headers:{accept:"application/vnd.github.antiope-preview+json"},method:"GET",params:{check_run_id:{required:true,type:"integer"},owner:{required:true,type:"string"},page:{type:"integer"},per_page:{type:"integer"},repo:{required:true,type:"string"}},url:"/repos/:owner/:repo/check-runs/:check_run_id/annotations"},listForRef:{headers:{accept:"application/vnd.github.antiope-preview+json"},method:"GET",params:{check_name:{type:"string"},filter:{enum:["latest","all"],type:"string"},owner:{required:true,type:"string"},page:{type:"integer"},per_page:{type:"integer"},ref:{required:true,type:"string"},repo:{required:true,type:"string"},status:{enum:["queued","in_progress","completed"],type:"string"}},url:"/repos/:owner/:repo/commits/:ref/check-runs"},listForSuite:{headers:{accept:"application/vnd.github.antiope-preview+json"},method:"GET",params:{check_name:{type:"string"},check_suite_id:{required:true,type:"integer"},filter:{enum:["latest","all"],type:"string"},owner:{required:true,type:"string"},page:{type:"integer"},per_page:{type:"integer"},repo:{required:true,type:"string"},status:{enum:["queued","in_progress","completed"],type:"string"}},url:"/repos/:owner/:repo/check-suites/:check_suite_id/check-runs"},listSuitesForRef:{headers:{accept:"application/vnd.github.antiope-preview+json"},method:"GET",params:{app_id:{type:"integer"},check_name:{type:"string"},owner:{required:true,type:"string"},page:{type:"integer"},per_page:{type:"integer"},ref:{required:true,type:"string"},repo:{required:true,type:"string"}},url:"/repos/:owner/:repo/commits/:ref/check-suites"},rerequestSuite:{headers:{accept:"application/vnd.github.antiope-preview+json"},method:"POST",params:{check_suite_id:{required:true,type:"integer"},owner:{required:true,type:"string"},repo:{required:true,type:"string"}},url:"/repos/:owner/:repo/check-suites/:check_suite_id/rerequest"},setSuitesPreferences:{headers:{accept:"application/vnd.github.antiope-preview+json"},method:"PATCH",params:{auto_trigger_checks:{type:"object[]"},"auto_trigger_checks[].app_id":{required:true,type:"integer"},"auto_trigger_checks[].setting":{required:true,type:"boolean"},owner:{required:true,type:"string"},repo:{required:true,type:"string"}},url:"/repos/:owner/:repo/check-suites/preferences"},update:{headers:{accept:"application/vnd.github.antiope-preview+json"},method:"PATCH",params:{actions:{type:"object[]"},"actions[].description":{required:true,type:"string"},"actions[].identifier":{required:true,type:"string"},"actions[].label":{required:true,type:"string"},check_run_id:{required:true,type:"integer"},completed_at:{type:"string"},conclusion:{enum:["success","failure","neutral","cancelled","timed_out","action_required"],type:"string"},details_url:{type:"string"},external_id:{type:"string"},name:{type:"string"},output:{type:"object"},"output.annotations":{type:"object[]"},"output.annotations[].annotation_level":{enum:["notice","warning","failure"],required:true,type:"string"},"output.annotations[].end_column":{type:"integer"},"output.annotations[].end_line":{required:true,type:"integer"},"output.annotations[].message":{required:true,type:"string"},"output.annotations[].path":{required:true,type:"string"},"output.annotations[].raw_details":{type:"string"},"output.annotations[].start_column":{type:"integer"},"output.annotations[].start_line":{required:true,type:"integer"},"output.annotations[].title":{type:"string"},"output.images":{type:"object[]"},"output.images[].alt":{required:true,type:"string"},"output.images[].caption":{type:"string"},"output.images[].image_url":{required:true,type:"string"},"output.summary":{required:true,type:"string"},"output.text":{type:"string"},"output.title":{type:"string"},owner:{required:true,type:"string"},repo:{required:true,type:"string"},started_at:{type:"string"},status:{enum:["queued","in_progress","completed"],type:"string"}},url:"/repos/:owner/:repo/check-runs/:check_run_id"}},codesOfConduct:{getConductCode:{headers:{accept:"application/vnd.github.scarlet-witch-preview+json"},method:"GET",params:{key:{required:true,type:"string"}},url:"/codes_of_conduct/:key"},getForRepo:{headers:{accept:"application/vnd.github.scarlet-witch-preview+json"},method:"GET",params:{owner:{required:true,type:"string"},repo:{required:true,type:"string"}},url:"/repos/:owner/:repo/community/code_of_conduct"},listConductCodes:{headers:{accept:"application/vnd.github.scarlet-witch-preview+json"},method:"GET",params:{},url:"/codes_of_conduct"}},emojis:{get:{method:"GET",params:{},url:"/emojis"}},gists:{checkIsStarred:{method:"GET",params:{gist_id:{required:true,type:"string"}},url:"/gists/:gist_id/star"},create:{method:"POST",params:{description:{type:"string"},files:{required:true,type:"object"},"files.content":{type:"string"},public:{type:"boolean"}},url:"/gists"},createComment:{method:"POST",params:{body:{required:true,type:"string"},gist_id:{required:true,type:"string"}},url:"/gists/:gist_id/comments"},delete:{method:"DELETE",params:{gist_id:{required:true,type:"string"}},url:"/gists/:gist_id"},deleteComment:{method:"DELETE",params:{comment_id:{required:true,type:"integer"},gist_id:{required:true,type:"string"}},url:"/gists/:gist_id/comments/:comment_id"},fork:{method:"POST",params:{gist_id:{required:true,type:"string"}},url:"/gists/:gist_id/forks"},get:{method:"GET",params:{gist_id:{required:true,type:"string"}},url:"/gists/:gist_id"},getComment:{method:"GET",params:{comment_id:{required:true,type:"integer"},gist_id:{required:true,type:"string"}},url:"/gists/:gist_id/comments/:comment_id"},getRevision:{method:"GET",params:{gist_id:{required:true,type:"string"},sha:{required:true,type:"string"}},url:"/gists/:gist_id/:sha"},list:{method:"GET",params:{page:{type:"integer"},per_page:{type:"integer"},since:{type:"string"}},url:"/gists"},listComments:{method:"GET",params:{gist_id:{required:true,type:"string"},page:{type:"integer"},per_page:{type:"integer"}},url:"/gists/:gist_id/comments"},listCommits:{method:"GET",params:{gist_id:{required:true,type:"string"},page:{type:"integer"},per_page:{type:"integer"}},url:"/gists/:gist_id/commits"},listForks:{method:"GET",params:{gist_id:{required:true,type:"string"},page:{type:"integer"},per_page:{type:"integer"}},url:"/gists/:gist_id/forks"},listPublic:{method:"GET",params:{page:{type:"integer"},per_page:{type:"integer"},since:{type:"string"}},url:"/gists/public"},listPublicForUser:{method:"GET",params:{page:{type:"integer"},per_page:{type:"integer"},since:{type:"string"},username:{required:true,type:"string"}},url:"/users/:username/gists"},listStarred:{method:"GET",params:{page:{type:"integer"},per_page:{type:"integer"},since:{type:"string"}},url:"/gists/starred"},star:{method:"PUT",params:{gist_id:{required:true,type:"string"}},url:"/gists/:gist_id/star"},unstar:{method:"DELETE",params:{gist_id:{required:true,type:"string"}},url:"/gists/:gist_id/star"},update:{method:"PATCH",params:{description:{type:"string"},files:{type:"object"},"files.content":{type:"string"},"files.filename":{type:"string"},gist_id:{required:true,type:"string"}},url:"/gists/:gist_id"},updateComment:{method:"PATCH",params:{body:{required:true,type:"string"},comment_id:{required:true,type:"integer"},gist_id:{required:true,type:"string"}},url:"/gists/:gist_id/comments/:comment_id"}},git:{createBlob:{method:"POST",params:{content:{required:true,type:"string"},encoding:{type:"string"},owner:{required:true,type:"string"},repo:{required:true,type:"string"}},url:"/repos/:owner/:repo/git/blobs"},createCommit:{method:"POST",params:{author:{type:"object"},"author.date":{type:"string"},"author.email":{type:"string"},"author.name":{type:"string"},committer:{type:"object"},"committer.date":{type:"string"},"committer.email":{type:"string"},"committer.name":{type:"string"},message:{required:true,type:"string"},owner:{required:true,type:"string"},parents:{required:true,type:"string[]"},repo:{required:true,type:"string"},signature:{type:"string"},tree:{required:true,type:"string"}},url:"/repos/:owner/:repo/git/commits"},createRef:{method:"POST",params:{owner:{required:true,type:"string"},ref:{required:true,type:"string"},repo:{required:true,type:"string"},sha:{required:true,type:"string"}},url:"/repos/:owner/:repo/git/refs"},createTag:{method:"POST",params:{message:{required:true,type:"string"},object:{required:true,type:"string"},owner:{required:true,type:"string"},repo:{required:true,type:"string"},tag:{required:true,type:"string"},tagger:{type:"object"},"tagger.date":{type:"string"},"tagger.email":{type:"string"},"tagger.name":{type:"string"},type:{enum:["commit","tree","blob"],required:true,type:"string"}},url:"/repos/:owner/:repo/git/tags"},createTree:{method:"POST",params:{base_tree:{type:"string"},owner:{required:true,type:"string"},repo:{required:true,type:"string"},tree:{required:true,type:"object[]"},"tree[].content":{type:"string"},"tree[].mode":{enum:["100644","100755","040000","160000","120000"],type:"string"},"tree[].path":{type:"string"},"tree[].sha":{allowNull:true,type:"string"},"tree[].type":{enum:["blob","tree","commit"],type:"string"}},url:"/repos/:owner/:repo/git/trees"},deleteRef:{method:"DELETE",params:{owner:{required:true,type:"string"},ref:{required:true,type:"string"},repo:{required:true,type:"string"}},url:"/repos/:owner/:repo/git/refs/:ref"},getBlob:{method:"GET",params:{file_sha:{required:true,type:"string"},owner:{required:true,type:"string"},repo:{required:true,type:"string"}},url:"/repos/:owner/:repo/git/blobs/:file_sha"},getCommit:{method:"GET",params:{commit_sha:{required:true,type:"string"},owner:{required:true,type:"string"},repo:{required:true,type:"string"}},url:"/repos/:owner/:repo/git/commits/:commit_sha"},getRef:{method:"GET",params:{owner:{required:true,type:"string"},ref:{required:true,type:"string"},repo:{required:true,type:"string"}},url:"/repos/:owner/:repo/git/ref/:ref"},getTag:{method:"GET",params:{owner:{required:true,type:"string"},repo:{required:true,type:"string"},tag_sha:{required:true,type:"string"}},url:"/repos/:owner/:repo/git/tags/:tag_sha"},getTree:{method:"GET",params:{owner:{required:true,type:"string"},recursive:{enum:["1"],type:"integer"},repo:{required:true,type:"string"},tree_sha:{required:true,type:"string"}},url:"/repos/:owner/:repo/git/trees/:tree_sha"},listMatchingRefs:{method:"GET",params:{owner:{required:true,type:"string"},page:{type:"integer"},per_page:{type:"integer"},ref:{required:true,type:"string"},repo:{required:true,type:"string"}},url:"/repos/:owner/:repo/git/matching-refs/:ref"},listRefs:{method:"GET",params:{namespace:{type:"string"},owner:{required:true,type:"string"},page:{type:"integer"},per_page:{type:"integer"},repo:{required:true,type:"string"}},url:"/repos/:owner/:repo/git/refs/:namespace"},updateRef:{method:"PATCH",params:{force:{type:"boolean"},owner:{required:true,type:"string"},ref:{required:true,type:"string"},repo:{required:true,type:"string"},sha:{required:true,type:"string"}},url:"/repos/:owner/:repo/git/refs/:ref"}},gitignore:{getTemplate:{method:"GET",params:{name:{required:true,type:"string"}},url:"/gitignore/templates/:name"},listTemplates:{method:"GET",params:{},url:"/gitignore/templates"}},interactions:{addOrUpdateRestrictionsForOrg:{headers:{accept:"application/vnd.github.sombra-preview+json"},method:"PUT",params:{limit:{enum:["existing_users","contributors_only","collaborators_only"],required:true,type:"string"},org:{required:true,type:"string"}},url:"/orgs/:org/interaction-limits"},addOrUpdateRestrictionsForRepo:{headers:{accept:"application/vnd.github.sombra-preview+json"},method:"PUT",params:{limit:{enum:["existing_users","contributors_only","collaborators_only"],required:true,type:"string"},owner:{required:true,type:"string"},repo:{required:true,type:"string"}},url:"/repos/:owner/:repo/interaction-limits"},getRestrictionsForOrg:{headers:{accept:"application/vnd.github.sombra-preview+json"},method:"GET",params:{org:{required:true,type:"string"}},url:"/orgs/:org/interaction-limits"},getRestrictionsForRepo:{headers:{accept:"application/vnd.github.sombra-preview+json"},method:"GET",params:{owner:{required:true,type:"string"},repo:{required:true,type:"string"}},url:"/repos/:owner/:repo/interaction-limits"},removeRestrictionsForOrg:{headers:{accept:"application/vnd.github.sombra-preview+json"},method:"DELETE",params:{org:{required:true,type:"string"}},url:"/orgs/:org/interaction-limits"},removeRestrictionsForRepo:{headers:{accept:"application/vnd.github.sombra-preview+json"},method:"DELETE",params:{owner:{required:true,type:"string"},repo:{required:true,type:"string"}},url:"/repos/:owner/:repo/interaction-limits"}},issues:{addAssignees:{method:"POST",params:{assignees:{type:"string[]"},issue_number:{required:true,type:"integer"},number:{alias:"issue_number",deprecated:true,type:"integer"},owner:{required:true,type:"string"},repo:{required:true,type:"string"}},url:"/repos/:owner/:repo/issues/:issue_number/assignees"},addLabels:{method:"POST",params:{issue_number:{required:true,type:"integer"},labels:{required:true,type:"string[]"},number:{alias:"issue_number",deprecated:true,type:"integer"},owner:{required:true,type:"string"},repo:{required:true,type:"string"}},url:"/repos/:owner/:repo/issues/:issue_number/labels"},checkAssignee:{method:"GET",params:{assignee:{required:true,type:"string"},owner:{required:true,type:"string"},repo:{required:true,type:"string"}},url:"/repos/:owner/:repo/assignees/:assignee"},create:{method:"POST",params:{assignee:{type:"string"},assignees:{type:"string[]"},body:{type:"string"},labels:{type:"string[]"},milestone:{type:"integer"},owner:{required:true,type:"string"},repo:{required:true,type:"string"},title:{required:true,type:"string"}},url:"/repos/:owner/:repo/issues"},createComment:{method:"POST",params:{body:{required:true,type:"string"},issue_number:{required:true,type:"integer"},number:{alias:"issue_number",deprecated:true,type:"integer"},owner:{required:true,type:"string"},repo:{required:true,type:"string"}},url:"/repos/:owner/:repo/issues/:issue_number/comments"},createLabel:{method:"POST",params:{color:{required:true,type:"string"},description:{type:"string"},name:{required:true,type:"string"},owner:{required:true,type:"string"},repo:{required:true,type:"string"}},url:"/repos/:owner/:repo/labels"},createMilestone:{method:"POST",params:{description:{type:"string"},due_on:{type:"string"},owner:{required:true,type:"string"},repo:{required:true,type:"string"},state:{enum:["open","closed"],type:"string"},title:{required:true,type:"string"}},url:"/repos/:owner/:repo/milestones"},deleteComment:{method:"DELETE",params:{comment_id:{required:true,type:"integer"},owner:{required:true,type:"string"},repo:{required:true,type:"string"}},url:"/repos/:owner/:repo/issues/comments/:comment_id"},deleteLabel:{method:"DELETE",params:{name:{required:true,type:"string"},owner:{required:true,type:"string"},repo:{required:true,type:"string"}},url:"/repos/:owner/:repo/labels/:name"},deleteMilestone:{method:"DELETE",params:{milestone_number:{required:true,type:"integer"},number:{alias:"milestone_number",deprecated:true,type:"integer"},owner:{required:true,type:"string"},repo:{required:true,type:"string"}},url:"/repos/:owner/:repo/milestones/:milestone_number"},get:{method:"GET",params:{issue_number:{required:true,type:"integer"},number:{alias:"issue_number",deprecated:true,type:"integer"},owner:{required:true,type:"string"},repo:{required:true,type:"string"}},url:"/repos/:owner/:repo/issues/:issue_number"},getComment:{method:"GET",params:{comment_id:{required:true,type:"integer"},owner:{required:true,type:"string"},page:{type:"integer"},per_page:{type:"integer"},repo:{required:true,type:"string"}},url:"/repos/:owner/:repo/issues/comments/:comment_id"},getEvent:{method:"GET",params:{event_id:{required:true,type:"integer"},owner:{required:true,type:"string"},repo:{required:true,type:"string"}},url:"/repos/:owner/:repo/issues/events/:event_id"},getLabel:{method:"GET",params:{name:{required:true,type:"string"},owner:{required:true,type:"string"},repo:{required:true,type:"string"}},url:"/repos/:owner/:repo/labels/:name"},getMilestone:{method:"GET",params:{milestone_number:{required:true,type:"integer"},number:{alias:"milestone_number",deprecated:true,type:"integer"},owner:{required:true,type:"string"},repo:{required:true,type:"string"}},url:"/repos/:owner/:repo/milestones/:milestone_number"},list:{method:"GET",params:{direction:{enum:["asc","desc"],type:"string"},filter:{enum:["assigned","created","mentioned","subscribed","all"],type:"string"},labels:{type:"string"},page:{type:"integer"},per_page:{type:"integer"},since:{type:"string"},sort:{enum:["created","updated","comments"],type:"string"},state:{enum:["open","closed","all"],type:"string"}},url:"/issues"},listAssignees:{method:"GET",params:{owner:{required:true,type:"string"},page:{type:"integer"},per_page:{type:"integer"},repo:{required:true,type:"string"}},url:"/repos/:owner/:repo/assignees"},listComments:{method:"GET",params:{issue_number:{required:true,type:"integer"},number:{alias:"issue_number",deprecated:true,type:"integer"},owner:{required:true,type:"string"},page:{type:"integer"},per_page:{type:"integer"},repo:{required:true,type:"string"},since:{type:"string"}},url:"/repos/:owner/:repo/issues/:issue_number/comments"},listCommentsForRepo:{method:"GET",params:{direction:{enum:["asc","desc"],type:"string"},owner:{required:true,type:"string"},repo:{required:true,type:"string"},since:{type:"string"},sort:{enum:["created","updated"],type:"string"}},url:"/repos/:owner/:repo/issues/comments"},listEvents:{method:"GET",params:{issue_number:{required:true,type:"integer"},number:{alias:"issue_number",deprecated:true,type:"integer"},owner:{required:true,type:"string"},page:{type:"integer"},per_page:{type:"integer"},repo:{required:true,type:"string"}},url:"/repos/:owner/:repo/issues/:issue_number/events"},listEventsForRepo:{method:"GET",params:{owner:{required:true,type:"string"},page:{type:"integer"},per_page:{type:"integer"},repo:{required:true,type:"string"}},url:"/repos/:owner/:repo/issues/events"},listEventsForTimeline:{headers:{accept:"application/vnd.github.mockingbird-preview+json"},method:"GET",params:{issue_number:{required:true,type:"integer"},number:{alias:"issue_number",deprecated:true,type:"integer"},owner:{required:true,type:"string"},page:{type:"integer"},per_page:{type:"integer"},repo:{required:true,type:"string"}},url:"/repos/:owner/:repo/issues/:issue_number/timeline"},listForAuthenticatedUser:{method:"GET",params:{direction:{enum:["asc","desc"],type:"string"},filter:{enum:["assigned","created","mentioned","subscribed","all"],type:"string"},labels:{type:"string"},page:{type:"integer"},per_page:{type:"integer"},since:{type:"string"},sort:{enum:["created","updated","comments"],type:"string"},state:{enum:["open","closed","all"],type:"string"}},url:"/user/issues"},listForOrg:{method:"GET",params:{direction:{enum:["asc","desc"],type:"string"},filter:{enum:["assigned","created","mentioned","subscribed","all"],type:"string"},labels:{type:"string"},org:{required:true,type:"string"},page:{type:"integer"},per_page:{type:"integer"},since:{type:"string"},sort:{enum:["created","updated","comments"],type:"string"},state:{enum:["open","closed","all"],type:"string"}},url:"/orgs/:org/issues"},listForRepo:{method:"GET",params:{assignee:{type:"string"},creator:{type:"string"},direction:{enum:["asc","desc"],type:"string"},labels:{type:"string"},mentioned:{type:"string"},milestone:{type:"string"},owner:{required:true,type:"string"},page:{type:"integer"},per_page:{type:"integer"},repo:{required:true,type:"string"},since:{type:"string"},sort:{enum:["created","updated","comments"],type:"string"},state:{enum:["open","closed","all"],type:"string"}},url:"/repos/:owner/:repo/issues"},listLabelsForMilestone:{method:"GET",params:{milestone_number:{required:true,type:"integer"},number:{alias:"milestone_number",deprecated:true,type:"integer"},owner:{required:true,type:"string"},page:{type:"integer"},per_page:{type:"integer"},repo:{required:true,type:"string"}},url:"/repos/:owner/:repo/milestones/:milestone_number/labels"},listLabelsForRepo:{method:"GET",params:{owner:{required:true,type:"string"},page:{type:"integer"},per_page:{type:"integer"},repo:{required:true,type:"string"}},url:"/repos/:owner/:repo/labels"},listLabelsOnIssue:{method:"GET",params:{issue_number:{required:true,type:"integer"},number:{alias:"issue_number",deprecated:true,type:"integer"},owner:{required:true,type:"string"},page:{type:"integer"},per_page:{type:"integer"},repo:{required:true,type:"string"}},url:"/repos/:owner/:repo/issues/:issue_number/labels"},listMilestonesForRepo:{method:"GET",params:{direction:{enum:["asc","desc"],type:"string"},owner:{required:true,type:"string"},page:{type:"integer"},per_page:{type:"integer"},repo:{required:true,type:"string"},sort:{enum:["due_on","completeness"],type:"string"},state:{enum:["open","closed","all"],type:"string"}},url:"/repos/:owner/:repo/milestones"},lock:{method:"PUT",params:{issue_number:{required:true,type:"integer"},lock_reason:{enum:["off-topic","too heated","resolved","spam"],type:"string"},number:{alias:"issue_number",deprecated:true,type:"integer"},owner:{required:true,type:"string"},repo:{required:true,type:"string"}},url:"/repos/:owner/:repo/issues/:issue_number/lock"},removeAssignees:{method:"DELETE",params:{assignees:{type:"string[]"},issue_number:{required:true,type:"integer"},number:{alias:"issue_number",deprecated:true,type:"integer"},owner:{required:true,type:"string"},repo:{required:true,type:"string"}},url:"/repos/:owner/:repo/issues/:issue_number/assignees"},removeLabel:{method:"DELETE",params:{issue_number:{required:true,type:"integer"},name:{required:true,type:"string"},number:{alias:"issue_number",deprecated:true,type:"integer"},owner:{required:true,type:"string"},repo:{required:true,type:"string"}},url:"/repos/:owner/:repo/issues/:issue_number/labels/:name"},removeLabels:{method:"DELETE",params:{issue_number:{required:true,type:"integer"},number:{alias:"issue_number",deprecated:true,type:"integer"},owner:{required:true,type:"string"},repo:{required:true,type:"string"}},url:"/repos/:owner/:repo/issues/:issue_number/labels"},replaceLabels:{method:"PUT",params:{issue_number:{required:true,type:"integer"},labels:{type:"string[]"},number:{alias:"issue_number",deprecated:true,type:"integer"},owner:{required:true,type:"string"},repo:{required:true,type:"string"}},url:"/repos/:owner/:repo/issues/:issue_number/labels"},unlock:{method:"DELETE",params:{issue_number:{required:true,type:"integer"},number:{alias:"issue_number",deprecated:true,type:"integer"},owner:{required:true,type:"string"},repo:{required:true,type:"string"}},url:"/repos/:owner/:repo/issues/:issue_number/lock"},update:{method:"PATCH",params:{assignee:{type:"string"},assignees:{type:"string[]"},body:{type:"string"},issue_number:{required:true,type:"integer"},labels:{type:"string[]"},milestone:{allowNull:true,type:"integer"},number:{alias:"issue_number",deprecated:true,type:"integer"},owner:{required:true,type:"string"},repo:{required:true,type:"string"},state:{enum:["open","closed"],type:"string"},title:{type:"string"}},url:"/repos/:owner/:repo/issues/:issue_number"},updateComment:{method:"PATCH",params:{body:{required:true,type:"string"},comment_id:{required:true,type:"integer"},owner:{required:true,type:"string"},repo:{required:true,type:"string"}},url:"/repos/:owner/:repo/issues/comments/:comment_id"},updateLabel:{method:"PATCH",params:{color:{type:"string"},current_name:{required:true,type:"string"},description:{type:"string"},name:{type:"string"},owner:{required:true,type:"string"},repo:{required:true,type:"string"}},url:"/repos/:owner/:repo/labels/:current_name"},updateMilestone:{method:"PATCH",params:{description:{type:"string"},due_on:{type:"string"},milestone_number:{required:true,type:"integer"},number:{alias:"milestone_number",deprecated:true,type:"integer"},owner:{required:true,type:"string"},repo:{required:true,type:"string"},state:{enum:["open","closed"],type:"string"},title:{type:"string"}},url:"/repos/:owner/:repo/milestones/:milestone_number"}},licenses:{get:{method:"GET",params:{license:{required:true,type:"string"}},url:"/licenses/:license"},getForRepo:{method:"GET",params:{owner:{required:true,type:"string"},repo:{required:true,type:"string"}},url:"/repos/:owner/:repo/license"},list:{deprecated:"octokit.licenses.list() has been renamed to octokit.licenses.listCommonlyUsed() (2019-03-05)",method:"GET",params:{},url:"/licenses"},listCommonlyUsed:{method:"GET",params:{},url:"/licenses"}},markdown:{render:{method:"POST",params:{context:{type:"string"},mode:{enum:["markdown","gfm"],type:"string"},text:{required:true,type:"string"}},url:"/markdown"},renderRaw:{headers:{"content-type":"text/plain; charset=utf-8"},method:"POST",params:{data:{mapTo:"data",required:true,type:"string"}},url:"/markdown/raw"}},meta:{get:{method:"GET",params:{},url:"/meta"}},migrations:{cancelImport:{headers:{accept:"application/vnd.github.barred-rock-preview+json"},method:"DELETE",params:{owner:{required:true,type:"string"},repo:{required:true,type:"string"}},url:"/repos/:owner/:repo/import"},deleteArchiveForAuthenticatedUser:{headers:{accept:"application/vnd.github.wyandotte-preview+json"},method:"DELETE",params:{migration_id:{required:true,type:"integer"}},url:"/user/migrations/:migration_id/archive"},deleteArchiveForOrg:{headers:{accept:"application/vnd.github.wyandotte-preview+json"},method:"DELETE",params:{migration_id:{required:true,type:"integer"},org:{required:true,type:"string"}},url:"/orgs/:org/migrations/:migration_id/archive"},getArchiveForAuthenticatedUser:{headers:{accept:"application/vnd.github.wyandotte-preview+json"},method:"GET",params:{migration_id:{required:true,type:"integer"}},url:"/user/migrations/:migration_id/archive"},getArchiveForOrg:{headers:{accept:"application/vnd.github.wyandotte-preview+json"},method:"GET",params:{migration_id:{required:true,type:"integer"},org:{required:true,type:"string"}},url:"/orgs/:org/migrations/:migration_id/archive"},getCommitAuthors:{headers:{accept:"application/vnd.github.barred-rock-preview+json"},method:"GET",params:{owner:{required:true,type:"string"},repo:{required:true,type:"string"},since:{type:"string"}},url:"/repos/:owner/:repo/import/authors"},getImportProgress:{headers:{accept:"application/vnd.github.barred-rock-preview+json"},method:"GET",params:{owner:{required:true,type:"string"},repo:{required:true,type:"string"}},url:"/repos/:owner/:repo/import"},getLargeFiles:{headers:{accept:"application/vnd.github.barred-rock-preview+json"},method:"GET",params:{owner:{required:true,type:"string"},repo:{required:true,type:"string"}},url:"/repos/:owner/:repo/import/large_files"},getStatusForAuthenticatedUser:{headers:{accept:"application/vnd.github.wyandotte-preview+json"},method:"GET",params:{migration_id:{required:true,type:"integer"}},url:"/user/migrations/:migration_id"},getStatusForOrg:{headers:{accept:"application/vnd.github.wyandotte-preview+json"},method:"GET",params:{migration_id:{required:true,type:"integer"},org:{required:true,type:"string"}},url:"/orgs/:org/migrations/:migration_id"},listForAuthenticatedUser:{headers:{accept:"application/vnd.github.wyandotte-preview+json"},method:"GET",params:{page:{type:"integer"},per_page:{type:"integer"}},url:"/user/migrations"},listForOrg:{headers:{accept:"application/vnd.github.wyandotte-preview+json"},method:"GET",params:{org:{required:true,type:"string"},page:{type:"integer"},per_page:{type:"integer"}},url:"/orgs/:org/migrations"},mapCommitAuthor:{headers:{accept:"application/vnd.github.barred-rock-preview+json"},method:"PATCH",params:{author_id:{required:true,type:"integer"},email:{type:"string"},name:{type:"string"},owner:{required:true,type:"string"},repo:{required:true,type:"string"}},url:"/repos/:owner/:repo/import/authors/:author_id"},setLfsPreference:{headers:{accept:"application/vnd.github.barred-rock-preview+json"},method:"PATCH",params:{owner:{required:true,type:"string"},repo:{required:true,type:"string"},use_lfs:{enum:["opt_in","opt_out"],required:true,type:"string"}},url:"/repos/:owner/:repo/import/lfs"},startForAuthenticatedUser:{method:"POST",params:{exclude_attachments:{type:"boolean"},lock_repositories:{type:"boolean"},repositories:{required:true,type:"string[]"}},url:"/user/migrations"},startForOrg:{method:"POST",params:{exclude_attachments:{type:"boolean"},lock_repositories:{type:"boolean"},org:{required:true,type:"string"},repositories:{required:true,type:"string[]"}},url:"/orgs/:org/migrations"},startImport:{headers:{accept:"application/vnd.github.barred-rock-preview+json"},method:"PUT",params:{owner:{required:true,type:"string"},repo:{required:true,type:"string"},tfvc_project:{type:"string"},vcs:{enum:["subversion","git","mercurial","tfvc"],type:"string"},vcs_password:{type:"string"},vcs_url:{required:true,type:"string"},vcs_username:{type:"string"}},url:"/repos/:owner/:repo/import"},unlockRepoForAuthenticatedUser:{headers:{accept:"application/vnd.github.wyandotte-preview+json"},method:"DELETE",params:{migration_id:{required:true,type:"integer"},repo_name:{required:true,type:"string"}},url:"/user/migrations/:migration_id/repos/:repo_name/lock"},unlockRepoForOrg:{headers:{accept:"application/vnd.github.wyandotte-preview+json"},method:"DELETE",params:{migration_id:{required:true,type:"integer"},org:{required:true,type:"string"},repo_name:{required:true,type:"string"}},url:"/orgs/:org/migrations/:migration_id/repos/:repo_name/lock"},updateImport:{headers:{accept:"application/vnd.github.barred-rock-preview+json"},method:"PATCH",params:{owner:{required:true,type:"string"},repo:{required:true,type:"string"},vcs_password:{type:"string"},vcs_username:{type:"string"}},url:"/repos/:owner/:repo/import"}},oauthAuthorizations:{checkAuthorization:{deprecated:"octokit.oauthAuthorizations.checkAuthorization() has been renamed to octokit.apps.checkAuthorization() (2019-11-05)",method:"GET",params:{access_token:{required:true,type:"string"},client_id:{required:true,type:"string"}},url:"/applications/:client_id/tokens/:access_token"},createAuthorization:{deprecated:"octokit.oauthAuthorizations.createAuthorization() is deprecated, see https://developer.github.com/v3/oauth_authorizations/#create-a-new-authorization",method:"POST",params:{client_id:{type:"string"},client_secret:{type:"string"},fingerprint:{type:"string"},note:{required:true,type:"string"},note_url:{type:"string"},scopes:{type:"string[]"}},url:"/authorizations"},deleteAuthorization:{deprecated:"octokit.oauthAuthorizations.deleteAuthorization() is deprecated, see https://developer.github.com/v3/oauth_authorizations/#delete-an-authorization",method:"DELETE",params:{authorization_id:{required:true,type:"integer"}},url:"/authorizations/:authorization_id"},deleteGrant:{deprecated:"octokit.oauthAuthorizations.deleteGrant() is deprecated, see https://developer.github.com/v3/oauth_authorizations/#delete-a-grant",method:"DELETE",params:{grant_id:{required:true,type:"integer"}},url:"/applications/grants/:grant_id"},getAuthorization:{deprecated:"octokit.oauthAuthorizations.getAuthorization() is deprecated, see https://developer.github.com/v3/oauth_authorizations/#get-a-single-authorization",method:"GET",params:{authorization_id:{required:true,type:"integer"}},url:"/authorizations/:authorization_id"},getGrant:{deprecated:"octokit.oauthAuthorizations.getGrant() is deprecated, see https://developer.github.com/v3/oauth_authorizations/#get-a-single-grant",method:"GET",params:{grant_id:{required:true,type:"integer"}},url:"/applications/grants/:grant_id"},getOrCreateAuthorizationForApp:{deprecated:"octokit.oauthAuthorizations.getOrCreateAuthorizationForApp() is deprecated, see https://developer.github.com/v3/oauth_authorizations/#get-or-create-an-authorization-for-a-specific-app",method:"PUT",params:{client_id:{required:true,type:"string"},client_secret:{required:true,type:"string"},fingerprint:{type:"string"},note:{type:"string"},note_url:{type:"string"},scopes:{type:"string[]"}},url:"/authorizations/clients/:client_id"},getOrCreateAuthorizationForAppAndFingerprint:{deprecated:"octokit.oauthAuthorizations.getOrCreateAuthorizationForAppAndFingerprint() is deprecated, see https://developer.github.com/v3/oauth_authorizations/#get-or-create-an-authorization-for-a-specific-app-and-fingerprint",method:"PUT",params:{client_id:{required:true,type:"string"},client_secret:{required:true,type:"string"},fingerprint:{required:true,type:"string"},note:{type:"string"},note_url:{type:"string"},scopes:{type:"string[]"}},url:"/authorizations/clients/:client_id/:fingerprint"},getOrCreateAuthorizationForAppFingerprint:{deprecated:"octokit.oauthAuthorizations.getOrCreateAuthorizationForAppFingerprint() has been renamed to octokit.oauthAuthorizations.getOrCreateAuthorizationForAppAndFingerprint() (2018-12-27)",method:"PUT",params:{client_id:{required:true,type:"string"},client_secret:{required:true,type:"string"},fingerprint:{required:true,type:"string"},note:{type:"string"},note_url:{type:"string"},scopes:{type:"string[]"}},url:"/authorizations/clients/:client_id/:fingerprint"},listAuthorizations:{deprecated:"octokit.oauthAuthorizations.listAuthorizations() is deprecated, see https://developer.github.com/v3/oauth_authorizations/#list-your-authorizations",method:"GET",params:{page:{type:"integer"},per_page:{type:"integer"}},url:"/authorizations"},listGrants:{deprecated:"octokit.oauthAuthorizations.listGrants() is deprecated, see https://developer.github.com/v3/oauth_authorizations/#list-your-grants",method:"GET",params:{page:{type:"integer"},per_page:{type:"integer"}},url:"/applications/grants"},resetAuthorization:{deprecated:"octokit.oauthAuthorizations.resetAuthorization() has been renamed to octokit.apps.resetAuthorization() (2019-11-05)",method:"POST",params:{access_token:{required:true,type:"string"},client_id:{required:true,type:"string"}},url:"/applications/:client_id/tokens/:access_token"},revokeAuthorizationForApplication:{deprecated:"octokit.oauthAuthorizations.revokeAuthorizationForApplication() has been renamed to octokit.apps.revokeAuthorizationForApplication() (2019-11-05)",method:"DELETE",params:{access_token:{required:true,type:"string"},client_id:{required:true,type:"string"}},url:"/applications/:client_id/tokens/:access_token"},revokeGrantForApplication:{deprecated:"octokit.oauthAuthorizations.revokeGrantForApplication() has been renamed to octokit.apps.revokeGrantForApplication() (2019-11-05)",method:"DELETE",params:{access_token:{required:true,type:"string"},client_id:{required:true,type:"string"}},url:"/applications/:client_id/grants/:access_token"},updateAuthorization:{deprecated:"octokit.oauthAuthorizations.updateAuthorization() is deprecated, see https://developer.github.com/v3/oauth_authorizations/#update-an-existing-authorization",method:"PATCH",params:{add_scopes:{type:"string[]"},authorization_id:{required:true,type:"integer"},fingerprint:{type:"string"},note:{type:"string"},note_url:{type:"string"},remove_scopes:{type:"string[]"},scopes:{type:"string[]"}},url:"/authorizations/:authorization_id"}},orgs:{addOrUpdateMembership:{method:"PUT",params:{org:{required:true,type:"string"},role:{enum:["admin","member"],type:"string"},username:{required:true,type:"string"}},url:"/orgs/:org/memberships/:username"},blockUser:{method:"PUT",params:{org:{required:true,type:"string"},username:{required:true,type:"string"}},url:"/orgs/:org/blocks/:username"},checkBlockedUser:{method:"GET",params:{org:{required:true,type:"string"},username:{required:true,type:"string"}},url:"/orgs/:org/blocks/:username"},checkMembership:{method:"GET",params:{org:{required:true,type:"string"},username:{required:true,type:"string"}},url:"/orgs/:org/members/:username"},checkPublicMembership:{method:"GET",params:{org:{required:true,type:"string"},username:{required:true,type:"string"}},url:"/orgs/:org/public_members/:username"},concealMembership:{method:"DELETE",params:{org:{required:true,type:"string"},username:{required:true,type:"string"}},url:"/orgs/:org/public_members/:username"},convertMemberToOutsideCollaborator:{method:"PUT",params:{org:{required:true,type:"string"},username:{required:true,type:"string"}},url:"/orgs/:org/outside_collaborators/:username"},createHook:{method:"POST",params:{active:{type:"boolean"},config:{required:true,type:"object"},"config.content_type":{type:"string"},"config.insecure_ssl":{type:"string"},"config.secret":{type:"string"},"config.url":{required:true,type:"string"},events:{type:"string[]"},name:{required:true,type:"string"},org:{required:true,type:"string"}},url:"/orgs/:org/hooks"},createInvitation:{method:"POST",params:{email:{type:"string"},invitee_id:{type:"integer"},org:{required:true,type:"string"},role:{enum:["admin","direct_member","billing_manager"],type:"string"},team_ids:{type:"integer[]"}},url:"/orgs/:org/invitations"},deleteHook:{method:"DELETE",params:{hook_id:{required:true,type:"integer"},org:{required:true,type:"string"}},url:"/orgs/:org/hooks/:hook_id"},get:{method:"GET",params:{org:{required:true,type:"string"}},url:"/orgs/:org"},getHook:{method:"GET",params:{hook_id:{required:true,type:"integer"},org:{required:true,type:"string"}},url:"/orgs/:org/hooks/:hook_id"},getMembership:{method:"GET",params:{org:{required:true,type:"string"},username:{required:true,type:"string"}},url:"/orgs/:org/memberships/:username"},getMembershipForAuthenticatedUser:{method:"GET",params:{org:{required:true,type:"string"}},url:"/user/memberships/orgs/:org"},list:{method:"GET",params:{page:{type:"integer"},per_page:{type:"integer"},since:{type:"string"}},url:"/organizations"},listBlockedUsers:{method:"GET",params:{org:{required:true,type:"string"}},url:"/orgs/:org/blocks"},listForAuthenticatedUser:{method:"GET",params:{page:{type:"integer"},per_page:{type:"integer"}},url:"/user/orgs"},listForUser:{method:"GET",params:{page:{type:"integer"},per_page:{type:"integer"},username:{required:true,type:"string"}},url:"/users/:username/orgs"},listHooks:{method:"GET",params:{org:{required:true,type:"string"},page:{type:"integer"},per_page:{type:"integer"}},url:"/orgs/:org/hooks"},listInstallations:{headers:{accept:"application/vnd.github.machine-man-preview+json"},method:"GET",params:{org:{required:true,type:"string"},page:{type:"integer"},per_page:{type:"integer"}},url:"/orgs/:org/installations"},listInvitationTeams:{method:"GET",params:{invitation_id:{required:true,type:"integer"},org:{required:true,type:"string"},page:{type:"integer"},per_page:{type:"integer"}},url:"/orgs/:org/invitations/:invitation_id/teams"},listMembers:{method:"GET",params:{filter:{enum:["2fa_disabled","all"],type:"string"},org:{required:true,type:"string"},page:{type:"integer"},per_page:{type:"integer"},role:{enum:["all","admin","member"],type:"string"}},url:"/orgs/:org/members"},listMemberships:{method:"GET",params:{page:{type:"integer"},per_page:{type:"integer"},state:{enum:["active","pending"],type:"string"}},url:"/user/memberships/orgs"},listOutsideCollaborators:{method:"GET",params:{filter:{enum:["2fa_disabled","all"],type:"string"},org:{required:true,type:"string"},page:{type:"integer"},per_page:{type:"integer"}},url:"/orgs/:org/outside_collaborators"},listPendingInvitations:{method:"GET",params:{org:{required:true,type:"string"},page:{type:"integer"},per_page:{type:"integer"}},url:"/orgs/:org/invitations"},listPublicMembers:{method:"GET",params:{org:{required:true,type:"string"},page:{type:"integer"},per_page:{type:"integer"}},url:"/orgs/:org/public_members"},pingHook:{method:"POST",params:{hook_id:{required:true,type:"integer"},org:{required:true,type:"string"}},url:"/orgs/:org/hooks/:hook_id/pings"},publicizeMembership:{method:"PUT",params:{org:{required:true,type:"string"},username:{required:true,type:"string"}},url:"/orgs/:org/public_members/:username"},removeMember:{method:"DELETE",params:{org:{required:true,type:"string"},username:{required:true,type:"string"}},url:"/orgs/:org/members/:username"},removeMembership:{method:"DELETE",params:{org:{required:true,type:"string"},username:{required:true,type:"string"}},url:"/orgs/:org/memberships/:username"},removeOutsideCollaborator:{method:"DELETE",params:{org:{required:true,type:"string"},username:{required:true,type:"string"}},url:"/orgs/:org/outside_collaborators/:username"},unblockUser:{method:"DELETE",params:{org:{required:true,type:"string"},username:{required:true,type:"string"}},url:"/orgs/:org/blocks/:username"},update:{method:"PATCH",params:{billing_email:{type:"string"},company:{type:"string"},default_repository_permission:{enum:["read","write","admin","none"],type:"string"},description:{type:"string"},email:{type:"string"},has_organization_projects:{type:"boolean"},has_repository_projects:{type:"boolean"},location:{type:"string"},members_allowed_repository_creation_type:{enum:["all","private","none"],type:"string"},members_can_create_repositories:{type:"boolean"},name:{type:"string"},org:{required:true,type:"string"}},url:"/orgs/:org"},updateHook:{method:"PATCH",params:{active:{type:"boolean"},config:{type:"object"},"config.content_type":{type:"string"},"config.insecure_ssl":{type:"string"},"config.secret":{type:"string"},"config.url":{required:true,type:"string"},events:{type:"string[]"},hook_id:{required:true,type:"integer"},org:{required:true,type:"string"}},url:"/orgs/:org/hooks/:hook_id"},updateMembership:{method:"PATCH",params:{org:{required:true,type:"string"},state:{enum:["active"],required:true,type:"string"}},url:"/user/memberships/orgs/:org"}},projects:{addCollaborator:{headers:{accept:"application/vnd.github.inertia-preview+json"},method:"PUT",params:{permission:{enum:["read","write","admin"],type:"string"},project_id:{required:true,type:"integer"},username:{required:true,type:"string"}},url:"/projects/:project_id/collaborators/:username"},createCard:{headers:{accept:"application/vnd.github.inertia-preview+json"},method:"POST",params:{column_id:{required:true,type:"integer"},content_id:{type:"integer"},content_type:{type:"string"},note:{type:"string"}},url:"/projects/columns/:column_id/cards"},createColumn:{headers:{accept:"application/vnd.github.inertia-preview+json"},method:"POST",params:{name:{required:true,type:"string"},project_id:{required:true,type:"integer"}},url:"/projects/:project_id/columns"},createForAuthenticatedUser:{headers:{accept:"application/vnd.github.inertia-preview+json"},method:"POST",params:{body:{type:"string"},name:{required:true,type:"string"}},url:"/user/projects"},createForOrg:{headers:{accept:"application/vnd.github.inertia-preview+json"},method:"POST",params:{body:{type:"string"},name:{required:true,type:"string"},org:{required:true,type:"string"}},url:"/orgs/:org/projects"},createForRepo:{headers:{accept:"application/vnd.github.inertia-preview+json"},method:"POST",params:{body:{type:"string"},name:{required:true,type:"string"},owner:{required:true,type:"string"},repo:{required:true,type:"string"}},url:"/repos/:owner/:repo/projects"},delete:{headers:{accept:"application/vnd.github.inertia-preview+json"},method:"DELETE",params:{project_id:{required:true,type:"integer"}},url:"/projects/:project_id"},deleteCard:{headers:{accept:"application/vnd.github.inertia-preview+json"},method:"DELETE",params:{card_id:{required:true,type:"integer"}},url:"/projects/columns/cards/:card_id"},deleteColumn:{headers:{accept:"application/vnd.github.inertia-preview+json"},method:"DELETE",params:{column_id:{required:true,type:"integer"}},url:"/projects/columns/:column_id"},get:{headers:{accept:"application/vnd.github.inertia-preview+json"},method:"GET",params:{page:{type:"integer"},per_page:{type:"integer"},project_id:{required:true,type:"integer"}},url:"/projects/:project_id"},getCard:{headers:{accept:"application/vnd.github.inertia-preview+json"},method:"GET",params:{card_id:{required:true,type:"integer"}},url:"/projects/columns/cards/:card_id"},getColumn:{headers:{accept:"application/vnd.github.inertia-preview+json"},method:"GET",params:{column_id:{required:true,type:"integer"}},url:"/projects/columns/:column_id"},listCards:{headers:{accept:"application/vnd.github.inertia-preview+json"},method:"GET",params:{archived_state:{enum:["all","archived","not_archived"],type:"string"},column_id:{required:true,type:"integer"},page:{type:"integer"},per_page:{type:"integer"}},url:"/projects/columns/:column_id/cards"},listCollaborators:{headers:{accept:"application/vnd.github.inertia-preview+json"},method:"GET",params:{affiliation:{enum:["outside","direct","all"],type:"string"},page:{type:"integer"},per_page:{type:"integer"},project_id:{required:true,type:"integer"}},url:"/projects/:project_id/collaborators"},listColumns:{headers:{accept:"application/vnd.github.inertia-preview+json"},method:"GET",params:{page:{type:"integer"},per_page:{type:"integer"},project_id:{required:true,type:"integer"}},url:"/projects/:project_id/columns"},listForOrg:{headers:{accept:"application/vnd.github.inertia-preview+json"},method:"GET",params:{org:{required:true,type:"string"},page:{type:"integer"},per_page:{type:"integer"},state:{enum:["open","closed","all"],type:"string"}},url:"/orgs/:org/projects"},listForRepo:{headers:{accept:"application/vnd.github.inertia-preview+json"},method:"GET",params:{owner:{required:true,type:"string"},page:{type:"integer"},per_page:{type:"integer"},repo:{required:true,type:"string"},state:{enum:["open","closed","all"],type:"string"}},url:"/repos/:owner/:repo/projects"},listForUser:{headers:{accept:"application/vnd.github.inertia-preview+json"},method:"GET",params:{page:{type:"integer"},per_page:{type:"integer"},state:{enum:["open","closed","all"],type:"string"},username:{required:true,type:"string"}},url:"/users/:username/projects"},moveCard:{headers:{accept:"application/vnd.github.inertia-preview+json"},method:"POST",params:{card_id:{required:true,type:"integer"},column_id:{type:"integer"},position:{required:true,type:"string",validation:"^(top|bottom|after:\\d+)$"}},url:"/projects/columns/cards/:card_id/moves"},moveColumn:{headers:{accept:"application/vnd.github.inertia-preview+json"},method:"POST",params:{column_id:{required:true,type:"integer"},position:{required:true,type:"string",validation:"^(first|last|after:\\d+)$"}},url:"/projects/columns/:column_id/moves"},removeCollaborator:{headers:{accept:"application/vnd.github.inertia-preview+json"},method:"DELETE",params:{project_id:{required:true,type:"integer"},username:{required:true,type:"string"}},url:"/projects/:project_id/collaborators/:username"},reviewUserPermissionLevel:{headers:{accept:"application/vnd.github.inertia-preview+json"},method:"GET",params:{project_id:{required:true,type:"integer"},username:{required:true,type:"string"}},url:"/projects/:project_id/collaborators/:username/permission"},update:{headers:{accept:"application/vnd.github.inertia-preview+json"},method:"PATCH",params:{body:{type:"string"},name:{type:"string"},organization_permission:{type:"string"},private:{type:"boolean"},project_id:{required:true,type:"integer"},state:{enum:["open","closed"],type:"string"}},url:"/projects/:project_id"},updateCard:{headers:{accept:"application/vnd.github.inertia-preview+json"},method:"PATCH",params:{archived:{type:"boolean"},card_id:{required:true,type:"integer"},note:{type:"string"}},url:"/projects/columns/cards/:card_id"},updateColumn:{headers:{accept:"application/vnd.github.inertia-preview+json"},method:"PATCH",params:{column_id:{required:true,type:"integer"},name:{required:true,type:"string"}},url:"/projects/columns/:column_id"}},pulls:{checkIfMerged:{method:"GET",params:{number:{alias:"pull_number",deprecated:true,type:"integer"},owner:{required:true,type:"string"},pull_number:{required:true,type:"integer"},repo:{required:true,type:"string"}},url:"/repos/:owner/:repo/pulls/:pull_number/merge"},create:{method:"POST",params:{base:{required:true,type:"string"},body:{type:"string"},draft:{type:"boolean"},head:{required:true,type:"string"},maintainer_can_modify:{type:"boolean"},owner:{required:true,type:"string"},repo:{required:true,type:"string"},title:{required:true,type:"string"}},url:"/repos/:owner/:repo/pulls"},createComment:{method:"POST",params:{body:{required:true,type:"string"},commit_id:{required:true,type:"string"},in_reply_to:{deprecated:true,description:"The comment ID to reply to. **Note**: This must be the ID of a top-level comment, not a reply to that comment. Replies to replies are not supported.",type:"integer"},line:{type:"integer"},number:{alias:"pull_number",deprecated:true,type:"integer"},owner:{required:true,type:"string"},path:{required:true,type:"string"},position:{type:"integer"},pull_number:{required:true,type:"integer"},repo:{required:true,type:"string"},side:{enum:["LEFT","RIGHT"],type:"string"},start_line:{type:"integer"},start_side:{enum:["LEFT","RIGHT","side"],type:"string"}},url:"/repos/:owner/:repo/pulls/:pull_number/comments"},createCommentReply:{deprecated:"octokit.pulls.createCommentReply() has been renamed to octokit.pulls.createComment() (2019-09-09)",method:"POST",params:{body:{required:true,type:"string"},commit_id:{required:true,type:"string"},in_reply_to:{deprecated:true,description:"The comment ID to reply to. **Note**: This must be the ID of a top-level comment, not a reply to that comment. Replies to replies are not supported.",type:"integer"},line:{type:"integer"},number:{alias:"pull_number",deprecated:true,type:"integer"},owner:{required:true,type:"string"},path:{required:true,type:"string"},position:{type:"integer"},pull_number:{required:true,type:"integer"},repo:{required:true,type:"string"},side:{enum:["LEFT","RIGHT"],type:"string"},start_line:{type:"integer"},start_side:{enum:["LEFT","RIGHT","side"],type:"string"}},url:"/repos/:owner/:repo/pulls/:pull_number/comments"},createFromIssue:{deprecated:"octokit.pulls.createFromIssue() is deprecated, see https://developer.github.com/v3/pulls/#create-a-pull-request",method:"POST",params:{base:{required:true,type:"string"},draft:{type:"boolean"},head:{required:true,type:"string"},issue:{required:true,type:"integer"},maintainer_can_modify:{type:"boolean"},owner:{required:true,type:"string"},repo:{required:true,type:"string"}},url:"/repos/:owner/:repo/pulls"},createReview:{method:"POST",params:{body:{type:"string"},comments:{type:"object[]"},"comments[].body":{required:true,type:"string"},"comments[].path":{required:true,type:"string"},"comments[].position":{required:true,type:"integer"},commit_id:{type:"string"},event:{enum:["APPROVE","REQUEST_CHANGES","COMMENT"],type:"string"},number:{alias:"pull_number",deprecated:true,type:"integer"},owner:{required:true,type:"string"},pull_number:{required:true,type:"integer"},repo:{required:true,type:"string"}},url:"/repos/:owner/:repo/pulls/:pull_number/reviews"},createReviewCommentReply:{method:"POST",params:{body:{required:true,type:"string"},comment_id:{required:true,type:"integer"},owner:{required:true,type:"string"},pull_number:{required:true,type:"integer"},repo:{required:true,type:"string"}},url:"/repos/:owner/:repo/pulls/:pull_number/comments/:comment_id/replies"},createReviewRequest:{method:"POST",params:{number:{alias:"pull_number",deprecated:true,type:"integer"},owner:{required:true,type:"string"},pull_number:{required:true,type:"integer"},repo:{required:true,type:"string"},reviewers:{type:"string[]"},team_reviewers:{type:"string[]"}},url:"/repos/:owner/:repo/pulls/:pull_number/requested_reviewers"},deleteComment:{method:"DELETE",params:{comment_id:{required:true,type:"integer"},owner:{required:true,type:"string"},repo:{required:true,type:"string"}},url:"/repos/:owner/:repo/pulls/comments/:comment_id"},deletePendingReview:{method:"DELETE",params:{number:{alias:"pull_number",deprecated:true,type:"integer"},owner:{required:true,type:"string"},pull_number:{required:true,type:"integer"},repo:{required:true,type:"string"},review_id:{required:true,type:"integer"}},url:"/repos/:owner/:repo/pulls/:pull_number/reviews/:review_id"},deleteReviewRequest:{method:"DELETE",params:{number:{alias:"pull_number",deprecated:true,type:"integer"},owner:{required:true,type:"string"},pull_number:{required:true,type:"integer"},repo:{required:true,type:"string"},reviewers:{type:"string[]"},team_reviewers:{type:"string[]"}},url:"/repos/:owner/:repo/pulls/:pull_number/requested_reviewers"},dismissReview:{method:"PUT",params:{message:{required:true,type:"string"},number:{alias:"pull_number",deprecated:true,type:"integer"},owner:{required:true,type:"string"},pull_number:{required:true,type:"integer"},repo:{required:true,type:"string"},review_id:{required:true,type:"integer"}},url:"/repos/:owner/:repo/pulls/:pull_number/reviews/:review_id/dismissals"},get:{method:"GET",params:{number:{alias:"pull_number",deprecated:true,type:"integer"},owner:{required:true,type:"string"},pull_number:{required:true,type:"integer"},repo:{required:true,type:"string"}},url:"/repos/:owner/:repo/pulls/:pull_number"},getComment:{method:"GET",params:{comment_id:{required:true,type:"integer"},owner:{required:true,type:"string"},repo:{required:true,type:"string"}},url:"/repos/:owner/:repo/pulls/comments/:comment_id"},getCommentsForReview:{method:"GET",params:{number:{alias:"pull_number",deprecated:true,type:"integer"},owner:{required:true,type:"string"},page:{type:"integer"},per_page:{type:"integer"},pull_number:{required:true,type:"integer"},repo:{required:true,type:"string"},review_id:{required:true,type:"integer"}},url:"/repos/:owner/:repo/pulls/:pull_number/reviews/:review_id/comments"},getReview:{method:"GET",params:{number:{alias:"pull_number",deprecated:true,type:"integer"},owner:{required:true,type:"string"},pull_number:{required:true,type:"integer"},repo:{required:true,type:"string"},review_id:{required:true,type:"integer"}},url:"/repos/:owner/:repo/pulls/:pull_number/reviews/:review_id"},list:{method:"GET",params:{base:{type:"string"},direction:{enum:["asc","desc"],type:"string"},head:{type:"string"},owner:{required:true,type:"string"},page:{type:"integer"},per_page:{type:"integer"},repo:{required:true,type:"string"},sort:{enum:["created","updated","popularity","long-running"],type:"string"},state:{enum:["open","closed","all"],type:"string"}},url:"/repos/:owner/:repo/pulls"},listComments:{method:"GET",params:{direction:{enum:["asc","desc"],type:"string"},number:{alias:"pull_number",deprecated:true,type:"integer"},owner:{required:true,type:"string"},page:{type:"integer"},per_page:{type:"integer"},pull_number:{required:true,type:"integer"},repo:{required:true,type:"string"},since:{type:"string"},sort:{enum:["created","updated"],type:"string"}},url:"/repos/:owner/:repo/pulls/:pull_number/comments"},listCommentsForRepo:{method:"GET",params:{direction:{enum:["asc","desc"],type:"string"},owner:{required:true,type:"string"},page:{type:"integer"},per_page:{type:"integer"},repo:{required:true,type:"string"},since:{type:"string"},sort:{enum:["created","updated"],type:"string"}},url:"/repos/:owner/:repo/pulls/comments"},listCommits:{method:"GET",params:{number:{alias:"pull_number",deprecated:true,type:"integer"},owner:{required:true,type:"string"},page:{type:"integer"},per_page:{type:"integer"},pull_number:{required:true,type:"integer"},repo:{required:true,type:"string"}},url:"/repos/:owner/:repo/pulls/:pull_number/commits"},listFiles:{method:"GET",params:{number:{alias:"pull_number",deprecated:true,type:"integer"},owner:{required:true,type:"string"},page:{type:"integer"},per_page:{type:"integer"},pull_number:{required:true,type:"integer"},repo:{required:true,type:"string"}},url:"/repos/:owner/:repo/pulls/:pull_number/files"},listReviewRequests:{method:"GET",params:{number:{alias:"pull_number",deprecated:true,type:"integer"},owner:{required:true,type:"string"},page:{type:"integer"},per_page:{type:"integer"},pull_number:{required:true,type:"integer"},repo:{required:true,type:"string"}},url:"/repos/:owner/:repo/pulls/:pull_number/requested_reviewers"},listReviews:{method:"GET",params:{number:{alias:"pull_number",deprecated:true,type:"integer"},owner:{required:true,type:"string"},page:{type:"integer"},per_page:{type:"integer"},pull_number:{required:true,type:"integer"},repo:{required:true,type:"string"}},url:"/repos/:owner/:repo/pulls/:pull_number/reviews"},merge:{method:"PUT",params:{commit_message:{type:"string"},commit_title:{type:"string"},merge_method:{enum:["merge","squash","rebase"],type:"string"},number:{alias:"pull_number",deprecated:true,type:"integer"},owner:{required:true,type:"string"},pull_number:{required:true,type:"integer"},repo:{required:true,type:"string"},sha:{type:"string"}},url:"/repos/:owner/:repo/pulls/:pull_number/merge"},submitReview:{method:"POST",params:{body:{type:"string"},event:{enum:["APPROVE","REQUEST_CHANGES","COMMENT"],required:true,type:"string"},number:{alias:"pull_number",deprecated:true,type:"integer"},owner:{required:true,type:"string"},pull_number:{required:true,type:"integer"},repo:{required:true,type:"string"},review_id:{required:true,type:"integer"}},url:"/repos/:owner/:repo/pulls/:pull_number/reviews/:review_id/events"},update:{method:"PATCH",params:{base:{type:"string"},body:{type:"string"},maintainer_can_modify:{type:"boolean"},number:{alias:"pull_number",deprecated:true,type:"integer"},owner:{required:true,type:"string"},pull_number:{required:true,type:"integer"},repo:{required:true,type:"string"},state:{enum:["open","closed"],type:"string"},title:{type:"string"}},url:"/repos/:owner/:repo/pulls/:pull_number"},updateBranch:{headers:{accept:"application/vnd.github.lydian-preview+json"},method:"PUT",params:{expected_head_sha:{type:"string"},owner:{required:true,type:"string"},pull_number:{required:true,type:"integer"},repo:{required:true,type:"string"}},url:"/repos/:owner/:repo/pulls/:pull_number/update-branch"},updateComment:{method:"PATCH",params:{body:{required:true,type:"string"},comment_id:{required:true,type:"integer"},owner:{required:true,type:"string"},repo:{required:true,type:"string"}},url:"/repos/:owner/:repo/pulls/comments/:comment_id"},updateReview:{method:"PUT",params:{body:{required:true,type:"string"},number:{alias:"pull_number",deprecated:true,type:"integer"},owner:{required:true,type:"string"},pull_number:{required:true,type:"integer"},repo:{required:true,type:"string"},review_id:{required:true,type:"integer"}},url:"/repos/:owner/:repo/pulls/:pull_number/reviews/:review_id"}},rateLimit:{get:{method:"GET",params:{},url:"/rate_limit"}},reactions:{createForCommitComment:{headers:{accept:"application/vnd.github.squirrel-girl-preview+json"},method:"POST",params:{comment_id:{required:true,type:"integer"},content:{enum:["+1","-1","laugh","confused","heart","hooray","rocket","eyes"],required:true,type:"string"},owner:{required:true,type:"string"},repo:{required:true,type:"string"}},url:"/repos/:owner/:repo/comments/:comment_id/reactions"},createForIssue:{headers:{accept:"application/vnd.github.squirrel-girl-preview+json"},method:"POST",params:{content:{enum:["+1","-1","laugh","confused","heart","hooray","rocket","eyes"],required:true,type:"string"},issue_number:{required:true,type:"integer"},number:{alias:"issue_number",deprecated:true,type:"integer"},owner:{required:true,type:"string"},repo:{required:true,type:"string"}},url:"/repos/:owner/:repo/issues/:issue_number/reactions"},createForIssueComment:{headers:{accept:"application/vnd.github.squirrel-girl-preview+json"},method:"POST",params:{comment_id:{required:true,type:"integer"},content:{enum:["+1","-1","laugh","confused","heart","hooray","rocket","eyes"],required:true,type:"string"},owner:{required:true,type:"string"},repo:{required:true,type:"string"}},url:"/repos/:owner/:repo/issues/comments/:comment_id/reactions"},createForPullRequestReviewComment:{headers:{accept:"application/vnd.github.squirrel-girl-preview+json"},method:"POST",params:{comment_id:{required:true,type:"integer"},content:{enum:["+1","-1","laugh","confused","heart","hooray","rocket","eyes"],required:true,type:"string"},owner:{required:true,type:"string"},repo:{required:true,type:"string"}},url:"/repos/:owner/:repo/pulls/comments/:comment_id/reactions"},createForTeamDiscussion:{headers:{accept:"application/vnd.github.echo-preview+json,application/vnd.github.squirrel-girl-preview+json"},method:"POST",params:{content:{enum:["+1","-1","laugh","confused","heart","hooray","rocket","eyes"],required:true,type:"string"},discussion_number:{required:true,type:"integer"},team_id:{required:true,type:"integer"}},url:"/teams/:team_id/discussions/:discussion_number/reactions"},createForTeamDiscussionComment:{headers:{accept:"application/vnd.github.echo-preview+json,application/vnd.github.squirrel-girl-preview+json"},method:"POST",params:{comment_number:{required:true,type:"integer"},content:{enum:["+1","-1","laugh","confused","heart","hooray","rocket","eyes"],required:true,type:"string"},discussion_number:{required:true,type:"integer"},team_id:{required:true,type:"integer"}},url:"/teams/:team_id/discussions/:discussion_number/comments/:comment_number/reactions"},delete:{headers:{accept:"application/vnd.github.echo-preview+json,application/vnd.github.squirrel-girl-preview+json"},method:"DELETE",params:{reaction_id:{required:true,type:"integer"}},url:"/reactions/:reaction_id"},listForCommitComment:{headers:{accept:"application/vnd.github.squirrel-girl-preview+json"},method:"GET",params:{comment_id:{required:true,type:"integer"},content:{enum:["+1","-1","laugh","confused","heart","hooray","rocket","eyes"],type:"string"},owner:{required:true,type:"string"},page:{type:"integer"},per_page:{type:"integer"},repo:{required:true,type:"string"}},url:"/repos/:owner/:repo/comments/:comment_id/reactions"},listForIssue:{headers:{accept:"application/vnd.github.squirrel-girl-preview+json"},method:"GET",params:{content:{enum:["+1","-1","laugh","confused","heart","hooray","rocket","eyes"],type:"string"},issue_number:{required:true,type:"integer"},number:{alias:"issue_number",deprecated:true,type:"integer"},owner:{required:true,type:"string"},page:{type:"integer"},per_page:{type:"integer"},repo:{required:true,type:"string"}},url:"/repos/:owner/:repo/issues/:issue_number/reactions"},listForIssueComment:{headers:{accept:"application/vnd.github.squirrel-girl-preview+json"},method:"GET",params:{comment_id:{required:true,type:"integer"},content:{enum:["+1","-1","laugh","confused","heart","hooray","rocket","eyes"],type:"string"},owner:{required:true,type:"string"},page:{type:"integer"},per_page:{type:"integer"},repo:{required:true,type:"string"}},url:"/repos/:owner/:repo/issues/comments/:comment_id/reactions"},listForPullRequestReviewComment:{headers:{accept:"application/vnd.github.squirrel-girl-preview+json"},method:"GET",params:{comment_id:{required:true,type:"integer"},content:{enum:["+1","-1","laugh","confused","heart","hooray","rocket","eyes"],type:"string"},owner:{required:true,type:"string"},page:{type:"integer"},per_page:{type:"integer"},repo:{required:true,type:"string"}},url:"/repos/:owner/:repo/pulls/comments/:comment_id/reactions"},listForTeamDiscussion:{headers:{accept:"application/vnd.github.echo-preview+json,application/vnd.github.squirrel-girl-preview+json"},method:"GET",params:{content:{enum:["+1","-1","laugh","confused","heart","hooray","rocket","eyes"],type:"string"},discussion_number:{required:true,type:"integer"},page:{type:"integer"},per_page:{type:"integer"},team_id:{required:true,type:"integer"}},url:"/teams/:team_id/discussions/:discussion_number/reactions"},listForTeamDiscussionComment:{headers:{accept:"application/vnd.github.echo-preview+json,application/vnd.github.squirrel-girl-preview+json"},method:"GET",params:{comment_number:{required:true,type:"integer"},content:{enum:["+1","-1","laugh","confused","heart","hooray","rocket","eyes"],type:"string"},discussion_number:{required:true,type:"integer"},page:{type:"integer"},per_page:{type:"integer"},team_id:{required:true,type:"integer"}},url:"/teams/:team_id/discussions/:discussion_number/comments/:comment_number/reactions"}},repos:{acceptInvitation:{method:"PATCH",params:{invitation_id:{required:true,type:"integer"}},url:"/user/repository_invitations/:invitation_id"},addCollaborator:{method:"PUT",params:{owner:{required:true,type:"string"},permission:{enum:["pull","push","admin"],type:"string"},repo:{required:true,type:"string"},username:{required:true,type:"string"}},url:"/repos/:owner/:repo/collaborators/:username"},addDeployKey:{method:"POST",params:{key:{required:true,type:"string"},owner:{required:true,type:"string"},read_only:{type:"boolean"},repo:{required:true,type:"string"},title:{type:"string"}},url:"/repos/:owner/:repo/keys"},addProtectedBranchAdminEnforcement:{method:"POST",params:{branch:{required:true,type:"string"},owner:{required:true,type:"string"},repo:{required:true,type:"string"}},url:"/repos/:owner/:repo/branches/:branch/protection/enforce_admins"},addProtectedBranchAppRestrictions:{method:"POST",params:{apps:{mapTo:"data",required:true,type:"string[]"},branch:{required:true,type:"string"},owner:{required:true,type:"string"},repo:{required:true,type:"string"}},url:"/repos/:owner/:repo/branches/:branch/protection/restrictions/apps"},addProtectedBranchRequiredSignatures:{headers:{accept:"application/vnd.github.zzzax-preview+json"},method:"POST",params:{branch:{required:true,type:"string"},owner:{required:true,type:"string"},repo:{required:true,type:"string"}},url:"/repos/:owner/:repo/branches/:branch/protection/required_signatures"},addProtectedBranchRequiredStatusChecksContexts:{method:"POST",params:{branch:{required:true,type:"string"},contexts:{mapTo:"data",required:true,type:"string[]"},owner:{required:true,type:"string"},repo:{required:true,type:"string"}},url:"/repos/:owner/:repo/branches/:branch/protection/required_status_checks/contexts"},addProtectedBranchTeamRestrictions:{method:"POST",params:{branch:{required:true,type:"string"},owner:{required:true,type:"string"},repo:{required:true,type:"string"},teams:{mapTo:"data",required:true,type:"string[]"}},url:"/repos/:owner/:repo/branches/:branch/protection/restrictions/teams"},addProtectedBranchUserRestrictions:{method:"POST",params:{branch:{required:true,type:"string"},owner:{required:true,type:"string"},repo:{required:true,type:"string"},users:{mapTo:"data",required:true,type:"string[]"}},url:"/repos/:owner/:repo/branches/:branch/protection/restrictions/users"},checkCollaborator:{method:"GET",params:{owner:{required:true,type:"string"},repo:{required:true,type:"string"},username:{required:true,type:"string"}},url:"/repos/:owner/:repo/collaborators/:username"},checkVulnerabilityAlerts:{headers:{accept:"application/vnd.github.dorian-preview+json"},method:"GET",params:{owner:{required:true,type:"string"},repo:{required:true,type:"string"}},url:"/repos/:owner/:repo/vulnerability-alerts"},compareCommits:{method:"GET",params:{base:{required:true,type:"string"},head:{required:true,type:"string"},owner:{required:true,type:"string"},repo:{required:true,type:"string"}},url:"/repos/:owner/:repo/compare/:base...:head"},createCommitComment:{method:"POST",params:{body:{required:true,type:"string"},commit_sha:{required:true,type:"string"},line:{type:"integer"},owner:{required:true,type:"string"},path:{type:"string"},position:{type:"integer"},repo:{required:true,type:"string"},sha:{alias:"commit_sha",deprecated:true,type:"string"}},url:"/repos/:owner/:repo/commits/:commit_sha/comments"},createDeployment:{method:"POST",params:{auto_merge:{type:"boolean"},description:{type:"string"},environment:{type:"string"},owner:{required:true,type:"string"},payload:{type:"string"},production_environment:{type:"boolean"},ref:{required:true,type:"string"},repo:{required:true,type:"string"},required_contexts:{type:"string[]"},task:{type:"string"},transient_environment:{type:"boolean"}},url:"/repos/:owner/:repo/deployments"},createDeploymentStatus:{method:"POST",params:{auto_inactive:{type:"boolean"},deployment_id:{required:true,type:"integer"},description:{type:"string"},environment:{enum:["production","staging","qa"],type:"string"},environment_url:{type:"string"},log_url:{type:"string"},owner:{required:true,type:"string"},repo:{required:true,type:"string"},state:{enum:["error","failure","inactive","in_progress","queued","pending","success"],required:true,type:"string"},target_url:{type:"string"}},url:"/repos/:owner/:repo/deployments/:deployment_id/statuses"},createDispatchEvent:{headers:{accept:"application/vnd.github.everest-preview+json"},method:"POST",params:{client_payload:{type:"object"},event_type:{type:"string"},owner:{required:true,type:"string"},repo:{required:true,type:"string"}},url:"/repos/:owner/:repo/dispatches"},createFile:{deprecated:"octokit.repos.createFile() has been renamed to octokit.repos.createOrUpdateFile() (2019-06-07)",method:"PUT",params:{author:{type:"object"},"author.email":{required:true,type:"string"},"author.name":{required:true,type:"string"},branch:{type:"string"},committer:{type:"object"},"committer.email":{required:true,type:"string"},"committer.name":{required:true,type:"string"},content:{required:true,type:"string"},message:{required:true,type:"string"},owner:{required:true,type:"string"},path:{required:true,type:"string"},repo:{required:true,type:"string"},sha:{type:"string"}},url:"/repos/:owner/:repo/contents/:path"},createForAuthenticatedUser:{method:"POST",params:{allow_merge_commit:{type:"boolean"},allow_rebase_merge:{type:"boolean"},allow_squash_merge:{type:"boolean"},auto_init:{type:"boolean"},description:{type:"string"},gitignore_template:{type:"string"},has_issues:{type:"boolean"},has_projects:{type:"boolean"},has_wiki:{type:"boolean"},homepage:{type:"string"},is_template:{type:"boolean"},license_template:{type:"string"},name:{required:true,type:"string"},private:{type:"boolean"},team_id:{type:"integer"}},url:"/user/repos"},createFork:{method:"POST",params:{organization:{type:"string"},owner:{required:true,type:"string"},repo:{required:true,type:"string"}},url:"/repos/:owner/:repo/forks"},createHook:{method:"POST",params:{active:{type:"boolean"},config:{required:true,type:"object"},"config.content_type":{type:"string"},"config.insecure_ssl":{type:"string"},"config.secret":{type:"string"},"config.url":{required:true,type:"string"},events:{type:"string[]"},name:{type:"string"},owner:{required:true,type:"string"},repo:{required:true,type:"string"}},url:"/repos/:owner/:repo/hooks"},createInOrg:{method:"POST",params:{allow_merge_commit:{type:"boolean"},allow_rebase_merge:{type:"boolean"},allow_squash_merge:{type:"boolean"},auto_init:{type:"boolean"},description:{type:"string"},gitignore_template:{type:"string"},has_issues:{type:"boolean"},has_projects:{type:"boolean"},has_wiki:{type:"boolean"},homepage:{type:"string"},is_template:{type:"boolean"},license_template:{type:"string"},name:{required:true,type:"string"},org:{required:true,type:"string"},private:{type:"boolean"},team_id:{type:"integer"}},url:"/orgs/:org/repos"},createOrUpdateFile:{method:"PUT",params:{author:{type:"object"},"author.email":{required:true,type:"string"},"author.name":{required:true,type:"string"},branch:{type:"string"},committer:{type:"object"},"committer.email":{required:true,type:"string"},"committer.name":{required:true,type:"string"},content:{required:true,type:"string"},message:{required:true,type:"string"},owner:{required:true,type:"string"},path:{required:true,type:"string"},repo:{required:true,type:"string"},sha:{type:"string"}},url:"/repos/:owner/:repo/contents/:path"},createRelease:{method:"POST",params:{body:{type:"string"},draft:{type:"boolean"},name:{type:"string"},owner:{required:true,type:"string"},prerelease:{type:"boolean"},repo:{required:true,type:"string"},tag_name:{required:true,type:"string"},target_commitish:{type:"string"}},url:"/repos/:owner/:repo/releases"},createStatus:{method:"POST",params:{context:{type:"string"},description:{type:"string"},owner:{required:true,type:"string"},repo:{required:true,type:"string"},sha:{required:true,type:"string"},state:{enum:["error","failure","pending","success"],required:true,type:"string"},target_url:{type:"string"}},url:"/repos/:owner/:repo/statuses/:sha"},createUsingTemplate:{headers:{accept:"application/vnd.github.baptiste-preview+json"},method:"POST",params:{description:{type:"string"},name:{required:true,type:"string"},owner:{type:"string"},private:{type:"boolean"},template_owner:{required:true,type:"string"},template_repo:{required:true,type:"string"}},url:"/repos/:template_owner/:template_repo/generate"},declineInvitation:{method:"DELETE",params:{invitation_id:{required:true,type:"integer"}},url:"/user/repository_invitations/:invitation_id"},delete:{method:"DELETE",params:{owner:{required:true,type:"string"},repo:{required:true,type:"string"}},url:"/repos/:owner/:repo"},deleteCommitComment:{method:"DELETE",params:{comment_id:{required:true,type:"integer"},owner:{required:true,type:"string"},repo:{required:true,type:"string"}},url:"/repos/:owner/:repo/comments/:comment_id"},deleteDownload:{method:"DELETE",params:{download_id:{required:true,type:"integer"},owner:{required:true,type:"string"},repo:{required:true,type:"string"}},url:"/repos/:owner/:repo/downloads/:download_id"},deleteFile:{method:"DELETE",params:{author:{type:"object"},"author.email":{type:"string"},"author.name":{type:"string"},branch:{type:"string"},committer:{type:"object"},"committer.email":{type:"string"},"committer.name":{type:"string"},message:{required:true,type:"string"},owner:{required:true,type:"string"},path:{required:true,type:"string"},repo:{required:true,type:"string"},sha:{required:true,type:"string"}},url:"/repos/:owner/:repo/contents/:path"},deleteHook:{method:"DELETE",params:{hook_id:{required:true,type:"integer"},owner:{required:true,type:"string"},repo:{required:true,type:"string"}},url:"/repos/:owner/:repo/hooks/:hook_id"},deleteInvitation:{method:"DELETE",params:{invitation_id:{required:true,type:"integer"},owner:{required:true,type:"string"},repo:{required:true,type:"string"}},url:"/repos/:owner/:repo/invitations/:invitation_id"},deleteRelease:{method:"DELETE",params:{owner:{required:true,type:"string"},release_id:{required:true,type:"integer"},repo:{required:true,type:"string"}},url:"/repos/:owner/:repo/releases/:release_id"},deleteReleaseAsset:{method:"DELETE",params:{asset_id:{required:true,type:"integer"},owner:{required:true,type:"string"},repo:{required:true,type:"string"}},url:"/repos/:owner/:repo/releases/assets/:asset_id"},disableAutomatedSecurityFixes:{headers:{accept:"application/vnd.github.london-preview+json"},method:"DELETE",params:{owner:{required:true,type:"string"},repo:{required:true,type:"string"}},url:"/repos/:owner/:repo/automated-security-fixes"},disablePagesSite:{headers:{accept:"application/vnd.github.switcheroo-preview+json"},method:"DELETE",params:{owner:{required:true,type:"string"},repo:{required:true,type:"string"}},url:"/repos/:owner/:repo/pages"},disableVulnerabilityAlerts:{headers:{accept:"application/vnd.github.dorian-preview+json"},method:"DELETE",params:{owner:{required:true,type:"string"},repo:{required:true,type:"string"}},url:"/repos/:owner/:repo/vulnerability-alerts"},enableAutomatedSecurityFixes:{headers:{accept:"application/vnd.github.london-preview+json"},method:"PUT",params:{owner:{required:true,type:"string"},repo:{required:true,type:"string"}},url:"/repos/:owner/:repo/automated-security-fixes"},enablePagesSite:{headers:{accept:"application/vnd.github.switcheroo-preview+json"},method:"POST",params:{owner:{required:true,type:"string"},repo:{required:true,type:"string"},source:{type:"object"},"source.branch":{enum:["master","gh-pages"],type:"string"},"source.path":{type:"string"}},url:"/repos/:owner/:repo/pages"},enableVulnerabilityAlerts:{headers:{accept:"application/vnd.github.dorian-preview+json"},method:"PUT",params:{owner:{required:true,type:"string"},repo:{required:true,type:"string"}},url:"/repos/:owner/:repo/vulnerability-alerts"},get:{method:"GET",params:{owner:{required:true,type:"string"},repo:{required:true,type:"string"}},url:"/repos/:owner/:repo"},getAppsWithAccessToProtectedBranch:{method:"GET",params:{branch:{required:true,type:"string"},owner:{required:true,type:"string"},repo:{required:true,type:"string"}},url:"/repos/:owner/:repo/branches/:branch/protection/restrictions/apps"},getArchiveLink:{method:"GET",params:{archive_format:{required:true,type:"string"},owner:{required:true,type:"string"},ref:{required:true,type:"string"},repo:{required:true,type:"string"}},url:"/repos/:owner/:repo/:archive_format/:ref"},getBranch:{method:"GET",params:{branch:{required:true,type:"string"},owner:{required:true,type:"string"},repo:{required:true,type:"string"}},url:"/repos/:owner/:repo/branches/:branch"},getBranchProtection:{method:"GET",params:{branch:{required:true,type:"string"},owner:{required:true,type:"string"},repo:{required:true,type:"string"}},url:"/repos/:owner/:repo/branches/:branch/protection"},getClones:{method:"GET",params:{owner:{required:true,type:"string"},per:{enum:["day","week"],type:"string"},repo:{required:true,type:"string"}},url:"/repos/:owner/:repo/traffic/clones"},getCodeFrequencyStats:{method:"GET",params:{owner:{required:true,type:"string"},repo:{required:true,type:"string"}},url:"/repos/:owner/:repo/stats/code_frequency"},getCollaboratorPermissionLevel:{method:"GET",params:{owner:{required:true,type:"string"},repo:{required:true,type:"string"},username:{required:true,type:"string"}},url:"/repos/:owner/:repo/collaborators/:username/permission"},getCombinedStatusForRef:{method:"GET",params:{owner:{required:true,type:"string"},ref:{required:true,type:"string"},repo:{required:true,type:"string"}},url:"/repos/:owner/:repo/commits/:ref/status"},getCommit:{method:"GET",params:{commit_sha:{alias:"ref",deprecated:true,type:"string"},owner:{required:true,type:"string"},ref:{required:true,type:"string"},repo:{required:true,type:"string"},sha:{alias:"ref",deprecated:true,type:"string"}},url:"/repos/:owner/:repo/commits/:ref"},getCommitActivityStats:{method:"GET",params:{owner:{required:true,type:"string"},repo:{required:true,type:"string"}},url:"/repos/:owner/:repo/stats/commit_activity"},getCommitComment:{method:"GET",params:{comment_id:{required:true,type:"integer"},owner:{required:true,type:"string"},repo:{required:true,type:"string"}},url:"/repos/:owner/:repo/comments/:comment_id"},getCommitRefSha:{deprecated:"octokit.repos.getCommitRefSha() is deprecated, see https://developer.github.com/v3/repos/commits/#get-a-single-commit",headers:{accept:"application/vnd.github.v3.sha"},method:"GET",params:{owner:{required:true,type:"string"},ref:{required:true,type:"string"},repo:{required:true,type:"string"}},url:"/repos/:owner/:repo/commits/:ref"},getContents:{method:"GET",params:{owner:{required:true,type:"string"},path:{required:true,type:"string"},ref:{type:"string"},repo:{required:true,type:"string"}},url:"/repos/:owner/:repo/contents/:path"},getContributorsStats:{method:"GET",params:{owner:{required:true,type:"string"},repo:{required:true,type:"string"}},url:"/repos/:owner/:repo/stats/contributors"},getDeployKey:{method:"GET",params:{key_id:{required:true,type:"integer"},owner:{required:true,type:"string"},repo:{required:true,type:"string"}},url:"/repos/:owner/:repo/keys/:key_id"},getDeployment:{method:"GET",params:{deployment_id:{required:true,type:"integer"},owner:{required:true,type:"string"},repo:{required:true,type:"string"}},url:"/repos/:owner/:repo/deployments/:deployment_id"},getDeploymentStatus:{method:"GET",params:{deployment_id:{required:true,type:"integer"},owner:{required:true,type:"string"},repo:{required:true,type:"string"},status_id:{required:true,type:"integer"}},url:"/repos/:owner/:repo/deployments/:deployment_id/statuses/:status_id"},getDownload:{method:"GET",params:{download_id:{required:true,type:"integer"},owner:{required:true,type:"string"},repo:{required:true,type:"string"}},url:"/repos/:owner/:repo/downloads/:download_id"},getHook:{method:"GET",params:{hook_id:{required:true,type:"integer"},owner:{required:true,type:"string"},repo:{required:true,type:"string"}},url:"/repos/:owner/:repo/hooks/:hook_id"},getLatestPagesBuild:{method:"GET",params:{owner:{required:true,type:"string"},repo:{required:true,type:"string"}},url:"/repos/:owner/:repo/pages/builds/latest"},getLatestRelease:{method:"GET",params:{owner:{required:true,type:"string"},repo:{required:true,type:"string"}},url:"/repos/:owner/:repo/releases/latest"},getPages:{method:"GET",params:{owner:{required:true,type:"string"},repo:{required:true,type:"string"}},url:"/repos/:owner/:repo/pages"},getPagesBuild:{method:"GET",params:{build_id:{required:true,type:"integer"},owner:{required:true,type:"string"},repo:{required:true,type:"string"}},url:"/repos/:owner/:repo/pages/builds/:build_id"},getParticipationStats:{method:"GET",params:{owner:{required:true,type:"string"},repo:{required:true,type:"string"}},url:"/repos/:owner/:repo/stats/participation"},getProtectedBranchAdminEnforcement:{method:"GET",params:{branch:{required:true,type:"string"},owner:{required:true,type:"string"},repo:{required:true,type:"string"}},url:"/repos/:owner/:repo/branches/:branch/protection/enforce_admins"},getProtectedBranchPullRequestReviewEnforcement:{method:"GET",params:{branch:{required:true,type:"string"},owner:{required:true,type:"string"},repo:{required:true,type:"string"}},url:"/repos/:owner/:repo/branches/:branch/protection/required_pull_request_reviews"},getProtectedBranchRequiredSignatures:{headers:{accept:"application/vnd.github.zzzax-preview+json"},method:"GET",params:{branch:{required:true,type:"string"},owner:{required:true,type:"string"},repo:{required:true,type:"string"}},url:"/repos/:owner/:repo/branches/:branch/protection/required_signatures"},getProtectedBranchRequiredStatusChecks:{method:"GET",params:{branch:{required:true,type:"string"},owner:{required:true,type:"string"},repo:{required:true,type:"string"}},url:"/repos/:owner/:repo/branches/:branch/protection/required_status_checks"},getProtectedBranchRestrictions:{method:"GET",params:{branch:{required:true,type:"string"},owner:{required:true,type:"string"},repo:{required:true,type:"string"}},url:"/repos/:owner/:repo/branches/:branch/protection/restrictions"},getPunchCardStats:{method:"GET",params:{owner:{required:true,type:"string"},repo:{required:true,type:"string"}},url:"/repos/:owner/:repo/stats/punch_card"},getReadme:{method:"GET",params:{owner:{required:true,type:"string"},ref:{type:"string"},repo:{required:true,type:"string"}},url:"/repos/:owner/:repo/readme"},getRelease:{method:"GET",params:{owner:{required:true,type:"string"},release_id:{required:true,type:"integer"},repo:{required:true,type:"string"}},url:"/repos/:owner/:repo/releases/:release_id"},getReleaseAsset:{method:"GET",params:{asset_id:{required:true,type:"integer"},owner:{required:true,type:"string"},repo:{required:true,type:"string"}},url:"/repos/:owner/:repo/releases/assets/:asset_id"},getReleaseByTag:{method:"GET",params:{owner:{required:true,type:"string"},repo:{required:true,type:"string"},tag:{required:true,type:"string"}},url:"/repos/:owner/:repo/releases/tags/:tag"},getTeamsWithAccessToProtectedBranch:{method:"GET",params:{branch:{required:true,type:"string"},owner:{required:true,type:"string"},repo:{required:true,type:"string"}},url:"/repos/:owner/:repo/branches/:branch/protection/restrictions/teams"},getTopPaths:{method:"GET",params:{owner:{required:true,type:"string"},repo:{required:true,type:"string"}},url:"/repos/:owner/:repo/traffic/popular/paths"},getTopReferrers:{method:"GET",params:{owner:{required:true,type:"string"},repo:{required:true,type:"string"}},url:"/repos/:owner/:repo/traffic/popular/referrers"},getUsersWithAccessToProtectedBranch:{method:"GET",params:{branch:{required:true,type:"string"},owner:{required:true,type:"string"},repo:{required:true,type:"string"}},url:"/repos/:owner/:repo/branches/:branch/protection/restrictions/users"},getViews:{method:"GET",params:{owner:{required:true,type:"string"},per:{enum:["day","week"],type:"string"},repo:{required:true,type:"string"}},url:"/repos/:owner/:repo/traffic/views"},list:{method:"GET",params:{affiliation:{type:"string"},direction:{enum:["asc","desc"],type:"string"},page:{type:"integer"},per_page:{type:"integer"},sort:{enum:["created","updated","pushed","full_name"],type:"string"},type:{enum:["all","owner","public","private","member"],type:"string"},visibility:{enum:["all","public","private"],type:"string"}},url:"/user/repos"},listAppsWithAccessToProtectedBranch:{deprecated:"octokit.repos.listAppsWithAccessToProtectedBranch() has been renamed to octokit.repos.getAppsWithAccessToProtectedBranch() (2019-09-13)",method:"GET",params:{branch:{required:true,type:"string"},owner:{required:true,type:"string"},repo:{required:true,type:"string"}},url:"/repos/:owner/:repo/branches/:branch/protection/restrictions/apps"},listAssetsForRelease:{method:"GET",params:{owner:{required:true,type:"string"},page:{type:"integer"},per_page:{type:"integer"},release_id:{required:true,type:"integer"},repo:{required:true,type:"string"}},url:"/repos/:owner/:repo/releases/:release_id/assets"},listBranches:{method:"GET",params:{owner:{required:true,type:"string"},page:{type:"integer"},per_page:{type:"integer"},protected:{type:"boolean"},repo:{required:true,type:"string"}},url:"/repos/:owner/:repo/branches"},listBranchesForHeadCommit:{headers:{accept:"application/vnd.github.groot-preview+json"},method:"GET",params:{commit_sha:{required:true,type:"string"},owner:{required:true,type:"string"},repo:{required:true,type:"string"}},url:"/repos/:owner/:repo/commits/:commit_sha/branches-where-head"},listCollaborators:{method:"GET",params:{affiliation:{enum:["outside","direct","all"],type:"string"},owner:{required:true,type:"string"},page:{type:"integer"},per_page:{type:"integer"},repo:{required:true,type:"string"}},url:"/repos/:owner/:repo/collaborators"},listCommentsForCommit:{method:"GET",params:{commit_sha:{required:true,type:"string"},owner:{required:true,type:"string"},page:{type:"integer"},per_page:{type:"integer"},ref:{alias:"commit_sha",deprecated:true,type:"string"},repo:{required:true,type:"string"}},url:"/repos/:owner/:repo/commits/:commit_sha/comments"},listCommitComments:{method:"GET",params:{owner:{required:true,type:"string"},page:{type:"integer"},per_page:{type:"integer"},repo:{required:true,type:"string"}},url:"/repos/:owner/:repo/comments"},listCommits:{method:"GET",params:{author:{type:"string"},owner:{required:true,type:"string"},page:{type:"integer"},path:{type:"string"},per_page:{type:"integer"},repo:{required:true,type:"string"},sha:{type:"string"},since:{type:"string"},until:{type:"string"}},url:"/repos/:owner/:repo/commits"},listContributors:{method:"GET",params:{anon:{type:"string"},owner:{required:true,type:"string"},page:{type:"integer"},per_page:{type:"integer"},repo:{required:true,type:"string"}},url:"/repos/:owner/:repo/contributors"},listDeployKeys:{method:"GET",params:{owner:{required:true,type:"string"},page:{type:"integer"},per_page:{type:"integer"},repo:{required:true,type:"string"}},url:"/repos/:owner/:repo/keys"},listDeploymentStatuses:{method:"GET",params:{deployment_id:{required:true,type:"integer"},owner:{required:true,type:"string"},page:{type:"integer"},per_page:{type:"integer"},repo:{required:true,type:"string"}},url:"/repos/:owner/:repo/deployments/:deployment_id/statuses"},listDeployments:{method:"GET",params:{environment:{type:"string"},owner:{required:true,type:"string"},page:{type:"integer"},per_page:{type:"integer"},ref:{type:"string"},repo:{required:true,type:"string"},sha:{type:"string"},task:{type:"string"}},url:"/repos/:owner/:repo/deployments"},listDownloads:{method:"GET",params:{owner:{required:true,type:"string"},page:{type:"integer"},per_page:{type:"integer"},repo:{required:true,type:"string"}},url:"/repos/:owner/:repo/downloads"},listForOrg:{method:"GET",params:{direction:{enum:["asc","desc"],type:"string"},org:{required:true,type:"string"},page:{type:"integer"},per_page:{type:"integer"},sort:{enum:["created","updated","pushed","full_name"],type:"string"},type:{enum:["all","public","private","forks","sources","member"],type:"string"}},url:"/orgs/:org/repos"},listForUser:{method:"GET",params:{direction:{enum:["asc","desc"],type:"string"},page:{type:"integer"},per_page:{type:"integer"},sort:{enum:["created","updated","pushed","full_name"],type:"string"},type:{enum:["all","owner","member"],type:"string"},username:{required:true,type:"string"}},url:"/users/:username/repos"},listForks:{method:"GET",params:{owner:{required:true,type:"string"},page:{type:"integer"},per_page:{type:"integer"},repo:{required:true,type:"string"},sort:{enum:["newest","oldest","stargazers"],type:"string"}},url:"/repos/:owner/:repo/forks"},listHooks:{method:"GET",params:{owner:{required:true,type:"string"},page:{type:"integer"},per_page:{type:"integer"},repo:{required:true,type:"string"}},url:"/repos/:owner/:repo/hooks"},listInvitations:{method:"GET",params:{owner:{required:true,type:"string"},page:{type:"integer"},per_page:{type:"integer"},repo:{required:true,type:"string"}},url:"/repos/:owner/:repo/invitations"},listInvitationsForAuthenticatedUser:{method:"GET",params:{page:{type:"integer"},per_page:{type:"integer"}},url:"/user/repository_invitations"},listLanguages:{method:"GET",params:{owner:{required:true,type:"string"},repo:{required:true,type:"string"}},url:"/repos/:owner/:repo/languages"},listPagesBuilds:{method:"GET",params:{owner:{required:true,type:"string"},page:{type:"integer"},per_page:{type:"integer"},repo:{required:true,type:"string"}},url:"/repos/:owner/:repo/pages/builds"},listProtectedBranchRequiredStatusChecksContexts:{method:"GET",params:{branch:{required:true,type:"string"},owner:{required:true,type:"string"},repo:{required:true,type:"string"}},url:"/repos/:owner/:repo/branches/:branch/protection/required_status_checks/contexts"},listProtectedBranchTeamRestrictions:{deprecated:"octokit.repos.listProtectedBranchTeamRestrictions() has been renamed to octokit.repos.getTeamsWithAccessToProtectedBranch() (2019-09-09)",method:"GET",params:{branch:{required:true,type:"string"},owner:{required:true,type:"string"},repo:{required:true,type:"string"}},url:"/repos/:owner/:repo/branches/:branch/protection/restrictions/teams"},listProtectedBranchUserRestrictions:{deprecated:"octokit.repos.listProtectedBranchUserRestrictions() has been renamed to octokit.repos.getUsersWithAccessToProtectedBranch() (2019-09-09)",method:"GET",params:{branch:{required:true,type:"string"},owner:{required:true,type:"string"},repo:{required:true,type:"string"}},url:"/repos/:owner/:repo/branches/:branch/protection/restrictions/users"},listPublic:{method:"GET",params:{page:{type:"integer"},per_page:{type:"integer"},since:{type:"string"}},url:"/repositories"},listPullRequestsAssociatedWithCommit:{headers:{accept:"application/vnd.github.groot-preview+json"},method:"GET",params:{commit_sha:{required:true,type:"string"},owner:{required:true,type:"string"},page:{type:"integer"},per_page:{type:"integer"},repo:{required:true,type:"string"}},url:"/repos/:owner/:repo/commits/:commit_sha/pulls"},listReleases:{method:"GET",params:{owner:{required:true,type:"string"},page:{type:"integer"},per_page:{type:"integer"},repo:{required:true,type:"string"}},url:"/repos/:owner/:repo/releases"},listStatusesForRef:{method:"GET",params:{owner:{required:true,type:"string"},page:{type:"integer"},per_page:{type:"integer"},ref:{required:true,type:"string"},repo:{required:true,type:"string"}},url:"/repos/:owner/:repo/commits/:ref/statuses"},listTags:{method:"GET",params:{owner:{required:true,type:"string"},page:{type:"integer"},per_page:{type:"integer"},repo:{required:true,type:"string"}},url:"/repos/:owner/:repo/tags"},listTeams:{method:"GET",params:{owner:{required:true,type:"string"},page:{type:"integer"},per_page:{type:"integer"},repo:{required:true,type:"string"}},url:"/repos/:owner/:repo/teams"},listTeamsWithAccessToProtectedBranch:{deprecated:"octokit.repos.listTeamsWithAccessToProtectedBranch() has been renamed to octokit.repos.getTeamsWithAccessToProtectedBranch() (2019-09-13)",method:"GET",params:{branch:{required:true,type:"string"},owner:{required:true,type:"string"},repo:{required:true,type:"string"}},url:"/repos/:owner/:repo/branches/:branch/protection/restrictions/teams"},listTopics:{headers:{accept:"application/vnd.github.mercy-preview+json"},method:"GET",params:{owner:{required:true,type:"string"},repo:{required:true,type:"string"}},url:"/repos/:owner/:repo/topics"},listUsersWithAccessToProtectedBranch:{deprecated:"octokit.repos.listUsersWithAccessToProtectedBranch() has been renamed to octokit.repos.getUsersWithAccessToProtectedBranch() (2019-09-13)",method:"GET",params:{branch:{required:true,type:"string"},owner:{required:true,type:"string"},repo:{required:true,type:"string"}},url:"/repos/:owner/:repo/branches/:branch/protection/restrictions/users"},merge:{method:"POST",params:{base:{required:true,type:"string"},commit_message:{type:"string"},head:{required:true,type:"string"},owner:{required:true,type:"string"},repo:{required:true,type:"string"}},url:"/repos/:owner/:repo/merges"},pingHook:{method:"POST",params:{hook_id:{required:true,type:"integer"},owner:{required:true,type:"string"},repo:{required:true,type:"string"}},url:"/repos/:owner/:repo/hooks/:hook_id/pings"},removeBranchProtection:{method:"DELETE",params:{branch:{required:true,type:"string"},owner:{required:true,type:"string"},repo:{required:true,type:"string"}},url:"/repos/:owner/:repo/branches/:branch/protection"},removeCollaborator:{method:"DELETE",params:{owner:{required:true,type:"string"},repo:{required:true,type:"string"},username:{required:true,type:"string"}},url:"/repos/:owner/:repo/collaborators/:username"},removeDeployKey:{method:"DELETE",params:{key_id:{required:true,type:"integer"},owner:{required:true,type:"string"},repo:{required:true,type:"string"}},url:"/repos/:owner/:repo/keys/:key_id"},removeProtectedBranchAdminEnforcement:{method:"DELETE",params:{branch:{required:true,type:"string"},owner:{required:true,type:"string"},repo:{required:true,type:"string"}},url:"/repos/:owner/:repo/branches/:branch/protection/enforce_admins"},removeProtectedBranchAppRestrictions:{method:"DELETE",params:{apps:{mapTo:"data",required:true,type:"string[]"},branch:{required:true,type:"string"},owner:{required:true,type:"string"},repo:{required:true,type:"string"}},url:"/repos/:owner/:repo/branches/:branch/protection/restrictions/apps"},removeProtectedBranchPullRequestReviewEnforcement:{method:"DELETE",params:{branch:{required:true,type:"string"},owner:{required:true,type:"string"},repo:{required:true,type:"string"}},url:"/repos/:owner/:repo/branches/:branch/protection/required_pull_request_reviews"},removeProtectedBranchRequiredSignatures:{headers:{accept:"application/vnd.github.zzzax-preview+json"},method:"DELETE",params:{branch:{required:true,type:"string"},owner:{required:true,type:"string"},repo:{required:true,type:"string"}},url:"/repos/:owner/:repo/branches/:branch/protection/required_signatures"},removeProtectedBranchRequiredStatusChecks:{method:"DELETE",params:{branch:{required:true,type:"string"},owner:{required:true,type:"string"},repo:{required:true,type:"string"}},url:"/repos/:owner/:repo/branches/:branch/protection/required_status_checks"},removeProtectedBranchRequiredStatusChecksContexts:{method:"DELETE",params:{branch:{required:true,type:"string"},contexts:{mapTo:"data",required:true,type:"string[]"},owner:{required:true,type:"string"},repo:{required:true,type:"string"}},url:"/repos/:owner/:repo/branches/:branch/protection/required_status_checks/contexts"},removeProtectedBranchRestrictions:{method:"DELETE",params:{branch:{required:true,type:"string"},owner:{required:true,type:"string"},repo:{required:true,type:"string"}},url:"/repos/:owner/:repo/branches/:branch/protection/restrictions"},removeProtectedBranchTeamRestrictions:{method:"DELETE",params:{branch:{required:true,type:"string"},owner:{required:true,type:"string"},repo:{required:true,type:"string"},teams:{mapTo:"data",required:true,type:"string[]"}},url:"/repos/:owner/:repo/branches/:branch/protection/restrictions/teams"},removeProtectedBranchUserRestrictions:{method:"DELETE",params:{branch:{required:true,type:"string"},owner:{required:true,type:"string"},repo:{required:true,type:"string"},users:{mapTo:"data",required:true,type:"string[]"}},url:"/repos/:owner/:repo/branches/:branch/protection/restrictions/users"},replaceProtectedBranchAppRestrictions:{method:"PUT",params:{apps:{mapTo:"data",required:true,type:"string[]"},branch:{required:true,type:"string"},owner:{required:true,type:"string"},repo:{required:true,type:"string"}},url:"/repos/:owner/:repo/branches/:branch/protection/restrictions/apps"},replaceProtectedBranchRequiredStatusChecksContexts:{method:"PUT",params:{branch:{required:true,type:"string"},contexts:{mapTo:"data",required:true,type:"string[]"},owner:{required:true,type:"string"},repo:{required:true,type:"string"}},url:"/repos/:owner/:repo/branches/:branch/protection/required_status_checks/contexts"},replaceProtectedBranchTeamRestrictions:{method:"PUT",params:{branch:{required:true,type:"string"},owner:{required:true,type:"string"},repo:{required:true,type:"string"},teams:{mapTo:"data",required:true,type:"string[]"}},url:"/repos/:owner/:repo/branches/:branch/protection/restrictions/teams"},replaceProtectedBranchUserRestrictions:{method:"PUT",params:{branch:{required:true,type:"string"},owner:{required:true,type:"string"},repo:{required:true,type:"string"},users:{mapTo:"data",required:true,type:"string[]"}},url:"/repos/:owner/:repo/branches/:branch/protection/restrictions/users"},replaceTopics:{headers:{accept:"application/vnd.github.mercy-preview+json"},method:"PUT",params:{names:{required:true,type:"string[]"},owner:{required:true,type:"string"},repo:{required:true,type:"string"}},url:"/repos/:owner/:repo/topics"},requestPageBuild:{method:"POST",params:{owner:{required:true,type:"string"},repo:{required:true,type:"string"}},url:"/repos/:owner/:repo/pages/builds"},retrieveCommunityProfileMetrics:{method:"GET",params:{owner:{required:true,type:"string"},repo:{required:true,type:"string"}},url:"/repos/:owner/:repo/community/profile"},testPushHook:{method:"POST",params:{hook_id:{required:true,type:"integer"},owner:{required:true,type:"string"},repo:{required:true,type:"string"}},url:"/repos/:owner/:repo/hooks/:hook_id/tests"},transfer:{headers:{accept:"application/vnd.github.nightshade-preview+json"},method:"POST",params:{new_owner:{type:"string"},owner:{required:true,type:"string"},repo:{required:true,type:"string"},team_ids:{type:"integer[]"}},url:"/repos/:owner/:repo/transfer"},update:{method:"PATCH",params:{allow_merge_commit:{type:"boolean"},allow_rebase_merge:{type:"boolean"},allow_squash_merge:{type:"boolean"},archived:{type:"boolean"},default_branch:{type:"string"},description:{type:"string"},has_issues:{type:"boolean"},has_projects:{type:"boolean"},has_wiki:{type:"boolean"},homepage:{type:"string"},is_template:{type:"boolean"},name:{type:"string"},owner:{required:true,type:"string"},private:{type:"boolean"},repo:{required:true,type:"string"}},url:"/repos/:owner/:repo"},updateBranchProtection:{method:"PUT",params:{branch:{required:true,type:"string"},enforce_admins:{allowNull:true,required:true,type:"boolean"},owner:{required:true,type:"string"},repo:{required:true,type:"string"},required_pull_request_reviews:{allowNull:true,required:true,type:"object"},"required_pull_request_reviews.dismiss_stale_reviews":{type:"boolean"},"required_pull_request_reviews.dismissal_restrictions":{type:"object"},"required_pull_request_reviews.dismissal_restrictions.teams":{type:"string[]"},"required_pull_request_reviews.dismissal_restrictions.users":{type:"string[]"},"required_pull_request_reviews.require_code_owner_reviews":{type:"boolean"},"required_pull_request_reviews.required_approving_review_count":{type:"integer"},required_status_checks:{allowNull:true,required:true,type:"object"},"required_status_checks.contexts":{required:true,type:"string[]"},"required_status_checks.strict":{required:true,type:"boolean"},restrictions:{allowNull:true,required:true,type:"object"},"restrictions.apps":{type:"string[]"},"restrictions.teams":{required:true,type:"string[]"},"restrictions.users":{required:true,type:"string[]"}},url:"/repos/:owner/:repo/branches/:branch/protection"},updateCommitComment:{method:"PATCH",params:{body:{required:true,type:"string"},comment_id:{required:true,type:"integer"},owner:{required:true,type:"string"},repo:{required:true,type:"string"}},url:"/repos/:owner/:repo/comments/:comment_id"},updateFile:{deprecated:"octokit.repos.updateFile() has been renamed to octokit.repos.createOrUpdateFile() (2019-06-07)",method:"PUT",params:{author:{type:"object"},"author.email":{required:true,type:"string"},"author.name":{required:true,type:"string"},branch:{type:"string"},committer:{type:"object"},"committer.email":{required:true,type:"string"},"committer.name":{required:true,type:"string"},content:{required:true,type:"string"},message:{required:true,type:"string"},owner:{required:true,type:"string"},path:{required:true,type:"string"},repo:{required:true,type:"string"},sha:{type:"string"}},url:"/repos/:owner/:repo/contents/:path"},updateHook:{method:"PATCH",params:{active:{type:"boolean"},add_events:{type:"string[]"},config:{type:"object"},"config.content_type":{type:"string"},"config.insecure_ssl":{type:"string"},"config.secret":{type:"string"},"config.url":{required:true,type:"string"},events:{type:"string[]"},hook_id:{required:true,type:"integer"},owner:{required:true,type:"string"},remove_events:{type:"string[]"},repo:{required:true,type:"string"}},url:"/repos/:owner/:repo/hooks/:hook_id"},updateInformationAboutPagesSite:{method:"PUT",params:{cname:{type:"string"},owner:{required:true,type:"string"},repo:{required:true,type:"string"},source:{enum:['"gh-pages"','"master"','"master /docs"'],type:"string"}},url:"/repos/:owner/:repo/pages"},updateInvitation:{method:"PATCH",params:{invitation_id:{required:true,type:"integer"},owner:{required:true,type:"string"},permissions:{enum:["read","write","admin"],type:"string"},repo:{required:true,type:"string"}},url:"/repos/:owner/:repo/invitations/:invitation_id"},updateProtectedBranchPullRequestReviewEnforcement:{method:"PATCH",params:{branch:{required:true,type:"string"},dismiss_stale_reviews:{type:"boolean"},dismissal_restrictions:{type:"object"},"dismissal_restrictions.teams":{type:"string[]"},"dismissal_restrictions.users":{type:"string[]"},owner:{required:true,type:"string"},repo:{required:true,type:"string"},require_code_owner_reviews:{type:"boolean"},required_approving_review_count:{type:"integer"}},url:"/repos/:owner/:repo/branches/:branch/protection/required_pull_request_reviews"},updateProtectedBranchRequiredStatusChecks:{method:"PATCH",params:{branch:{required:true,type:"string"},contexts:{type:"string[]"},owner:{required:true,type:"string"},repo:{required:true,type:"string"},strict:{type:"boolean"}},url:"/repos/:owner/:repo/branches/:branch/protection/required_status_checks"},updateRelease:{method:"PATCH",params:{body:{type:"string"},draft:{type:"boolean"},name:{type:"string"},owner:{required:true,type:"string"},prerelease:{type:"boolean"},release_id:{required:true,type:"integer"},repo:{required:true,type:"string"},tag_name:{type:"string"},target_commitish:{type:"string"}},url:"/repos/:owner/:repo/releases/:release_id"},updateReleaseAsset:{method:"PATCH",params:{asset_id:{required:true,type:"integer"},label:{type:"string"},name:{type:"string"},owner:{required:true,type:"string"},repo:{required:true,type:"string"}},url:"/repos/:owner/:repo/releases/assets/:asset_id"},uploadReleaseAsset:{method:"POST",params:{file:{mapTo:"data",required:true,type:"string | object"},headers:{required:true,type:"object"},"headers.content-length":{required:true,type:"integer"},"headers.content-type":{required:true,type:"string"},label:{type:"string"},name:{required:true,type:"string"},url:{required:true,type:"string"}},url:":url"}},search:{code:{method:"GET",params:{order:{enum:["desc","asc"],type:"string"},page:{type:"integer"},per_page:{type:"integer"},q:{required:true,type:"string"},sort:{enum:["indexed"],type:"string"}},url:"/search/code"},commits:{headers:{accept:"application/vnd.github.cloak-preview+json"},method:"GET",params:{order:{enum:["desc","asc"],type:"string"},page:{type:"integer"},per_page:{type:"integer"},q:{required:true,type:"string"},sort:{enum:["author-date","committer-date"],type:"string"}},url:"/search/commits"},issues:{deprecated:"octokit.search.issues() has been renamed to octokit.search.issuesAndPullRequests() (2018-12-27)",method:"GET",params:{order:{enum:["desc","asc"],type:"string"},page:{type:"integer"},per_page:{type:"integer"},q:{required:true,type:"string"},sort:{enum:["comments","reactions","reactions-+1","reactions--1","reactions-smile","reactions-thinking_face","reactions-heart","reactions-tada","interactions","created","updated"],type:"string"}},url:"/search/issues"},issuesAndPullRequests:{method:"GET",params:{order:{enum:["desc","asc"],type:"string"},page:{type:"integer"},per_page:{type:"integer"},q:{required:true,type:"string"},sort:{enum:["comments","reactions","reactions-+1","reactions--1","reactions-smile","reactions-thinking_face","reactions-heart","reactions-tada","interactions","created","updated"],type:"string"}},url:"/search/issues"},labels:{method:"GET",params:{order:{enum:["desc","asc"],type:"string"},q:{required:true,type:"string"},repository_id:{required:true,type:"integer"},sort:{enum:["created","updated"],type:"string"}},url:"/search/labels"},repos:{method:"GET",params:{order:{enum:["desc","asc"],type:"string"},page:{type:"integer"},per_page:{type:"integer"},q:{required:true,type:"string"},sort:{enum:["stars","forks","help-wanted-issues","updated"],type:"string"}},url:"/search/repositories"},topics:{method:"GET",params:{q:{required:true,type:"string"}},url:"/search/topics"},users:{method:"GET",params:{order:{enum:["desc","asc"],type:"string"},page:{type:"integer"},per_page:{type:"integer"},q:{required:true,type:"string"},sort:{enum:["followers","repositories","joined"],type:"string"}},url:"/search/users"}},teams:{addMember:{deprecated:"octokit.teams.addMember() is deprecated, see https://developer.github.com/v3/teams/members/#add-team-member",method:"PUT",params:{team_id:{required:true,type:"integer"},username:{required:true,type:"string"}},url:"/teams/:team_id/members/:username"},addOrUpdateMembership:{method:"PUT",params:{role:{enum:["member","maintainer"],type:"string"},team_id:{required:true,type:"integer"},username:{required:true,type:"string"}},url:"/teams/:team_id/memberships/:username"},addOrUpdateProject:{headers:{accept:"application/vnd.github.inertia-preview+json"},method:"PUT",params:{permission:{enum:["read","write","admin"],type:"string"},project_id:{required:true,type:"integer"},team_id:{required:true,type:"integer"}},url:"/teams/:team_id/projects/:project_id"},addOrUpdateRepo:{method:"PUT",params:{owner:{required:true,type:"string"},permission:{enum:["pull","push","admin"],type:"string"},repo:{required:true,type:"string"},team_id:{required:true,type:"integer"}},url:"/teams/:team_id/repos/:owner/:repo"},checkManagesRepo:{method:"GET",params:{owner:{required:true,type:"string"},repo:{required:true,type:"string"},team_id:{required:true,type:"integer"}},url:"/teams/:team_id/repos/:owner/:repo"},create:{method:"POST",params:{description:{type:"string"},maintainers:{type:"string[]"},name:{required:true,type:"string"},org:{required:true,type:"string"},parent_team_id:{type:"integer"},permission:{enum:["pull","push","admin"],type:"string"},privacy:{enum:["secret","closed"],type:"string"},repo_names:{type:"string[]"}},url:"/orgs/:org/teams"},createDiscussion:{headers:{accept:"application/vnd.github.echo-preview+json"},method:"POST",params:{body:{required:true,type:"string"},private:{type:"boolean"},team_id:{required:true,type:"integer"},title:{required:true,type:"string"}},url:"/teams/:team_id/discussions"},createDiscussionComment:{headers:{accept:"application/vnd.github.echo-preview+json"},method:"POST",params:{body:{required:true,type:"string"},discussion_number:{required:true,type:"integer"},team_id:{required:true,type:"integer"}},url:"/teams/:team_id/discussions/:discussion_number/comments"},delete:{method:"DELETE",params:{team_id:{required:true,type:"integer"}},url:"/teams/:team_id"},deleteDiscussion:{headers:{accept:"application/vnd.github.echo-preview+json"},method:"DELETE",params:{discussion_number:{required:true,type:"integer"},team_id:{required:true,type:"integer"}},url:"/teams/:team_id/discussions/:discussion_number"},deleteDiscussionComment:{headers:{accept:"application/vnd.github.echo-preview+json"},method:"DELETE",params:{comment_number:{required:true,type:"integer"},discussion_number:{required:true,type:"integer"},team_id:{required:true,type:"integer"}},url:"/teams/:team_id/discussions/:discussion_number/comments/:comment_number"},get:{method:"GET",params:{team_id:{required:true,type:"integer"}},url:"/teams/:team_id"},getByName:{method:"GET",params:{org:{required:true,type:"string"},team_slug:{required:true,type:"string"}},url:"/orgs/:org/teams/:team_slug"},getDiscussion:{headers:{accept:"application/vnd.github.echo-preview+json"},method:"GET",params:{discussion_number:{required:true,type:"integer"},team_id:{required:true,type:"integer"}},url:"/teams/:team_id/discussions/:discussion_number"},getDiscussionComment:{headers:{accept:"application/vnd.github.echo-preview+json"},method:"GET",params:{comment_number:{required:true,type:"integer"},discussion_number:{required:true,type:"integer"},team_id:{required:true,type:"integer"}},url:"/teams/:team_id/discussions/:discussion_number/comments/:comment_number"},getMember:{deprecated:"octokit.teams.getMember() is deprecated, see https://developer.github.com/v3/teams/members/#get-team-member",method:"GET",params:{team_id:{required:true,type:"integer"},username:{required:true,type:"string"}},url:"/teams/:team_id/members/:username"},getMembership:{method:"GET",params:{team_id:{required:true,type:"integer"},username:{required:true,type:"string"}},url:"/teams/:team_id/memberships/:username"},list:{method:"GET",params:{org:{required:true,type:"string"},page:{type:"integer"},per_page:{type:"integer"}},url:"/orgs/:org/teams"},listChild:{headers:{accept:"application/vnd.github.hellcat-preview+json"},method:"GET",params:{page:{type:"integer"},per_page:{type:"integer"},team_id:{required:true,type:"integer"}},url:"/teams/:team_id/teams"},listDiscussionComments:{headers:{accept:"application/vnd.github.echo-preview+json"},method:"GET",params:{direction:{enum:["asc","desc"],type:"string"},discussion_number:{required:true,type:"integer"},page:{type:"integer"},per_page:{type:"integer"},team_id:{required:true,type:"integer"}},url:"/teams/:team_id/discussions/:discussion_number/comments"},listDiscussions:{headers:{accept:"application/vnd.github.echo-preview+json"},method:"GET",params:{direction:{enum:["asc","desc"],type:"string"},page:{type:"integer"},per_page:{type:"integer"},team_id:{required:true,type:"integer"}},url:"/teams/:team_id/discussions"},listForAuthenticatedUser:{method:"GET",params:{page:{type:"integer"},per_page:{type:"integer"}},url:"/user/teams"},listMembers:{method:"GET",params:{page:{type:"integer"},per_page:{type:"integer"},role:{enum:["member","maintainer","all"],type:"string"},team_id:{required:true,type:"integer"}},url:"/teams/:team_id/members"},listPendingInvitations:{method:"GET",params:{page:{type:"integer"},per_page:{type:"integer"},team_id:{required:true,type:"integer"}},url:"/teams/:team_id/invitations"},listProjects:{headers:{accept:"application/vnd.github.inertia-preview+json"},method:"GET",params:{page:{type:"integer"},per_page:{type:"integer"},team_id:{required:true,type:"integer"}},url:"/teams/:team_id/projects"},listRepos:{method:"GET",params:{page:{type:"integer"},per_page:{type:"integer"},team_id:{required:true,type:"integer"}},url:"/teams/:team_id/repos"},removeMember:{deprecated:"octokit.teams.removeMember() is deprecated, see https://developer.github.com/v3/teams/members/#remove-team-member",method:"DELETE",params:{team_id:{required:true,type:"integer"},username:{required:true,type:"string"}},url:"/teams/:team_id/members/:username"},removeMembership:{method:"DELETE",params:{team_id:{required:true,type:"integer"},username:{required:true,type:"string"}},url:"/teams/:team_id/memberships/:username"},removeProject:{method:"DELETE",params:{project_id:{required:true,type:"integer"},team_id:{required:true,type:"integer"}},url:"/teams/:team_id/projects/:project_id"},removeRepo:{method:"DELETE",params:{owner:{required:true,type:"string"},repo:{required:true,type:"string"},team_id:{required:true,type:"integer"}},url:"/teams/:team_id/repos/:owner/:repo"},reviewProject:{headers:{accept:"application/vnd.github.inertia-preview+json"},method:"GET",params:{project_id:{required:true,type:"integer"},team_id:{required:true,type:"integer"}},url:"/teams/:team_id/projects/:project_id"},update:{method:"PATCH",params:{description:{type:"string"},name:{required:true,type:"string"},parent_team_id:{type:"integer"},permission:{enum:["pull","push","admin"],type:"string"},privacy:{enum:["secret","closed"],type:"string"},team_id:{required:true,type:"integer"}},url:"/teams/:team_id"},updateDiscussion:{headers:{accept:"application/vnd.github.echo-preview+json"},method:"PATCH",params:{body:{type:"string"},discussion_number:{required:true,type:"integer"},team_id:{required:true,type:"integer"},title:{type:"string"}},url:"/teams/:team_id/discussions/:discussion_number"},updateDiscussionComment:{headers:{accept:"application/vnd.github.echo-preview+json"},method:"PATCH",params:{body:{required:true,type:"string"},comment_number:{required:true,type:"integer"},discussion_number:{required:true,type:"integer"},team_id:{required:true,type:"integer"}},url:"/teams/:team_id/discussions/:discussion_number/comments/:comment_number"}},users:{addEmails:{method:"POST",params:{emails:{required:true,type:"string[]"}},url:"/user/emails"},block:{method:"PUT",params:{username:{required:true,type:"string"}},url:"/user/blocks/:username"},checkBlocked:{method:"GET",params:{username:{required:true,type:"string"}},url:"/user/blocks/:username"},checkFollowing:{method:"GET",params:{username:{required:true,type:"string"}},url:"/user/following/:username"},checkFollowingForUser:{method:"GET",params:{target_user:{required:true,type:"string"},username:{required:true,type:"string"}},url:"/users/:username/following/:target_user"},createGpgKey:{method:"POST",params:{armored_public_key:{type:"string"}},url:"/user/gpg_keys"},createPublicKey:{method:"POST",params:{key:{type:"string"},title:{type:"string"}},url:"/user/keys"},deleteEmails:{method:"DELETE",params:{emails:{required:true,type:"string[]"}},url:"/user/emails"},deleteGpgKey:{method:"DELETE",params:{gpg_key_id:{required:true,type:"integer"}},url:"/user/gpg_keys/:gpg_key_id"},deletePublicKey:{method:"DELETE",params:{key_id:{required:true,type:"integer"}},url:"/user/keys/:key_id"},follow:{method:"PUT",params:{username:{required:true,type:"string"}},url:"/user/following/:username"},getAuthenticated:{method:"GET",params:{},url:"/user"},getByUsername:{method:"GET",params:{username:{required:true,type:"string"}},url:"/users/:username"},getContextForUser:{headers:{accept:"application/vnd.github.hagar-preview+json"},method:"GET",params:{subject_id:{type:"string"},subject_type:{enum:["organization","repository","issue","pull_request"],type:"string"},username:{required:true,type:"string"}},url:"/users/:username/hovercard"},getGpgKey:{method:"GET",params:{gpg_key_id:{required:true,type:"integer"}},url:"/user/gpg_keys/:gpg_key_id"},getPublicKey:{method:"GET",params:{key_id:{required:true,type:"integer"}},url:"/user/keys/:key_id"},list:{method:"GET",params:{page:{type:"integer"},per_page:{type:"integer"},since:{type:"string"}},url:"/users"},listBlocked:{method:"GET",params:{},url:"/user/blocks"},listEmails:{method:"GET",params:{page:{type:"integer"},per_page:{type:"integer"}},url:"/user/emails"},listFollowersForAuthenticatedUser:{method:"GET",params:{page:{type:"integer"},per_page:{type:"integer"}},url:"/user/followers"},listFollowersForUser:{method:"GET",params:{page:{type:"integer"},per_page:{type:"integer"},username:{required:true,type:"string"}},url:"/users/:username/followers"},listFollowingForAuthenticatedUser:{method:"GET",params:{page:{type:"integer"},per_page:{type:"integer"}},url:"/user/following"},listFollowingForUser:{method:"GET",params:{page:{type:"integer"},per_page:{type:"integer"},username:{required:true,type:"string"}},url:"/users/:username/following"},listGpgKeys:{method:"GET",params:{page:{type:"integer"},per_page:{type:"integer"}},url:"/user/gpg_keys"},listGpgKeysForUser:{method:"GET",params:{page:{type:"integer"},per_page:{type:"integer"},username:{required:true,type:"string"}},url:"/users/:username/gpg_keys"},listPublicEmails:{method:"GET",params:{page:{type:"integer"},per_page:{type:"integer"}},url:"/user/public_emails"},listPublicKeys:{method:"GET",params:{page:{type:"integer"},per_page:{type:"integer"}},url:"/user/keys"},listPublicKeysForUser:{method:"GET",params:{page:{type:"integer"},per_page:{type:"integer"},username:{required:true,type:"string"}},url:"/users/:username/keys"},togglePrimaryEmailVisibility:{method:"PATCH",params:{email:{required:true,type:"string"},visibility:{required:true,type:"string"}},url:"/user/email/visibility"},unblock:{method:"DELETE",params:{username:{required:true,type:"string"}},url:"/user/blocks/:username"},unfollow:{method:"DELETE",params:{username:{required:true,type:"string"}},url:"/user/following/:username"},updateAuthenticated:{method:"PATCH",params:{bio:{type:"string"},blog:{type:"string"},company:{type:"string"},email:{type:"string"},hireable:{type:"boolean"},location:{type:"string"},name:{type:"string"}},url:"/user"}}}},727:function(e){"use strict";e.exports=function bind(e,t){return function wrap(){var r=new Array(arguments.length);for(var n=0;n{n=i.url;r=i.status;for(const e of i.headers){t[e[0]]=e[1]}if(r===204||r===205){return}if(e.method==="HEAD"){if(r<400){return}throw new a.RequestError(i.statusText,r,{headers:t,request:e})}if(r===304){throw new a.RequestError("Not modified",r,{headers:t,request:e})}if(r>=400){return i.text().then(n=>{const i=new a.RequestError(n,r,{headers:t,request:e});try{let e=JSON.parse(i.message);Object.assign(i,e);let t=e.errors;i.message=i.message+": "+t.map(JSON.stringify).join(", ")}catch(e){}throw i})}const s=i.headers.get("content-type");if(/application\/json/.test(s)){return i.json()}if(!s||/^text\/|charset=utf-8$/.test(s)){return i.text()}return getBufferResponse(i)}).then(e=>{return{status:r,url:n,headers:t,data:e}}).catch(r=>{if(r instanceof a.RequestError){throw r}throw new a.RequestError(r.message,500,{headers:t,request:e})})}function withDefaults(e,t){const r=e.defaults(t);const n=function(e,t){const n=r.merge(e,t);if(!n.request||!n.request.hook){return fetchWrapper(r.parse(n))}const i=(e,t)=>{return fetchWrapper(r.parse(r.merge(e,t)))};Object.assign(i,{endpoint:r,defaults:withDefaults.bind(null,r)});return n.request.hook(i,n)};return Object.assign(n,{endpoint:r,defaults:withDefaults.bind(null,r)})}const p=withDefaults(n.endpoint,{headers:{"user-agent":`octokit-request.js/${u} ${i.getUserAgent()}`}});t.request=p},761:function(e){e.exports=require("zlib")},763:function(e){e.exports=removeHook;function removeHook(e,t,r){if(!e.registry[t]){return}var n=e.registry[t].map(function(e){return e.orig}).indexOf(r);if(n===-1){return}e.registry[t].splice(n,1)}},768:function(e){"use strict";e.exports=function(e){var t=typeof e==="string"?"\n":"\n".charCodeAt();var r=typeof e==="string"?"\r":"\r".charCodeAt();if(e[e.length-1]===t){e=e.slice(0,e.length-1)}if(e[e.length-1]===r){e=e.slice(0,e.length-1)}return e}},774:function(e,t,r){"use strict";var n=r(35);var i=r(411);var s={"Content-Type":"application/x-www-form-urlencoded"};function setContentTypeIfUnset(e,t){if(!n.isUndefined(e)&&n.isUndefined(e["Content-Type"])){e["Content-Type"]=t}}function getDefaultAdapter(){var e;if(typeof XMLHttpRequest!=="undefined"){e=r(219)}else if(typeof process!=="undefined"&&Object.prototype.toString.call(process)==="[object process]"){e=r(670)}return e}var o={adapter:getDefaultAdapter(),transformRequest:[function transformRequest(e,t){i(t,"Accept");i(t,"Content-Type");if(n.isFormData(e)||n.isArrayBuffer(e)||n.isBuffer(e)||n.isStream(e)||n.isFile(e)||n.isBlob(e)){return e}if(n.isArrayBufferView(e)){return e.buffer}if(n.isURLSearchParams(e)){setContentTypeIfUnset(t,"application/x-www-form-urlencoded;charset=utf-8");return e.toString()}if(n.isObject(e)){setContentTypeIfUnset(t,"application/json;charset=utf-8");return JSON.stringify(e)}return e}],transformResponse:[function transformResponse(e){if(typeof e==="string"){try{e=JSON.parse(e)}catch(e){}}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,validateStatus:function validateStatus(e){return e>=200&&e<300}};o.headers={common:{Accept:"application/json, text/plain, */*"}};n.forEach(["delete","get","head"],function forEachMethodNoData(e){o.headers[e]={}});n.forEach(["post","put","patch"],function forEachMethodWithData(e){o.headers[e]=n.merge(s)});e.exports=o},777:function(e,t,r){e.exports=getFirstPage;const n=r(265);function getFirstPage(e,t,r){return n(e,t,"first",r)}},779:function(e,t,r){"use strict";var n=r(35);var i=r(133);var s=r(283);var o=r(946);var a=r(825);function Axios(e){this.defaults=e;this.interceptors={request:new s,response:new s}}Axios.prototype.request=function request(e){if(typeof e==="string"){e=arguments[1]||{};e.url=arguments[0]}else{e=e||{}}e=a(this.defaults,e);if(e.method){e.method=e.method.toLowerCase()}else if(this.defaults.method){e.method=this.defaults.method.toLowerCase()}else{e.method="get"}var t=[o,undefined];var r=Promise.resolve(e);this.interceptors.request.forEach(function unshiftRequestInterceptors(e){t.unshift(e.fulfilled,e.rejected)});this.interceptors.response.forEach(function pushResponseInterceptors(e){t.push(e.fulfilled,e.rejected)});while(t.length){r=r.then(t.shift(),t.shift())}return r};Axios.prototype.getUri=function getUri(e){e=a(this.defaults,e);return i(e.url,e.params,e.paramsSerializer).replace(/^\?/,"")};n.forEach(["delete","get","head","options"],function forEachMethodNoData(e){Axios.prototype[e]=function(t,r){return this.request(n.merge(r||{},{method:e,url:t}))}});n.forEach(["post","put","patch"],function forEachMethodWithData(e){Axios.prototype[e]=function(t,r,i){return this.request(n.merge(i||{},{method:e,url:t,data:r}))}});e.exports=Axios},784:function(e,t,r){if(typeof process==="undefined"||process.type==="renderer"){e.exports=r(794)}else{e.exports=r(81)}},794:function(e,t,r){t=e.exports=r(25);t.log=log;t.formatArgs=formatArgs;t.save=save;t.load=load;t.useColors=useColors;t.storage="undefined"!=typeof chrome&&"undefined"!=typeof chrome.storage?chrome.storage.local:localstorage();t.colors=["#0000CC","#0000FF","#0033CC","#0033FF","#0066CC","#0066FF","#0099CC","#0099FF","#00CC00","#00CC33","#00CC66","#00CC99","#00CCCC","#00CCFF","#3300CC","#3300FF","#3333CC","#3333FF","#3366CC","#3366FF","#3399CC","#3399FF","#33CC00","#33CC33","#33CC66","#33CC99","#33CCCC","#33CCFF","#6600CC","#6600FF","#6633CC","#6633FF","#66CC00","#66CC33","#9900CC","#9900FF","#9933CC","#9933FF","#99CC00","#99CC33","#CC0000","#CC0033","#CC0066","#CC0099","#CC00CC","#CC00FF","#CC3300","#CC3333","#CC3366","#CC3399","#CC33CC","#CC33FF","#CC6600","#CC6633","#CC9900","#CC9933","#CCCC00","#CCCC33","#FF0000","#FF0033","#FF0066","#FF0099","#FF00CC","#FF00FF","#FF3300","#FF3333","#FF3366","#FF3399","#FF33CC","#FF33FF","#FF6600","#FF6633","#FF9900","#FF9933","#FFCC00","#FFCC33"];function useColors(){if(typeof window!=="undefined"&&window.process&&window.process.type==="renderer"){return true}if(typeof navigator!=="undefined"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/(edge|trident)\/(\d+)/)){return false}return typeof document!=="undefined"&&document.documentElement&&document.documentElement.style&&document.documentElement.style.WebkitAppearance||typeof window!=="undefined"&&window.console&&(window.console.firebug||window.console.exception&&window.console.table)||typeof navigator!=="undefined"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/)&&parseInt(RegExp.$1,10)>=31||typeof navigator!=="undefined"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/)}t.formatters.j=function(e){try{return JSON.stringify(e)}catch(e){return"[UnexpectedJSONParseError]: "+e.message}};function formatArgs(e){var r=this.useColors;e[0]=(r?"%c":"")+this.namespace+(r?" %c":" ")+e[0]+(r?"%c ":" ")+"+"+t.humanize(this.diff);if(!r)return;var n="color: "+this.color;e.splice(1,0,n,"color: inherit");var i=0;var s=0;e[0].replace(/%[a-zA-Z%]/g,function(e){if("%%"===e)return;i++;if("%c"===e){s=i}});e.splice(s,0,n)}function log(){return"object"===typeof console&&console.log&&Function.prototype.apply.call(console.log,console,arguments)}function save(e){try{if(null==e){t.storage.removeItem("debug")}else{t.storage.debug=e}}catch(e){}}function load(){var e;try{e=t.storage.debug}catch(e){}if(!e&&typeof process!=="undefined"&&"env"in process){e=process.env.DEBUG}return e}t.enable(load());function localstorage(){try{return window.localStorage}catch(e){}}},807:function(e,t,r){e.exports=paginate;const n=r(8);function paginate(e,t,r,i){if(typeof r==="function"){i=r;r=undefined}r=e.request.endpoint.merge(t,r);return gather(e,[],n(e,r)[Symbol.asyncIterator](),i)}function gather(e,t,r,n){return r.next().then(i=>{if(i.done){return t}let s=false;function done(){s=true}t=t.concat(n?n(i.value,done):i.value.data);if(s){return t}return gather(e,t,r,n)})}},814:function(e,t,r){e.exports=which;which.sync=whichSync;var n=process.platform==="win32"||process.env.OSTYPE==="cygwin"||process.env.OSTYPE==="msys";var i=r(622);var s=n?";":":";var o=r(742);function getNotFoundError(e){var t=new Error("not found: "+e);t.code="ENOENT";return t}function getPathInfo(e,t){var r=t.colon||s;var i=t.path||process.env.PATH||"";var o=[""];i=i.split(r);var a="";if(n){i.unshift(process.cwd());a=t.pathExt||process.env.PATHEXT||".EXE;.CMD;.BAT;.COM";o=a.split(r);if(e.indexOf(".")!==-1&&o[0]!=="")o.unshift("")}if(e.match(/\//)||n&&e.match(/\\/))i=[""];return{env:i,ext:o,extExe:a}}function which(e,t,r){if(typeof t==="function"){r=t;t={}}var n=getPathInfo(e,t);var s=n.env;var a=n.ext;var u=n.extExe;var p=[];(function F(n,c){if(n===c){if(t.all&&p.length)return r(null,p);else return r(getNotFoundError(e))}var d=s[n];if(d.charAt(0)==='"'&&d.slice(-1)==='"')d=d.slice(1,-1);var l=i.join(d,e);if(!d&&/^\.[\\\/]/.test(e)){l=e.slice(0,2)+l}(function E(e,i){if(e===i)return F(n+1,c);var s=a[e];o(l+s,{pathExt:u},function(n,o){if(!n&&o){if(t.all)p.push(l+s);else return r(null,l+s)}return E(e+1,i)})})(0,a.length)})(0,s.length)}function whichSync(e,t){t=t||{};var r=getPathInfo(e,t);var n=r.env;var s=r.ext;var a=r.extExe;var u=[];for(var p=0,c=n.length;p-1}function listCacheSet(e,t){var r=this.__data__,n=assocIndexOf(r,e);if(n<0){r.push([e,t])}else{r[n][1]=t}return this}ListCache.prototype.clear=listCacheClear;ListCache.prototype["delete"]=listCacheDelete;ListCache.prototype.get=listCacheGet;ListCache.prototype.has=listCacheHas;ListCache.prototype.set=listCacheSet;function MapCache(e){var t=-1,r=e?e.length:0;this.clear();while(++t{return e.auth()}).then(e=>{t.headers.authorization=i(e)})}},864:function(e,t,r){"use strict";var n=r(35);e.exports=n.isStandardBrowserEnv()?function standardBrowserEnv(){return{write:function write(e,t,r,i,s,o){var a=[];a.push(e+"="+encodeURIComponent(t));if(n.isNumber(r)){a.push("expires="+new Date(r).toGMTString())}if(n.isString(i)){a.push("path="+i)}if(n.isString(s)){a.push("domain="+s)}if(o===true){a.push("secure")}document.cookie=a.join("; ")},read:function read(e){var t=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return t?decodeURIComponent(t[3]):null},remove:function remove(e){this.write(e,"",Date.now()-864e5)}}}():function nonStandardBrowserEnv(){return{write:function write(){},read:function read(){return null},remove:function remove(){}}}()},866:function(e,t,r){"use strict";var n=r(816);e.exports=function(e){var t=e.match(n);if(!t){return null}var r=t[0].replace(/#! ?/,"").split(" ");var i=r[0].split("/").pop();var s=r[1];return i==="env"?s:i+(s?" "+s:"")}},867:function(e){e.exports=require("tty")},879:function(e){"use strict";e.exports=function spread(e){return function wrap(t){return e.apply(null,t)}}},881:function(e){"use strict";const t=process.platform==="win32";function notFoundError(e,t){return Object.assign(new Error(`${t} ${e.command} ENOENT`),{code:"ENOENT",errno:"ENOENT",syscall:`${t} ${e.command}`,path:e.command,spawnargs:e.args})}function hookChildProcess(e,r){if(!t){return}const n=e.emit;e.emit=function(t,i){if(t==="exit"){const t=verifyENOENT(i,r,"spawn");if(t){return n.call(e,"error",t)}}return n.apply(e,arguments)}}function verifyENOENT(e,r){if(t&&e===1&&!r.file){return notFoundError(r.original,"spawn")}return null}function verifyENOENTSync(e,r){if(t&&e===1&&!r.file){return notFoundError(r.original,"spawnSync")}return null}e.exports={hookChildProcess:hookChildProcess,verifyENOENT:verifyENOENT,verifyENOENTSync:verifyENOENTSync,notFoundError:notFoundError}},883:function(e){var t="Expected a function";var r="__lodash_hash_undefined__";var n=1/0,i=9007199254740991;var s="[object Function]",o="[object GeneratorFunction]",a="[object Symbol]";var u=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,p=/^\w*$/,c=/^\./,d=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g;var l=/[\\^$.*+?()[\]{}|]/g;var g=/\\(\\)?/g;var m=/^\[object .+?Constructor\]$/;var h=/^(?:0|[1-9]\d*)$/;var f=typeof global=="object"&&global&&global.Object===Object&&global;var y=typeof self=="object"&&self&&self.Object===Object&&self;var b=f||y||Function("return this")();function getValue(e,t){return e==null?undefined:e[t]}function isHostObject(e){var t=false;if(e!=null&&typeof e.toString!="function"){try{t=!!(e+"")}catch(e){}}return t}var w=Array.prototype,_=Function.prototype,q=Object.prototype;var v=b["__core-js_shared__"];var E=function(){var e=/[^.]+$/.exec(v&&v.keys&&v.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}();var T=_.toString;var C=q.hasOwnProperty;var j=q.toString;var k=RegExp("^"+T.call(C).replace(l,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");var S=b.Symbol,O=w.splice;var x=getNative(b,"Map"),P=getNative(Object,"create");var R=S?S.prototype:undefined,A=R?R.toString:undefined;function Hash(e){var t=-1,r=e?e.length:0;this.clear();while(++t-1}function listCacheSet(e,t){var r=this.__data__,n=assocIndexOf(r,e);if(n<0){r.push([e,t])}else{r[n][1]=t}return this}ListCache.prototype.clear=listCacheClear;ListCache.prototype["delete"]=listCacheDelete;ListCache.prototype.get=listCacheGet;ListCache.prototype.has=listCacheHas;ListCache.prototype.set=listCacheSet;function MapCache(e){var t=-1,r=e?e.length:0;this.clear();while(++t-1&&e%1==0&&e{if(!e[r]){e[r]={}}Object.keys(t[r]).forEach(i=>{const s=t[r][i];const o=["method","url","headers"].reduce((e,t)=>{if(typeof s[t]!=="undefined"){e[t]=s[t]}return e},{});o.request={validate:s.params};let a=e.request.defaults(o);const u=Object.keys(s.params||{}).find(e=>s.params[e].deprecated);if(u){const t=patchForDeprecation.bind(null,e,s);a=t(e.request.defaults(o),`.${r}.${i}()`);a.endpoint=t(a.endpoint,`.${r}.${i}.endpoint()`);a.endpoint.merge=t(a.endpoint.merge,`.${r}.${i}.endpoint.merge()`)}if(s.deprecated){e[r][i]=function deprecatedEndpointMethod(){e.log.warn(new n(`[@octokit/rest] ${s.deprecated}`));e[r][i]=a;return a.apply(null,arguments)};return}e[r][i]=a})})}function patchForDeprecation(e,t,r,i){const s=s=>{s=Object.assign({},s);Object.keys(s).forEach(r=>{if(t.params[r]&&t.params[r].deprecated){const o=t.params[r].alias;e.log.warn(new n(`[@octokit/rest] "${r}" parameter is deprecated for "${i}". Use "${o}" instead`));if(!(o in s)){s[o]=s[r]}delete s[r]}});return r(s)};Object.keys(r).forEach(e=>{s[e]=r[e]});return s}},929:function(e,t,r){e.exports=hasNextPage;const n=r(370);const i=r(577);function hasNextPage(e){n(`octokit.hasNextPage() – You can use octokit.paginate or async iterators instead: https://github.com/octokit/rest.js#pagination.`);return i(e).next}},946:function(e,t,r){"use strict";var n=r(35);var i=r(589);var s=r(732);var o=r(774);function throwIfCancellationRequested(e){if(e.cancelToken){e.cancelToken.throwIfRequested()}}e.exports=function dispatchRequest(e){throwIfCancellationRequested(e);e.headers=e.headers||{};e.data=i(e.data,e.headers,e.transformRequest);e.headers=n.merge(e.headers.common||{},e.headers[e.method]||{},e.headers);n.forEach(["delete","get","head","post","put","patch","common"],function cleanHeaderConfig(t){delete e.headers[t]});var t=e.adapter||o.adapter;return t(e).then(function onAdapterResolution(t){throwIfCancellationRequested(e);t.data=i(t.data,t.headers,e.transformResponse);return t},function onAdapterRejection(t){if(!s(t)){throwIfCancellationRequested(e);if(t&&t.response){t.response.data=i(t.response.data,t.response.headers,e.transformResponse)}}return Promise.reject(t)})}},948:function(e){"use strict";e.exports=function(e){try{return e()}catch(e){}}},954:function(e){e.exports=validateAuth;function validateAuth(e){if(typeof e==="string"){return}if(typeof e==="function"){return}if(e.username&&e.password){return}if(e.clientId&&e.clientSecret){return}throw new Error(`Invalid "auth" option: ${JSON.stringify(e)}`)}},955:function(e,t,r){"use strict";const n=r(622);const i=r(129);const s=r(20);const o=r(768);const a=r(621);const u=r(323);const p=r(145);const c=r(697);const d=r(260);const l=r(427);const g=r(168);const m=1e3*1e3*10;function handleArgs(e,t,r){let i;r=Object.assign({extendEnv:true,env:{}},r);if(r.extendEnv){r.env=Object.assign({},process.env,r.env)}if(r.__winShell===true){delete r.__winShell;i={command:e,args:t,options:r,file:e,original:{cmd:e,args:t}}}else{i=s._parse(e,t,r)}r=Object.assign({maxBuffer:m,buffer:true,stripEof:true,preferLocal:true,localDir:i.options.cwd||process.cwd(),encoding:"utf8",reject:true,cleanup:true},i.options);r.stdio=g(r);if(r.preferLocal){r.env=a.env(Object.assign({},r,{cwd:r.localDir}))}if(r.detached){r.cleanup=false}if(process.platform==="win32"&&n.basename(i.command)==="cmd.exe"){i.args.unshift("/q")}return{cmd:i.command,args:i.args,opts:r,parsed:i}}function handleInput(e,t){if(t===null||t===undefined){return}if(u(t)){t.pipe(e.stdin)}else{e.stdin.end(t)}}function handleOutput(e,t){if(t&&e.stripEof){t=o(t)}return t}function handleShell(e,t,r){let n="/bin/sh";let i=["-c",t];r=Object.assign({},r);if(process.platform==="win32"){r.__winShell=true;n=process.env.comspec||"cmd.exe";i=["/s","/c",`"${t}"`];r.windowsVerbatimArguments=true}if(r.shell){n=r.shell;delete r.shell}return e(n,i,r)}function getStream(e,t,{encoding:r,buffer:n,maxBuffer:i}){if(!e[t]){return null}let s;if(!n){s=new Promise((r,n)=>{e[t].once("end",r).once("error",n)})}else if(r){s=p(e[t],{encoding:r,maxBuffer:i})}else{s=p.buffer(e[t],{maxBuffer:i})}return s.catch(e=>{e.stream=t;e.message=`${t} ${e.message}`;throw e})}function makeError(e,t){const{stdout:r,stderr:n}=e;let i=e.error;const{code:s,signal:o}=e;const{parsed:a,joinedCmd:u}=t;const p=t.timedOut||false;if(!i){let e="";if(Array.isArray(a.opts.stdio)){if(a.opts.stdio[2]!=="inherit"){e+=e.length>0?n:`\n${n}`}if(a.opts.stdio[1]!=="inherit"){e+=`\n${r}`}}else if(a.opts.stdio!=="inherit"){e=`\n${n}${r}`}i=new Error(`Command failed: ${u}${e}`);i.code=s<0?l(s):s}i.stdout=r;i.stderr=n;i.failed=true;i.signal=o||null;i.cmd=u;i.timedOut=p;return i}function joinCmd(e,t){let r=e;if(Array.isArray(t)&&t.length>0){r+=" "+t.join(" ")}return r}e.exports=((e,t,r)=>{const n=handleArgs(e,t,r);const{encoding:o,buffer:a,maxBuffer:u}=n.opts;const p=joinCmd(e,t);let l;try{l=i.spawn(n.cmd,n.args,n.opts)}catch(e){return Promise.reject(e)}let g;if(n.opts.cleanup){g=d(()=>{l.kill()})}let m=null;let h=false;const f=()=>{if(m){clearTimeout(m);m=null}if(g){g()}};if(n.opts.timeout>0){m=setTimeout(()=>{m=null;h=true;l.kill(n.opts.killSignal)},n.opts.timeout)}const y=new Promise(e=>{l.on("exit",(t,r)=>{f();e({code:t,signal:r})});l.on("error",t=>{f();e({error:t})});if(l.stdin){l.stdin.on("error",t=>{f();e({error:t})})}});function destroy(){if(l.stdout){l.stdout.destroy()}if(l.stderr){l.stderr.destroy()}}const b=()=>c(Promise.all([y,getStream(l,"stdout",{encoding:o,buffer:a,maxBuffer:u}),getStream(l,"stderr",{encoding:o,buffer:a,maxBuffer:u})]).then(e=>{const t=e[0];t.stdout=e[1];t.stderr=e[2];if(t.error||t.code!==0||t.signal!==null){const e=makeError(t,{joinedCmd:p,parsed:n,timedOut:h});e.killed=e.killed||l.killed;if(!n.opts.reject){return e}throw e}return{stdout:handleOutput(n.opts,t.stdout),stderr:handleOutput(n.opts,t.stderr),code:0,failed:false,killed:false,signal:null,cmd:p,timedOut:false}}),destroy);s._enoent.hookChildProcess(l,n.parsed);handleInput(l,n.opts.input);l.then=((e,t)=>b().then(e,t));l.catch=(e=>b().catch(e));return l});e.exports.stdout=((...t)=>e.exports(...t).then(e=>e.stdout));e.exports.stderr=((...t)=>e.exports(...t).then(e=>e.stderr));e.exports.shell=((t,r)=>handleShell(e.exports,t,r));e.exports.sync=((e,t,r)=>{const n=handleArgs(e,t,r);const s=joinCmd(e,t);if(u(n.opts.input)){throw new TypeError("The `input` option cannot be a stream in sync mode")}const o=i.spawnSync(n.cmd,n.args,n.opts);o.code=o.status;if(o.error||o.status!==0||o.signal!==null){const e=makeError(o,{joinedCmd:s,parsed:n});if(!n.opts.reject){return e}throw e}return{stdout:handleOutput(n.opts,o.stdout),stderr:handleOutput(n.opts,o.stderr),code:0,failed:false,signal:null,cmd:s,timedOut:false}});e.exports.shellSync=((t,r)=>handleShell(e.exports.sync,t,r))},960:function(e,t,r){"use strict";var n=r(590);var i=r(887);e.exports=function buildFullPath(e,t){if(e&&!n(t)){return i(e,t)}return t}},966:function(e,t,r){"use strict";const{PassThrough:n}=r(413);e.exports=(e=>{e=Object.assign({},e);const{array:t}=e;let{encoding:r}=e;const i=r==="buffer";let s=false;if(t){s=!(r||i)}else{r=r||"utf8"}if(i){r=null}let o=0;const a=[];const u=new n({objectMode:s});if(r){u.setEncoding(r)}u.on("data",e=>{a.push(e);if(s){o=a.length}else{o+=e.length}});u.getBufferedValue=(()=>{if(t){return a}return i?Buffer.concat(a,o):a.join("")});u.getBufferedLength=(()=>o);return u})},969:function(e,t,r){var n=r(11);e.exports=n(once);e.exports.strict=n(onceStrict);once.proto=once(function(){Object.defineProperty(Function.prototype,"once",{value:function(){return once(this)},configurable:true});Object.defineProperty(Function.prototype,"onceStrict",{value:function(){return onceStrict(this)},configurable:true})});function once(e){var t=function(){if(t.called)return t.value;t.called=true;return t.value=e.apply(this,arguments)};t.called=false;return t}function onceStrict(e){var t=function(){if(t.called)throw new Error(t.onceError);t.called=true;return t.value=e.apply(this,arguments)};var r=e.name||"Function wrapped with `once`";t.onceError=r+" shouldn't be called more than once";t.called=false;return t}}}); \ No newline at end of file diff --git a/src/main.ts b/src/main.ts index 809d45c..10d28e9 100755 --- a/src/main.ts +++ b/src/main.ts @@ -17,6 +17,8 @@ import { shouldSkipBranchLint, shouldUpdatePRDescription, updatePrDetails, + isIssueStatusValid, + getInvalidIssueStatusComment, } from './utils'; import { PullRequestParams, JIRADetails, JIRALintActionInputs } from './types'; import { DEFAULT_PR_ADDITIONS_THRESHOLD } from './constants'; @@ -28,6 +30,8 @@ const getInputs = (): JIRALintActionInputs => { const BRANCH_IGNORE_PATTERN: string = core.getInput('skip-branches', { required: false }) || ''; const SKIP_COMMENTS: boolean = core.getInput('skip-comments', { required: false }) === 'true'; const PR_THRESHOLD = parseInt(core.getInput('pr-threshold', { required: false }), 10); + const VALIDATE_ISSUE_STATUS: boolean = core.getInput('validate_issue_status', { required: false }) === 'true'; + const ALLOWED_ISSUE_STATUSES: string = core.getInput('allowed_issue_statuses'); return { JIRA_TOKEN, @@ -36,12 +40,23 @@ const getInputs = (): JIRALintActionInputs => { SKIP_COMMENTS, PR_THRESHOLD: isNaN(PR_THRESHOLD) ? DEFAULT_PR_ADDITIONS_THRESHOLD : PR_THRESHOLD, JIRA_BASE_URL: JIRA_BASE_URL.endsWith('/') ? JIRA_BASE_URL.replace(/\/$/, '') : JIRA_BASE_URL, + VALIDATE_ISSUE_STATUS, + ALLOWED_ISSUE_STATUSES, }; }; async function run(): Promise { try { - const { JIRA_TOKEN, JIRA_BASE_URL, GITHUB_TOKEN, BRANCH_IGNORE_PATTERN, SKIP_COMMENTS, PR_THRESHOLD } = getInputs(); + const { + JIRA_TOKEN, + JIRA_BASE_URL, + GITHUB_TOKEN, + BRANCH_IGNORE_PATTERN, + SKIP_COMMENTS, + PR_THRESHOLD, + VALIDATE_ISSUE_STATUS, + ALLOWED_ISSUE_STATUSES, + } = getInputs(); const defaultAdditionsCount = 800; const prThreshold: number = PR_THRESHOLD ? Number(PR_THRESHOLD) : defaultAdditionsCount; @@ -129,6 +144,18 @@ async function run(): Promise { labels, }); + if (!isIssueStatusValid(VALIDATE_ISSUE_STATUS, ALLOWED_ISSUE_STATUSES.split(','), details)) { + const invalidIssueStatusComment: IssuesCreateCommentParams = { + ...commonPayload, + body: getInvalidIssueStatusComment(details.status, ALLOWED_ISSUE_STATUSES), + }; + console.log('Adding comment for invalid issue status'); + await addComment(client, invalidIssueStatusComment); + + core.setFailed('The found jira issue does is not in acceptable statuses'); + process.exit(1); + } + if (shouldUpdatePRDescription(prBody)) { const prData: PullsUpdateParams = { owner, diff --git a/src/types.ts b/src/types.ts index 96a6fcd..3299f60 100755 --- a/src/types.ts +++ b/src/types.ts @@ -81,6 +81,7 @@ export namespace JIRA { id: string; key: string; self: string; + status: string; fields: { summary: string; status: IssueStatus; @@ -97,6 +98,7 @@ export interface JIRADetails { key: string; summary: string; url: string; + status: string; type: { name: string; icon: string; @@ -117,6 +119,8 @@ export interface JIRALintActionInputs { BRANCH_IGNORE_PATTERN: string; SKIP_COMMENTS: boolean; PR_THRESHOLD: number; + VALIDATE_ISSUE_STATUS: boolean; + ALLOWED_ISSUE_STATUSES: string; } export interface JIRAClient { diff --git a/src/utils.ts b/src/utils.ts index 268a8a5..b9c3f21 100755 --- a/src/utils.ts +++ b/src/utils.ts @@ -48,7 +48,7 @@ export const getJIRAClient = (baseURL: string, token: string): JIRAClient => { const getIssue = async (id: string): Promise => { try { const response = await client.get( - `/issue/${id}?fields=project,summary,issuetype,labels,customfield_10016` + `/issue/${id}?fields=project,summary,issuetype,labels,status,customfield_10016` ); return response.data; } catch (e) { @@ -60,7 +60,14 @@ export const getJIRAClient = (baseURL: string, token: string): JIRAClient => { try { const issue: JIRA.Issue = await getIssue(key); const { - fields: { issuetype: type, project, summary, customfield_10016: estimate, labels: rawLabels }, + fields: { + issuetype: type, + project, + summary, + customfield_10016: estimate, + labels: rawLabels, + status: issueStatus, + }, } = issue; const labels = rawLabels.map((label) => ({ @@ -74,6 +81,7 @@ export const getJIRAClient = (baseURL: string, token: string): JIRAClient => { key, summary, url: `${baseURL}/browse/${key}`, + status: issueStatus.name, type: { name: type.name, icon: type.iconUrl, @@ -255,6 +263,10 @@ export const getPRDescription = (body = '', details: JIRADetails): string => { ${details.type.name} + + Status + ${details.status} + Points ${details.estimate || 'N/A'} @@ -321,3 +333,40 @@ Valid sample branch names: ‣ 'bugfix/fix-some-strange-bug_GAL-2345' `; }; + +/** Check if jira issue status validation is enabled then compare the issue status will the allowed statuses. */ +export const isIssueStatusValid = ( + shouldValidate: boolean, + allowedIssueStatuses: string[], + details: JIRADetails +): boolean => { + if (!shouldValidate) { + core.info('Skipping Jira issue status validation as shouldValidate is false'); + return true; + } + + return allowedIssueStatuses.includes(details.status); +}; + +/** Get the comment body for very huge PR. */ +export const getInvalidIssueStatusComment = ( + /** Number of additions. */ + issueStatus: string, + /** Threshold of additions allowed. */ + allowedStatuses: string +): string => + `

:broken_heart: The detected issue is not in one of the allowed statuses :broken_heart:

+ + + + + + + + + + + +
Detected Status${issueStatus}:x:
Allowed Statuses${allowedStatuses}:heavy_check_mark:
+

Please ensure your jira story is in one of the allowed statuses

+ `;