From c900f4f118721249cd7a993e4fd29eb4635a8a75 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C4=90=C3=A0o=20Tu=E1=BA=A5n?= Date: Thu, 19 Mar 2020 20:18:36 +0700 Subject: [PATCH] release version 1.0.7-beta --- action.yml | 2 +- dist/index.js | 2 +- package.json | 4 ++-- src/get-args.ts | 24 +++++++++++++++-------- src/handlers.ts | 43 +++++++++++++++++++++++++++++++---------- src/index.ts | 49 +++++++++++++++++++++++++++++------------------ src/interfaces.ts | 10 ++++++++-- 7 files changed, 91 insertions(+), 43 deletions(-) diff --git a/action.yml b/action.yml index d89ffea..42c9c19 100644 --- a/action.yml +++ b/action.yml @@ -1,4 +1,4 @@ -name: Jira Ticket Transitioner +name: Jira Ticket Transitioner Action author: Tuan Dao (heryhudson@gmail.com) description: This action can update Jira issue status by event diff --git a/dist/index.js b/dist/index.js index c1d4c40..f8ea11e 100644 --- a/dist/index.js +++ b/dist/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__(162)}t(__webpack_require__);return startup()}({0:function(e,t,r){const{requestLog:n}=r(916);const{restEndpointMethods:i}=r(842);const s=r(529);const o=[r(190),r(40),n,r(148),i,r(430),r(850)];const a=s.plugin(o);function DeprecatedOctokit(e){const t=e&&e.log&&e.log.warn?e.log.warn:console.warn;t('[@octokit/rest] `const Octokit = require("@octokit/rest")` is deprecated. Use `const { Octokit } = require("@octokit/rest")` instead');return new a(e)}const u=Object.assign(DeprecatedOctokit,{Octokit:a});Object.keys(a).forEach(e=>{if(a.hasOwnProperty(e)){u[e]=a[e]}});e.exports=u},2:function(e,t,r){"use strict";const n=r(87);const i=r(118);const s=r(494);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},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 l=t.writable||t.writable!==false&&e.writable;var d=false;var g=function(){if(!e.writable)m()};var m=function(){l=false;if(!c)r.call(e)};var f=function(){c=false;if(!l)r.call(e)};var h=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(_)};var _=function(){if(d)return;if(c&&!(p&&(p.ended&&!p.destroyed)))return r.call(e,new Error("premature close"));if(l&&!(u&&(u.ended&&!u.destroyed)))return r.call(e,new Error("premature close"))};var v=function(){e.req.on("finish",m)};if(s(e)){e.on("complete",m);e.on("abort",b);if(e.req)v();else e.on("request",v)}else if(l&&!u){e.on("end",g);e.on("close",g)}if(o(e))e.on("exit",h);e.on("end",f);e.on("finish",m);if(t.error!==false)e.on("error",y);e.on("close",b);return function(){d=true;e.removeListener("complete",m);e.removeListener("abort",b);e.removeListener("request",v);if(e.req)e.req.removeListener("finish",m);e.removeListener("end",g);e.removeListener("close",g);e.removeListener("finish",m);e.removeListener("exit",h);e.removeListener("end",f);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;rr)break;else++i}this.origStart=r+i;const s=i;while(i=n)break;else++i}this.origEnd=n+i;return s}}t.default=Range},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},24:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:true});t.default=t.Chomp=void 0;var n=r(49);var i=_interopRequireDefault(r(974));var s=_interopRequireDefault(r(19));function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}const o={CLIP:"CLIP",KEEP:"KEEP",STRIP:"STRIP"};t.Chomp=o;class BlockValue extends i.default{constructor(e,t){super(e,t);this.blockIndent=null;this.chomping=o.CLIP;this.header=null}get includesTrailingLines(){return this.chomping===o.KEEP}get strValue(){if(!this.valueRange||!this.context)return null;let{start:e,end:t}=this.valueRange;const{indent:r,src:s}=this.context;if(this.valueRange.isEmpty())return"";let a=null;let u=s[t-1];while(u==="\n"||u==="\t"||u===" "){t-=1;if(t<=e){if(this.chomping===o.KEEP)break;else return""}if(u==="\n")a=t;u=s[t-1]}let p=t+1;if(a){if(this.chomping===o.KEEP){p=a;t=this.valueRange.end}else{t=a}}const c=r+this.blockIndent;const l=this.type===n.Type.BLOCK_FOLDED;let d=true;let g="";let m="";let f=false;for(let r=e;rp){p=i}}if(r[e]==="\n"){n=e}else{n=a=i.default.endOfLine(r,e)}}if(this.chomping!==o.KEEP){n=r[a]?a+1:a}this.valueRange=new s.default(e+1,n);return n}parse(e,t){this.context=e;const{src:r}=e;let n=this.parseBlockHeader(t);n=i.default.endOfWhiteSpace(r,n);n=this.parseComment(n);n=this.parseBlockValue(n);return n}setOrigRanges(e,t){t=super.setOrigRanges(e,t);return this.header?this.header.setOrigRange(e,t):t}}t.default=BlockValue},29:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:true});t.default=void 0;var n=_interopRequireDefault(r(923));var i=_interopRequireDefault(r(380));var s=_interopRequireDefault(r(515));function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}function asItemIndex(e){let t=e instanceof s.default?e.value:e;if(t&&typeof t==="string")t=Number(t);return Number.isInteger(t)&&t>=0?t:null}class YAMLSeq extends i.default{add(e){this.items.push(e)}delete(e){const t=asItemIndex(e);if(typeof t!=="number")return false;const r=this.items.splice(t,1);return r.length>0}get(e,t){const r=asItemIndex(e);if(typeof r!=="number")return undefined;const n=this.items[r];return!t&&n instanceof s.default?n.value:n}has(e){const t=asItemIndex(e);return typeof t==="number"&&te.type==="comment"?e.str:`- ${e.str}`,flowChars:{start:"[",end:"]"},isMap:false,itemIndent:(e.indent||"")+" "},t,r)}}t.default=YAMLSeq},34:function(e){e.exports=require("https")},39:function(e){"use strict";e.exports=(e=>{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"})},40:function(e,t,r){e.exports=authenticationPlugin;const{Deprecation:n}=r(692);const i=r(969);const s=i((e,t)=>e.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))}},41:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:true});t.getLinePos=getLinePos;t.getLine=getLine;t.getPrettyContext=getPrettyContext;function findLineStarts(e){const t=[0];let r=e.indexOf("\n");while(r!==-1){r+=1;t.push(r);r=e.indexOf("\n",r)}return t}function getSrcInfo(e){let t,r;if(typeof e==="string"){t=findLineStarts(e);r=e}else{if(Array.isArray(e))e=e[0];if(e&&e.context){if(!e.lineStarts)e.lineStarts=findLineStarts(e.context.src);t=e.lineStarts;r=e.context.src}}return{lineStarts:t,src:r}}function getLinePos(e,t){if(typeof e!=="number"||e<0)return null;const{lineStarts:r,src:n}=getSrcInfo(t);if(!r||!n||e>n.length)return null;for(let t=0;t=1)||e>r.length)return null;const i=r[e-1];let s=r[e];while(s&&s>i&&n[s-1]==="\n")--s;return n.slice(i,s)}function getPrettyContext({start:e,end:t},r,n=80){let i=getLine(e.line,r);if(!i)return null;let{col:s}=e;if(i.length>n){if(s<=n-10){i=i.substr(0,n-1)+"…"}else{const e=Math.round(n/2);if(i.length>s+e)i=i.substr(0,s+e-1)+"…";s-=i.length-n;i="…"+i.substr(1-n)}}let o=1;let a="";if(t){if(t.line===e.line&&s+(t.col-e.col)<=n+1){o=t.col-e.col}else{o=Math.min(i.length+1,n)-s;a="…"}}const u=s>1?" ".repeat(s-1):"";const p="^".repeat(o);return`${i}\n${u}${p}${a}`}},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){"use strict";Object.defineProperty(t,"__esModule",{value:true});t.Type=t.Char=void 0;const r={ANCHOR:"&",COMMENT:"#",TAG:"!",DIRECTIVES_END:"-",DOCUMENT_END:"."};t.Char=r;const n={ALIAS:"ALIAS",BLANK_LINE:"BLANK_LINE",BLOCK_FOLDED:"BLOCK_FOLDED",BLOCK_LITERAL:"BLOCK_LITERAL",COMMENT:"COMMENT",DIRECTIVE:"DIRECTIVE",DOCUMENT:"DOCUMENT",FLOW_MAP:"FLOW_MAP",FLOW_SEQ:"FLOW_SEQ",MAP:"MAP",MAP_KEY:"MAP_KEY",MAP_VALUE:"MAP_VALUE",PLAIN:"PLAIN",QUOTE_DOUBLE:"QUOTE_DOUBLE",QUOTE_SINGLE:"QUOTE_SINGLE",SEQ:"SEQ",SEQ_ITEM:"SEQ_ITEM"};t.Type=n},77:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:true});t.default=void 0;var n=_interopRequireDefault(r(732));var i=_interopRequireDefault(r(767));var s=_interopRequireDefault(r(515));var o=r(591);function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}const a=[n.default,i.default,{identify:e=>typeof e==="string",default:true,tag:"tag:yaml.org,2002:str",resolve:o.resolveString,stringify:e=>JSON.stringify(e)},{identify:e=>e==null,createNode:(e,t,r)=>r.wrapScalars?new s.default(null):null,default:true,tag:"tag:yaml.org,2002:null",test:/^null$/,resolve:()=>null,stringify:e=>JSON.stringify(e)},{identify:e=>typeof e==="boolean",default:true,tag:"tag:yaml.org,2002:bool",test:/^true$/,resolve:()=>true,stringify:e=>JSON.stringify(e)},{identify:e=>typeof e==="boolean",default:true,tag:"tag:yaml.org,2002:bool",test:/^false$/,resolve:()=>false,stringify:e=>JSON.stringify(e)},{identify:e=>typeof e==="number",default:true,tag:"tag:yaml.org,2002:int",test:/^-?(?:0|[1-9][0-9]*)$/,resolve:e=>parseInt(e,10),stringify:e=>JSON.stringify(e)},{identify:e=>typeof e==="number",default:true,tag:"tag:yaml.org,2002:float",test:/^-?(?:0|[1-9][0-9]*)(?:\.[0-9]*)?(?:[eE][-+]?[0-9]+)?$/,resolve:e=>parseFloat(e),stringify:e=>JSON.stringify(e)}];a.scalarFallback=(e=>{throw new SyntaxError(`Unresolved plain scalar ${JSON.stringify(e)}`)});var u=a;t.default=u},87:function(e){e.exports=require("os")},118:function(e,t,r){"use strict";const n=r(87);const i=new Map([[19,"Catalina"],[18,"Mojave"],[17,"High Sierra"],[16,"Sierra"],[15,"El Capitan"],[14,"Yosemite"],[13,"Mavericks"],[12,"Mountain Lion"],[11,"Lion"],[10,"Snow Leopard"],[9,"Leopard"],[8,"Tiger"],[7,"Panther"],[6,"Jaguar"],[5,"Puma"]]);const s=e=>{e=Number((e||n.release()).split(".")[0]);return{name:i.get(e),version:"10."+(e-4)}};e.exports=s;e.exports.default=s},119:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:true});t.default=void 0;var n=_interopRequireDefault(r(974));var i=_interopRequireDefault(r(19));function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}class PlainValue extends n.default{static endOfLine(e,t,r){let n=e[t];let i=t;while(n&&n!=="\n"){if(r&&(n==="["||n==="]"||n==="{"||n==="}"||n===","))break;const t=e[i+1];if(n===":"&&(!t||t==="\n"||t==="\t"||t===" "||r&&t===","))break;if((n===" "||n==="\t")&&t==="#")break;i+=1;n=t}return i}get strValue(){if(!this.valueRange||!this.context)return null;let{start:e,end:t}=this.valueRange;const{src:r}=this.context;let i=r[t-1];while(en?r.slice(n,i+1):e}else{s+=e}}return s}parseBlockValue(e){const{indent:t,inFlow:r,src:i}=this.context;let s=e;let o=e;for(let e=i[s];e==="\n";e=i[s]){if(n.default.atDocumentBoundary(i,s+1))break;const e=n.default.endOfBlockIndent(i,t,s+1);if(e===null||i[e]==="#")break;if(i[e]==="\n"){s=e}else{o=PlainValue.endOfLine(i,e,r);s=o}}if(this.valueRange.isEmpty())this.valueRange.start=e;this.valueRange.end=o;return o}parse(e,t){this.context=e;const{inFlow:r,src:s}=e;let o=t;const a=s[o];if(a&&a!=="#"&&a!=="\n"){o=PlainValue.endOfLine(s,t,r)}this.valueRange=new i.default(t,o);o=n.default.endOfWhiteSpace(s,o);o=this.parseComment(o);if(!this.hasComment||this.valueRange.isEmpty()){o=this.parseBlockValue(o)}return o}}t.default=PlainValue},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=this.maxSockets){i.requests.push(s);return}i.createSocket(s,function(t){t.on("free",onFree);t.on("close",onCloseOrRemove);t.on("agentRemove",onCloseOrRemove);e.onSocket(t);function onFree(){i.emit("free",t,s)}function onCloseOrRemove(e){i.removeSocket(t);t.removeListener("free",onFree);t.removeListener("close",onCloseOrRemove);t.removeListener("agentRemove",onCloseOrRemove)}})};TunnelingAgent.prototype.createSocket=function createSocket(e,t){var r=this;var n={};r.sockets.push(n);var i=mergeOptions({},r.proxyOptions,{method:"CONNECT",path:e.host+":"+e.port,agent:false,headers:{host:e.host+":"+e.port}});if(e.localAddress){i.localAddress=e.localAddress}if(i.proxyAuth){i.headers=i.headers||{};i.headers["Proxy-Authorization"]="Basic "+new Buffer(i.proxyAuth).toString("base64")}c("making CONNECT request");var s=r.request(i);s.useChunkedEncodingByDefault=false;s.once("response",onResponse);s.once("upgrade",onUpgrade);s.once("connect",onConnect);s.once("error",onError);s.end();function onResponse(e){e.upgrade=true}function onUpgrade(e,t,r){process.nextTick(function(){onConnect(e,t,r)})}function onConnect(i,o,a){s.removeAllListeners();o.removeAllListeners();if(i.statusCode!==200){c("tunneling socket could not be established, statusCode=%d",i.statusCode);o.destroy();var u=new Error("tunneling socket could not be established, "+"statusCode="+i.statusCode);u.code="ECONNRESET";e.request.emit("error",u);r.removeSocket(n);return}if(a.length>0){c("got illegal response body from proxy");o.destroy();var u=new Error("got illegal response body from proxy");u.code="ECONNRESET";e.request.emit("error",u);r.removeSocket(n);return}c("tunneling connection has established");r.sockets[r.sockets.indexOf(n)]=o;return t(o)}function onError(t){s.removeAllListeners();c("tunneling socket could not be established, cause=%s\n",t.message,t.stack);var i=new Error("tunneling socket could not be established, "+"cause="+t.message);i.code="ECONNRESET";e.request.emit("error",i);r.removeSocket(n)}};TunnelingAgent.prototype.removeSocket=function removeSocket(e){var t=this.sockets.indexOf(e);if(t===-1){return}this.sockets.splice(t,1);var r=this.requests.shift();if(r){this.createSocket(r,function(e){r.request.onSocket(e)})}};function createSecureSocket(e,t){var r=this;TunnelingAgent.prototype.createSocket.call(r,e,function(n){var s=e.request.getHeader("host");var o=mergeOptions({},r.options,{socket:n,servername:s?s.replace(/:.*$/,""):e.host});var a=i.connect(0,o);r.sockets[r.sockets.indexOf(n)]=a;t(a)})}function toOptions(e,t,r){if(typeof e==="string"){return{host:e,port:t,localAddress:r}}return e}function mergeOptions(e){for(var t=1,r=arguments.length;t{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{paginateRest:n}=r(299);function paginatePlugin(e){Object.assign(e,n(e))}},156:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:true});t.default=void 0;class Node{}t.default=Node},162:function(e,t,r){"use strict";r.r(t);var n=r(470);var i=r(521);var s=r(747);const o=`${process.env.HOME}/jira/config.yml`;const a=()=>{let e={};e.jiraIssueId=Object(n.getInput)("jira-issue-id");try{e.jiraAccount=Object(n.getInput)("jira-account");e.jiraEndpoint=Object(n.getInput)("jira-endpoint");e.jiraToken=Object(n.getInput)("jira-token");const{jiraAccount:t,jiraEndpoint:r,jiraIssueId:a,jiraToken:u}=e;if(!a||a===""){return{exit:true,success:false,message:"Jira issue id not found, exiting...",parsedInput:undefined}}Array.from([t,r,a,u]).forEach(e=>{if(e===""||!e)throw new Error("")})}catch(t){console.log(`Missing input, using config file instead...`);const{JIRA_API_TOKEN:r,JIRA_BASE_URL:n,JIRA_USER_EMAIL:a}=Object(i.parse)(Object(s.readFileSync)(o,"utf8"));e.jiraAccount=a;e.jiraEndpoint=n;e.jiraToken=r}const t=Object(n.getInput)("github-token",{required:true});const r=Object(n.getInput)("column-to-move-to-when-review-requested",{required:true});const a=Object(n.getInput)("column-to-move-to-when-changes-requested",{required:true});const u=Object(n.getInput)("column-to-move-to-when-merged");const{jiraAccount:p,jiraEndpoint:c,jiraToken:l,jiraIssueId:d}=e;const g=d.split(/-/g)[0];const m=Number(d.split(/-/g)[1]);return{success:true,exit:false,parsedInput:{githubToken:t,columnToMoveToWhenChangesRequested:a,columnToMoveToWhenReviewRequested:r,columnToMoveToWhenMerged:u,jiraAccount:p,jiraEndpoint:c,jiraIssueId:d,jiraToken:l,jiraProject:g,jiraIssueNumber:m,jiraTokenEncoded:Buffer.from(`${p}:${l}`).toString("base64")}}};var u=r(469);var p=undefined&&undefined.__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())})};class github_Github{constructor(e,t,r){this.token=e;this.owner=t;this.repo=r;this.checkReviewIsRequestChange=(({pull_number:e,review_id:t})=>p(this,void 0,void 0,function*(){const r=yield this.octokit.pulls.getReview({owner:this.owner,repo:this.repo,pull_number:e,review_id:t});return r.data.state==="CHANGES_REQUESTED"}));this.token=e;this.owner=t;this.repo=r;this.octokit=new u.GitHub(e)}}var c=r(724);var l=r.n(c);var d=undefined&&undefined.__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())})};const g=e=>{return{headers:{Accept:"application/json","Content-Type":"application/json",Authorization:`Basic ${e}`}}};class jira_JiraClient{constructor(e){this.token=e;this.request=((e,t="GET",r)=>d(this,void 0,void 0,function*(){const n=r?yield l()(e,Object.assign({method:t,body:JSON.stringify(r)},g(this.token))):yield l()(e,Object.assign({method:t},g(this.token)));if(n.status===200){const e=yield n.json();return e}}));this.token=e}}var m=undefined&&undefined.__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())})};const f=({jiraTokenEncoded:e,jiraEndpoint:t,jiraIssueId:r,colName:i})=>m(void 0,void 0,void 0,function*(){var s,o;const a=new jira_JiraClient(e);const u=yield a.request(`${t}/rest/api/3/issue/${r}`);const{fields:{status:{name:p}}}=u;if(p===i){Object(n.warning)(`\n The issue ${r} is already in status ${i}.\n Action will exit without doing anything. \n `)}else{const e=yield a.request(`${t}/rest/api/3/issue/${r}/transitions`);const n=(o=(s=e.transitions)===null||s===void 0?void 0:s.find(e=>e.to.name===i))===null||o===void 0?void 0:o.id;if(!n)throw new Error(`\n There was an error trying to transition issue ${r}:\n Transition to status "${i}" cannot be found.\n Check all of the transitions' rules, conditions of yourr project's workflow.\n See more: https://confluence.atlassian.com/adminjiraserver073/working-with-workflows-861253510.html\n `);yield a.request(`${t}/rest/api/3/issue/${r}/transitions`,"POST",{transition:{id:n}})}});var h=undefined&&undefined.__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())})};function run(){return h(this,void 0,void 0,function*(){try{const{parsedInput:e,success:t,exit:r,message:i}=a();if(!e&&!t&&r&&i){Object(n.warning)(i)}else if(!e){throw new Error("Error trying to parse input.")}else{const t=u.context;const{repo:{owner:r,repo:i},payload:{action:s},eventName:o}=t;if(o==="pull_request"&&s==="review_requested"){Object(n.info)(`Changing issue ${e.jiraIssueId} to ${e.columnToMoveToWhenReviewRequested}`);yield f(Object.assign(Object.assign({},e),{colName:e.columnToMoveToWhenReviewRequested}))}else if(o==="pull_request_review"&&s==="submitted"){const{pull_request:{number:s},review:{id:o}}=t.payload;const{githubToken:a}=e;const u=new github_Github(a,r,i);const p=yield u.checkReviewIsRequestChange({pull_number:s,review_id:o});if(p){Object(n.info)(`Changing issue ${e.jiraIssueId} to ${e.columnToMoveToWhenChangesRequested}`);yield f(Object.assign(Object.assign({},e),{colName:e.columnToMoveToWhenChangesRequested}))}}else if(o==="pull_request"&&s==="closed"){const{merged:r}=t.payload.pull_request;if(r&&e.columnToMoveToWhenMerged){Object(n.info)(`Changing issue ${e.jiraIssueId} to ${e.columnToMoveToWhenMerged}`);yield f(Object.assign(Object.assign({},e),{colName:e.columnToMoveToWhenMerged}))}}}}catch(e){Object(n.setFailed)(e.message)}})}run()},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{if(r instanceof a.default){t=r.setOrigRanges(e,t)}else if(e.length===0){r.origOffset=r.offset}else{let n=t;while(nr.offset)break;else++n}r.origOffset=r.offset+n;t=n}});return t}toString(){const{context:{src:e},items:t,range:r,value:n}=this;if(n!=null)return n;const i=t.filter(e=>e instanceof a.default);let s="";let o=r.start;i.forEach(t=>{const r=e.slice(o,t.range.start);o=t.range.end;s+=r+String(t);if(s[s.length-1]==="\n"&&e[o-1]!=="\n"&&e[o]==="\n"){o+=1}});s+=e.slice(o,r.end);return a.default.addStringTerminator(e,r.end,s)}}t.default=FlowCollection},190:function(e,t,r){e.exports=authenticationPlugin;const{createTokenAuth:n}=r(813);const{Deprecation:i}=r(692);const s=r(969);const o=r(863);const a=r(293);const u=r(246);const p=r(143);const c=s((e,t)=>e.warn(t));const l=s((e,t)=>e.warn(t));function authenticationPlugin(e,t){if(t.authStrategy){const r=t.authStrategy(t.auth);e.hook.wrap("request",r.hook);e.auth=r;return}if(!t.auth){e.auth=(()=>Promise.resolve({type:"unauthenticated"}));return}const r=typeof t.auth==="string"&&/^basic/.test(p(t.auth));if(typeof t.auth==="string"&&!r){const r=n(t.auth);e.hook.wrap("request",r.hook);e.auth=r;return}const[s,d]=r?[c,'Setting the "new Octokit({ auth })" option to a Basic Auth string is deprecated. Use https://github.com/octokit/auth-basic.js instead. See (https://octokit.github.io/rest.js/#authentication)']:[l,'Setting the "new Octokit({ auth })" option to an object without also setting the "authStrategy" option is deprecated and will be removed in v17. See (https://octokit.github.io/rest.js/#authentication)'];s(e.log,new i("[@octokit/rest] "+d));e.auth=(()=>Promise.resolve({type:"deprecated",message:d}));u(t.auth);const g={octokit:e,auth:t.auth};e.hook.before("request",o.bind(null,g));e.hook.error("request",a.bind(null,g))}},195:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:true});t.default=void 0;var n=_interopRequireDefault(r(732));var i=_interopRequireDefault(r(767));var s=_interopRequireDefault(r(591));function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}var o=[n.default,i.default,s.default];t.default=o},197:function(e,t,r){e.exports=isexe;isexe.sync=sync;var n=r(747);function isexe(e,t,r){n.stat(e,function(e,n){r(e,e?false:checkStat(n,t))})}function sync(e,t){return checkStat(n.statSync(e),t)}function checkStat(e,t){return e.isFile()&&checkMode(e,t)}function checkMode(e,t){var r=e.mode;var n=e.uid;var i=e.gid;var s=t.uid!==undefined?t.uid:process.getuid&&process.getuid();var o=t.gid!==undefined?t.gid:process.getgid&&process.getgid();var a=parseInt("100",8);var u=parseInt("010",8);var p=parseInt("001",8);var c=a|u;var l=r&p||r&u&&i===o||r&a&&n===s||r&c&&s===0;return l}},211: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 "}return""}}t.getUserAgent=getUserAgent},215:function(e){e.exports={_from:"@octokit/rest@^16.43.1",_id:"@octokit/rest@16.43.1",_inBundle:false,_integrity:"sha512-gfFKwRT/wFxq5qlNjnW2dh+qh74XgTQ2B179UX5K1HYCluioWj8Ndbgqw2PVqa1NnVJkGHp2ovMpVn/DImlmkw==",_location:"/@octokit/rest",_phantomChildren:{},_requested:{type:"range",registry:true,raw:"@octokit/rest@^16.43.1",name:"@octokit/rest",escapedName:"@octokit%2frest",scope:"@octokit",rawSpec:"^16.43.1",saveSpec:null,fetchSpec:"^16.43.1"},_requiredBy:["/@actions/github"],_resolved:"https://registry.npmjs.org/@octokit/rest/-/rest-16.43.1.tgz",_shasum:"3b11e7d1b1ac2bbeeb23b08a17df0b20947eda6b",_spec:"@octokit/rest@^16.43.1",_where:"/Users/admin/Desktop/work/aharooms/jira-automate-transition/node_modules/@actions/github",author:{name:"Gregor Martynus",url:"https://github.com/gr2m"},bugs:{url:"https://github.com/octokit/rest.js/issues"},bundleDependencies:false,bundlesize:[{path:"./dist/octokit-rest.min.js.gz",maxSize:"33 kB"}],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"}],dependencies:{"@octokit/auth-token":"^2.4.0","@octokit/plugin-paginate-rest":"^1.1.1","@octokit/plugin-request-log":"^1.0.0","@octokit/plugin-rest-endpoint-methods":"2.4.0","@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"},deprecated:false,description:"GitHub REST API client for Node.js",devDependencies:{"@gimenete/type-writer":"^0.1.3","@octokit/auth":"^1.1.1","@octokit/fixtures-server":"^5.0.6","@octokit/graphql":"^4.2.0","@types/node":"^13.1.0",bundlesize:"^0.18.0",chai:"^4.1.2","compression-webpack-plugin":"^3.1.0",cypress:"^3.0.0",glob:"^7.1.2","http-proxy-agent":"^4.0.0","lodash.camelcase":"^4.3.0","lodash.merge":"^4.6.1","lodash.upperfirst":"^4.3.1",lolex:"^5.1.2",mkdirp:"^1.0.0",mocha:"^7.0.1",mustache:"^4.0.0",nock:"^11.3.3","npm-run-all":"^4.1.2",nyc:"^15.0.0",prettier:"^1.14.2",proxy:"^1.0.0","semantic-release":"^17.0.0",sinon:"^8.0.0","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"},files:["index.js","index.d.ts","lib","plugins"],homepage:"https://github.com/octokit/rest.js#readme",keywords:["octokit","github","rest","api-client"],license:"MIT",name:"@octokit/rest",nyc:{ignore:["test"]},publishConfig:{access:"public"},release:{publish:["@semantic-release/npm",{path:"@semantic-release/github",assets:["dist/*","!dist/*.map.gz"]}]},repository:{type:"git",url:"git+https://github.com/octokit/rest.js.git"},scripts:{build:"npm-run-all build:*","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","build:ts":"npm run -s update-endpoints:typescript",coverage:"nyc report --reporter=html && open coverage/index.html","generate-bundle-report":"webpack-bundle-analyzer dist/bundle-stats.json --mode=static --no-open --report dist/bundle-report.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","postvalidate:ts":"tsc --noEmit --target es6 test/typescript-validate.ts","prebuild:browser":"mkdirp dist/",pretest:"npm run -s lint","prevalidate:ts":"npm run -s build:ts","start-fixtures-server":"octokit-fixtures-server",test:'nyc mocha test/mocha-node-setup.js "test/*/**/*-test.js"',"test:browser":"cypress run --browser chrome","update-endpoints":"npm-run-all update-endpoints:*","update-endpoints:fetch-json":"node scripts/update-endpoints/fetch-json","update-endpoints:typescript":"node scripts/update-endpoints/typescript","validate:ts":"tsc --target es6 --noImplicitAny index.d.ts"},types:"index.d.ts",version:"16.43.1"}},246: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)}`)}},255:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:true});t.default=void 0;var n=r(847);var i=r(49);var s=r(405);var o=r(454);var a=r(339);var u=r(591);var p=_interopRequireDefault(r(637));var c=_interopRequireDefault(r(380));var l=_interopRequireDefault(r(156));var d=_interopRequireDefault(r(325));var g=_interopRequireDefault(r(515));function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}function _defineProperty(e,t,r){if(t in e){Object.defineProperty(e,t,{value:r,enumerable:true,configurable:true,writable:true})}else{e[t]=r}return e}const m=({type:e})=>e===i.Type.FLOW_MAP||e===i.Type.MAP;const f=({type:e})=>e===i.Type.FLOW_SEQ||e===i.Type.SEQ;class Schema{constructor({customTags:e,merge:t,schema:r,tags:i}){this.merge=!!t;this.name=r;this.tags=a.schemas[r.replace(/\W/g,"")];if(!this.tags){const e=Object.keys(a.schemas).map(e=>JSON.stringify(e)).join(", ");throw new Error(`Unknown schema "${r}"; use one of ${e}`)}if(!e&&i){e=i;(0,n.warnOptionDeprecation)("tags","customTags")}if(Array.isArray(e)){for(const t of e)this.tags=this.tags.concat(t)}else if(typeof e==="function"){this.tags=e(this.tags.slice())}for(let e=0;eJSON.stringify(e)).join(", ");throw new Error(`Unknown custom tag "${t}"; use one of ${e}`)}this.tags[e]=r}}}createNode(e,t,r,n){if(e instanceof l.default)return e;let i;if(r){if(r.startsWith("!!"))r=Schema.defaultPrefix+r.slice(2);const e=this.tags.filter(e=>e.tag===r);i=e.find(e=>!e.format)||e[0];if(!i)throw new Error(`Tag ${r} not found`)}else{i=this.tags.find(t=>(t.identify&&t.identify(e)||t.class&&e instanceof t.class)&&!t.format);if(!i){if(typeof e.toJSON==="function")e=e.toJSON();if(typeof e!=="object")return t?new g.default(e):e;i=e instanceof Map?a.tags.map:e[Symbol.iterator]?a.tags.seq:a.tags.map}}if(!n)n={wrapScalars:t};else n.wrapScalars=t;if(n.onTagObj){n.onTagObj(i);delete n.onTagObj}const s={};if(e&&typeof e==="object"&&n.prevObjects){const t=n.prevObjects.find(t=>t.value===e);if(t){const e=new p.default(t);n.aliasNodes.push(e);return e}s.value=e;n.prevObjects.push(s)}s.node=i.createNode?i.createNode(this,e,n):t?new g.default(e):e;return s.node}createPair(e,t,r){const n=this.createNode(e,r.wrapScalars,null,r);const i=this.createNode(t,r.wrapScalars,null,r);return new d.default(n,i)}resolveScalar(e,t){if(!t)t=this.tags;for(let r=0;re===r);const i=n.find(({test:e})=>!e);if(t.error)e.errors.push(t.error);try{if(i){let r=i.resolve(e,t);if(!(r instanceof c.default))r=new g.default(r);t.resolved=r}else{const r=(0,u.resolveString)(e,t);if(typeof r==="string"&&n.length>0){t.resolved=this.resolveScalar(r,n)}}}catch(r){if(!r.source)r.source=t;e.errors.push(r);t.resolved=null}if(!t.resolved)return null;if(r&&t.tag)t.resolved.tag=r;return t.resolved}resolveNodeWithFallback(e,t,r){const n=this.resolveNode(e,t,r);if(Object.prototype.hasOwnProperty.call(t,"resolved"))return n;const i=m(t)?Schema.defaultTags.MAP:f(t)?Schema.defaultTags.SEQ:Schema.defaultTags.STR;if(i){e.warnings.push(new s.YAMLWarning(t,`The tag ${r} is unavailable, falling back to ${i}`));const n=this.resolveNode(e,t,i);n.tag=r;return n}else{e.errors.push(new s.YAMLReferenceError(t,`The tag ${r} is unavailable`))}return null}getTagObject(e){if(e instanceof p.default)return p.default;if(e.tag){const t=this.tags.filter(t=>t.tag===e.tag);if(t.length>0)return t.find(t=>t.format===e.format)||t[0]}let t,r;if(e instanceof g.default){r=e.value;const n=this.tags.filter(e=>e.identify&&e.identify(r)||e.class&&r instanceof e.class);t=n.find(t=>t.format===e.format)||n.find(e=>!e.format)}else{r=e;t=this.tags.find(e=>e.nodeClass&&r instanceof e.nodeClass)}if(!t){const e=r&&r.constructor?r.constructor.name:typeof r;throw new Error(`Tag not resolved for ${e} value`)}return t}stringifyProps(e,t,{anchors:r,doc:n}){const i=[];const s=n.anchors.getName(e);if(s){r[s]=e;i.push(`&${s}`)}if(e.tag){i.push(n.stringifyTag(e.tag))}else if(!t.default){i.push(n.stringifyTag(t.tag))}return i.join(" ")}stringify(e,t,r,n){let i;if(!(e instanceof l.default)){const r={aliasNodes:[],onTagObj:e=>i=e,prevObjects:[]};e=this.createNode(e,true,null,r);const{anchors:n}=t.doc;for(const e of r.aliasNodes){e.source=e.source.node;let t=n.getName(e.source);if(!t){t=n.newName();n.map[t]=e.source}}}t.tags=this;if(e instanceof d.default)return e.toString(t,r,n);if(!i)i=this.getTagObject(e);const s=this.stringifyProps(e,i,t);const a=typeof i.stringify==="function"?i.stringify(e,t,r,n):e instanceof c.default?e.toString(t,r,n):(0,o.stringifyString)(e,t,r,n);return s?e instanceof c.default&&a[0]!=="{"&&a[0]!=="["?`${s}\n${t.indent}${a}`:`${s} ${a}`:a}}t.default=Schema;_defineProperty(Schema,"defaultPrefix","tag:yaml.org,2002:");_defineProperty(Schema,"defaultTags",{MAP:"tag:yaml.org,2002:map",SEQ:"tag:yaml.org,2002:seq",STR:"tag:yaml.org,2002:str"})},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{const e=process.env.GITHUB_EVENT_PATH;process.stdout.write(`GITHUB_EVENT_PATH ${e} 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.pull_request||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 l=u++;a[l]="\\d*[a-zA-Z-][a-zA-Z0-9-]*";var d=u++;a[d]="("+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[l]+")";var f=u++;a[f]="(?:"+a[c]+"|"+a[l]+")";var h=u++;a[h]="(?:-("+a[m]+"(?:\\."+a[m]+")*))";var y=u++;a[y]="(?:-?("+a[f]+"(?:\\."+a[f]+")*))";var b=u++;a[b]="[0-9A-Za-z-]+";var _=u++;a[_]="(?:\\+("+a[b]+"(?:\\."+a[b]+")*))";var v=u++;var w="v?"+a[d]+a[h]+"?"+a[_]+"?";a[v]="^"+w+"$";var q="[v=\\s]*"+a[g]+a[y]+"?"+a[_]+"?";var E=u++;a[E]="^"+q+"$";var T=u++;a[T]="((?:<|>)?=?)";var k=u++;a[k]=a[c]+"|x|X|\\*";var O=u++;a[O]=a[p]+"|x|X|\\*";var S=u++;a[S]="[v=\\s]*("+a[O]+")"+"(?:\\.("+a[O]+")"+"(?:\\.("+a[O]+")"+"(?:"+a[h]+")?"+a[_]+"?"+")?)?";var j=u++;a[j]="[v=\\s]*("+a[k]+")"+"(?:\\.("+a[k]+")"+"(?:\\.("+a[k]+")"+"(?:"+a[y]+")?"+a[_]+"?"+")?)?";var P=u++;a[P]="^"+a[T]+"\\s*"+a[S]+"$";var C=u++;a[C]="^"+a[T]+"\\s*"+a[j]+"$";var A=u++;a[A]="(?:^|[^\\d])"+"(\\d{1,"+s+"})"+"(?:\\.(\\d{1,"+s+"}))?"+"(?:\\.(\\d{1,"+s+"}))?"+"(?:$|[^\\d])";var R=u++;a[R]="(?:~>?)";var x=u++;a[x]="(\\s*)"+a[R]+"\\s+";o[x]=new RegExp(a[x],"g");var L="$1~";var D=u++;a[D]="^"+a[R]+a[S]+"$";var M=u++;a[M]="^"+a[R]+a[j]+"$";var I=u++;a[I]="(?:\\^)";var G=u++;a[G]="(\\s*)"+a[I]+"\\s+";o[G]=new RegExp(a[G],"g");var N="$1^";var $=u++;a[$]="^"+a[I]+a[S]+"$";var B=u++;a[B]="^"+a[I]+a[j]+"$";var F=u++;a[F]="^"+a[T]+"\\s*("+q+")$|^$";var U=u++;a[U]="^"+a[T]+"\\s*("+w+")$|^$";var H=u++;a[H]="(\\s*)"+a[T]+"\\s*("+q+"|"+a[S]+")";o[H]=new RegExp(a[H],"g");var z="$1$2$3";var W=u++;a[W]="^\\s*("+a[S]+")"+"\\s+-\\s+"+"("+a[S]+")"+"\\s*$";var Y=u++;a[Y]="^\\s*("+a[j]+")"+"\\s+-\\s+"+"("+a[j]+")"+"\\s*$";var V=u++;a[V]="(<|>)?=?\\s*\\*";for(var K=0;Kn){return null}var r=t.loose?o[E]:o[v];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[v]);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 J=/^[0-9]+$/;function compareIdentifiers(e,t){var r=J.test(e);var n=J.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===Q){this.value=""}else{this.value=this.operator+this.semver.version}r("comp",this)}var Q={};Comparator.prototype.parse=function(e){var t=this.options.loose?o[F]:o[U];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=Q}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===Q){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[Y]:o[W];e=e.replace(n,hyphenReplace);r("hyphen replace",e);e=e.replace(o[H],z);r("comparator trim",e,o[H]);e=e.replace(o[x],L);e=e.replace(o[G],N);e=e.split(/\s+/).join(" ");var i=t?o[F]:o[U];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[M]:o[D];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[B]:o[$];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[C]:o[P];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 l=c;if(n==="="&&l){n=""}if(u){if(n===">"||n==="<"){t="<0.0.0"}else{t="*"}}else if(n&&l){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[V],"")}function hyphenReplace(e,t,r,n,i,s,o,a,u,p,c,l,d){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(l){a="<="+u+"."+p+"."+c+"-"+l}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")}l=l||e;d=d||e;if(i(e.semver,l.semver,n)){l=e}else if(o(e.semver,d.semver,n)){d=e}});if(l.operator===a||l.operator===u){return false}if((!d.operator||d.operator===a)&&s(e,d.semver)){return false}else if(d.operator===u&&o(e,d.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[A]);if(t==null){return null}return parse(t[1]+"."+(t[2]||"0")+"."+(t[3]||"0"))}},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(796);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 l=`octokit.js/${o.version} ${i()}`;s.headers["user-agent"]=[c,l].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}}},299:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:true});const r="1.1.2";const n=[/^\/search\//,/^\/repos\/[^\/]+\/[^\/]+\/commits\/[^\/]+\/(check-runs|check-suites)([^\/]|$)/,/^\/installation\/repositories([^\/]|$)/,/^\/user\/installations([^\/]|$)/,/^\/repos\/[^\/]+\/[^\/]+\/actions\/secrets([^\/]|$)/,/^\/repos\/[^\/]+\/[^\/]+\/actions\/workflows(\/[^\/]+\/runs)?([^\/]|$)/,/^\/repos\/[^\/]+\/[^\/]+\/actions\/runs(\/[^\/]+\/(artifacts|jobs))?([^\/]|$)/];function normalizePaginatedListResponse(e,t,r){const i=t.replace(e.request.endpoint.DEFAULTS.baseUrl,"");const s=n.find(e=>e.test(i));if(!s)return;const o=r.data.incomplete_results;const a=r.data.repository_selection;const u=r.data.total_count;delete r.data.incomplete_results;delete r.data.repository_selection;delete r.data.total_count;const p=Object.keys(r.data)[0];const c=r.data[p];r.data=c;if(typeof o!=="undefined"){r.data.incomplete_results=o}if(typeof a!=="undefined"){r.data.repository_selection=a}r.data.total_count=u;Object.defineProperty(r.data,p,{get(){e.log.warn(`[@octokit/paginate-rest] "response.data.${p}" is deprecated for "GET ${i}". Get the results directly from "response.data"`);return Array.from(c)}})}function iterator(e,t,r){const n=e.request.endpoint(t,r);const i=n.method;const s=n.headers;let o=n.url;return{[Symbol.asyncIterator]:()=>({next(){if(!o){return Promise.resolve({done:true})}return e.request({method:i,url:o,headers:s}).then(t=>{normalizePaginatedListResponse(e,o,t);o=((t.headers.link||"").match(/<([^>]+)>;\s*rel="next"/)||[])[1];return{value:t}})}})}}function paginate(e,t,r,n){if(typeof r==="function"){n=r;r=undefined}return gather(e,[],iterator(e,t,r)[Symbol.asyncIterator](),n)}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)})}function paginateRest(e){return{paginate:Object.assign(paginate.bind(null,e),{iterator:iterator.bind(null,e)})}}paginateRest.VERSION=r;t.paginateRest=paginateRest},309:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:true});t.default=parse;var n=_interopRequireDefault(r(928));var i=_interopRequireDefault(r(968));function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}function parse(e){const t=[];if(e.indexOf("\r")!==-1){e=e.replace(/\r\n?/g,(e,r)=>{if(e.length>1)t.push(r);return"\n"})}const r=[];let s=0;do{const t=new n.default;const o=new i.default({src:e});s=t.parse(o,s);r.push(t)}while(s{if(t.length===0)return false;for(let e=1;er.join("...\n"));return r}},323:function(e){"use strict";var t=e.exports=function(e){return e!==null&&typeof e==="object"&&typeof e.pipe==="function"};t.writable=function(e){return t(e)&&e.writable!==false&&typeof e._write==="function"&&typeof e._writableState==="object"};t.readable=function(e){return t(e)&&e.readable!==false&&typeof e._read==="function"&&typeof e._readableState==="object"};t.duplex=function(e){return t.writable(e)&&t.readable(e)};t.transform=function(e){return t.duplex(e)&&typeof e._transform==="function"&&typeof e._transformState==="object"}},325:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:true});t.default=void 0;var n=_interopRequireDefault(r(836));var i=r(49);var s=_interopRequireDefault(r(923));var o=_interopRequireDefault(r(380));var a=_interopRequireDefault(r(156));var u=_interopRequireDefault(r(515));function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}const p=(e,t,r)=>{if(t===null)return"";if(typeof t!=="object")return String(t);if(e instanceof a.default&&r&&r.doc)return e.toString({anchors:{},doc:r.doc,indent:"",inFlow:true,inStringifyKey:true});return JSON.stringify(t)};class Pair extends a.default{constructor(e,t=null){super();this.key=e;this.value=t;this.type="PAIR"}get commentBefore(){return this.key&&this.key.commentBefore}set commentBefore(e){if(this.key==null)this.key=new u.default(null);this.key.commentBefore=e}addToJSMap(e,t){const r=(0,s.default)(this.key,"",e);if(t instanceof Map){const n=(0,s.default)(this.value,r,e);t.set(r,n)}else if(t instanceof Set){t.add(r)}else{const n=p(this.key,r,e);t[n]=(0,s.default)(this.value,n,e)}return t}toJSON(e,t){const r=t&&t.mapAsMap?new Map:{};return this.addToJSMap(t,r)}toString(e,t,r){if(!e||!e.doc)return JSON.stringify(this);const{simpleKeys:s}=e.doc.options;let{key:u,value:p}=this;let c=u instanceof a.default&&u.comment;if(s){if(c){throw new Error("With simple keys, key nodes cannot have comments")}if(u instanceof o.default){const e="With simple keys, collection cannot be used as a key value";throw new Error(e)}}const l=!s&&(!u||c||u instanceof o.default||u.type===i.Type.BLOCK_FOLDED||u.type===i.Type.BLOCK_LITERAL);const{doc:d,indent:g}=e;e=Object.assign({},e,{implicitKey:!l,indent:g+" "});let m=false;let f=d.schema.stringify(u,e,()=>c=null,()=>m=true);f=(0,n.default)(f,e.indent,c);if(e.allNullValues&&!s){if(this.comment){f=(0,n.default)(f,e.indent,this.comment);if(t)t()}else if(m&&!c&&r)r();return e.inFlow?f:`? ${f}`}f=l?`? ${f}\n${g}:`:`${f}:`;if(this.comment){f=(0,n.default)(f,e.indent,this.comment);if(t)t()}let h="";let y=null;if(p instanceof a.default){if(p.spaceBefore)h="\n";if(p.commentBefore){const t=p.commentBefore.replace(/^/gm,`${e.indent}#`);h+=`\n${t}`}y=p.comment}else if(p&&typeof p==="object"){p=d.schema.createNode(p,true)}e.implicitKey=false;m=false;const b=d.schema.stringify(p,e,()=>y=null,()=>m=true);let _=" ";if(h||this.comment){_=`${h}\n${e.indent}`}else if(!l&&p instanceof o.default){const t=b[0]==="["||b[0]==="{";if(!t||b.includes("\n"))_=`\n${e.indent}`}if(m&&!y&&r)r();return(0,n.default)(f+_+b,e.indent,y)}}t.default=Pair},336:function(e,t,r){e.exports=hasLastPage;const n=r(370);const i=r(577);function hasLastPage(e){n(`octokit.hasLastPage() – You can use octokit.paginate or async iterators instead: https://github.com/octokit/rest.js#pagination.`);return i(e).last}},339:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:true});t.tags=t.schemas=void 0;var n=_interopRequireDefault(r(775));var i=_interopRequireDefault(r(195));var s=_interopRequireDefault(r(77));var o=_interopRequireDefault(r(550));var a=_interopRequireDefault(r(732));var u=_interopRequireDefault(r(767));var p=_interopRequireDefault(r(996));var c=_interopRequireDefault(r(821));var l=_interopRequireDefault(r(566));var d=_interopRequireDefault(r(785));var g=r(414);function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}const m={core:n.default,failsafe:i.default,json:s.default,yaml11:o.default};t.schemas=m;const f={binary:p.default,floatTime:g.floatTime,intTime:g.intTime,map:a.default,omap:c.default,pairs:l.default,seq:u.default,set:d.default,timestamp:g.timestamp};t.tags=f},348:function(e,t,r){"use strict";e.exports=validate;const{RequestError:n}=r(463);const i=r(854);const s=r(883);function validate(e,t){if(!t.request.validate){return}const{validate:r}=t.request;Object.keys(r).forEach(e=>{const o=i(r,e);const a=o.type;let u;let p;let c=true;let l=false;if(/\./.test(e)){u=e.replace(/\.[^.]+$/,"");l=u.slice(-2)==="[]";if(l){u=u.slice(0,-2)}p=i(t,u);c=u==="headers"||typeof p==="object"&&p!==null}const d=l?(i(t,u)||[]).map(t=>t[e.split(/\./).pop()]):[i(t,e)];d.forEach((r,i)=>{const u=typeof r!=="undefined";const p=r===null;const d=l?e.replace(/\[\]/,`[${i}]`):e;if(!o.required&&!u){return}if(!c){return}if(o.allowNull&&p){return}if(!o.allowNull&&p){throw new n(`'${d}' cannot be null`,400,{request:t})}if(o.required&&!u){throw new n(`Empty value for parameter '${d}': ${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 '${d}': ${JSON.stringify(e)} is NaN`,400,{request:t})}}if(o.enum&&o.enum.indexOf(String(r))===-1){throw new n(`Invalid value for parameter '${d}': ${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 '${d}': ${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 '${d}': ${JSON.stringify(r)}`,400,{request:t})}}s(t,o.mapTo||d,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)})}},354: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)}},357:function(e){e.exports=require("assert")},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)()})}},368:function(e){e.exports=function atob(e){return Buffer.from(e,"base64").toString("binary")}},370:function(e){e.exports=deprecate;const t={};function deprecate(e){if(t[e]){return}console.warn(`DEPRECATED (@octokit/rest): ${e}`);t[e]=1}},380:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:true});t.default=t.isEmptyPath=void 0;var n=_interopRequireDefault(r(836));var i=_interopRequireDefault(r(156));var s=_interopRequireDefault(r(325));var o=_interopRequireDefault(r(515));function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}function _defineProperty(e,t,r){if(t in e){Object.defineProperty(e,t,{value:r,enumerable:true,configurable:true,writable:true})}else{e[t]=r}return e}const a=e=>e==null||typeof e==="object"&&e[Symbol.iterator]().next().done;t.isEmptyPath=a;class Collection extends i.default{constructor(...e){super(...e);_defineProperty(this,"items",[])}addIn(e,t){if(a(e))this.add(t);else{const[r,...n]=e;const i=this.get(r,true);if(i instanceof Collection)i.addIn(n,t);else throw new Error(`Expected YAML collection at ${r}. Remaining path: ${n}`)}}deleteIn([e,...t]){if(t.length===0)return this.delete(e);const r=this.get(e,true);if(r instanceof Collection)return r.deleteIn(t);else throw new Error(`Expected YAML collection at ${e}. Remaining path: ${t}`)}getIn([e,...t],r){const n=this.get(e,true);if(t.length===0)return!r&&n instanceof o.default?n.value:n;else return n instanceof Collection?n.getIn(t,r):undefined}hasAllNullValues(){return this.items.every(e=>{if(!(e instanceof s.default))return false;const t=e.value;return t==null||t instanceof o.default&&t.value==null&&!t.commentBefore&&!t.comment&&!t.tag})}hasIn([e,...t]){if(t.length===0)return this.has(e);const r=this.get(e,true);return r instanceof Collection?r.hasIn(t):false}setIn([e,...t],r){if(t.length===0){this.set(e,r)}else{const n=this.get(e,true);if(n instanceof Collection)n.setIn(t,r);else throw new Error(`Expected YAML collection at ${e}. Remaining path: ${t}`)}}toJSON(){return null}toString(e,{blockItem:t,flowChars:r,isMap:i,itemIndent:s},o,a){const{doc:u,indent:p}=e;const c=this.type&&this.type.substr(0,4)==="FLOW"||e.inFlow;if(c)s+=" ";const l=i&&this.hasAllNullValues();e=Object.assign({},e,{allNullValues:l,indent:s,inFlow:c,type:null});let d=false;let g=false;const m=this.items.reduce((t,r,i)=>{let o;if(r){if(!d&&r.spaceBefore)t.push({type:"comment",str:""});if(r.commentBefore)r.commentBefore.match(/^.*$/gm).forEach(e=>{t.push({type:"comment",str:`#${e}`})});if(r.comment)o=r.comment;if(c&&(!d&&r.spaceBefore||r.commentBefore||r.comment||r.key&&(r.key.commentBefore||r.key.comment)||r.value&&(r.value.commentBefore||r.value.comment)))g=true}d=false;let a=u.schema.stringify(r,e,()=>o=null,()=>d=true);if(c&&!g&&a.includes("\n"))g=true;if(c&&ie.str);if(g||n.reduce((e,t)=>e+t.length+2,2)>Collection.maxFlowStringSingleLineLength){f=e;for(const e of n){f+=e?`\n ${p}${e}`:"\n"}f+=`\n${p}${t}`}else{f=`${e} ${n.join(" ")} ${t}`}}else{const e=m.map(t);f=e.shift();for(const t of e)f+=t?`\n${p}${t}`:"\n"}if(this.comment){f+="\n"+this.comment.replace(/^/gm,`${p}#`);if(o)o()}else if(d&&a)a();return f}}t.default=Collection;_defineProperty(Collection,"maxFlowStringSingleLineLength",60)},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.3";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},386:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:true});t.default=t.MERGE_KEY=void 0;var n=_interopRequireDefault(r(684));var i=_interopRequireDefault(r(325));var s=_interopRequireDefault(r(515));var o=_interopRequireDefault(r(29));function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}const a="<<";t.MERGE_KEY=a;class Merge extends i.default{constructor(e){if(e instanceof i.default){let t=e.value;if(!(t instanceof o.default)){t=new o.default;t.items.push(e.value);t.range=e.value.range}super(e.key,t);this.range=e.range}else{super(new s.default(a),new o.default)}this.type="MERGE_PAIR"}addToJSMap(e,t){for(const{source:r}of this.value.items){if(!(r instanceof n.default))throw new Error("Merge sources must be maps");const i=r.toJSON(null,e,Map);for(const[e,r]of i){if(t instanceof Map){if(!t.has(e))t.set(e,r)}else if(t instanceof Set){t.add(e)}else{if(!Object.prototype.hasOwnProperty.call(t,e))t[e]=r}}}return t}toString(e,t){const r=this.value;if(r.items.length>1)return super.toString(e,t);this.value=r.items[0];const n=super.toString(e,t);this.value=r;return n}}t.default=Merge},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},397:function(e,t,r){e.exports=getNextPage;const n=r(265);function getNextPage(e,t,r){return n(e,t,"next",r)}},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}},405:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:true});t.YAMLWarning=t.YAMLSyntaxError=t.YAMLSemanticError=t.YAMLReferenceError=t.YAMLError=void 0;var n=_interopRequireDefault(r(974));var i=r(41);var s=_interopRequireDefault(r(19));function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}class YAMLError extends Error{constructor(e,t,r){if(!r||!(t instanceof n.default))throw new Error(`Invalid arguments for new ${e}`);super();this.name=e;this.message=r;this.source=t}makePretty(){if(!this.source)return;this.nodeType=this.source.type;const e=this.source.context&&this.source.context.root;if(typeof this.offset==="number"){this.range=new s.default(this.offset,this.offset+1);const t=e&&(0,i.getLinePos)(this.offset,e);if(t){const e={line:t.line,col:t.col+1};this.linePos={start:t,end:e}}delete this.offset}else{this.range=this.source.range;this.linePos=this.source.rangeAsLinePos}if(this.linePos){const{line:t,col:r}=this.linePos.start;this.message+=` at line ${t}, column ${r}`;const n=e&&(0,i.getPrettyContext)(this.linePos,e);if(n)this.message+=`:\n\n${n}\n`}delete this.source}}t.YAMLError=YAMLError;class YAMLReferenceError extends YAMLError{constructor(e,t){super("YAMLReferenceError",e,t)}}t.YAMLReferenceError=YAMLReferenceError;class YAMLSemanticError extends YAMLError{constructor(e,t){super("YAMLSemanticError",e,t)}}t.YAMLSemanticError=YAMLSemanticError;class YAMLSyntaxError extends YAMLError{constructor(e,t){super("YAMLSyntaxError",e,t)}}t.YAMLSyntaxError=YAMLSyntaxError;class YAMLWarning extends YAMLError{constructor(e,t){super("YAMLWarning",e,t)}}t.YAMLWarning=YAMLWarning},411:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:true});t.default=void 0;var n=r(405);var i=_interopRequireDefault(r(974));var s=_interopRequireDefault(r(19));function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}class QuoteSingle extends i.default{static endOfQuote(e,t){let r=e[t];while(r){if(r==="'"){if(e[t+1]!=="'")break;r=e[t+=2]}else{r=e[t+=1]}}return t+1}get strValue(){if(!this.valueRange||!this.context)return null;const e=[];const{start:t,end:r}=this.valueRange;const{indent:s,src:o}=this.context;if(o[r-1]!=="'")e.push(new n.YAMLSyntaxError(this,"Missing closing 'quote"));let a="";for(let u=t+1;ue?o.slice(e,u+1):t}else{a+=t}}return e.length>0?{errors:e,str:a}:a}parse(e,t){this.context=e;const{src:r}=e;let n=QuoteSingle.endOfQuote(r,t+1);this.valueRange=new s.default(t,n);n=i.default.endOfWhiteSpace(r,n);n=this.parseComment(n);return n}}t.default=QuoteSingle},413:function(e){e.exports=require("stream")},414:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:true});t.timestamp=t.floatTime=t.intTime=void 0;var n=r(454);const i=(e,t)=>{const r=t.split(":").reduce((e,t)=>e*60+Number(t),0);return e==="-"?-r:r};const s=({value:e})=>{if(isNaN(e)||!isFinite(e))return(0,n.stringifyNumber)(e);let t="";if(e<0){t="-";e=Math.abs(e)}const r=[e%60];if(e<60){r.unshift(0)}else{e=Math.round((e-r[0])/60);r.unshift(e%60);if(e>=60){e=Math.round((e-r[0])/60);r.unshift(e)}}return t+r.map(e=>e<10?"0"+String(e):String(e)).join(":").replace(/000000\d*$/,"")};const o={identify:e=>typeof e==="number",default:true,tag:"tag:yaml.org,2002:int",format:"TIME",test:/^([-+]?)([0-9][0-9_]*(?::[0-5]?[0-9])+)$/,resolve:(e,t,r)=>i(t,r.replace(/_/g,"")),stringify:s};t.intTime=o;const a={identify:e=>typeof e==="number",default:true,tag:"tag:yaml.org,2002:float",format:"TIME",test:/^([-+]?)([0-9][0-9_]*(?::[0-5]?[0-9])+\.[0-9_]*)$/,resolve:(e,t,r)=>i(t,r.replace(/_/g,"")),stringify:s};t.floatTime=a;const u={identify:e=>e instanceof Date,default:true,tag:"tag:yaml.org,2002:timestamp",test:RegExp("^(?:"+"([0-9]{4})-([0-9]{1,2})-([0-9]{1,2})"+"(?:(?:t|T|[ \\t]+)"+"([0-9]{1,2}):([0-9]{1,2}):([0-9]{1,2}(\\.[0-9]+)?)"+"(?:[ \\t]*(Z|[-+][012]?[0-9](?::[0-9]{2})?))?"+")?"+")$"),resolve:(e,t,r,n,s,o,a,u,p)=>{if(u)u=(u+"00").substr(1,3);let c=Date.UTC(t,r-1,n,s||0,o||0,a||0,u||0);if(p&&p!=="Z"){let e=i(p[0],p.slice(1));if(Math.abs(e)<30)e*=60;c-=6e4*e}return new Date(c)},stringify:({value:e})=>e.toISOString().replace(/((T00:00)?:00)?\.000Z$/,"")};t.timestamp=u},415:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:true});t.default=foldFlowLines;t.FOLD_QUOTED=t.FOLD_BLOCK=t.FOLD_FLOW=void 0;const r="flow";t.FOLD_FLOW=r;const n="block";t.FOLD_BLOCK=n;const i="quoted";t.FOLD_QUOTED=i;const s=(e,t)=>{let r=e[t+1];while(r===" "||r==="\t"){do{r=e[t+=1]}while(r&&r!=="\n");r=e[t+1]}return t};function foldFlowLines(e,t,r,{indentAtStart:o,lineWidth:a=80,minContentWidth:u=20,onFold:p,onOverflow:c}){if(!a||a<0)return e;const l=Math.max(1+u,1+a-t.length);if(e.length<=l)return e;const d=[];const g={};let m=a-(typeof o==="number"?o:t.length);let f=undefined;let h=undefined;let y=false;let b=-1;if(r===n){b=s(e,b);if(b!==-1)m=b+l}for(let t;t=e[b+=1];){if(r===i&&t==="\\"){switch(e[b+1]){case"x":b+=3;break;case"u":b+=5;break;case"U":b+=9;break;default:b+=1}}if(t==="\n"){if(r===n)b=s(e,b);m=b+l;f=undefined}else{if(t===" "&&h&&h!==" "&&h!=="\n"&&h!=="\t"){const t=e[b+1];if(t&&t!==" "&&t!=="\n"&&t!=="\t")f=b}if(b>=m){if(f){d.push(f);m=f+l;f=undefined}else if(r===i){while(h===" "||h==="\t"){h=t;t=e[b+=1];y=true}d.push(b-2);g[b-2]=true;m=b-2+l;f=undefined}else{y=true}}}h=t}if(y&&c)c();if(d.length===0)return e;if(p)p();let _=e.slice(0,d[0]);for(let n=0;nerrname(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));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 s="::";class Command{constructor(e,t,r){if(!e){e="missing.command"}this.command=e;this.properties=t;this.message=r}toString(){let e=s+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+=`${s}${escapeData(this.message)}`;return e}}function escapeData(e){return(e||"").replace(/%/g,"%25").replace(/\r/g,"%0D").replace(/\n/g,"%0A")}function escapeProperty(e){return(e||"").replace(/%/g,"%25").replace(/\r/g,"%0D").replace(/\n/g,"%0A").replace(/:/g,"%3A").replace(/,/g,"%2C")}},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 l=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 l=false;return function(t){if(a)return;if(l)return;l=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 d=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 l(i,o,a,function(e){if(!r)r=e;if(e)n.forEach(d);if(o)return;n.forEach(d);t(r)})});return e.reduce(g)};e.exports=m},454:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:true});t.stringifyNumber=stringifyNumber;t.stringifyString=stringifyString;var n=r(836);var i=r(49);var s=_interopRequireWildcard(r(415));var o=r(422);function _getRequireWildcardCache(){if(typeof WeakMap!=="function")return null;var e=new WeakMap;_getRequireWildcardCache=function(){return e};return e}function _interopRequireWildcard(e){if(e&&e.__esModule){return e}var t=_getRequireWildcardCache();if(t&&t.has(e)){return t.get(e)}var r={};if(e!=null){var n=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in e){if(Object.prototype.hasOwnProperty.call(e,i)){var s=n?Object.getOwnPropertyDescriptor(e,i):null;if(s&&(s.get||s.set)){Object.defineProperty(r,i,s)}else{r[i]=e[i]}}}}r.default=e;if(t){t.set(e,r)}return r}function stringifyNumber({format:e,minFractionDigits:t,tag:r,value:n}){if(!isFinite(n))return isNaN(n)?".nan":n<0?"-.inf":".inf";let i=JSON.stringify(n);if(!e&&t&&(!r||r==="tag:yaml.org,2002:float")&&/^\d/.test(i)){let e=i.indexOf(".");if(e<0){e=i.length;i+="."}let r=t-(i.length-e-1);while(r-- >0)i+="0"}return i}function lineLengthOverLimit(e,t){const r=e.length;if(r<=t)return false;for(let n=0,i=0;nt)return true;i=n+1;if(r-i<=t)return false}}return true}function doubleQuotedString(e,{implicitKey:t,indent:r}){const{jsonEncoding:n,minMultiLineLength:i}=o.strOptions.doubleQuoted;const a=JSON.stringify(e);if(n)return a;let u="";let p=0;for(let e=0,n=a[e];n;n=a[++e]){if(n===" "&&a[e+1]==="\\"&&a[e+2]==="n"){u+=a.slice(p,e)+"\\ ";e+=1;p=e;n="\\"}if(n==="\\")switch(a[e+1]){case"u":{u+=a.slice(p,e);const t=a.substr(e+2,4);switch(t){case"0000":u+="\\0";break;case"0007":u+="\\a";break;case"000b":u+="\\v";break;case"001b":u+="\\e";break;case"0085":u+="\\N";break;case"00a0":u+="\\_";break;case"2028":u+="\\L";break;case"2029":u+="\\P";break;default:if(t.substr(0,2)==="00")u+="\\x"+t.substr(2);else u+=a.substr(e,6)}e+=5;p=e+1}break;case"n":if(t||a[e+2]==='"'||a.length";if(!r)return d+"\n";let g="";let m="";r=r.replace(/[\n\t ]*$/,e=>{const t=e.indexOf("\n");if(t===-1){d+="-"}else if(r===e||t!==e.length-1){d+="+";if(u)u()}m=e.replace(/\n$/,"");return""}).replace(/^[\n ]*/,e=>{if(e.indexOf(" ")!==-1)d+=c;const t=e.match(/ +$/);if(t){g=e.slice(0,-t[0].length);return t[0]}else{g=e;return""}});if(m)m=m.replace(/\n+(?!\n|$)/g,`$&${p}`);if(g)g=g.replace(/\n+/g,`$&${p}`);if(e){d+=" #"+e.replace(/ ?[\r\n]+/g," ");if(a)a()}if(!r)return`${d}${c}\n${p}${m}`;if(l){r=r.replace(/\n+/g,`$&${p}`);return`${d}\n${p}${g}${r}${m}`}r=r.replace(/\n+/g,"\n$&").replace(/(?:^|\n)([\t ].*)(?:([\n\t ]*)\n(?![\n\t ]))?/g,"$1$2").replace(/\n+/g,`$&${p}`);const f=(0,s.default)(`${g}${r}${m}`,p,s.FOLD_BLOCK,o.strOptions.fold);return`${d}\n${p}${f}`}function plainString(e,t,r,a){const{comment:u,type:p,value:c}=e;const{actualString:l,implicitKey:d,indent:g,inFlow:m,tags:f}=t;if(d&&/[\n[\]{},]/.test(c)||m&&/[[\]{},]/.test(c)){return doubleQuotedString(c,t)}if(!c||/^[\n\t ,[\]{}#&*!|>'"%@`]|^[?-]$|^[?-][ \t]|[\n:][ \t]|[ \t]\n|[\n\t ]#|[\n\t :]$/.test(c)){return d||m||c.indexOf("\n")===-1?c.indexOf('"')!==-1&&c.indexOf("'")===-1?singleQuotedString(c,t):doubleQuotedString(c,t):blockString(e,t,r,a)}if(!d&&!m&&p!==i.Type.PLAIN&&c.indexOf("\n")!==-1){return blockString(e,t,r,a)}const h=c.replace(/\n+/g,`$&\n${g}`);if(l&&typeof f.resolveScalar(h).value!=="string"){return doubleQuotedString(c,t)}const y=d?h:(0,s.default)(h,g,s.FOLD_FLOW,o.strOptions.fold);if(u&&!m&&(y.indexOf("\n")!==-1||u.indexOf("\n")!==-1)){if(r)r();return(0,n.addCommentBefore)(y,g,u)}return y}function stringifyString(e,t,r,n){const{defaultType:s}=o.strOptions;const{implicitKey:a,inFlow:u}=t;let{type:p,value:c}=e;if(typeof c!=="string"){c=String(c);e=Object.assign({},e,{value:c})}const l=s=>{switch(s){case i.Type.BLOCK_FOLDED:case i.Type.BLOCK_LITERAL:return blockString(e,t,r,n);case i.Type.QUOTE_DOUBLE:return doubleQuotedString(c,t);case i.Type.QUOTE_SINGLE:return singleQuotedString(c,t);case i.Type.PLAIN:return plainString(e,t,r,n);default:return null}};if(p!==i.Type.QUOTE_DOUBLE&&/[\x00-\x08\x0b-\x1f\x7f-\x9f]/.test(c)){p=i.Type.QUOTE_DOUBLE}else if((a||u)&&(p===i.Type.BLOCK_FOLDED||p===i.Type.BLOCK_LITERAL)){p=i.Type.QUOTE_DOUBLE}let d=l(p);if(d===null){d=l(s);if(d===null)throw new Error(`Unsupported default string type ${s}`)}return d}},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.__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=r(898);const s=r(0);const o=n(r(262));const a=n(r(539));s.Octokit.prototype=new s.Octokit;t.context=new o.Context;class GitHub extends s.Octokit{constructor(e,t){super(GitHub.getOctokitOptions(GitHub.disambiguate(e,t)));this.graphql=GitHub.getGraphQL(GitHub.disambiguate(e,t))}static disambiguate(e,t){return[typeof e==="string"?e:"",typeof e==="object"?e:t||{}]}static getOctokitOptions(e){const t=e[0];const r=Object.assign({},e[1]);const n=GitHub.getAuthString(t,r);if(n){r.auth=n}const i=GitHub.getProxyAgent(r);if(i){r.request=r.request?Object.assign({},r.request):{};r.request.agent=i}return r}static getGraphQL(e){const t={};const r=e[0];const n=e[1];const s=this.getAuthString(r,n);if(s){t.headers={authorization:s}}const o=GitHub.getProxyAgent(n);if(o){t.request={agent:o}}return i.graphql.defaults(t)}static getAuthString(e,t){if(!e&&!t.auth){throw new Error("Parameter token or opts.auth is required")}else if(e&&t.auth){throw new Error("Parameters token and opts.auth may not both be specified")}return typeof t.auth==="string"?t.auth:`token ${e}`}static getProxyAgent(e){var t;if(!((t=e.request)===null||t===void 0?void 0:t.agent)){const e="https://api.github.com";if(a.getProxyUrl(e)){const t=new a.HttpClient;return t.getAgent(e)}}return undefined}}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=i(r(87));const a=i(r(622));var u;(function(e){e[e["Success"]=0]="Success";e[e["Failure"]=1]="Failure"})(u=t.ExitCode||(t.ExitCode={}));function exportVariable(e,t){process.env[e]=t;s.issueCommand("set-env",{name:e},t)}t.exportVariable=exportVariable;function setSecret(e){s.issueCommand("add-mask",{},e)}t.setSecret=setSecret;function addPath(e){s.issueCommand("add-path",{},e);process.env["PATH"]=`${e}${a.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 setFailed(e){process.exitCode=u.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)}t.error=error;function warning(e){s.issue("warning",e)}t.warning=warning;function info(e){process.stdout.write(e+o.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}`}},487:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:true});t.default=void 0;var n=r(49);var i=_interopRequireDefault(r(974));var s=_interopRequireDefault(r(19));function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}class Comment extends i.default{constructor(){super(n.Type.COMMENT)}parse(e,t){this.context=e;const r=this.parseComment(t);this.range=new s.default(t,r);return r}}t.default=Comment},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},494: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},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})}},514:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:true});t.default=void 0;var n=_interopRequireDefault(r(637));var i=_interopRequireDefault(r(684));var s=_interopRequireDefault(r(386));var o=_interopRequireDefault(r(515));var a=_interopRequireDefault(r(29));function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}function _defineProperty(e,t,r){if(t in e){Object.defineProperty(e,t,{value:r,enumerable:true,configurable:true,writable:true})}else{e[t]=r}return e}class Anchors{static validAnchorNode(e){return e instanceof o.default||e instanceof a.default||e instanceof i.default}constructor(e){_defineProperty(this,"map",{});this.prefix=e}createAlias(e,t){this.setAnchor(e,t);return new n.default(e)}createMergePair(...e){const t=new s.default;t.value.items=e.map(e=>{if(e instanceof n.default){if(e.source instanceof i.default)return e}else if(e instanceof i.default){return this.createAlias(e)}throw new Error("Merge sources must be Map nodes or their Aliases")});return t}getName(e){const{map:t}=this;return Object.keys(t).find(r=>t[r]===e)}getNode(e){return this.map[e]}newName(e){if(!e)e=this.prefix;const t=Object.keys(this.map);for(let r=1;true;++r){const n=`${e}${r}`;if(!t.includes(n))return n}}resolveNodes(){const{map:e,_cstAliases:t}=this;Object.keys(e).forEach(t=>{e[t]=e[t].resolved});t.forEach(e=>{e.source=e.source.resolved});delete this._cstAliases}setAnchor(e,t){if(e!=null&&!Anchors.validAnchorNode(e)){throw new Error("Anchors may only be set for Scalar, Seq and Map nodes")}if(t&&/[\x00-\x19\s,[\]{}]/.test(t)){throw new Error("Anchor names must not contain whitespace or control characters")}const{map:r}=this;const n=e&&Object.keys(r).find(t=>r[t]===e);if(n){if(!t){return n}else if(n!==t){delete r[n];r[t]=e}}else{if(!t){if(!e)return null;t=this.newName()}r[t]=e}return t}}t.default=Anchors},515:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:true});t.default=void 0;var n=_interopRequireDefault(r(923));var i=_interopRequireDefault(r(156));function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}class Scalar extends i.default{constructor(e){super();this.value=e}toJSON(e,t){return t&&t.keep?this.value:(0,n.default)(this.value,e,t)}toString(){return String(this.value)}}t.default=Scalar},521:function(e,t,r){e.exports=r(792).default},523:function(e,t,r){var n=r(363);var i=r(510);var s=r(354);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}},539:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:true});const n=r(835);const i=r(605);const s=r(34);const o=r(950);let a;var u;(function(e){e[e["OK"]=200]="OK";e[e["MultipleChoices"]=300]="MultipleChoices";e[e["MovedPermanently"]=301]="MovedPermanently";e[e["ResourceMoved"]=302]="ResourceMoved";e[e["SeeOther"]=303]="SeeOther";e[e["NotModified"]=304]="NotModified";e[e["UseProxy"]=305]="UseProxy";e[e["SwitchProxy"]=306]="SwitchProxy";e[e["TemporaryRedirect"]=307]="TemporaryRedirect";e[e["PermanentRedirect"]=308]="PermanentRedirect";e[e["BadRequest"]=400]="BadRequest";e[e["Unauthorized"]=401]="Unauthorized";e[e["PaymentRequired"]=402]="PaymentRequired";e[e["Forbidden"]=403]="Forbidden";e[e["NotFound"]=404]="NotFound";e[e["MethodNotAllowed"]=405]="MethodNotAllowed";e[e["NotAcceptable"]=406]="NotAcceptable";e[e["ProxyAuthenticationRequired"]=407]="ProxyAuthenticationRequired";e[e["RequestTimeout"]=408]="RequestTimeout";e[e["Conflict"]=409]="Conflict";e[e["Gone"]=410]="Gone";e[e["InternalServerError"]=500]="InternalServerError";e[e["NotImplemented"]=501]="NotImplemented";e[e["BadGateway"]=502]="BadGateway";e[e["ServiceUnavailable"]=503]="ServiceUnavailable";e[e["GatewayTimeout"]=504]="GatewayTimeout"})(u=t.HttpCodes||(t.HttpCodes={}));var p;(function(e){e["Accept"]="accept";e["ContentType"]="content-type"})(p=t.Headers||(t.Headers={}));var c;(function(e){e["ApplicationJson"]="application/json"})(c=t.MediaTypes||(t.MediaTypes={}));function getProxyUrl(e){let t=o.getProxyUrl(n.parse(e));return t?t.href:""}t.getProxyUrl=getProxyUrl;const l=[u.MovedPermanently,u.ResourceMoved,u.SeeOther,u.TemporaryRedirect,u.PermanentRedirect];const d=[u.BadGateway,u.ServiceUnavailable,u.GatewayTimeout];const g=["OPTIONS","GET","DELETE","HEAD"];const m=10;const f=5;class HttpClientResponse{constructor(e){this.message=e}readBody(){return new Promise(async(e,t)=>{let r=Buffer.alloc(0);this.message.on("data",e=>{r=Buffer.concat([r,e])});this.message.on("end",()=>{e(r.toString())})})}}t.HttpClientResponse=HttpClientResponse;function isHttps(e){let t=n.parse(e);return t.protocol==="https:"}t.isHttps=isHttps;class HttpClient{constructor(e,t,r){this._ignoreSslError=false;this._allowRedirects=true;this._allowRedirectDowngrade=false;this._maxRedirects=50;this._allowRetries=false;this._maxRetries=1;this._keepAlive=false;this._disposed=false;this.userAgent=e;this.handlers=t||[];this.requestOptions=r;if(r){if(r.ignoreSslError!=null){this._ignoreSslError=r.ignoreSslError}this._socketTimeout=r.socketTimeout;if(r.allowRedirects!=null){this._allowRedirects=r.allowRedirects}if(r.allowRedirectDowngrade!=null){this._allowRedirectDowngrade=r.allowRedirectDowngrade}if(r.maxRedirects!=null){this._maxRedirects=Math.max(r.maxRedirects,0)}if(r.keepAlive!=null){this._keepAlive=r.keepAlive}if(r.allowRetries!=null){this._allowRetries=r.allowRetries}if(r.maxRetries!=null){this._maxRetries=r.maxRetries}}}options(e,t){return this.request("OPTIONS",e,null,t||{})}get(e,t){return this.request("GET",e,null,t||{})}del(e,t){return this.request("DELETE",e,null,t||{})}post(e,t,r){return this.request("POST",e,t,r||{})}patch(e,t,r){return this.request("PATCH",e,t,r||{})}put(e,t,r){return this.request("PUT",e,t,r||{})}head(e,t){return this.request("HEAD",e,null,t||{})}sendStream(e,t,r,n){return this.request(e,t,r,n)}async getJson(e,t={}){t[p.Accept]=this._getExistingOrDefaultHeader(t,p.Accept,c.ApplicationJson);let r=await this.get(e,t);return this._processResponse(r,this.requestOptions)}async postJson(e,t,r={}){let n=JSON.stringify(t,null,2);r[p.Accept]=this._getExistingOrDefaultHeader(r,p.Accept,c.ApplicationJson);r[p.ContentType]=this._getExistingOrDefaultHeader(r,p.ContentType,c.ApplicationJson);let i=await this.post(e,n,r);return this._processResponse(i,this.requestOptions)}async putJson(e,t,r={}){let n=JSON.stringify(t,null,2);r[p.Accept]=this._getExistingOrDefaultHeader(r,p.Accept,c.ApplicationJson);r[p.ContentType]=this._getExistingOrDefaultHeader(r,p.ContentType,c.ApplicationJson);let i=await this.put(e,n,r);return this._processResponse(i,this.requestOptions)}async patchJson(e,t,r={}){let n=JSON.stringify(t,null,2);r[p.Accept]=this._getExistingOrDefaultHeader(r,p.Accept,c.ApplicationJson);r[p.ContentType]=this._getExistingOrDefaultHeader(r,p.ContentType,c.ApplicationJson);let i=await this.patch(e,n,r);return this._processResponse(i,this.requestOptions)}async request(e,t,r,i){if(this._disposed){throw new Error("Client has already been disposed.")}let s=n.parse(t);let o=this._prepareRequest(e,s,i);let a=this._allowRetries&&g.indexOf(e)!=-1?this._maxRetries+1:1;let p=0;let c;while(p0){const a=c.message.headers["location"];if(!a){break}let u=n.parse(a);if(s.protocol=="https:"&&s.protocol!=u.protocol&&!this._allowRedirectDowngrade){throw new Error("Redirect from HTTPS to HTTP protocol. This downgrade is not allowed for security reasons. If you want to allow this behavior, set the allowRedirectDowngrade option to true.")}await c.readBody();o=this._prepareRequest(e,u,i);c=await this.requestRaw(o,r);t--}if(d.indexOf(c.message.statusCode)==-1){return c}p+=1;if(p{let i=function(e,t){if(e){n(e)}r(t)};this.requestRawWithCallback(e,t,i)})}requestRawWithCallback(e,t,r){let n;if(typeof t==="string"){e.options.headers["Content-Length"]=Buffer.byteLength(t,"utf8")}let i=false;let s=(e,t)=>{if(!i){i=true;r(e,t)}};let o=e.httpModule.request(e.options,e=>{let t=new HttpClientResponse(e);s(null,t)});o.on("socket",e=>{n=e});o.setTimeout(this._socketTimeout||3*6e4,()=>{if(n){n.end()}s(new Error("Request timeout: "+e.options.path),null)});o.on("error",function(e){s(e,null)});if(t&&typeof t==="string"){o.write(t,"utf8")}if(t&&typeof t!=="string"){t.on("close",function(){o.end()});t.pipe(o)}else{o.end()}}getAgent(e){let t=n.parse(e);return this._getAgent(t)}_prepareRequest(e,t,r){const n={};n.parsedUrl=t;const o=n.parsedUrl.protocol==="https:";n.httpModule=o?s:i;const a=o?443:80;n.options={};n.options.host=n.parsedUrl.hostname;n.options.port=n.parsedUrl.port?parseInt(n.parsedUrl.port):a;n.options.path=(n.parsedUrl.pathname||"")+(n.parsedUrl.search||"");n.options.method=e;n.options.headers=this._mergeHeaders(r);if(this.userAgent!=null){n.options.headers["user-agent"]=this.userAgent}n.options.agent=this._getAgent(n.parsedUrl);if(this.handlers){this.handlers.forEach(e=>{e.prepareRequest(n.options)})}return n}_mergeHeaders(e){const t=e=>Object.keys(e).reduce((t,r)=>(t[r.toLowerCase()]=e[r],t),{});if(this.requestOptions&&this.requestOptions.headers){return Object.assign({},t(this.requestOptions.headers),t(e))}return t(e||{})}_getExistingOrDefaultHeader(e,t,r){const n=e=>Object.keys(e).reduce((t,r)=>(t[r.toLowerCase()]=e[r],t),{});let i;if(this.requestOptions&&this.requestOptions.headers){i=n(this.requestOptions.headers)[t]}return e[t]||i||r}_getAgent(e){let t;let n=o.getProxyUrl(e);let u=n&&n.hostname;if(this._keepAlive&&u){t=this._proxyAgent}if(this._keepAlive&&!u){t=this._agent}if(!!t){return t}const p=e.protocol==="https:";let c=100;if(!!this.requestOptions){c=this.requestOptions.maxSockets||i.globalAgent.maxSockets}if(u){if(!a){a=r(988)}const e={maxSockets:c,keepAlive:this._keepAlive,proxy:{proxyAuth:n.auth,host:n.hostname,port:n.port}};let i;const s=n.protocol==="https:";if(p){i=s?a.httpsOverHttps:a.httpsOverHttp}else{i=s?a.httpOverHttps:a.httpOverHttp}t=i(e);this._proxyAgent=t}if(this._keepAlive&&!t){const e={keepAlive:this._keepAlive,maxSockets:c};t=p?new s.Agent(e):new i.Agent(e);this._agent=t}if(!t){t=p?s.globalAgent:i.globalAgent}if(p&&this._ignoreSslError){t.options=Object.assign(t.options||{},{rejectUnauthorized:false})}return t}_performExponentialBackoff(e){e=Math.min(m,e);const t=f*Math.pow(2,e);return new Promise(e=>setTimeout(()=>e(),t))}static dateTimeDeserializer(e,t){if(typeof t==="string"){let e=new Date(t);if(!isNaN(e.valueOf())){return e}}return t}async _processResponse(e,t){return new Promise(async(r,n)=>{const i=e.message.statusCode;const s={statusCode:i,result:null,headers:{}};if(i==u.NotFound){r(s)}let o;let a;try{a=await e.readBody();if(a&&a.length>0){if(t&&t.deserializeDates){o=JSON.parse(a,HttpClient.dateTimeDeserializer)}else{o=JSON.parse(a)}s.result=o}s.headers=e.message.headers}catch(e){}if(i>299){let e;if(o&&o.message){e=o.message}else if(a&&a.length>0){e=a}else{e="Failed request: ("+i+")"}let t=new Error(e);t["statusCode"]=i;if(s.result){t["result"]=s.result}n(t)}else{r(s)}})}}t.HttpClient=HttpClient},550:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:true});t.default=void 0;var n=_interopRequireDefault(r(515));var i=r(454);var s=_interopRequireDefault(r(195));var o=r(422);var a=_interopRequireDefault(r(996));var u=_interopRequireDefault(r(821));var p=_interopRequireDefault(r(566));var c=_interopRequireDefault(r(785));var l=r(414);function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}var d=s.default.concat([{identify:e=>e==null,createNode:(e,t,r)=>r.wrapScalars?new n.default(null):null,default:true,tag:"tag:yaml.org,2002:null",test:/^(?:~|[Nn]ull|NULL)?$/,resolve:()=>null,options:o.nullOptions,stringify:()=>o.nullOptions.nullStr},{identify:e=>typeof e==="boolean",default:true,tag:"tag:yaml.org,2002:bool",test:/^(?:Y|y|[Yy]es|YES|[Tt]rue|TRUE|[Oo]n|ON)$/,resolve:()=>true,options:o.boolOptions,stringify:({value:e})=>e?o.boolOptions.trueStr:o.boolOptions.falseStr},{identify:e=>typeof e==="boolean",default:true,tag:"tag:yaml.org,2002:bool",test:/^(?:N|n|[Nn]o|NO|[Ff]alse|FALSE|[Oo]ff|OFF)$/i,resolve:()=>false,options:o.boolOptions,stringify:({value:e})=>e?o.boolOptions.trueStr:o.boolOptions.falseStr},{identify:e=>typeof e==="number",default:true,tag:"tag:yaml.org,2002:int",format:"BIN",test:/^0b([0-1_]+)$/,resolve:(e,t)=>parseInt(t.replace(/_/g,""),2),stringify:({value:e})=>"0b"+e.toString(2)},{identify:e=>typeof e==="number",default:true,tag:"tag:yaml.org,2002:int",format:"OCT",test:/^[-+]?0([0-7_]+)$/,resolve:(e,t)=>parseInt(t.replace(/_/g,""),8),stringify:({value:e})=>(e<0?"-0":"0")+e.toString(8)},{identify:e=>typeof e==="number",default:true,tag:"tag:yaml.org,2002:int",test:/^[-+]?[0-9][0-9_]*$/,resolve:e=>parseInt(e.replace(/_/g,""),10),stringify:i.stringifyNumber},{identify:e=>typeof e==="number",default:true,tag:"tag:yaml.org,2002:int",format:"HEX",test:/^0x([0-9a-fA-F_]+)$/,resolve:(e,t)=>parseInt(t.replace(/_/g,""),16),stringify:({value:e})=>(e<0?"-0x":"0x")+e.toString(16)},{identify:e=>typeof e==="number",default:true,tag:"tag:yaml.org,2002:float",test:/^(?:[-+]?\.inf|(\.nan))$/i,resolve:(e,t)=>t?NaN:e[0]==="-"?Number.NEGATIVE_INFINITY:Number.POSITIVE_INFINITY,stringify:i.stringifyNumber},{identify:e=>typeof e==="number",default:true,tag:"tag:yaml.org,2002:float",format:"EXP",test:/^[-+]?([0-9][0-9_]*)?(\.[0-9_]*)?[eE][-+]?[0-9]+$/,resolve:e=>parseFloat(e.replace(/_/g,"")),stringify:({value:e})=>Number(e).toExponential()},{identify:e=>typeof e==="number",default:true,tag:"tag:yaml.org,2002:float",test:/^[-+]?(?:[0-9][0-9_]*)?\.([0-9_]*)$/,resolve(e,t){const r=new n.default(parseFloat(e.replace(/_/g,"")));if(t){const e=t.replace(/_/g,"");if(e[e.length-1]==="0")r.minFractionDigits=e.length}return r},stringify:i.stringifyNumber}],a.default,u.default,p.default,c.default,l.intTime,l.floatTime,l.timestamp);t.default=d},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 "}return""}}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)}},566:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:true});t.parsePairs=parsePairs;t.createPairs=createPairs;t.default=void 0;var n=r(405);var i=_interopRequireDefault(r(684));var s=_interopRequireDefault(r(325));var o=_interopRequireDefault(r(858));var a=_interopRequireDefault(r(29));function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}function parsePairs(e,t){const r=(0,o.default)(e,t);for(let e=0;e1){const e="Each pair must have its own sequence indicator";throw new n.YAMLSemanticError(t,e)}const e=o.items[0]||new s.default;if(o.commentBefore)e.commentBefore=e.commentBefore?`${o.commentBefore}\n${e.commentBefore}`:o.commentBefore;if(o.comment)e.comment=e.comment?`${o.comment}\n${e.comment}`:o.comment;o=e}r.items[e]=o instanceof s.default?o:new s.default(o)}return r}function createPairs(e,t,r){const n=new a.default;n.tag="tag:yaml.org,2002:pairs";for(const i of t){let t,s;if(Array.isArray(i)){if(i.length===2){t=i[0];s=i[1]}else throw new TypeError(`Expected [key, value] tuple: ${i}`)}else if(i&&i instanceof Object){const e=Object.keys(i);if(e.length===1){t=e[0];s=i[t]}else throw new TypeError(`Expected { key: value } tuple: ${i}`)}else{t=i}const o=e.createPair(t,s,r);n.items.push(o)}return n}var u={default:false,tag:"tag:yaml.org,2002:pairs",resolve:parsePairs,createNode:createPairs};t.default=u},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 l=/node_modules[\\\/].bin[\\\/][^\\\/]+\.cmd$/i;const d=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=l.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(d){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},570:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:true});t.default=void 0;var n=_interopRequireDefault(r(836));var i=_interopRequireDefault(r(514));var s=r(49);var o=r(405);var a=_interopRequireDefault(r(880));var u=_interopRequireDefault(r(255));var p=_interopRequireDefault(r(637));var c=_interopRequireWildcard(r(380));var l=_interopRequireDefault(r(156));var d=_interopRequireDefault(r(515));var g=_interopRequireDefault(r(923));function _getRequireWildcardCache(){if(typeof WeakMap!=="function")return null;var e=new WeakMap;_getRequireWildcardCache=function(){return e};return e}function _interopRequireWildcard(e){if(e&&e.__esModule){return e}var t=_getRequireWildcardCache();if(t&&t.has(e)){return t.get(e)}var r={};if(e!=null){var n=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in e){if(Object.prototype.hasOwnProperty.call(e,i)){var s=n?Object.getOwnPropertyDescriptor(e,i):null;if(s&&(s.get||s.set)){Object.defineProperty(r,i,s)}else{r[i]=e[i]}}}}r.default=e;if(t){t.set(e,r)}return r}function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}function _defineProperty(e,t,r){if(t in e){Object.defineProperty(e,t,{value:r,enumerable:true,configurable:true,writable:true})}else{e[t]=r}return e}const m=e=>e&&[s.Type.MAP_KEY,s.Type.MAP_VALUE,s.Type.SEQ_ITEM].includes(e.type);class Document{constructor(e){this.anchors=new i.default(e.anchorPrefix);this.commentBefore=null;this.comment=null;this.contents=null;this.directivesEndMarker=null;this.errors=[];this.options=e;this.schema=null;this.tagPrefixes=[];this.version=null;this.warnings=[]}assertCollectionContents(){if(this.contents instanceof c.default)return true;throw new Error("Expected a YAML collection as document contents")}add(e){this.assertCollectionContents();return this.contents.add(e)}addIn(e,t){this.assertCollectionContents();this.contents.addIn(e,t)}delete(e){this.assertCollectionContents();return this.contents.delete(e)}deleteIn(e){if((0,c.isEmptyPath)(e)){if(this.contents==null)return false;this.contents=null;return true}this.assertCollectionContents();return this.contents.deleteIn(e)}getDefaults(){return Document.defaults[this.version]||Document.defaults[this.options.version]||{}}get(e,t){return this.contents instanceof c.default?this.contents.get(e,t):undefined}getIn(e,t){if((0,c.isEmptyPath)(e))return!t&&this.contents instanceof d.default?this.contents.value:this.contents;return this.contents instanceof c.default?this.contents.getIn(e,t):undefined}has(e){return this.contents instanceof c.default?this.contents.has(e):false}hasIn(e){if((0,c.isEmptyPath)(e))return this.contents!==undefined;return this.contents instanceof c.default?this.contents.hasIn(e):false}set(e,t){this.assertCollectionContents();this.contents.set(e,t)}setIn(e,t){if((0,c.isEmptyPath)(e))this.contents=t;else{this.assertCollectionContents();this.contents.setIn(e,t)}}setSchema(e,t){if(!e&&!t&&this.schema)return;if(typeof e==="number")e=e.toFixed(1);if(e==="1.0"||e==="1.1"||e==="1.2"){if(this.version)this.version=e;else this.options.version=e;delete this.options.schema}else if(e&&typeof e==="string"){this.options.schema=e}if(Array.isArray(t))this.options.customTags=t;const r=Object.assign({},this.getDefaults(),this.options);this.schema=new u.default(r)}parse(e,t){if(this.options.keepCstNodes)this.cstNode=e;if(this.options.keepNodeTypes)this.type="DOCUMENT";const{directives:r=[],contents:n=[],directivesEndMarker:i,error:s,valueRange:a}=e;if(s){if(!s.source)s.source=this;this.errors.push(s)}this.parseDirectives(r,t);if(i)this.directivesEndMarker=true;this.range=a?[a.start,a.end]:null;this.setSchema();this.anchors._cstAliases=[];this.parseContents(n);this.anchors.resolveNodes();if(this.options.prettyErrors){for(const e of this.errors)if(e instanceof o.YAMLError)e.makePretty();for(const e of this.warnings)if(e instanceof o.YAMLError)e.makePretty()}return this}parseDirectives(e,t){const r=[];let n=false;e.forEach(e=>{const{comment:t,name:i}=e;switch(i){case"TAG":this.resolveTagDirective(e);n=true;break;case"YAML":case"YAML:1.0":this.resolveYamlDirective(e);n=true;break;default:if(i){const t=`YAML only supports %TAG and %YAML directives, and not %${i}`;this.warnings.push(new o.YAMLWarning(e,t))}}if(t)r.push(t)});if(t&&!n&&"1.1"===(this.version||t.version||this.options.version)){const e=({handle:e,prefix:t})=>({handle:e,prefix:t});this.tagPrefixes=t.tagPrefixes.map(e);this.version=t.version}this.commentBefore=r.join("\n")||null}parseContents(e){const t={before:[],after:[]};const r=[];let n=false;e.forEach(e=>{if(e.valueRange){if(r.length===1){const t="Document is not valid YAML (bad indentation?)";this.errors.push(new o.YAMLSyntaxError(e,t))}const t=this.resolveNode(e);if(n){t.spaceBefore=true;n=false}r.push(t)}else if(e.comment!==null){const n=r.length===0?t.before:t.after;n.push(e.comment)}else if(e.type===s.Type.BLANK_LINE){n=true;if(r.length===0&&t.before.length>0&&!this.commentBefore){this.commentBefore=t.before.join("\n");t.before=[]}}});switch(r.length){case 0:this.contents=null;t.after=t.before;break;case 1:this.contents=r[0];if(this.contents){const e=t.before.join("\n")||null;if(e){const t=this.contents instanceof c.default&&this.contents.items[0]?this.contents.items[0]:this.contents;t.commentBefore=t.commentBefore?`${e}\n${t.commentBefore}`:e}}else{t.after=t.before.concat(t.after)}break;default:this.contents=r;if(this.contents[0]){this.contents[0].commentBefore=t.before.join("\n")||null}else{t.after=t.before.concat(t.after)}}this.comment=t.after.join("\n")||null}resolveTagDirective(e){const[t,r]=e.parameters;if(t&&r){if(this.tagPrefixes.every(e=>e.handle!==t)){this.tagPrefixes.push({handle:t,prefix:r})}else{const t="The %TAG directive must only be given at most once per handle in the same document.";this.errors.push(new o.YAMLSemanticError(e,t))}}else{const t="Insufficient parameters given for %TAG directive";this.errors.push(new o.YAMLSemanticError(e,t))}}resolveYamlDirective(e){let[t]=e.parameters;if(e.name==="YAML:1.0")t="1.0";if(this.version){const t="The %YAML directive must only be given at most once per document.";this.errors.push(new o.YAMLSemanticError(e,t))}if(!t){const t="Insufficient parameters given for %YAML directive";this.errors.push(new o.YAMLSemanticError(e,t))}else{if(!Document.defaults[t]){const r=this.version||this.options.version;const n=`Document will be parsed as YAML ${r} rather than YAML ${t}`;this.warnings.push(new o.YAMLWarning(e,n))}this.version=t}}resolveTagName(e){const{tag:t,type:r}=e;let n=false;if(t){const{handle:r,suffix:i,verbatim:s}=t;if(s){if(s!=="!"&&s!=="!!")return s;const t=`Verbatim tags aren't resolved, so ${s} is invalid.`;this.errors.push(new o.YAMLSemanticError(e,t))}else if(r==="!"&&!i){n=true}else{let t=this.tagPrefixes.find(e=>e.handle===r);if(!t){const e=this.getDefaults().tagPrefixes;if(e)t=e.find(e=>e.handle===r)}if(t){if(i){if(r==="!"&&(this.version||this.options.version)==="1.0"){if(i[0]==="^")return i;if(/[:\/]/.test(i)){const e=i.match(/^([a-z0-9-]+)\/(.*)/i);return e?`tag:${e[1]}.yaml.org,2002:${e[2]}`:`tag:${i}`}}return t.prefix+decodeURIComponent(i)}this.errors.push(new o.YAMLSemanticError(e,`The ${r} tag has no suffix.`))}else{const t=`The ${r} tag handle is non-default and was not declared.`;this.errors.push(new o.YAMLSemanticError(e,t))}}}switch(r){case s.Type.BLOCK_FOLDED:case s.Type.BLOCK_LITERAL:case s.Type.QUOTE_DOUBLE:case s.Type.QUOTE_SINGLE:return u.default.defaultTags.STR;case s.Type.FLOW_MAP:case s.Type.MAP:return u.default.defaultTags.MAP;case s.Type.FLOW_SEQ:case s.Type.SEQ:return u.default.defaultTags.SEQ;case s.Type.PLAIN:return n?u.default.defaultTags.STR:null;default:return null}}resolveNode(e){if(!e)return null;const{anchors:t,errors:r,schema:n}=this;let i=false;let a=false;const u={before:[],after:[]};const c=m(e.context.parent)?e.context.parent.props.concat(e.props):e.props;for(const{start:t,end:n}of c){switch(e.context.src[t]){case s.Char.COMMENT:{if(!e.commentHasRequiredWhitespace(t)){const t="Comments must be separated from other tokens by white space characters";r.push(new o.YAMLSemanticError(e,t))}const i=e.context.src.slice(t+1,n);const{header:s,valueRange:a}=e;if(a&&(t>a.start||s&&t>s.start)){u.after.push(i)}else{u.before.push(i)}}break;case s.Char.ANCHOR:if(i){const t="A node can have at most one anchor";r.push(new o.YAMLSemanticError(e,t))}i=true;break;case s.Char.TAG:if(a){const t="A node can have at most one tag";r.push(new o.YAMLSemanticError(e,t))}a=true;break}}if(i){const r=e.anchor;const n=t.getNode(r);if(n)t.map[t.newName(r)]=n;t.map[r]=e}let l;if(e.type===s.Type.ALIAS){if(i||a){const t="An alias node must not specify any properties";r.push(new o.YAMLSemanticError(e,t))}const n=e.rawValue;const s=t.getNode(n);if(!s){const t=`Aliased anchor not found: ${n}`;r.push(new o.YAMLReferenceError(e,t));return null}l=new p.default(s);t._cstAliases.push(l)}else{const t=this.resolveTagName(e);if(t){l=n.resolveNodeWithFallback(this,e,t)}else{if(e.type!==s.Type.PLAIN){const t=`Failed to resolve ${e.type} node here`;r.push(new o.YAMLSyntaxError(e,t));return null}try{l=n.resolveScalar(e.strValue||"")}catch(t){if(!t.source)t.source=e;r.push(t);return null}}}if(l){l.range=[e.range.start,e.range.end];if(this.options.keepCstNodes)l.cstNode=e;if(this.options.keepNodeTypes)l.type=e.type;const t=u.before.join("\n");if(t){l.commentBefore=l.commentBefore?`${l.commentBefore}\n${t}`:t}const r=u.after.join("\n");if(r)l.comment=l.comment?`${l.comment}\n${r}`:r}return e.resolved=l}listNonDefaultTags(){return(0,a.default)(this.contents).filter(e=>e.indexOf(u.default.defaultPrefix)!==0)}setTagPrefix(e,t){if(e[0]!=="!"||e[e.length-1]!=="!")throw new Error("Handle must start and end with !");if(t){const r=this.tagPrefixes.find(t=>t.handle===e);if(r)r.prefix=t;else this.tagPrefixes.push({handle:e,prefix:t})}else{this.tagPrefixes=this.tagPrefixes.filter(t=>t.handle!==e)}}stringifyTag(e){if((this.version||this.options.version)==="1.0"){const t=e.match(/^tag:private\.yaml\.org,2002:([^:\/]+)$/);if(t)return"!"+t[1];const r=e.match(/^tag:([a-zA-Z0-9-]+)\.yaml\.org,2002:(.*)/);return r?`!${r[1]}/${r[2]}`:`!${e.replace(/^tag:/,"")}`}else{let t=this.tagPrefixes.find(t=>e.indexOf(t.prefix)===0);if(!t){const r=this.getDefaults().tagPrefixes;t=r&&r.find(t=>e.indexOf(t.prefix)===0)}if(!t)return e[0]==="!"?e:`!<${e}>`;const r=e.substr(t.prefix.length).replace(/[!,[\]{}]/g,e=>({"!":"%21",",":"%2C","[":"%5B","]":"%5D","{":"%7B","}":"%7D"})[e]);return t.handle+r}}toJSON(e){const{keepBlobsInJSON:t,mapAsMap:r,maxAliasCount:n}=this.options;const i=t&&(typeof e!=="string"||!(this.contents instanceof d.default));const s={doc:this,keep:i,mapAsMap:i&&!!r,maxAliasCount:n};const o=Object.keys(this.anchors.map);if(o.length>0)s.anchors=o.map(e=>({alias:[],aliasCount:0,count:1,node:this.anchors.map[e]}));return(0,g.default)(this.contents,e,s)}toString(){if(this.errors.length>0)throw new Error("Document with errors cannot be stringified");this.setSchema();const e=[];let t=false;if(this.version){let r="%YAML 1.2";if(this.schema.name==="yaml-1.1"){if(this.version==="1.0")r="%YAML:1.0";else if(this.version==="1.1")r="%YAML 1.1"}e.push(r);t=true}const r=this.listNonDefaultTags();this.tagPrefixes.forEach(({handle:n,prefix:i})=>{if(r.some(e=>e.indexOf(i)===0)){e.push(`%TAG ${n} ${i}`);t=true}});if(t||this.directivesEndMarker)e.push("---");if(this.commentBefore){if(t||!this.directivesEndMarker)e.unshift("");e.unshift(this.commentBefore.replace(/^/gm,"#"))}const i={anchors:{},doc:this,indent:""};let s=false;let o=null;if(this.contents){if(this.contents instanceof l.default){if(this.contents.spaceBefore&&(t||this.directivesEndMarker))e.push("");if(this.contents.commentBefore)e.push(this.contents.commentBefore.replace(/^/gm,"#"));i.forceBlockIndent=!!this.comment;o=this.contents.comment}const r=o?null:()=>s=true;const a=this.schema.stringify(this.contents,i,()=>o=null,r);e.push((0,n.default)(a,"",o))}else if(this.contents!==undefined){e.push(this.schema.stringify(this.contents,i))}if(this.comment){if((!s||o)&&e[e.length-1]!=="")e.push("");e.push(this.comment.replace(/^/gm,"#"))}return e.join("\n")+"\n"}}t.default=Document;_defineProperty(Document,"defaults",{"1.0":{schema:"yaml-1.1",merge:true,tagPrefixes:[{handle:"!",prefix:u.default.defaultPrefix},{handle:"!!",prefix:"tag:private.yaml.org,2002:"}]},1.1:{schema:"yaml-1.1",merge:true,tagPrefixes:[{handle:"!",prefix:"!"},{handle:"!!",prefix:u.default.defaultPrefix}]},1.2:{schema:"core",merge:false,tagPrefixes:[{handle:"!",prefix:"!"},{handle:"!!",prefix:u.default.defaultPrefix}]}})},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}},591:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:true});t.default=t.resolveString=void 0;var n=r(454);var i=r(422);const s=(e,t)=>{const r=t.strValue;if(!r)return"";if(typeof r==="string")return r;r.errors.forEach(r=>{if(!r.source)r.source=t;e.errors.push(r)});return r.str};t.resolveString=s;var o={identify:e=>typeof e==="string",default:true,tag:"tag:yaml.org,2002:str",resolve:s,stringify(e,t,r,i){t=Object.assign({actualString:true},t);return(0,n.stringifyString)(e,t,r,i)},options:i.strOptions};t.default=o},605:function(e){e.exports=require("http")},614:function(e){e.exports=require("events")},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){e.exports=require("net")},637:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:true});t.default=void 0;var n=r(49);var i=r(405);var s=_interopRequireDefault(r(923));var o=_interopRequireDefault(r(380));var a=_interopRequireDefault(r(156));var u=_interopRequireDefault(r(325));function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}function _defineProperty(e,t,r){if(t in e){Object.defineProperty(e,t,{value:r,enumerable:true,configurable:true,writable:true})}else{e[t]=r}return e}const p=(e,t)=>{if(e instanceof Alias){const r=t.find(t=>t.node===e.source);return r.count*r.aliasCount}else if(e instanceof o.default){let r=0;for(const n of e.items){const e=p(n,t);if(e>r)r=e}return r}else if(e instanceof u.default){const r=p(e.key,t);const n=p(e.value,t);return Math.max(r,n)}return 1};class Alias extends a.default{static stringify({range:e,source:t},{anchors:r,doc:n,implicitKey:i,inStringifyKey:s}){let o=Object.keys(r).find(e=>r[e]===t);if(!o&&s)o=n.anchors.getName(t)||n.anchors.newName();if(o)return`*${o}${i?" ":""}`;const a=n.anchors.getName(t)?"Alias node must be after source node":"Source node not found for alias node";throw new Error(`${a} [${e}]`)}constructor(e){super();this.source=e;this.type=n.Type.ALIAS}set tag(e){throw new Error("Alias nodes cannot have tags")}toJSON(e,t){if(!t)return(0,s.default)(this.source,e,t);const{anchors:r,maxAliasCount:n}=t;const o=r.find(e=>e.node===this.source);if(!o||o.res===undefined){const e="This should not happen: Alias anchor was not resolved?";if(this.cstNode)throw new i.YAMLReferenceError(this.cstNode,e);else throw new ReferenceError(e)}if(n>=0){o.count+=1;if(o.aliasCount===0)o.aliasCount=p(this.source,r);if(o.count*o.aliasCount>n){const e="Excessive alias count indicates a resource exhaustion attack";if(this.cstNode)throw new i.YAMLReferenceError(this.cstNode,e);else throw new ReferenceError(e)}}return o.res}toString(e){return Alias.stringify(this,e)}}t.default=Alias;_defineProperty(Alias,"default",true)},641:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:true});t.default=void 0;var n=r(49);var i=_interopRequireDefault(r(974));var s=_interopRequireDefault(r(19));function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}class Directive extends i.default{static endOfDirective(e,t){let r=e[t];while(r&&r!=="\n"&&r!=="#")r=e[t+=1];r=e[t-1];while(r===" "||r==="\t"){t-=1;r=e[t-1]}return t}constructor(){super(n.Type.DIRECTIVE);this.name=null}get parameters(){const e=this.rawValue;return e?e.trim().split(/[ \t]+/):[]}parseName(e){const{src:t}=this.context;let r=e;let n=t[r];while(n&&n!=="\n"&&n!=="\t"&&n!==" ")n=t[r+=1];this.name=t.slice(e,r);return r}parseParameters(e){const{src:t}=this.context;let r=e;let n=t[r];while(n&&n!=="\n"&&n!=="#")n=t[r+=1];this.valueRange=new s.default(e,r);return r}parse(e,t){this.context=e;let r=this.parseName(t+1);r=this.parseParameters(r);r=this.parseComment(r);this.range=new s.default(t,r);return r}}t.default=Directive},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")},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")}},684:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:true});t.findPair=findPair;t.default=void 0;var n=_interopRequireDefault(r(380));var i=_interopRequireDefault(r(325));var s=_interopRequireDefault(r(515));function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}function findPair(e,t){const r=t instanceof s.default?t.value:t;for(const n of e){if(n instanceof i.default){if(n.key===t||n.key===r)return n;if(n.key&&n.key.value===r)return n}}return undefined}class YAMLMap extends n.default{add(e){if(!e)e=new i.default(e);else if(!(e instanceof i.default))e=new i.default(e.key||e,e.value);const t=findPair(this.items,e.key);if(t)throw new Error(`Key ${e.key} already set`);this.items.push(e)}delete(e){const t=findPair(this.items,e);if(!t)return false;const r=this.items.splice(this.items.indexOf(t),1);return r.length>0}get(e,t){const r=findPair(this.items,e);const n=r&&r.value;return!t&&n instanceof s.default?n.value:n}has(e){return!!findPair(this.items,e)}set(e,t){const r=findPair(this.items,e);if(r)r.value=t;else this.items.push(new i.default(e,t))}toJSON(e,t,r){const n=r?new r:t&&t.mapAsMap?new Map:{};if(t&&t.onCreate)t.onCreate(n);for(const e of this.items)e.addToJSMap(t,n);return n}toString(e,t,r){if(!e)return JSON.stringify(this);for(const e of this.items){if(!(e instanceof i.default))throw new Error(`Map items must all be pairs; found ${JSON.stringify(e)} instead`)}return super.toString(e,{blockItem:e=>e.str,flowChars:{start:"{",end:"}"},isMap:true,itemIndent:e.indent||""},t,r)}}t.default=YAMLMap},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},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}))})},724: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[d]={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[d].error=r})}}Body.prototype={get body(){return this[d].body},get bodyUsed(){return this[d].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[d].disturbed){return Body.Promise.reject(new TypeError(`body used already for: ${this.url}`))}this[d].disturbed=true;if(this[d].error){return Body.Promise.reject(this[d].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 l!=="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[h]=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[h],e);if(t===undefined){return null}return this[h][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[h]).sort();return r.map(t==="key"?function(e){return e.toLowerCase()}:t==="value"?function(t){return e[h][t].join(", ")}:function(t){return[t.toLowerCase(),e[h][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[h]);const r=find(e[h],"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(f.test(n)){continue}if(t[h][r]===undefined){t[h][r]=[n]}else{t[h][r].push(n)}}}else if(!f.test(e[r])){t[h][r]=[e[r]]}}return t}const _=Symbol("Response internals");const v=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[_]={url:t.url,status:r,statusText:t.statusText||v[r],headers:n,counter:t.counter}}get url(){return this[_].url||""}get status(){return this[_].status}get ok(){return this[_].status>=200&&this[_].status<300}get redirected(){return this[_].counter>0}get statusText(){return this[_].statusText}get headers(){return this[_].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 w=Symbol("Request internals");const q=s.parse;const E=s.format;const T="destroy"in n.Readable.prototype;function isRequest(e){return typeof e==="object"&&typeof e[w]==="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=q(e.href)}else{r=q(`${e}`)}e={}}else{r=q(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[w]={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[w].method}get url(){return E(this[w].parsedURL)}get headers(){return this[w].headers}get redirect(){return this[w].redirect}get signal(){return this[w].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[w].parsedURL;const r=new Headers(e[w].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 k=n.PassThrough;const O=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 l=u.signal;let d=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(!d||!d.body)return;d.body.emit("error",e)};if(l&&l.aborted){g();return}const m=function abortAndFinalize(){g();finalize()};const f=c(p);let h;if(l){l.addEventListener("abort",m)}function finalize(){f.abort();if(l)l.removeEventListener("abort",m);clearTimeout(h)}if(u.timeout){f.once("socket",function(e){h=setTimeout(function(){s(new FetchError(`network timeout at: ${u.url}`,"request-timeout"));finalize()},u.timeout)})}f.on("error",function(e){s(new FetchError(`request to ${u.url} failed, reason: ${e.message}`,"system",e));finalize()});f.on("response",function(e){clearTimeout(h);const t=createHeadersLenient(e.headers);if(fetch.isRedirect(e.statusCode)){const n=t.get("Location");const i=n===null?null:O(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(l)l.removeEventListener("abort",m)});let n=e.pipe(new k);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){d=new Response(n,i);r(d);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));d=new Response(n,i);r(d);return}if(o=="deflate"||o=="x-deflate"){const t=e.pipe(new k);t.once("data",function(e){if((e[0]&15)===8){n=n.pipe(a.createInflate())}else{n=n.pipe(a.createInflateRaw())}d=new Response(n,i);r(d)});return}if(o=="br"&&typeof a.createBrotliDecompress==="function"){n=n.pipe(a.createBrotliDecompress());d=new Response(n,i);r(d);return}d=new Response(n,i);r(d)});writeToStream(f,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},725:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:true});t.default=void 0;var n=r(405);var i=_interopRequireDefault(r(974));var s=_interopRequireDefault(r(19));function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}class QuoteDouble extends i.default{static endOfQuote(e,t){let r=e[t];while(r&&r!=='"'){t+=r==="\\"?2:1;r=e[t]}return t+1}get strValue(){if(!this.valueRange||!this.context)return null;const e=[];const{start:t,end:r}=this.valueRange;const{indent:s,src:o}=this.context;if(o[r-1]!=='"')e.push(new n.YAMLSyntaxError(this,'Missing closing "quote'));let a="";for(let u=t+1;ue?o.slice(e,u+1):t}else{a+=t}}return e.length>0?{errors:e,str:a}:a}parseCharCode(e,t,r){const{src:i}=this.context;const s=i.substr(e,t);const o=s.length===t&&/^[0-9a-fA-F]+$/.test(s);const a=o?parseInt(s,16):NaN;if(isNaN(a)){r.push(new n.YAMLSyntaxError(this,`Invalid escape sequence ${i.substr(e-2,t+2)}`));return i.substr(e-2,t+2)}return String.fromCodePoint(a)}parse(e,t){this.context=e;const{src:r}=e;let n=QuoteDouble.endOfQuote(r,t+1);this.valueRange=new s.default(t,n);n=i.default.endOfWhiteSpace(r,n);n=this.parseComment(n);return n}}t.default=QuoteDouble},732:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:true});t.default=void 0;var n=_interopRequireDefault(r(684));var i=_interopRequireDefault(r(763));function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}function createMap(e,t,r){const i=new n.default;if(t instanceof Map){for(const[n,s]of t)i.items.push(e.createPair(n,s,r))}else if(t&&typeof t==="object"){for(const n of Object.keys(t))i.items.push(e.createPair(n,t[n],r))}return i}var s={createNode:createMap,default:true,nodeClass:n.default,tag:"tag:yaml.org,2002:map",resolve:i.default};t.default=s},734:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:true});t.checkFlowCollectionEnd=checkFlowCollectionEnd;t.checkKeyLength=checkKeyLength;t.resolveComments=resolveComments;var n=r(405);var i=r(49);function checkFlowCollectionEnd(e,t){let r,s;switch(t.type){case i.Type.FLOW_MAP:r="}";s="flow map";break;case i.Type.FLOW_SEQ:r="]";s="flow sequence";break;default:e.push(new n.YAMLSemanticError(t,"Not a flow collection!?"));return}let o;for(let e=t.items.length-1;e>=0;--e){const r=t.items[e];if(!r||r.type!==i.Type.COMMENT){o=r;break}}if(o&&o.char!==r){const i=`Expected ${s} to end with ${r}`;let a;if(typeof o.offset==="number"){a=new n.YAMLSemanticError(t,i);a.offset=o.offset+1}else{a=new n.YAMLSemanticError(o,i);if(o.range&&o.range.end)a.offset=o.range.end-o.range.start}e.push(a)}}function checkKeyLength(e,t,r,i,s){if(!i||typeof s!=="number")return;const o=t.items[r];let a=o&&o.range&&o.range.start;if(!a){for(let e=r-1;e>=0;--e){const n=t.items[e];if(n&&n.range){a=n.range.end+2*(r-e);break}}}if(a>s+1024){const r=String(i).substr(0,8)+"..."+String(i).substr(-8);e.push(new n.YAMLSemanticError(t,`The "${r}" key is too long`))}}function resolveComments(e,t){for(const{afterKey:r,before:n,comment:i}of t){let t=e.items[n];if(!t){if(i!==undefined){if(e.comment)e.comment+="\n"+i;else e.comment=i}}else{if(r&&t.value)t=t.value;if(i===undefined){if(r||!t.commentBefore)t.spaceBefore=true}else{if(t.commentBefore)t.commentBefore+="\n"+i;else t.commentBefore=i}}}}},742:function(e,t,r){var n=r(747);var i;if(process.platform==="win32"||global.TESTING_WINDOWS){i=r(818)}else{i=r(197)}e.exports=isexe;isexe.sync=sync;function isexe(e,t,r){if(typeof t==="function"){r=t;t={}}if(!r){if(typeof Promise!=="function"){throw new TypeError("callback not provided")}return new Promise(function(r,n){isexe(e,t||{},function(e,t){if(e){n(e)}else{r(t)}})})}i(e,t||{},function(e,n){if(e){if(e.code==="EACCES"||t&&t.ignoreErrors){e=null;n=false}}r(e,n)})}function sync(e,t){try{return i.sync(e,t||{})}catch(e){if(t&&t.ignoreErrors||e.code==="EACCES"){return false}else{throw e}}}},747:function(e){e.exports=require("fs")},753: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(385);var i=r(211);var s=_interopDefault(r(696));var o=_interopDefault(r(724));var a=r(463);const u="5.3.2";function getBufferResponse(e){return e.arrayBuffer()}function fetchWrapper(e){if(s(e.body)||Array.isArray(e.body)){e.body=JSON.stringify(e.body)}let t={};let r;let n;const i=e.request&&e.request.fetch||o;return i(e.url,Object.assign({method:e.method,body:e.body,headers:e.headers,redirect:e.redirect},e.request)).then(i=>{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,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:true});t.default=parseMap;var n=r(49);var i=_interopRequireDefault(r(119));var s=r(405);var o=_interopRequireDefault(r(684));var a=_interopRequireWildcard(r(386));var u=_interopRequireDefault(r(325));var p=r(734);var c=_interopRequireDefault(r(637));var l=_interopRequireDefault(r(380));function _getRequireWildcardCache(){if(typeof WeakMap!=="function")return null;var e=new WeakMap;_getRequireWildcardCache=function(){return e};return e}function _interopRequireWildcard(e){if(e&&e.__esModule){return e}var t=_getRequireWildcardCache();if(t&&t.has(e)){return t.get(e)}var r={};if(e!=null){var n=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in e){if(Object.prototype.hasOwnProperty.call(e,i)){var s=n?Object.getOwnPropertyDescriptor(e,i):null;if(s&&(s.get||s.set)){Object.defineProperty(r,i,s)}else{r[i]=e[i]}}}}r.default=e;if(t){t.set(e,r)}return r}function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}function parseMap(e,t){if(t.type!==n.Type.MAP&&t.type!==n.Type.FLOW_MAP){const r=`A ${t.type} node cannot be resolved as a mapping`;e.errors.push(new s.YAMLSyntaxError(t,r));return null}const{comments:r,items:i}=t.type===n.Type.FLOW_MAP?resolveFlowMapItems(e,t):resolveBlockMapItems(e,t);const u=new o.default;u.items=i;(0,p.resolveComments)(u,r);let d=false;for(let r=0;r{if(e instanceof c.default){const{type:t}=e.source;if(t===n.Type.MAP||t===n.Type.FLOW_MAP)return false;return u="Merge nodes aliases can only point to maps"}return u="Merge nodes can only have Alias nodes as values"});if(u)e.errors.push(new s.YAMLSemanticError(t,u))}else{for(let n=r+1;n{if(i.length===0)return false;const{start:s}=i[0];if(t&&s>t.valueRange.start)return false;if(r[s]!==n.Char.COMMENT)return false;for(let t=e;t0){r=new i.default(n.Type.PLAIN,[]);r.context={parent:d,src:d.context.src};const e=d.range.start+1;r.range={start:e,end:e};r.valueRange={start:e,end:e};if(typeof d.range.origStart==="number"){const e=d.range.origStart+1;r.range.origStart=r.range.origEnd=e;r.valueRange.origStart=r.valueRange.origEnd=e}}const g=new u.default(a,e.resolveNode(r));resolvePairComment(d,g);o.push(g);(0,p.checkKeyLength)(e.errors,t,l,a,c);a=undefined;c=null}break;default:if(a!==undefined)o.push(new u.default(a));a=e.resolveNode(d);c=d.range.start;if(d.error)e.errors.push(d.error);e:for(let r=l+1;;++r){const i=t.items[r];switch(i&&i.type){case n.Type.BLANK_LINE:case n.Type.COMMENT:continue e;case n.Type.MAP_VALUE:break e;default:e.errors.push(new s.YAMLSemanticError(d,"Implicit map keys need to be followed by map values"));break e}}if(d.valueRangeContainsNewline){const t="Implicit map keys need to be on a single line";e.errors.push(new s.YAMLSemanticError(d,t))}}}if(a!==undefined)o.push(new u.default(a));return{comments:r,items:o}}function resolveFlowMapItems(e,t){const r=[];const i=[];let o=undefined;let a=null;let c=false;let l="{";for(let d=0;de==null,createNode:(e,t,r)=>r.wrapScalars?new n.default(null):null,default:true,tag:"tag:yaml.org,2002:null",test:/^(?:~|[Nn]ull|NULL)?$/,resolve:()=>null,options:o.nullOptions,stringify:()=>o.nullOptions.nullStr},{identify:e=>typeof e==="boolean",default:true,tag:"tag:yaml.org,2002:bool",test:/^(?:[Tt]rue|TRUE|[Ff]alse|FALSE)$/,resolve:e=>e[0]==="t"||e[0]==="T",options:o.boolOptions,stringify:({value:e})=>e?o.boolOptions.trueStr:o.boolOptions.falseStr},{identify:e=>typeof e==="number",default:true,tag:"tag:yaml.org,2002:int",format:"OCT",test:/^0o([0-7]+)$/,resolve:(e,t)=>parseInt(t,8),stringify:({value:e})=>"0o"+e.toString(8)},{identify:e=>typeof e==="number",default:true,tag:"tag:yaml.org,2002:int",test:/^[-+]?[0-9]+$/,resolve:e=>parseInt(e,10),stringify:i.stringifyNumber},{identify:e=>typeof e==="number",default:true,tag:"tag:yaml.org,2002:int",format:"HEX",test:/^0x([0-9a-fA-F]+)$/,resolve:(e,t)=>parseInt(t,16),stringify:({value:e})=>"0x"+e.toString(16)},{identify:e=>typeof e==="number",default:true,tag:"tag:yaml.org,2002:float",test:/^(?:[-+]?\.inf|(\.nan))$/i,resolve:(e,t)=>t?NaN:e[0]==="-"?Number.NEGATIVE_INFINITY:Number.POSITIVE_INFINITY,stringify:i.stringifyNumber},{identify:e=>typeof e==="number",default:true,tag:"tag:yaml.org,2002:float",format:"EXP",test:/^[-+]?(?:0|[1-9][0-9]*)(\.[0-9]*)?[eE][-+]?[0-9]+$/,resolve:e=>parseFloat(e),stringify:({value:e})=>Number(e).toExponential()},{identify:e=>typeof e==="number",default:true,tag:"tag:yaml.org,2002:float",test:/^[-+]?(?:0|[1-9][0-9]*)\.([0-9]*)$/,resolve(e,t){const r=new n.default(parseFloat(e));if(t&&t[t.length-1]==="0")r.minFractionDigits=t.length;return r},stringify:i.stringifyNumber}]);t.default=a},777:function(e,t,r){e.exports=getFirstPage;const n=r(265);function getFirstPage(e,t,r){return n(e,t,"first",r)}},785:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:true});t.default=t.YAMLSet=void 0;var n=r(405);var i=_interopRequireWildcard(r(684));var s=_interopRequireDefault(r(325));var o=_interopRequireDefault(r(763));var a=_interopRequireDefault(r(515));function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}function _getRequireWildcardCache(){if(typeof WeakMap!=="function")return null;var e=new WeakMap;_getRequireWildcardCache=function(){return e};return e}function _interopRequireWildcard(e){if(e&&e.__esModule){return e}var t=_getRequireWildcardCache();if(t&&t.has(e)){return t.get(e)}var r={};if(e!=null){var n=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in e){if(Object.prototype.hasOwnProperty.call(e,i)){var s=n?Object.getOwnPropertyDescriptor(e,i):null;if(s&&(s.get||s.set)){Object.defineProperty(r,i,s)}else{r[i]=e[i]}}}}r.default=e;if(t){t.set(e,r)}return r}function _defineProperty(e,t,r){if(t in e){Object.defineProperty(e,t,{value:r,enumerable:true,configurable:true,writable:true})}else{e[t]=r}return e}class YAMLSet extends i.default{constructor(){super();this.tag=YAMLSet.tag}add(e){const t=e instanceof s.default?e:new s.default(e);const r=(0,i.findPair)(this.items,t.key);if(!r)this.items.push(t)}get(e,t){const r=(0,i.findPair)(this.items,e);return!t&&r instanceof s.default?r.key instanceof a.default?r.key.value:r.key:r}set(e,t){if(typeof t!=="boolean")throw new Error(`Expected boolean value for set(key, value) in a YAML set, not ${typeof t}`);const r=(0,i.findPair)(this.items,e);if(r&&!t){this.items.splice(this.items.indexOf(r),1)}else if(!r&&t){this.items.push(new s.default(e))}}toJSON(e,t){return super.toJSON(e,t,Set)}toString(e,t,r){if(!e)return JSON.stringify(this);if(this.hasAllNullValues())return super.toString(e,t,r);else throw new Error("Set items must all have null values")}}t.YAMLSet=YAMLSet;_defineProperty(YAMLSet,"tag","tag:yaml.org,2002:set");function parseSet(e,t){const r=(0,o.default)(e,t);if(!r.hasAllNullValues())throw new n.YAMLSemanticError(t,"Set items must all have null values");return Object.assign(new YAMLSet,r)}function createSet(e,t,r){const n=new YAMLSet;for(const i of t)n.items.push(e.createPair(i,null,r));return n}var u={identify:e=>e instanceof Set,nodeClass:YAMLSet,default:false,tag:"tag:yaml.org,2002:set",resolve:parseSet,createNode:createSet};t.default=u},792:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:true});t.default=void 0;var n=_interopRequireDefault(r(309));var i=_interopRequireDefault(r(570));var s=r(405);var o=_interopRequireDefault(r(255));var a=r(847);function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}const u={anchorPrefix:"a",customTags:null,keepCstNodes:false,keepNodeTypes:true,keepBlobsInJSON:true,mapAsMap:false,maxAliasCount:100,prettyErrors:false,simpleKeys:false,version:"1.2"};function createNode(e,t=true,r){if(r===undefined&&typeof t==="string"){r=t;t=true}const n=Object.assign({},i.default.defaults[u.version],u);const s=new o.default(n);return s.createNode(e,t,r)}class Document extends i.default{constructor(e){super(Object.assign({},u,e))}}function parseAllDocuments(e,t){const r=[];let i;for(const s of(0,n.default)(e)){const e=new Document(t);e.parse(s,i);r.push(e);i=e}return r}function parseDocument(e,t){const r=(0,n.default)(e);const i=new Document(t).parse(r[0]);if(r.length>1){const e="Source contains multiple documents; please use YAML.parseAllDocuments()";i.errors.unshift(new s.YAMLSemanticError(r[1],e))}return i}function parse(e,t){const r=parseDocument(e,t);r.warnings.forEach(e=>(0,a.warn)(e));if(r.errors.length>0)throw r.errors[0];return r.toJSON()}function stringify(e,t){const r=new Document(t);r.contents=e;return String(r)}var p={createNode:createNode,defaultOptions:u,Document:Document,parse:parse,parseAllDocuments:parseAllDocuments,parseCST:n.default,parseDocument:parseDocument,stringify:stringify};t.default=p},794:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:true});t.default=void 0;var n=r(49);var i=_interopRequireDefault(r(974));var s=_interopRequireDefault(r(19));function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}class BlankLine extends i.default{constructor(){super(n.Type.BLANK_LINE)}get includesTrailingLines(){return true}parse(e,t){this.context=e;const{src:r}=e;let n=t+1;while(i.default.atBlank(r,n)){const e=i.default.endOfWhiteSpace(r,n);if(e==="\n")n=e+1;else break}this.range=new s.default(t,n);return n}}t.default=BlankLine},796: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},813:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:true});async function auth(e){const t=e.split(/\./).length===3?"app":/^v\d+\./.test(e)?"installation":"oauth";return{type:"token",token:e,tokenType:t}}function withAuthorizationPrefix(e){if(e.split(/\./).length===3){return`bearer ${e}`}return`token ${e}`}async function hook(e,t,r,n){const i=t.endpoint.merge(r,n);i.headers.authorization=withAuthorizationPrefix(e);return t(i)}const r=function createTokenAuth(e){if(!e){throw new Error("[@octokit/auth-token] No token passed to createTokenAuth")}if(typeof e!=="string"){throw new Error("[@octokit/auth-token] Token passed to createTokenAuth is not a string")}e=e.replace(/^(token|bearer) +/i,"");return Object.assign(auth.bind(null,e),{hook:hook.bind(null,e)})};t.createTokenAuth=r},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 l=s[n];if(l.charAt(0)==='"'&&l.slice(-1)==='"')l=l.slice(1,-1);var d=i.join(l,e);if(!l&&/^\.[\\\/]/.test(e)){d=e.slice(0,2)+d}(function E(e,i){if(e===i)return F(n+1,c);var s=a[e];o(d+s,{pathExt:u},function(n,o){if(!n&&o){if(t.all)p.push(d+s);else return r(null,d+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;pe instanceof Map,nodeClass:YAMLOMap,default:false,tag:"tag:yaml.org,2002:omap",resolve:parseOMap,createNode:createOMap};t.default=c},835:function(e){e.exports=require("url")},836:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:true});t.addCommentBefore=addCommentBefore;t.default=addComment;function addCommentBefore(e,t,r){if(!r)return e;const n=r.replace(/[\s\S]^/gm,`$&${t}#`);return`#${n}\n${t}${e}`}function addComment(e,t,r){return!r?e:r.indexOf("\n")===-1?`${e} #${r}`:`${e}\n`+r.replace(/^/gm,`${t||""}#`)}},842:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:true});var n=r(692);var i={actions:{cancelWorkflowRun:{method:"POST",params:{owner:{required:true,type:"string"},repo:{required:true,type:"string"},run_id:{required:true,type:"integer"}},url:"/repos/:owner/:repo/actions/runs/:run_id/cancel"},createOrUpdateSecretForRepo:{method:"PUT",params:{encrypted_value:{type:"string"},key_id:{type:"string"},name:{required:true,type:"string"},owner:{required:true,type:"string"},repo:{required:true,type:"string"}},url:"/repos/:owner/:repo/actions/secrets/:name"},createRegistrationToken:{method:"POST",params:{owner:{required:true,type:"string"},repo:{required:true,type:"string"}},url:"/repos/:owner/:repo/actions/runners/registration-token"},createRemoveToken:{method:"POST",params:{owner:{required:true,type:"string"},repo:{required:true,type:"string"}},url:"/repos/:owner/:repo/actions/runners/remove-token"},deleteArtifact:{method:"DELETE",params:{artifact_id:{required:true,type:"integer"},owner:{required:true,type:"string"},repo:{required:true,type:"string"}},url:"/repos/:owner/:repo/actions/artifacts/:artifact_id"},deleteSecretFromRepo:{method:"DELETE",params:{name:{required:true,type:"string"},owner:{required:true,type:"string"},repo:{required:true,type:"string"}},url:"/repos/:owner/:repo/actions/secrets/:name"},downloadArtifact:{method:"GET",params:{archive_format:{required:true,type:"string"},artifact_id:{required:true,type:"integer"},owner:{required:true,type:"string"},repo:{required:true,type:"string"}},url:"/repos/:owner/:repo/actions/artifacts/:artifact_id/:archive_format"},getArtifact:{method:"GET",params:{artifact_id:{required:true,type:"integer"},owner:{required:true,type:"string"},repo:{required:true,type:"string"}},url:"/repos/:owner/:repo/actions/artifacts/:artifact_id"},getPublicKey:{method:"GET",params:{owner:{required:true,type:"string"},repo:{required:true,type:"string"}},url:"/repos/:owner/:repo/actions/secrets/public-key"},getSecret:{method:"GET",params:{name:{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/actions/secrets/:name"},getSelfHostedRunner:{method:"GET",params:{owner:{required:true,type:"string"},repo:{required:true,type:"string"},runner_id:{required:true,type:"integer"}},url:"/repos/:owner/:repo/actions/runners/:runner_id"},getWorkflow:{method:"GET",params:{owner:{required:true,type:"string"},repo:{required:true,type:"string"},workflow_id:{required:true,type:"integer"}},url:"/repos/:owner/:repo/actions/workflows/:workflow_id"},getWorkflowJob:{method:"GET",params:{job_id:{required:true,type:"integer"},owner:{required:true,type:"string"},repo:{required:true,type:"string"}},url:"/repos/:owner/:repo/actions/jobs/:job_id"},getWorkflowRun:{method:"GET",params:{owner:{required:true,type:"string"},repo:{required:true,type:"string"},run_id:{required:true,type:"integer"}},url:"/repos/:owner/:repo/actions/runs/:run_id"},listDownloadsForSelfHostedRunnerApplication:{method:"GET",params:{owner:{required:true,type:"string"},repo:{required:true,type:"string"}},url:"/repos/:owner/:repo/actions/runners/downloads"},listJobsForWorkflowRun:{method:"GET",params:{owner:{required:true,type:"string"},page:{type:"integer"},per_page:{type:"integer"},repo:{required:true,type:"string"},run_id:{required:true,type:"integer"}},url:"/repos/:owner/:repo/actions/runs/:run_id/jobs"},listRepoWorkflowRuns:{method:"GET",params:{actor:{type:"string"},branch:{type:"string"},event:{type:"string"},owner:{required:true,type:"string"},page:{type:"integer"},per_page:{type:"integer"},repo:{required:true,type:"string"},status:{enum:["completed","status","conclusion"],type:"string"}},url:"/repos/:owner/:repo/actions/runs"},listRepoWorkflows:{method:"GET",params:{owner:{required:true,type:"string"},page:{type:"integer"},per_page:{type:"integer"},repo:{required:true,type:"string"}},url:"/repos/:owner/:repo/actions/workflows"},listSecretsForRepo:{method:"GET",params:{owner:{required:true,type:"string"},page:{type:"integer"},per_page:{type:"integer"},repo:{required:true,type:"string"}},url:"/repos/:owner/:repo/actions/secrets"},listSelfHostedRunnersForRepo:{method:"GET",params:{owner:{required:true,type:"string"},page:{type:"integer"},per_page:{type:"integer"},repo:{required:true,type:"string"}},url:"/repos/:owner/:repo/actions/runners"},listWorkflowJobLogs:{method:"GET",params:{job_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/actions/jobs/:job_id/logs"},listWorkflowRunArtifacts:{method:"GET",params:{owner:{required:true,type:"string"},page:{type:"integer"},per_page:{type:"integer"},repo:{required:true,type:"string"},run_id:{required:true,type:"integer"}},url:"/repos/:owner/:repo/actions/runs/:run_id/artifacts"},listWorkflowRunLogs:{method:"GET",params:{owner:{required:true,type:"string"},page:{type:"integer"},per_page:{type:"integer"},repo:{required:true,type:"string"},run_id:{required:true,type:"integer"}},url:"/repos/:owner/:repo/actions/runs/:run_id/logs"},listWorkflowRuns:{method:"GET",params:{actor:{type:"string"},branch:{type:"string"},event:{type:"string"},owner:{required:true,type:"string"},page:{type:"integer"},per_page:{type:"integer"},repo:{required:true,type:"string"},status:{enum:["completed","status","conclusion"],type:"string"},workflow_id:{required:true,type:"integer"}},url:"/repos/:owner/:repo/actions/workflows/:workflow_id/runs"},reRunWorkflow:{method:"POST",params:{owner:{required:true,type:"string"},repo:{required:true,type:"string"},run_id:{required:true,type:"integer"}},url:"/repos/:owner/:repo/actions/runs/:run_id/rerun"},removeSelfHostedRunner:{method:"DELETE",params:{owner:{required:true,type:"string"},repo:{required:true,type:"string"},runner_id:{required:true,type:"integer"}},url:"/repos/:owner/:repo/actions/runners/:runner_id"}},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"}},url:"/marketplace_listing/accounts/:account_id"},checkAccountIsAssociatedWithAnyStubbed:{method:"GET",params:{account_id:{required:true,type:"integer"}},url:"/marketplace_listing/stubbed/accounts/:account_id"},checkAuthorization:{deprecated:"octokit.apps.checkAuthorization() is deprecated, see https://developer.github.com/v3/apps/oauth_applications/#check-an-authorization",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.apps.resetAuthorization() is deprecated, see https://developer.github.com/v3/apps/oauth_applications/#reset-an-authorization",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.apps.revokeAuthorizationForApplication() is deprecated, see https://developer.github.com/v3/apps/oauth_applications/#revoke-an-authorization-for-an-application",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.apps.revokeGrantForApplication() is deprecated, see https://developer.github.com/v3/apps/oauth_applications/#revoke-a-grant-for-an-application",method:"DELETE",params:{access_token:{required:true,type:"string"},client_id:{required:true,type:"string"}},url:"/applications/:client_id/grants/:access_token"},revokeInstallationToken:{headers:{accept:"application/vnd.github.gambit-preview+json"},method:"DELETE",params:{},url:"/installation/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"},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:{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"},downloadArchiveForOrg:{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"},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:{deprecated:"octokit.migrations.getArchiveForOrg() has been renamed to octokit.migrations.downloadArchiveForOrg() (2020-01-27)",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:{method:"GET",params:{owner:{required:true,type:"string"},repo:{required:true,type:"string"},since:{type:"string"}},url:"/repos/:owner/:repo/import/authors"},getImportProgress:{method:"GET",params:{owner:{required:true,type:"string"},repo:{required:true,type:"string"}},url:"/repos/:owner/:repo/import"},getLargeFiles:{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"},listReposForOrg:{headers:{accept:"application/vnd.github.wyandotte-preview+json"},method:"GET",params:{migration_id:{required:true,type:"integer"},org:{required:true,type:"string"},page:{type:"integer"},per_page:{type:"integer"}},url:"/orgs/:org/migrations/:migration_id/repositories"},listReposForUser:{headers:{accept:"application/vnd.github.wyandotte-preview+json"},method:"GET",params:{migration_id:{required:true,type:"integer"},page:{type:"integer"},per_page:{type:"integer"}},url:"/user/:migration_id/repositories"},mapCommitAuthor:{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:{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:{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:{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:"integer"}},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_internal_repositories:{type:"boolean"},members_can_create_private_repositories:{type:"boolean"},members_can_create_public_repositories:{type:"boolean"},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:{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:{deprecated:"octokit.reactions.createForTeamDiscussion() has been renamed to octokit.reactions.createForTeamDiscussionLegacy() (2020-01-16)",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"},discussion_number:{required:true,type:"integer"},team_id:{required:true,type:"integer"}},url:"/teams/:team_id/discussions/:discussion_number/reactions"},createForTeamDiscussionComment:{deprecated:"octokit.reactions.createForTeamDiscussionComment() has been renamed to octokit.reactions.createForTeamDiscussionCommentLegacy() (2020-01-16)",headers:{accept:"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"},createForTeamDiscussionCommentInOrg:{headers:{accept:"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"},org:{required:true,type:"string"},team_slug:{required:true,type:"string"}},url:"/orgs/:org/teams/:team_slug/discussions/:discussion_number/comments/:comment_number/reactions"},createForTeamDiscussionCommentLegacy:{deprecated:"octokit.reactions.createForTeamDiscussionCommentLegacy() is deprecated, see https://developer.github.com/v3/reactions/#create-reaction-for-a-team-discussion-comment-legacy",headers:{accept:"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"},createForTeamDiscussionInOrg:{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"},discussion_number:{required:true,type:"integer"},org:{required:true,type:"string"},team_slug:{required:true,type:"string"}},url:"/orgs/:org/teams/:team_slug/discussions/:discussion_number/reactions"},createForTeamDiscussionLegacy:{deprecated:"octokit.reactions.createForTeamDiscussionLegacy() is deprecated, see https://developer.github.com/v3/reactions/#create-reaction-for-a-team-discussion-legacy",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"},discussion_number:{required:true,type:"integer"},team_id:{required:true,type:"integer"}},url:"/teams/:team_id/discussions/:discussion_number/reactions"},delete:{headers:{accept:"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:{deprecated:"octokit.reactions.listForTeamDiscussion() has been renamed to octokit.reactions.listForTeamDiscussionLegacy() (2020-01-16)",headers:{accept:"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:{deprecated:"octokit.reactions.listForTeamDiscussionComment() has been renamed to octokit.reactions.listForTeamDiscussionCommentLegacy() (2020-01-16)",headers:{accept:"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"},listForTeamDiscussionCommentInOrg:{headers:{accept:"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"},org:{required:true,type:"string"},page:{type:"integer"},per_page:{type:"integer"},team_slug:{required:true,type:"string"}},url:"/orgs/:org/teams/:team_slug/discussions/:discussion_number/comments/:comment_number/reactions"},listForTeamDiscussionCommentLegacy:{deprecated:"octokit.reactions.listForTeamDiscussionCommentLegacy() is deprecated, see https://developer.github.com/v3/reactions/#list-reactions-for-a-team-discussion-comment-legacy",headers:{accept:"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"},listForTeamDiscussionInOrg:{headers:{accept:"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"},org:{required:true,type:"string"},page:{type:"integer"},per_page:{type:"integer"},team_slug:{required:true,type:"string"}},url:"/orgs/:org/teams/:team_slug/discussions/:discussion_number/reactions"},listForTeamDiscussionLegacy:{deprecated:"octokit.reactions.listForTeamDiscussionLegacy() is deprecated, see https://developer.github.com/v3/reactions/#list-reactions-for-a-team-discussion-legacy",headers:{accept:"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"}},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:{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"},delete_branch_on_merge:{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"},visibility:{enum:["public","private","visibility","internal"],type:"string"}},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"},delete_branch_on_merge:{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"},visibility:{enum:["public","private","visibility","internal"],type:"string"}},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","internal"],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:"integer"}},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:{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"},delete_branch_on_merge:{type:"boolean"},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"},visibility:{enum:["public","private","visibility","internal"],type:"string"}},url:"/repos/:owner/:repo"},updateBranchProtection:{method:"PUT",params:{allow_deletions:{type:"boolean"},allow_force_pushes:{allowNull:true,type:"boolean"},branch:{required:true,type:"string"},enforce_admins:{allowNull:true,required:true,type:"boolean"},owner:{required:true,type:"string"},repo:{required:true,type:"string"},required_linear_history:{type:"boolean"},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:{data:{mapTo:"data",required:true,type:"string | object"},file:{alias:"data",deprecated: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() has been renamed to octokit.teams.addMemberLegacy() (2020-01-16)",method:"PUT",params:{team_id:{required:true,type:"integer"},username:{required:true,type:"string"}},url:"/teams/:team_id/members/:username"},addMemberLegacy:{deprecated:"octokit.teams.addMemberLegacy() is deprecated, see https://developer.github.com/v3/teams/members/#add-team-member-legacy",method:"PUT",params:{team_id:{required:true,type:"integer"},username:{required:true,type:"string"}},url:"/teams/:team_id/members/:username"},addOrUpdateMembership:{deprecated:"octokit.teams.addOrUpdateMembership() has been renamed to octokit.teams.addOrUpdateMembershipLegacy() (2020-01-16)",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"},addOrUpdateMembershipInOrg:{method:"PUT",params:{org:{required:true,type:"string"},role:{enum:["member","maintainer"],type:"string"},team_slug:{required:true,type:"string"},username:{required:true,type:"string"}},url:"/orgs/:org/teams/:team_slug/memberships/:username"},addOrUpdateMembershipLegacy:{deprecated:"octokit.teams.addOrUpdateMembershipLegacy() is deprecated, see https://developer.github.com/v3/teams/members/#add-or-update-team-membership-legacy",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:{deprecated:"octokit.teams.addOrUpdateProject() has been renamed to octokit.teams.addOrUpdateProjectLegacy() (2020-01-16)",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"},addOrUpdateProjectInOrg:{headers:{accept:"application/vnd.github.inertia-preview+json"},method:"PUT",params:{org:{required:true,type:"string"},permission:{enum:["read","write","admin"],type:"string"},project_id:{required:true,type:"integer"},team_slug:{required:true,type:"string"}},url:"/orgs/:org/teams/:team_slug/projects/:project_id"},addOrUpdateProjectLegacy:{deprecated:"octokit.teams.addOrUpdateProjectLegacy() is deprecated, see https://developer.github.com/v3/teams/#add-or-update-team-project-legacy",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:{deprecated:"octokit.teams.addOrUpdateRepo() has been renamed to octokit.teams.addOrUpdateRepoLegacy() (2020-01-16)",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"},addOrUpdateRepoInOrg:{method:"PUT",params:{org:{required:true,type:"string"},owner:{required:true,type:"string"},permission:{enum:["pull","push","admin"],type:"string"},repo:{required:true,type:"string"},team_slug:{required:true,type:"string"}},url:"/orgs/:org/teams/:team_slug/repos/:owner/:repo"},addOrUpdateRepoLegacy:{deprecated:"octokit.teams.addOrUpdateRepoLegacy() is deprecated, see https://developer.github.com/v3/teams/#add-or-update-team-repository-legacy",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:{deprecated:"octokit.teams.checkManagesRepo() has been renamed to octokit.teams.checkManagesRepoLegacy() (2020-01-16)",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"},checkManagesRepoInOrg:{method:"GET",params:{org:{required:true,type:"string"},owner:{required:true,type:"string"},repo:{required:true,type:"string"},team_slug:{required:true,type:"string"}},url:"/orgs/:org/teams/:team_slug/repos/:owner/:repo"},checkManagesRepoLegacy:{deprecated:"octokit.teams.checkManagesRepoLegacy() is deprecated, see https://developer.github.com/v3/teams/#check-if-a-team-manages-a-repository-legacy",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:{deprecated:"octokit.teams.createDiscussion() has been renamed to octokit.teams.createDiscussionLegacy() (2020-01-16)",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:{deprecated:"octokit.teams.createDiscussionComment() has been renamed to octokit.teams.createDiscussionCommentLegacy() (2020-01-16)",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"},createDiscussionCommentInOrg:{method:"POST",params:{body:{required:true,type:"string"},discussion_number:{required:true,type:"integer"},org:{required:true,type:"string"},team_slug:{required:true,type:"string"}},url:"/orgs/:org/teams/:team_slug/discussions/:discussion_number/comments"},createDiscussionCommentLegacy:{deprecated:"octokit.teams.createDiscussionCommentLegacy() is deprecated, see https://developer.github.com/v3/teams/discussion_comments/#create-a-comment-legacy",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"},createDiscussionInOrg:{method:"POST",params:{body:{required:true,type:"string"},org:{required:true,type:"string"},private:{type:"boolean"},team_slug:{required:true,type:"string"},title:{required:true,type:"string"}},url:"/orgs/:org/teams/:team_slug/discussions"},createDiscussionLegacy:{deprecated:"octokit.teams.createDiscussionLegacy() is deprecated, see https://developer.github.com/v3/teams/discussions/#create-a-discussion-legacy",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"},delete:{deprecated:"octokit.teams.delete() has been renamed to octokit.teams.deleteLegacy() (2020-01-16)",method:"DELETE",params:{team_id:{required:true,type:"integer"}},url:"/teams/:team_id"},deleteDiscussion:{deprecated:"octokit.teams.deleteDiscussion() has been renamed to octokit.teams.deleteDiscussionLegacy() (2020-01-16)",method:"DELETE",params:{discussion_number:{required:true,type:"integer"},team_id:{required:true,type:"integer"}},url:"/teams/:team_id/discussions/:discussion_number"},deleteDiscussionComment:{deprecated:"octokit.teams.deleteDiscussionComment() has been renamed to octokit.teams.deleteDiscussionCommentLegacy() (2020-01-16)",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"},deleteDiscussionCommentInOrg:{method:"DELETE",params:{comment_number:{required:true,type:"integer"},discussion_number:{required:true,type:"integer"},org:{required:true,type:"string"},team_slug:{required:true,type:"string"}},url:"/orgs/:org/teams/:team_slug/discussions/:discussion_number/comments/:comment_number"},deleteDiscussionCommentLegacy:{deprecated:"octokit.teams.deleteDiscussionCommentLegacy() is deprecated, see https://developer.github.com/v3/teams/discussion_comments/#delete-a-comment-legacy",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"},deleteDiscussionInOrg:{method:"DELETE",params:{discussion_number:{required:true,type:"integer"},org:{required:true,type:"string"},team_slug:{required:true,type:"string"}},url:"/orgs/:org/teams/:team_slug/discussions/:discussion_number"},deleteDiscussionLegacy:{deprecated:"octokit.teams.deleteDiscussionLegacy() is deprecated, see https://developer.github.com/v3/teams/discussions/#delete-a-discussion-legacy",method:"DELETE",params:{discussion_number:{required:true,type:"integer"},team_id:{required:true,type:"integer"}},url:"/teams/:team_id/discussions/:discussion_number"},deleteInOrg:{method:"DELETE",params:{org:{required:true,type:"string"},team_slug:{required:true,type:"string"}},url:"/orgs/:org/teams/:team_slug"},deleteLegacy:{deprecated:"octokit.teams.deleteLegacy() is deprecated, see https://developer.github.com/v3/teams/#delete-team-legacy",method:"DELETE",params:{team_id:{required:true,type:"integer"}},url:"/teams/:team_id"},get:{deprecated:"octokit.teams.get() has been renamed to octokit.teams.getLegacy() (2020-01-16)",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:{deprecated:"octokit.teams.getDiscussion() has been renamed to octokit.teams.getDiscussionLegacy() (2020-01-16)",method:"GET",params:{discussion_number:{required:true,type:"integer"},team_id:{required:true,type:"integer"}},url:"/teams/:team_id/discussions/:discussion_number"},getDiscussionComment:{deprecated:"octokit.teams.getDiscussionComment() has been renamed to octokit.teams.getDiscussionCommentLegacy() (2020-01-16)",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"},getDiscussionCommentInOrg:{method:"GET",params:{comment_number:{required:true,type:"integer"},discussion_number:{required:true,type:"integer"},org:{required:true,type:"string"},team_slug:{required:true,type:"string"}},url:"/orgs/:org/teams/:team_slug/discussions/:discussion_number/comments/:comment_number"},getDiscussionCommentLegacy:{deprecated:"octokit.teams.getDiscussionCommentLegacy() is deprecated, see https://developer.github.com/v3/teams/discussion_comments/#get-a-single-comment-legacy",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"},getDiscussionInOrg:{method:"GET",params:{discussion_number:{required:true,type:"integer"},org:{required:true,type:"string"},team_slug:{required:true,type:"string"}},url:"/orgs/:org/teams/:team_slug/discussions/:discussion_number"},getDiscussionLegacy:{deprecated:"octokit.teams.getDiscussionLegacy() is deprecated, see https://developer.github.com/v3/teams/discussions/#get-a-single-discussion-legacy",method:"GET",params:{discussion_number:{required:true,type:"integer"},team_id:{required:true,type:"integer"}},url:"/teams/:team_id/discussions/:discussion_number"},getLegacy:{deprecated:"octokit.teams.getLegacy() is deprecated, see https://developer.github.com/v3/teams/#get-team-legacy",method:"GET",params:{team_id:{required:true,type:"integer"}},url:"/teams/:team_id"},getMember:{deprecated:"octokit.teams.getMember() has been renamed to octokit.teams.getMemberLegacy() (2020-01-16)",method:"GET",params:{team_id:{required:true,type:"integer"},username:{required:true,type:"string"}},url:"/teams/:team_id/members/:username"},getMemberLegacy:{deprecated:"octokit.teams.getMemberLegacy() is deprecated, see https://developer.github.com/v3/teams/members/#get-team-member-legacy",method:"GET",params:{team_id:{required:true,type:"integer"},username:{required:true,type:"string"}},url:"/teams/:team_id/members/:username"},getMembership:{deprecated:"octokit.teams.getMembership() has been renamed to octokit.teams.getMembershipLegacy() (2020-01-16)",method:"GET",params:{team_id:{required:true,type:"integer"},username:{required:true,type:"string"}},url:"/teams/:team_id/memberships/:username"},getMembershipInOrg:{method:"GET",params:{org:{required:true,type:"string"},team_slug:{required:true,type:"string"},username:{required:true,type:"string"}},url:"/orgs/:org/teams/:team_slug/memberships/:username"},getMembershipLegacy:{deprecated:"octokit.teams.getMembershipLegacy() is deprecated, see https://developer.github.com/v3/teams/members/#get-team-membership-legacy",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:{deprecated:"octokit.teams.listChild() has been renamed to octokit.teams.listChildLegacy() (2020-01-16)",method:"GET",params:{page:{type:"integer"},per_page:{type:"integer"},team_id:{required:true,type:"integer"}},url:"/teams/:team_id/teams"},listChildInOrg:{method:"GET",params:{org:{required:true,type:"string"},page:{type:"integer"},per_page:{type:"integer"},team_slug:{required:true,type:"string"}},url:"/orgs/:org/teams/:team_slug/teams"},listChildLegacy:{deprecated:"octokit.teams.listChildLegacy() is deprecated, see https://developer.github.com/v3/teams/#list-child-teams-legacy",method:"GET",params:{page:{type:"integer"},per_page:{type:"integer"},team_id:{required:true,type:"integer"}},url:"/teams/:team_id/teams"},listDiscussionComments:{deprecated:"octokit.teams.listDiscussionComments() has been renamed to octokit.teams.listDiscussionCommentsLegacy() (2020-01-16)",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"},listDiscussionCommentsInOrg:{method:"GET",params:{direction:{enum:["asc","desc"],type:"string"},discussion_number:{required:true,type:"integer"},org:{required:true,type:"string"},page:{type:"integer"},per_page:{type:"integer"},team_slug:{required:true,type:"string"}},url:"/orgs/:org/teams/:team_slug/discussions/:discussion_number/comments"},listDiscussionCommentsLegacy:{deprecated:"octokit.teams.listDiscussionCommentsLegacy() is deprecated, see https://developer.github.com/v3/teams/discussion_comments/#list-comments-legacy",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:{deprecated:"octokit.teams.listDiscussions() has been renamed to octokit.teams.listDiscussionsLegacy() (2020-01-16)",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"},listDiscussionsInOrg:{method:"GET",params:{direction:{enum:["asc","desc"],type:"string"},org:{required:true,type:"string"},page:{type:"integer"},per_page:{type:"integer"},team_slug:{required:true,type:"string"}},url:"/orgs/:org/teams/:team_slug/discussions"},listDiscussionsLegacy:{deprecated:"octokit.teams.listDiscussionsLegacy() is deprecated, see https://developer.github.com/v3/teams/discussions/#list-discussions-legacy",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:{deprecated:"octokit.teams.listMembers() has been renamed to octokit.teams.listMembersLegacy() (2020-01-16)",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"},listMembersInOrg:{method:"GET",params:{org:{required:true,type:"string"},page:{type:"integer"},per_page:{type:"integer"},role:{enum:["member","maintainer","all"],type:"string"},team_slug:{required:true,type:"string"}},url:"/orgs/:org/teams/:team_slug/members"},listMembersLegacy:{deprecated:"octokit.teams.listMembersLegacy() is deprecated, see https://developer.github.com/v3/teams/members/#list-team-members-legacy",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:{deprecated:"octokit.teams.listPendingInvitations() has been renamed to octokit.teams.listPendingInvitationsLegacy() (2020-01-16)",method:"GET",params:{page:{type:"integer"},per_page:{type:"integer"},team_id:{required:true,type:"integer"}},url:"/teams/:team_id/invitations"},listPendingInvitationsInOrg:{method:"GET",params:{org:{required:true,type:"string"},page:{type:"integer"},per_page:{type:"integer"},team_slug:{required:true,type:"string"}},url:"/orgs/:org/teams/:team_slug/invitations"},listPendingInvitationsLegacy:{deprecated:"octokit.teams.listPendingInvitationsLegacy() is deprecated, see https://developer.github.com/v3/teams/members/#list-pending-team-invitations-legacy",method:"GET",params:{page:{type:"integer"},per_page:{type:"integer"},team_id:{required:true,type:"integer"}},url:"/teams/:team_id/invitations"},listProjects:{deprecated:"octokit.teams.listProjects() has been renamed to octokit.teams.listProjectsLegacy() (2020-01-16)",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"},listProjectsInOrg:{headers:{accept:"application/vnd.github.inertia-preview+json"},method:"GET",params:{org:{required:true,type:"string"},page:{type:"integer"},per_page:{type:"integer"},team_slug:{required:true,type:"string"}},url:"/orgs/:org/teams/:team_slug/projects"},listProjectsLegacy:{deprecated:"octokit.teams.listProjectsLegacy() is deprecated, see https://developer.github.com/v3/teams/#list-team-projects-legacy",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:{deprecated:"octokit.teams.listRepos() has been renamed to octokit.teams.listReposLegacy() (2020-01-16)",method:"GET",params:{page:{type:"integer"},per_page:{type:"integer"},team_id:{required:true,type:"integer"}},url:"/teams/:team_id/repos"},listReposInOrg:{method:"GET",params:{org:{required:true,type:"string"},page:{type:"integer"},per_page:{type:"integer"},team_slug:{required:true,type:"string"}},url:"/orgs/:org/teams/:team_slug/repos"},listReposLegacy:{deprecated:"octokit.teams.listReposLegacy() is deprecated, see https://developer.github.com/v3/teams/#list-team-repos-legacy",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() has been renamed to octokit.teams.removeMemberLegacy() (2020-01-16)",method:"DELETE",params:{team_id:{required:true,type:"integer"},username:{required:true,type:"string"}},url:"/teams/:team_id/members/:username"},removeMemberLegacy:{deprecated:"octokit.teams.removeMemberLegacy() is deprecated, see https://developer.github.com/v3/teams/members/#remove-team-member-legacy",method:"DELETE",params:{team_id:{required:true,type:"integer"},username:{required:true,type:"string"}},url:"/teams/:team_id/members/:username"},removeMembership:{deprecated:"octokit.teams.removeMembership() has been renamed to octokit.teams.removeMembershipLegacy() (2020-01-16)",method:"DELETE",params:{team_id:{required:true,type:"integer"},username:{required:true,type:"string"}},url:"/teams/:team_id/memberships/:username"},removeMembershipInOrg:{method:"DELETE",params:{org:{required:true,type:"string"},team_slug:{required:true,type:"string"},username:{required:true,type:"string"}},url:"/orgs/:org/teams/:team_slug/memberships/:username"},removeMembershipLegacy:{deprecated:"octokit.teams.removeMembershipLegacy() is deprecated, see https://developer.github.com/v3/teams/members/#remove-team-membership-legacy",method:"DELETE",params:{team_id:{required:true,type:"integer"},username:{required:true,type:"string"}},url:"/teams/:team_id/memberships/:username"},removeProject:{deprecated:"octokit.teams.removeProject() has been renamed to octokit.teams.removeProjectLegacy() (2020-01-16)",method:"DELETE",params:{project_id:{required:true,type:"integer"},team_id:{required:true,type:"integer"}},url:"/teams/:team_id/projects/:project_id"},removeProjectInOrg:{method:"DELETE",params:{org:{required:true,type:"string"},project_id:{required:true,type:"integer"},team_slug:{required:true,type:"string"}},url:"/orgs/:org/teams/:team_slug/projects/:project_id"},removeProjectLegacy:{deprecated:"octokit.teams.removeProjectLegacy() is deprecated, see https://developer.github.com/v3/teams/#remove-team-project-legacy",method:"DELETE",params:{project_id:{required:true,type:"integer"},team_id:{required:true,type:"integer"}},url:"/teams/:team_id/projects/:project_id"},removeRepo:{deprecated:"octokit.teams.removeRepo() has been renamed to octokit.teams.removeRepoLegacy() (2020-01-16)",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"},removeRepoInOrg:{method:"DELETE",params:{org:{required:true,type:"string"},owner:{required:true,type:"string"},repo:{required:true,type:"string"},team_slug:{required:true,type:"string"}},url:"/orgs/:org/teams/:team_slug/repos/:owner/:repo"},removeRepoLegacy:{deprecated:"octokit.teams.removeRepoLegacy() is deprecated, see https://developer.github.com/v3/teams/#remove-team-repository-legacy",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:{deprecated:"octokit.teams.reviewProject() has been renamed to octokit.teams.reviewProjectLegacy() (2020-01-16)",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"},reviewProjectInOrg:{headers:{accept:"application/vnd.github.inertia-preview+json"},method:"GET",params:{org:{required:true,type:"string"},project_id:{required:true,type:"integer"},team_slug:{required:true,type:"string"}},url:"/orgs/:org/teams/:team_slug/projects/:project_id"},reviewProjectLegacy:{deprecated:"octokit.teams.reviewProjectLegacy() is deprecated, see https://developer.github.com/v3/teams/#review-a-team-project-legacy",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:{deprecated:"octokit.teams.update() has been renamed to octokit.teams.updateLegacy() (2020-01-16)",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:{deprecated:"octokit.teams.updateDiscussion() has been renamed to octokit.teams.updateDiscussionLegacy() (2020-01-16)",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:{deprecated:"octokit.teams.updateDiscussionComment() has been renamed to octokit.teams.updateDiscussionCommentLegacy() (2020-01-16)",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"},updateDiscussionCommentInOrg:{method:"PATCH",params:{body:{required:true,type:"string"},comment_number:{required:true,type:"integer"},discussion_number:{required:true,type:"integer"},org:{required:true,type:"string"},team_slug:{required:true,type:"string"}},url:"/orgs/:org/teams/:team_slug/discussions/:discussion_number/comments/:comment_number"},updateDiscussionCommentLegacy:{deprecated:"octokit.teams.updateDiscussionCommentLegacy() is deprecated, see https://developer.github.com/v3/teams/discussion_comments/#edit-a-comment-legacy",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"},updateDiscussionInOrg:{method:"PATCH",params:{body:{type:"string"},discussion_number:{required:true,type:"integer"},org:{required:true,type:"string"},team_slug:{required:true,type:"string"},title:{type:"string"}},url:"/orgs/:org/teams/:team_slug/discussions/:discussion_number"},updateDiscussionLegacy:{deprecated:"octokit.teams.updateDiscussionLegacy() is deprecated, see https://developer.github.com/v3/teams/discussions/#edit-a-discussion-legacy",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"},updateInOrg:{method:"PATCH",params:{description:{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"},team_slug:{required:true,type:"string"}},url:"/orgs/:org/teams/:team_slug"},updateLegacy:{deprecated:"octokit.teams.updateLegacy() is deprecated, see https://developer.github.com/v3/teams/#edit-team-legacy",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"}},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:{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"}}};const s="2.4.0";function registerEndpoints(e,t){Object.keys(t).forEach(r=>{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]=Object.assign(function deprecatedEndpointMethod(){e.log.warn(new n.Deprecation(`[@octokit/rest] ${s.deprecated}`));e[r][i]=a;return a.apply(null,arguments)},a);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.Deprecation(`[@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}function restEndpointMethods(e){e.registerEndpoints=registerEndpoints.bind(null,e);registerEndpoints(e,i);[["gitdata","git"],["authorization","oauthAuthorizations"],["pullRequests","pulls"]].forEach(([t,r])=>{Object.defineProperty(e,t,{get(){e.log.warn(new n.Deprecation(`[@octokit/plugin-rest-endpoint-methods] "octokit.${t}.*" methods are deprecated, use "octokit.${r}.*" instead`));return e[r]}})});return{}}restEndpointMethods.VERSION=s;t.restEndpointMethods=restEndpointMethods},847:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:true});t.warn=warn;t.warnFileDeprecation=warnFileDeprecation;t.warnOptionDeprecation=warnOptionDeprecation;function warn(e,t){if(global&&global._YAML_SILENCE_WARNINGS)return;const{emitWarning:r}=global&&global.process;if(r)r(e,t);else{console.warn(t?`${t}: ${e}`:e)}}function warnFileDeprecation(e){if(global&&global._YAML_SILENCE_DEPRECATION_WARNINGS)return;const t=e.replace(/.*yaml[\/\\]/i,"").replace(/\.js$/,"").replace(/\\/g,"/");warn(`The endpoint 'yaml/${t}' will be removed in a future release.`,"DeprecationWarning")}const r={};function warnOptionDeprecation(e,t){if(global&&global._YAML_SILENCE_DEPRECATION_WARNINGS)return;if(r[e])return;r[e]=true;let n=`The option '${e}' will be removed in a future release`;n+=t?`, use '${t}' instead.`:".";warn(n,"DeprecationWarning")}},850:function(e,t,r){e.exports=paginationMethodsPlugin;function paginationMethodsPlugin(e){e.getFirstPage=r(777).bind(null,e);e.getLastPage=r(649).bind(null,e);e.getNextPage=r(397).bind(null,e);e.getPreviousPage=r(563).bind(null,e);e.hasFirstPage=r(536);e.hasLastPage=r(336);e.hasNextPage=r(929);e.hasPreviousPage=r(558)}},854:function(e){var t="Expected a function";var r="__lodash_hash_undefined__";var n=1/0;var i="[object Function]",s="[object GeneratorFunction]",o="[object Symbol]";var a=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,u=/^\w*$/,p=/^\./,c=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g;var l=/[\\^$.*+?()[\]{}|]/g;var d=/\\(\\)?/g;var g=/^\[object .+?Constructor\]$/;var m=typeof global=="object"&&global&&global.Object===Object&&global;var f=typeof self=="object"&&self&&self.Object===Object&&self;var h=m||f||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 y=Array.prototype,b=Function.prototype,_=Object.prototype;var v=h["__core-js_shared__"];var w=function(){var e=/[^.]+$/.exec(v&&v.keys&&v.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}();var q=b.toString;var E=_.hasOwnProperty;var T=_.toString;var k=RegExp("^"+q.call(E).replace(l,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");var O=h.Symbol,S=y.splice;var j=getNative(h,"Map"),P=getNative(Object,"create");var C=O?O.prototype:undefined,A=C?C.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(++te instanceof s.default&&e.key instanceof u.default)){const r="Keys with collection values will be stringified as YAML due to JS Object restrictions. Use mapAsMap: true to avoid this.";e.warnings.push(new i.YAMLWarning(t,r))}t.resolved=c;return c}function resolveBlockSeqItems(e,t){const r=[];const s=[];for(let o=0;o{return e.auth()}).then(e=>{t.headers.authorization=i(e)})}},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:"")}},880:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:true});t.default=void 0;var n=_interopRequireDefault(r(380));var i=_interopRequireDefault(r(325));var s=_interopRequireDefault(r(515));function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}const o=(e,t)=>{if(e&&typeof e==="object"){const{tag:r}=e;if(e instanceof n.default){if(r)t[r]=true;e.items.forEach(e=>o(e,t))}else if(e instanceof i.default){o(e.key,t);o(e.value,t)}else if(e instanceof s.default){if(r)t[r]=true}}return t};var a=e=>Object.keys(o(e,{}));t.default=a},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=/^\./,l=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g;var d=/[\\^$.*+?()[\]{}|]/g;var g=/\\(\\)?/g;var m=/^\[object .+?Constructor\]$/;var f=/^(?:0|[1-9]\d*)$/;var h=typeof global=="object"&&global&&global.Object===Object&&global;var y=typeof self=="object"&&self&&self.Object===Object&&self;var b=h||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 _=Array.prototype,v=Function.prototype,w=Object.prototype;var q=b["__core-js_shared__"];var E=function(){var e=/[^.]+$/.exec(q&&q.keys&&q.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}();var T=v.toString;var k=w.hasOwnProperty;var O=w.toString;var S=RegExp("^"+T.call(k).replace(d,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");var j=b.Symbol,P=_.splice;var C=getNative(b,"Map"),A=getNative(Object,"create");var R=j?j.prototype:undefined,x=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(o.includes(t)){e[t]=r[t];return e}if(!e.variables){e.variables={}}e.variables[t]=r[t];return e},{});return e(n).then(e=>{if(e.data.errors){throw new GraphqlError(n,{data:e.data})}return e.data.data})}function withDefaults(e,t){const r=e.defaults(t);const i=(e,t)=>{return graphql(r,e,t)};return Object.assign(i,{defaults:withDefaults.bind(null,r),endpoint:n.request.endpoint})}const a=withDefaults(n.request,{headers:{"user-agent":`octokit-graphql.js/${s} ${i.getUserAgent()}`},method:"POST",url:"/graphql"});function withCustomRequest(e){return withDefaults(e,{method:"POST",url:"/graphql"})}t.graphql=a;t.withCustomRequest=withCustomRequest},906:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:true});t.default=void 0;var n=r(49);var i=r(405);var s=_interopRequireDefault(r(794));var o=_interopRequireDefault(r(974));var a=_interopRequireDefault(r(19));function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}class CollectionItem extends o.default{constructor(e,t){super(e,t);this.node=null}get includesTrailingLines(){return!!this.node&&this.node.includesTrailingLines}parse(e,t){this.context=e;const{parseNode:r,src:u}=e;let{atLineStart:p,lineStart:c}=e;if(!p&&this.type===n.Type.SEQ_ITEM)this.error=new i.YAMLSemanticError(this,"Sequence items must not have preceding content on the same line");const l=p?t-c:e.indent;let d=o.default.endOfWhiteSpace(u,t+1);let g=u[d];const m=g==="#";const f=[];let h=null;while(g==="\n"||g==="#"){if(g==="#"){const e=o.default.endOfLine(u,d+1);f.push(new a.default(d,e));d=e}else{p=true;c=d+1;const e=o.default.endOfWhiteSpace(u,c);if(u[e]==="\n"&&f.length===0){h=new s.default;c=h.parse({src:u},c)}d=o.default.endOfIndent(u,c)}g=u[d]}if(o.default.nextNodeIsIndented(g,d-(c+l),this.type!==n.Type.SEQ_ITEM)){this.node=r({atLineStart:p,inCollection:false,indent:l,lineStart:c,parent:this},d)}else if(g&&c>t+1){d=c-1}if(this.node){if(h){const t=e.parent.items||e.parent.contents;if(t)t.push(h)}if(f.length)Array.prototype.push.apply(this.props,f);d=this.node.range.end}else{if(m){const e=f[0];this.props.push(e);d=e.end}else{d=o.default.endOfLine(u,t+1)}}const y=this.node?this.node.valueRange.end:d;this.valueRange=new a.default(t,y);return d}setOrigRanges(e,t){t=super.setOrigRanges(e,t);return this.node?this.node.setOrigRanges(e,t):t}toString(){const{context:{src:e},node:t,range:r,value:n}=this;if(n!=null)return n;const i=t?e.slice(r.start,t.range.start)+String(t):e.slice(r.start,r.end);return o.default.addStringTerminator(e,r.end,i)}}t.default=CollectionItem},916:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:true});const r="1.0.0";function requestLog(e){e.hook.wrap("request",(t,r)=>{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})})}requestLog.VERSION=r;t.requestLog=requestLog},923:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:true});t.default=toJSON;function toJSON(e,t,r){if(Array.isArray(e))return e.map((e,t)=>toJSON(e,String(t),r));if(e&&typeof e.toJSON==="function"){const n=r&&r.anchors&&r.anchors.find(t=>t.node===e);if(n)r.onCreate=(e=>{n.res=e;delete r.onCreate});const i=e.toJSON(t,r);if(n&&r.onCreate)r.onCreate(i);return i}return e}},928:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:true});t.default=void 0;var n=r(49);var i=r(405);var s=_interopRequireDefault(r(794));var o=r(954);var a=_interopRequireDefault(r(487));var u=_interopRequireDefault(r(641));var p=_interopRequireDefault(r(974));var c=_interopRequireDefault(r(19));function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}class Document extends p.default{static startCommentOrEndBlankLine(e,t){const r=p.default.endOfWhiteSpace(e,t);const n=e[r];return n==="#"||n==="\n"?r:t}constructor(){super(n.Type.DOCUMENT);this.directives=null;this.contents=null;this.directivesEndMarker=null;this.documentEndMarker=null}parseDirectives(e){const{src:t}=this.context;this.directives=[];let r=true;let o=false;let l=e;while(!p.default.atDocumentBoundary(t,l,n.Char.DIRECTIVES_END)){l=Document.startCommentOrEndBlankLine(t,l);switch(t[l]){case"\n":if(r){const e=new s.default;l=e.parse({src:t},l);if(l0){this.contents=this.directives;this.directives=[]}return l}}if(t[l]){this.directivesEndMarker=new c.default(l,l+3);return l+3}if(o){this.error=new i.YAMLSemanticError(this,"Missing directives-end indicator line")}else if(this.directives.length>0){this.contents=this.directives;this.directives=[]}return l}parseContents(e){const{parseNode:t,src:r}=this.context;if(!this.contents)this.contents=[];let u=e;while(r[u-1]==="-")u-=1;let l=p.default.endOfWhiteSpace(r,e);let d=u===e;this.valueRange=new c.default(l);while(!p.default.atDocumentBoundary(r,l,n.Char.DOCUMENT_END)){switch(r[l]){case"\n":if(d){const e=new s.default;l=e.parse({src:r},l);if(l{t=r.setOrigRanges(e,t)});if(this.directivesEndMarker)t=this.directivesEndMarker.setOrigRange(e,t);this.contents.forEach(r=>{t=r.setOrigRanges(e,t)});if(this.documentEndMarker)t=this.documentEndMarker.setOrigRange(e,t);return t}toString(){const{contents:e,directives:t,value:r}=this;if(r!=null)return r;let i=t.join("");if(e.length>0){if(t.length>0||e[0].type===n.Type.COMMENT)i+="---\n";i+=e.join("")}if(i[i.length-1]!=="\n")i+="\n";return i}}t.default=Document},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}},948:function(e){"use strict";e.exports=function(e){try{return e()}catch(e){}}},950:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:true});const n=r(835);function getProxyUrl(e){let t=e.protocol==="https:";let r;if(checkBypass(e)){return r}let i;if(t){i=process.env["https_proxy"]||process.env["HTTPS_PROXY"]}else{i=process.env["http_proxy"]||process.env["HTTP_PROXY"]}if(i){r=n.parse(i)}return r}t.getProxyUrl=getProxyUrl;function checkBypass(e){if(!e.hostname){return false}let t=process.env["no_proxy"]||process.env["NO_PROXY"]||"";if(!t){return false}let r;if(e.port){r=Number(e.port)}else if(e.protocol==="http:"){r=80}else if(e.protocol==="https:"){r=443}let n=[e.hostname.toUpperCase()];if(typeof r==="number"){n.push(`${n[0]}:${r}`)}for(let e of t.split(",").map(e=>e.trim().toUpperCase()).filter(e=>e)){if(n.some(t=>t===e)){return true}}return false}t.checkBypass=checkBypass},954:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:true});t.grabCollectionEndComments=grabCollectionEndComments;t.default=void 0;var n=r(49);var i=_interopRequireDefault(r(794));var s=_interopRequireDefault(r(906));var o=_interopRequireDefault(r(487));var a=_interopRequireDefault(r(974));var u=_interopRequireDefault(r(19));function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}function grabCollectionEndComments(e){let t=e;while(t instanceof s.default)t=t.node;if(!(t instanceof Collection))return null;const r=t.items.length;let i=-1;for(let e=r-1;e>=0;--e){const r=t.items[e];if(r.type===n.Type.COMMENT){const{indent:t,lineStart:n}=r.context;if(t>0&&r.range.start>=n+t)break;i=e}else if(r.type===n.Type.BLANK_LINE)i=e;else break}if(i===-1)return null;const o=t.items.splice(i,r-i);const a=o[0].range.start;while(true){t.range.end=a;if(t.valueRange&&t.valueRange.end>a)t.valueRange.end=a;if(t===e)break;t=t.context.parent}return o}class Collection extends a.default{static nextContentHasIndent(e,t,r){const n=a.default.endOfLine(e,t)+1;t=a.default.endOfWhiteSpace(e,n);const i=e[t];if(!i)return false;if(t>=n+r)return true;if(i!=="#"&&i!=="\n")return false;return Collection.nextContentHasIndent(e,t,r)}constructor(e){super(e.type===n.Type.SEQ_ITEM?n.Type.SEQ:n.Type.MAP);for(let t=e.props.length-1;t>=0;--t){if(e.props[t].start0}parse(e,t){this.context=e;const{parseNode:r,src:s}=e;let p=a.default.startOfLine(s,t);const c=this.items[0];c.context.parent=this;this.valueRange=u.default.copy(c.valueRange);const l=c.range.start-c.context.lineStart;let d=t;d=a.default.normalizeOffset(s,d);let g=s[d];let m=a.default.endOfWhiteSpace(s,p)===d;let f=false;while(g){while(g==="\n"||g==="#"){if(m&&g==="\n"&&!f){const e=new i.default;d=e.parse({src:s},d);this.valueRange.end=d;if(d>=s.length){g=null;break}this.items.push(e);d-=1}else if(g==="#"){if(d=s.length){g=null;break}}p=d+1;d=a.default.endOfIndent(s,p);if(a.default.atBlank(s,d)){const e=a.default.endOfWhiteSpace(s,d);const t=s[e];if(!t||t==="\n"||t==="#"){d=e}}g=s[d];m=true}if(!g){break}if(d!==p+l&&(m||g!==":")){if(p>t)d=p;break}if(c.type===n.Type.SEQ_ITEM!==(g==="-")){let e=true;if(g==="-"){const t=s[d+1];e=!t||t==="\n"||t==="\t"||t===" "}if(e){if(p>t)d=p;break}}const e=r({atLineStart:m,inCollection:true,indent:l,lineStart:p,parent:this},d);if(!e)return d;this.items.push(e);this.valueRange.end=e.valueRange.end;d=a.default.normalizeOffset(s,e.range.end);g=s[d];m=false;f=e.includesTrailingLines;if(g){let e=d-1;let t=s[e];while(t===" "||t==="\t")t=s[--e];if(t==="\n"){p=e+1;m=true}}const u=grabCollectionEndComments(e);if(u)Array.prototype.push.apply(this.items,u)}return d}setOrigRanges(e,t){t=super.setOrigRanges(e,t);this.items.forEach(r=>{t=r.setOrigRanges(e,t)});return t}toString(){const{context:{src:e},items:t,range:r,value:n}=this;if(n!=null)return n;let i=e.slice(r.start,t[0].range.start)+String(t[0]);for(let e=1;e{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?d(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 d;try{d=i.spawn(n.cmd,n.args,n.opts)}catch(e){return Promise.reject(e)}let g;if(n.opts.cleanup){g=l(()=>{d.kill()})}let m=null;let f=false;const h=()=>{if(m){clearTimeout(m);m=null}if(g){g()}};if(n.opts.timeout>0){m=setTimeout(()=>{m=null;f=true;d.kill(n.opts.killSignal)},n.opts.timeout)}const y=new Promise(e=>{d.on("exit",(t,r)=>{h();e({code:t,signal:r})});d.on("error",t=>{h();e({error:t})});if(d.stdin){d.stdin.on("error",t=>{h();e({error:t})})}});function destroy(){if(d.stdout){d.stdout.destroy()}if(d.stderr){d.stderr.destroy()}}const b=()=>c(Promise.all([y,getStream(d,"stdout",{encoding:o,buffer:a,maxBuffer:u}),getStream(d,"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:f});e.killed=e.killed||d.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(d,n.parsed);handleInput(d,n.opts.input);d.then=((e,t)=>b().then(e,t));d.catch=(e=>b().catch(e));return d});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))},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})},968:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:true});t.default=void 0;var n=r(49);var i=r(405);var s=_interopRequireDefault(r(856));var o=_interopRequireDefault(r(24));var a=_interopRequireDefault(r(954));var u=_interopRequireDefault(r(906));var p=_interopRequireDefault(r(185));var c=_interopRequireDefault(r(974));var l=_interopRequireDefault(r(119));var d=_interopRequireDefault(r(725));var g=_interopRequireDefault(r(411));var m=_interopRequireDefault(r(19));function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}function _defineProperty(e,t,r){if(t in e){Object.defineProperty(e,t,{value:r,enumerable:true,configurable:true,writable:true})}else{e[t]=r}return e}class ParseContext{static parseType(e,t,r){switch(e[t]){case"*":return n.Type.ALIAS;case">":return n.Type.BLOCK_FOLDED;case"|":return n.Type.BLOCK_LITERAL;case"{":return n.Type.FLOW_MAP;case"[":return n.Type.FLOW_SEQ;case"?":return!r&&c.default.atBlank(e,t+1,true)?n.Type.MAP_KEY:n.Type.PLAIN;case":":return!r&&c.default.atBlank(e,t+1,true)?n.Type.MAP_VALUE:n.Type.PLAIN;case"-":return!r&&c.default.atBlank(e,t+1,true)?n.Type.SEQ_ITEM:n.Type.PLAIN;case'"':return n.Type.QUOTE_DOUBLE;case"'":return n.Type.QUOTE_SINGLE;default:return n.Type.PLAIN}}constructor(e={},{atLineStart:t,inCollection:r,inFlow:f,indent:h,lineStart:y,parent:b}={}){_defineProperty(this,"parseNode",(e,t)=>{if(c.default.atDocumentBoundary(this.src,t))return null;const r=new ParseContext(this,e);const{props:f,type:h,valueStart:y}=r.parseProps(t);let b;switch(h){case n.Type.ALIAS:b=new s.default(h,f);break;case n.Type.BLOCK_FOLDED:case n.Type.BLOCK_LITERAL:b=new o.default(h,f);break;case n.Type.FLOW_MAP:case n.Type.FLOW_SEQ:b=new p.default(h,f);break;case n.Type.MAP_KEY:case n.Type.MAP_VALUE:case n.Type.SEQ_ITEM:b=new u.default(h,f);break;case n.Type.COMMENT:case n.Type.PLAIN:b=new l.default(h,f);break;case n.Type.QUOTE_DOUBLE:b=new d.default(h,f);break;case n.Type.QUOTE_SINGLE:b=new g.default(h,f);break;default:b.error=new i.YAMLSyntaxError(b,`Unknown node type: ${JSON.stringify(h)}`);b.range=new m.default(t,t+1);return b}let _=b.parse(r,y);b.range=new m.default(t,_);if(_<=t){b.error=new Error(`Node#parse consumed no characters`);b.error.parseEnd=_;b.error.source=b;b.range.end=t+1}if(r.nodeStartsCollection(b)){if(!b.error&&!r.atLineStart&&r.parent.type===n.Type.DOCUMENT){b.error=new i.YAMLSyntaxError(b,"Block collection must not have preceding content here (e.g. directives-end indicator)")}const e=new a.default(b);_=e.parse(new ParseContext(r),_);e.range=new m.default(t,_);return e}return b});this.atLineStart=t!=null?t:e.atLineStart||false;this.inCollection=r!=null?r:e.inCollection||false;this.inFlow=f!=null?f:e.inFlow||false;this.indent=h!=null?h:e.indent;this.lineStart=y!=null?y:e.lineStart;this.parent=b!=null?b:e.parent||{};this.root=e.root;this.src=e.src}get pretty(){const e={start:`${this.lineStart} + ${this.indent}`,in:[],parent:this.parent.type};if(!this.atLineStart)e.start+=" + N";if(this.inCollection)e.in.push("collection");if(this.inFlow)e.in.push("flow");return e}nodeStartsCollection(e){const{inCollection:t,inFlow:r,src:n}=this;if(t||r)return false;if(e instanceof u.default)return true;let i=e.range.end;if(n[i]==="\n"||n[i-1]==="\n")return false;i=c.default.endOfWhiteSpace(n,i);return n[i]===":"}parseProps(e){const{inFlow:t,parent:r,src:i}=this;const s=[];let o=false;e=c.default.endOfWhiteSpace(i,e);let a=i[e];while(a===n.Char.ANCHOR||a===n.Char.COMMENT||a===n.Char.TAG||a==="\n"){if(a==="\n"){const t=e+1;const s=c.default.endOfIndent(i,t);const a=s-(t+this.indent);const u=r.type===n.Type.SEQ_ITEM&&r.context.atLineStart;if(!c.default.nextNodeIsIndented(i[s],a,!u))break;this.atLineStart=true;this.lineStart=t;o=false;e=s}else if(a===n.Char.COMMENT){const t=c.default.endOfLine(i,e+1);s.push(new m.default(e,t));e=t}else{let t=c.default.endOfIdentifier(i,e+1);if(a===n.Char.TAG&&i[t]===","&&/^[a-zA-Z0-9-]+\.[a-zA-Z0-9-]+,\d\d\d\d(-\d\d){0,2}\/\S/.test(i.slice(e+1,t+13))){t=c.default.endOfIdentifier(i,t+5)}s.push(new m.default(e,t));o=true;e=c.default.endOfWhiteSpace(i,t)}a=i[e]}if(o&&a===":"&&c.default.atBlank(i,e+1,true))e-=1;const u=ParseContext.parseType(i,e,t);return{props:s,type:u,valueStart:e}}}t.default=ParseContext},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}},974:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:true});t.default=void 0;var n=r(49);var i=r(41);var s=_interopRequireDefault(r(19));function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}class Node{static addStringTerminator(e,t,r){if(r[r.length-1]==="\n")return r;const n=Node.endOfWhiteSpace(e,t);return n>=e.length||e[n]==="\n"?r+"\n":r}static atDocumentBoundary(e,t,r){const i=e[t];if(!i)return true;const s=e[t-1];if(s&&s!=="\n")return false;if(r){if(i!==r)return false}else{if(i!==n.Char.DIRECTIVES_END&&i!==n.Char.DOCUMENT_END)return false}const o=e[t+1];const a=e[t+2];if(o!==i||a!==i)return false;const u=e[t+3];return!u||u==="\n"||u==="\t"||u===" "}static endOfIdentifier(e,t){let r=e[t];const n=r==="<";const i=n?["\n","\t"," ",">"]:["\n","\t"," ","[","]","{","}",","];while(r&&i.indexOf(r)===-1)r=e[t+=1];if(n&&r===">")t+=1;return t}static endOfIndent(e,t){let r=e[t];while(r===" ")r=e[t+=1];return t}static endOfLine(e,t){let r=e[t];while(r&&r!=="\n")r=e[t+=1];return t}static endOfWhiteSpace(e,t){let r=e[t];while(r==="\t"||r===" ")r=e[t+=1];return t}static startOfLine(e,t){let r=e[t-1];if(r==="\n")return t;while(r&&r!=="\n")r=e[t-=1];return t+1}static endOfBlockIndent(e,t,r){const n=Node.endOfIndent(e,r);if(n>r+t){return n}else{const t=Node.endOfWhiteSpace(e,n);const r=e[t];if(!r||r==="\n")return t}return null}static atBlank(e,t,r){const n=e[t];return n==="\n"||n==="\t"||n===" "||r&&!n}static atCollectionItem(e,t){const r=e[t];return(r==="?"||r===":"||r==="-")&&Node.atBlank(e,t+1,true)}static nextNodeIsIndented(e,t,r){if(!e||t<0)return false;if(t>0)return true;return r&&e==="-"}static normalizeOffset(e,t){const r=e[t];return!r?t:r!=="\n"&&e[t-1]==="\n"?t-1:Node.endOfWhiteSpace(e,t)}static foldNewline(e,t,r){let n=0;let i=false;let s="";let o=e[t+1];while(o===" "||o==="\t"||o==="\n"){switch(o){case"\n":n=0;t+=1;s+="\n";break;case"\t":if(n<=r)i=true;t=Node.endOfWhiteSpace(e,t+2)-1;break;case" ":n+=1;t+=1;break}o=e[t+1]}if(!s)s=" ";if(o&&n<=r)i=true;return{fold:s,offset:t,error:i}}constructor(e,t,r){Object.defineProperty(this,"context",{value:r||null,writable:true});this.error=null;this.range=null;this.valueRange=null;this.props=t||[];this.type=e;this.value=null}getPropValue(e,t,r){if(!this.context)return null;const{src:n}=this.context;const i=this.props[e];return i&&n[i.start]===t?n.slice(i.start+(r?1:0),i.end):null}get anchor(){for(let e=0;e0?e.join("\n"):null}commentHasRequiredWhitespace(e){const{src:t}=this.context;if(this.header&&e===this.header.end)return false;if(!this.valueRange)return false;const{end:r}=this.valueRange;return e!==r||Node.atBlank(t,r-1)}get hasComment(){if(this.context){const{src:e}=this.context;for(let t=0;tr.setOrigRange(e,t));return t}toString(){const{context:{src:e},range:t,value:r}=this;if(r!=null)return r;const n=e.slice(t.start,t.end);return Node.addStringTerminator(e,t.end,n)}}t.default=Node},988:function(e,t,r){e.exports=r(141)},996:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:true});t.default=void 0;var n=r(49);var i=r(405);var s=r(454);var o=r(591);var a=r(422);var u={identify:e=>e instanceof Uint8Array,default:false,tag:"tag:yaml.org,2002:binary",resolve:(e,t)=>{if(typeof Buffer==="function"){const r=(0,o.resolveString)(e,t);return Buffer.from(r,"base64")}else if(typeof atob==="function"){const r=atob((0,o.resolveString)(e,t));const n=new Uint8Array(r.length);for(let e=0;e{let p;if(typeof Buffer==="function"){p=r instanceof Buffer?r.toString("base64"):Buffer.from(r.buffer).toString("base64")}else if(typeof btoa==="function"){let e="";for(let t=0;t{if(a.hasOwnProperty(e)){u[e]=a[e]}});e.exports=u},2:function(e,t,r){"use strict";const n=r(87);const i=r(118);const s=r(494);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},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 l=t.writable||t.writable!==false&&e.writable;var d=false;var g=function(){if(!e.writable)m()};var m=function(){l=false;if(!c)r.call(e)};var f=function(){c=false;if(!l)r.call(e)};var h=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(_)};var _=function(){if(d)return;if(c&&!(p&&(p.ended&&!p.destroyed)))return r.call(e,new Error("premature close"));if(l&&!(u&&(u.ended&&!u.destroyed)))return r.call(e,new Error("premature close"))};var v=function(){e.req.on("finish",m)};if(s(e)){e.on("complete",m);e.on("abort",b);if(e.req)v();else e.on("request",v)}else if(l&&!u){e.on("end",g);e.on("close",g)}if(o(e))e.on("exit",h);e.on("end",f);e.on("finish",m);if(t.error!==false)e.on("error",y);e.on("close",b);return function(){d=true;e.removeListener("complete",m);e.removeListener("abort",b);e.removeListener("request",v);if(e.req)e.req.removeListener("finish",m);e.removeListener("end",g);e.removeListener("close",g);e.removeListener("finish",m);e.removeListener("exit",h);e.removeListener("end",f);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;rr)break;else++i}this.origStart=r+i;const s=i;while(i=n)break;else++i}this.origEnd=n+i;return s}}t.default=Range},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},24:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:true});t.default=t.Chomp=void 0;var n=r(49);var i=_interopRequireDefault(r(974));var s=_interopRequireDefault(r(19));function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}const o={CLIP:"CLIP",KEEP:"KEEP",STRIP:"STRIP"};t.Chomp=o;class BlockValue extends i.default{constructor(e,t){super(e,t);this.blockIndent=null;this.chomping=o.CLIP;this.header=null}get includesTrailingLines(){return this.chomping===o.KEEP}get strValue(){if(!this.valueRange||!this.context)return null;let{start:e,end:t}=this.valueRange;const{indent:r,src:s}=this.context;if(this.valueRange.isEmpty())return"";let a=null;let u=s[t-1];while(u==="\n"||u==="\t"||u===" "){t-=1;if(t<=e){if(this.chomping===o.KEEP)break;else return""}if(u==="\n")a=t;u=s[t-1]}let p=t+1;if(a){if(this.chomping===o.KEEP){p=a;t=this.valueRange.end}else{t=a}}const c=r+this.blockIndent;const l=this.type===n.Type.BLOCK_FOLDED;let d=true;let g="";let m="";let f=false;for(let r=e;rp){p=i}}if(r[e]==="\n"){n=e}else{n=a=i.default.endOfLine(r,e)}}if(this.chomping!==o.KEEP){n=r[a]?a+1:a}this.valueRange=new s.default(e+1,n);return n}parse(e,t){this.context=e;const{src:r}=e;let n=this.parseBlockHeader(t);n=i.default.endOfWhiteSpace(r,n);n=this.parseComment(n);n=this.parseBlockValue(n);return n}setOrigRanges(e,t){t=super.setOrigRanges(e,t);return this.header?this.header.setOrigRange(e,t):t}}t.default=BlockValue},29:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:true});t.default=void 0;var n=_interopRequireDefault(r(923));var i=_interopRequireDefault(r(380));var s=_interopRequireDefault(r(515));function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}function asItemIndex(e){let t=e instanceof s.default?e.value:e;if(t&&typeof t==="string")t=Number(t);return Number.isInteger(t)&&t>=0?t:null}class YAMLSeq extends i.default{add(e){this.items.push(e)}delete(e){const t=asItemIndex(e);if(typeof t!=="number")return false;const r=this.items.splice(t,1);return r.length>0}get(e,t){const r=asItemIndex(e);if(typeof r!=="number")return undefined;const n=this.items[r];return!t&&n instanceof s.default?n.value:n}has(e){const t=asItemIndex(e);return typeof t==="number"&&te.type==="comment"?e.str:`- ${e.str}`,flowChars:{start:"[",end:"]"},isMap:false,itemIndent:(e.indent||"")+" "},t,r)}}t.default=YAMLSeq},34:function(e){e.exports=require("https")},39:function(e){"use strict";e.exports=(e=>{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"})},40:function(e,t,r){e.exports=authenticationPlugin;const{Deprecation:n}=r(692);const i=r(969);const s=i((e,t)=>e.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))}},41:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:true});t.getLinePos=getLinePos;t.getLine=getLine;t.getPrettyContext=getPrettyContext;function findLineStarts(e){const t=[0];let r=e.indexOf("\n");while(r!==-1){r+=1;t.push(r);r=e.indexOf("\n",r)}return t}function getSrcInfo(e){let t,r;if(typeof e==="string"){t=findLineStarts(e);r=e}else{if(Array.isArray(e))e=e[0];if(e&&e.context){if(!e.lineStarts)e.lineStarts=findLineStarts(e.context.src);t=e.lineStarts;r=e.context.src}}return{lineStarts:t,src:r}}function getLinePos(e,t){if(typeof e!=="number"||e<0)return null;const{lineStarts:r,src:n}=getSrcInfo(t);if(!r||!n||e>n.length)return null;for(let t=0;t=1)||e>r.length)return null;const i=r[e-1];let s=r[e];while(s&&s>i&&n[s-1]==="\n")--s;return n.slice(i,s)}function getPrettyContext({start:e,end:t},r,n=80){let i=getLine(e.line,r);if(!i)return null;let{col:s}=e;if(i.length>n){if(s<=n-10){i=i.substr(0,n-1)+"…"}else{const e=Math.round(n/2);if(i.length>s+e)i=i.substr(0,s+e-1)+"…";s-=i.length-n;i="…"+i.substr(1-n)}}let o=1;let a="";if(t){if(t.line===e.line&&s+(t.col-e.col)<=n+1){o=t.col-e.col}else{o=Math.min(i.length+1,n)-s;a="…"}}const u=s>1?" ".repeat(s-1):"";const p="^".repeat(o);return`${i}\n${u}${p}${a}`}},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){"use strict";Object.defineProperty(t,"__esModule",{value:true});t.Type=t.Char=void 0;const r={ANCHOR:"&",COMMENT:"#",TAG:"!",DIRECTIVES_END:"-",DOCUMENT_END:"."};t.Char=r;const n={ALIAS:"ALIAS",BLANK_LINE:"BLANK_LINE",BLOCK_FOLDED:"BLOCK_FOLDED",BLOCK_LITERAL:"BLOCK_LITERAL",COMMENT:"COMMENT",DIRECTIVE:"DIRECTIVE",DOCUMENT:"DOCUMENT",FLOW_MAP:"FLOW_MAP",FLOW_SEQ:"FLOW_SEQ",MAP:"MAP",MAP_KEY:"MAP_KEY",MAP_VALUE:"MAP_VALUE",PLAIN:"PLAIN",QUOTE_DOUBLE:"QUOTE_DOUBLE",QUOTE_SINGLE:"QUOTE_SINGLE",SEQ:"SEQ",SEQ_ITEM:"SEQ_ITEM"};t.Type=n},77:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:true});t.default=void 0;var n=_interopRequireDefault(r(732));var i=_interopRequireDefault(r(767));var s=_interopRequireDefault(r(515));var o=r(591);function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}const a=[n.default,i.default,{identify:e=>typeof e==="string",default:true,tag:"tag:yaml.org,2002:str",resolve:o.resolveString,stringify:e=>JSON.stringify(e)},{identify:e=>e==null,createNode:(e,t,r)=>r.wrapScalars?new s.default(null):null,default:true,tag:"tag:yaml.org,2002:null",test:/^null$/,resolve:()=>null,stringify:e=>JSON.stringify(e)},{identify:e=>typeof e==="boolean",default:true,tag:"tag:yaml.org,2002:bool",test:/^true$/,resolve:()=>true,stringify:e=>JSON.stringify(e)},{identify:e=>typeof e==="boolean",default:true,tag:"tag:yaml.org,2002:bool",test:/^false$/,resolve:()=>false,stringify:e=>JSON.stringify(e)},{identify:e=>typeof e==="number",default:true,tag:"tag:yaml.org,2002:int",test:/^-?(?:0|[1-9][0-9]*)$/,resolve:e=>parseInt(e,10),stringify:e=>JSON.stringify(e)},{identify:e=>typeof e==="number",default:true,tag:"tag:yaml.org,2002:float",test:/^-?(?:0|[1-9][0-9]*)(?:\.[0-9]*)?(?:[eE][-+]?[0-9]+)?$/,resolve:e=>parseFloat(e),stringify:e=>JSON.stringify(e)}];a.scalarFallback=(e=>{throw new SyntaxError(`Unresolved plain scalar ${JSON.stringify(e)}`)});var u=a;t.default=u},87:function(e){e.exports=require("os")},118:function(e,t,r){"use strict";const n=r(87);const i=new Map([[19,"Catalina"],[18,"Mojave"],[17,"High Sierra"],[16,"Sierra"],[15,"El Capitan"],[14,"Yosemite"],[13,"Mavericks"],[12,"Mountain Lion"],[11,"Lion"],[10,"Snow Leopard"],[9,"Leopard"],[8,"Tiger"],[7,"Panther"],[6,"Jaguar"],[5,"Puma"]]);const s=e=>{e=Number((e||n.release()).split(".")[0]);return{name:i.get(e),version:"10."+(e-4)}};e.exports=s;e.exports.default=s},119:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:true});t.default=void 0;var n=_interopRequireDefault(r(974));var i=_interopRequireDefault(r(19));function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}class PlainValue extends n.default{static endOfLine(e,t,r){let n=e[t];let i=t;while(n&&n!=="\n"){if(r&&(n==="["||n==="]"||n==="{"||n==="}"||n===","))break;const t=e[i+1];if(n===":"&&(!t||t==="\n"||t==="\t"||t===" "||r&&t===","))break;if((n===" "||n==="\t")&&t==="#")break;i+=1;n=t}return i}get strValue(){if(!this.valueRange||!this.context)return null;let{start:e,end:t}=this.valueRange;const{src:r}=this.context;let i=r[t-1];while(en?r.slice(n,i+1):e}else{s+=e}}return s}parseBlockValue(e){const{indent:t,inFlow:r,src:i}=this.context;let s=e;let o=e;for(let e=i[s];e==="\n";e=i[s]){if(n.default.atDocumentBoundary(i,s+1))break;const e=n.default.endOfBlockIndent(i,t,s+1);if(e===null||i[e]==="#")break;if(i[e]==="\n"){s=e}else{o=PlainValue.endOfLine(i,e,r);s=o}}if(this.valueRange.isEmpty())this.valueRange.start=e;this.valueRange.end=o;return o}parse(e,t){this.context=e;const{inFlow:r,src:s}=e;let o=t;const a=s[o];if(a&&a!=="#"&&a!=="\n"){o=PlainValue.endOfLine(s,t,r)}this.valueRange=new i.default(t,o);o=n.default.endOfWhiteSpace(s,o);o=this.parseComment(o);if(!this.hasComment||this.valueRange.isEmpty()){o=this.parseBlockValue(o)}return o}}t.default=PlainValue},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=this.maxSockets){i.requests.push(s);return}i.createSocket(s,function(t){t.on("free",onFree);t.on("close",onCloseOrRemove);t.on("agentRemove",onCloseOrRemove);e.onSocket(t);function onFree(){i.emit("free",t,s)}function onCloseOrRemove(e){i.removeSocket(t);t.removeListener("free",onFree);t.removeListener("close",onCloseOrRemove);t.removeListener("agentRemove",onCloseOrRemove)}})};TunnelingAgent.prototype.createSocket=function createSocket(e,t){var r=this;var n={};r.sockets.push(n);var i=mergeOptions({},r.proxyOptions,{method:"CONNECT",path:e.host+":"+e.port,agent:false,headers:{host:e.host+":"+e.port}});if(e.localAddress){i.localAddress=e.localAddress}if(i.proxyAuth){i.headers=i.headers||{};i.headers["Proxy-Authorization"]="Basic "+new Buffer(i.proxyAuth).toString("base64")}c("making CONNECT request");var s=r.request(i);s.useChunkedEncodingByDefault=false;s.once("response",onResponse);s.once("upgrade",onUpgrade);s.once("connect",onConnect);s.once("error",onError);s.end();function onResponse(e){e.upgrade=true}function onUpgrade(e,t,r){process.nextTick(function(){onConnect(e,t,r)})}function onConnect(i,o,a){s.removeAllListeners();o.removeAllListeners();if(i.statusCode!==200){c("tunneling socket could not be established, statusCode=%d",i.statusCode);o.destroy();var u=new Error("tunneling socket could not be established, "+"statusCode="+i.statusCode);u.code="ECONNRESET";e.request.emit("error",u);r.removeSocket(n);return}if(a.length>0){c("got illegal response body from proxy");o.destroy();var u=new Error("got illegal response body from proxy");u.code="ECONNRESET";e.request.emit("error",u);r.removeSocket(n);return}c("tunneling connection has established");r.sockets[r.sockets.indexOf(n)]=o;return t(o)}function onError(t){s.removeAllListeners();c("tunneling socket could not be established, cause=%s\n",t.message,t.stack);var i=new Error("tunneling socket could not be established, "+"cause="+t.message);i.code="ECONNRESET";e.request.emit("error",i);r.removeSocket(n)}};TunnelingAgent.prototype.removeSocket=function removeSocket(e){var t=this.sockets.indexOf(e);if(t===-1){return}this.sockets.splice(t,1);var r=this.requests.shift();if(r){this.createSocket(r,function(e){r.request.onSocket(e)})}};function createSecureSocket(e,t){var r=this;TunnelingAgent.prototype.createSocket.call(r,e,function(n){var s=e.request.getHeader("host");var o=mergeOptions({},r.options,{socket:n,servername:s?s.replace(/:.*$/,""):e.host});var a=i.connect(0,o);r.sockets[r.sockets.indexOf(n)]=a;t(a)})}function toOptions(e,t,r){if(typeof e==="string"){return{host:e,port:t,localAddress:r}}return e}function mergeOptions(e){for(var t=1,r=arguments.length;t{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{paginateRest:n}=r(299);function paginatePlugin(e){Object.assign(e,n(e))}},156:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:true});t.default=void 0;class Node{}t.default=Node},162:function(e,t,r){"use strict";r.r(t);var n=r(470);var i=r(521);var s=r(747);var o=undefined&&undefined.__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())})};const a=`${process.env.HOME}/jira/config.yml`;const u=Object.getPrototypeOf(function(){return o(this,void 0,void 0,function*(){})}).constructor;const p=()=>{const e=Object(n.getInput)("resolve-ticket-ids-script");const t=e!==""?new u("branchName",e):undefined;let r={};r.jiraIssueId=Object(n.getInput)("jira-issue-id");try{r.jiraAccount=Object(n.getInput)("jira-account");r.jiraEndpoint=Object(n.getInput)("jira-endpoint");r.jiraToken=Object(n.getInput)("jira-token");const{jiraAccount:e,jiraEndpoint:o,jiraIssueId:u,jiraToken:p}=r;if((!u||u==="")&&!t){return{exit:true,success:false,message:"Jira issue id and ticket id resolver not found, exiting...",parsedInput:undefined}}Array.from([e,o,p]).forEach(e=>{if(e===""||!e)throw new Error("")})}catch(e){console.log(`Missing input, using config file instead...`);const{JIRA_API_TOKEN:t,JIRA_BASE_URL:n,JIRA_USER_EMAIL:o}=Object(i.parse)(Object(s.readFileSync)(a,"utf8"));r.jiraAccount=o;r.jiraEndpoint=n;r.jiraToken=t}const o=Object(n.getInput)("github-token",{required:true});const p=Object(n.getInput)("column-to-move-to-when-review-requested",{required:true});const c=Object(n.getInput)("column-to-move-to-when-changes-requested",{required:true});const l=Object(n.getInput)("column-to-move-to-when-merged");const{jiraAccount:d,jiraEndpoint:g,jiraToken:m,jiraIssueId:f}=r;const h=f.split(/-/g)[0];const y=Number(f.split(/-/g)[1]);return{success:true,exit:false,parsedInput:{githubToken:o,columnToMoveToWhenChangesRequested:c,columnToMoveToWhenReviewRequested:p,columnToMoveToWhenMerged:l,jiraAccount:d,jiraEndpoint:g,jiraIssueId:f,jiraToken:m,jiraProject:h,jiraIssueNumber:y,jiraTokenEncoded:Buffer.from(`${d}:${m}`).toString("base64"),resolveTicketIdsFunc:t}}};var c=r(469);var l=undefined&&undefined.__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())})};class github_Github{constructor(e,t,r){this.token=e;this.owner=t;this.repo=r;this.checkReviewIsRequestChange=(({pull_number:e,review_id:t})=>l(this,void 0,void 0,function*(){const r=yield this.octokit.pulls.getReview({owner:this.owner,repo:this.repo,pull_number:e,review_id:t});return r.data.state==="CHANGES_REQUESTED"}));this.token=e;this.owner=t;this.repo=r;this.octokit=new c.GitHub(e)}}var d=r(724);var g=r.n(d);var m=undefined&&undefined.__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())})};const f=e=>{return{headers:{Accept:"application/json","Content-Type":"application/json",Authorization:`Basic ${e}`}}};class jira_JiraClient{constructor(e){this.token=e;this.request=((e,t="GET",r)=>m(this,void 0,void 0,function*(){const n=r?yield g()(e,Object.assign({method:t,body:JSON.stringify(r)},f(this.token))):yield g()(e,Object.assign({method:t},f(this.token)));if(n.status===200){const e=yield n.json();return e}}));this.token=e}}var h=undefined&&undefined.__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 y=undefined&&undefined.__rest||function(e,t){var r={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0)r[n]=e[n];if(e!=null&&typeof Object.getOwnPropertySymbols==="function")for(var i=0,n=Object.getOwnPropertySymbols(e);ih(void 0,void 0,void 0,function*(){var s,o;const a=new jira_JiraClient(e);const u=yield a.request(`${t}/rest/api/3/issue/${r}`);const{fields:{status:{name:p}}}=u;if(p===i){Object(n.warning)(`\n The issue ${r} is already in status ${i}.\n Action will exit without doing anything. \n `)}else{const e=yield a.request(`${t}/rest/api/3/issue/${r}/transitions`);const u=(o=(s=e.transitions)===null||s===void 0?void 0:s.find(e=>e.to.name===i))===null||o===void 0?void 0:o.id;if(!u)throw new Error(`\n There was an error trying to transition issue ${r}:\n Transition to status "${i}" cannot be found.\n Check all of the transitions' rules, conditions of yourr project's workflow.\n See more: https://confluence.atlassian.com/adminjiraserver073/working-with-workflows-861253510.html\n `);Object(n.info)(`Changing issue ${r} to ${i}`);yield a.request(`${t}/rest/api/3/issue/${r}/transitions`,"POST",{transition:{id:u}})}});const _=e=>h(void 0,void 0,void 0,function*(){var{resolveTicketIdsFunc:t,branchName:r}=e,n=y(e,["resolveTicketIdsFunc","branchName"]);if(t&&r){const e=yield t(r);if(Array.isArray(e)){e.forEach(e=>{b(Object.assign(Object.assign({},n),{jiraIssueId:e}))})}else if(typeof e==="string"){b(Object.assign(Object.assign({},n),{jiraIssueId:e}))}else{b(Object.assign({},n))}}else{b(Object.assign({},n))}});var v=undefined&&undefined.__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())})};function run(){return v(this,void 0,void 0,function*(){try{const{parsedInput:e,success:t,exit:r,message:i}=p();if(!e&&!t&&r&&i){Object(n.warning)(i)}else if(!e){throw new Error("Error trying to parse input.")}else{const t=c.context;const{repo:{owner:r,repo:i},payload:s,eventName:o}=t;if(o==="pull_request"&&s.action==="review_requested"){const{pull_request:{head:{ref:t}}}=s;Object(n.info)(`Branch name: ${t}`);yield _(Object.assign(Object.assign({},e),{colName:e.columnToMoveToWhenReviewRequested,branchName:t}))}else if(o==="pull_request_review"&&s.action==="submitted"){const{pull_request:{number:s,head:{ref:o}},review:{id:a}}=t.payload;const{githubToken:u}=e;const p=new github_Github(u,r,i);const c=yield p.checkReviewIsRequestChange({pull_number:s,review_id:a});if(c){Object(n.info)(`Branch name: ${o}`);yield _(Object.assign(Object.assign({},e),{colName:e.columnToMoveToWhenChangesRequested,branchName:o}))}}else if(o==="pull_request"&&s.action==="closed"){const{pull_request:{merged:t,head:{ref:r}}}=s;if(t&&e.columnToMoveToWhenMerged){Object(n.info)(`Branch name: ${r}`);yield _(Object.assign(Object.assign({},e),{colName:e.columnToMoveToWhenMerged,branchName:r}))}}}}catch(e){Object(n.setFailed)(e.message)}})}run()},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{if(r instanceof a.default){t=r.setOrigRanges(e,t)}else if(e.length===0){r.origOffset=r.offset}else{let n=t;while(nr.offset)break;else++n}r.origOffset=r.offset+n;t=n}});return t}toString(){const{context:{src:e},items:t,range:r,value:n}=this;if(n!=null)return n;const i=t.filter(e=>e instanceof a.default);let s="";let o=r.start;i.forEach(t=>{const r=e.slice(o,t.range.start);o=t.range.end;s+=r+String(t);if(s[s.length-1]==="\n"&&e[o-1]!=="\n"&&e[o]==="\n"){o+=1}});s+=e.slice(o,r.end);return a.default.addStringTerminator(e,r.end,s)}}t.default=FlowCollection},190:function(e,t,r){e.exports=authenticationPlugin;const{createTokenAuth:n}=r(813);const{Deprecation:i}=r(692);const s=r(969);const o=r(863);const a=r(293);const u=r(246);const p=r(143);const c=s((e,t)=>e.warn(t));const l=s((e,t)=>e.warn(t));function authenticationPlugin(e,t){if(t.authStrategy){const r=t.authStrategy(t.auth);e.hook.wrap("request",r.hook);e.auth=r;return}if(!t.auth){e.auth=(()=>Promise.resolve({type:"unauthenticated"}));return}const r=typeof t.auth==="string"&&/^basic/.test(p(t.auth));if(typeof t.auth==="string"&&!r){const r=n(t.auth);e.hook.wrap("request",r.hook);e.auth=r;return}const[s,d]=r?[c,'Setting the "new Octokit({ auth })" option to a Basic Auth string is deprecated. Use https://github.com/octokit/auth-basic.js instead. See (https://octokit.github.io/rest.js/#authentication)']:[l,'Setting the "new Octokit({ auth })" option to an object without also setting the "authStrategy" option is deprecated and will be removed in v17. See (https://octokit.github.io/rest.js/#authentication)'];s(e.log,new i("[@octokit/rest] "+d));e.auth=(()=>Promise.resolve({type:"deprecated",message:d}));u(t.auth);const g={octokit:e,auth:t.auth};e.hook.before("request",o.bind(null,g));e.hook.error("request",a.bind(null,g))}},195:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:true});t.default=void 0;var n=_interopRequireDefault(r(732));var i=_interopRequireDefault(r(767));var s=_interopRequireDefault(r(591));function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}var o=[n.default,i.default,s.default];t.default=o},197:function(e,t,r){e.exports=isexe;isexe.sync=sync;var n=r(747);function isexe(e,t,r){n.stat(e,function(e,n){r(e,e?false:checkStat(n,t))})}function sync(e,t){return checkStat(n.statSync(e),t)}function checkStat(e,t){return e.isFile()&&checkMode(e,t)}function checkMode(e,t){var r=e.mode;var n=e.uid;var i=e.gid;var s=t.uid!==undefined?t.uid:process.getuid&&process.getuid();var o=t.gid!==undefined?t.gid:process.getgid&&process.getgid();var a=parseInt("100",8);var u=parseInt("010",8);var p=parseInt("001",8);var c=a|u;var l=r&p||r&u&&i===o||r&a&&n===s||r&c&&s===0;return l}},211: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 "}return""}}t.getUserAgent=getUserAgent},215:function(e){e.exports={_from:"@octokit/rest@^16.43.1",_id:"@octokit/rest@16.43.1",_inBundle:false,_integrity:"sha512-gfFKwRT/wFxq5qlNjnW2dh+qh74XgTQ2B179UX5K1HYCluioWj8Ndbgqw2PVqa1NnVJkGHp2ovMpVn/DImlmkw==",_location:"/@octokit/rest",_phantomChildren:{},_requested:{type:"range",registry:true,raw:"@octokit/rest@^16.43.1",name:"@octokit/rest",escapedName:"@octokit%2frest",scope:"@octokit",rawSpec:"^16.43.1",saveSpec:null,fetchSpec:"^16.43.1"},_requiredBy:["/@actions/github"],_resolved:"https://registry.npmjs.org/@octokit/rest/-/rest-16.43.1.tgz",_shasum:"3b11e7d1b1ac2bbeeb23b08a17df0b20947eda6b",_spec:"@octokit/rest@^16.43.1",_where:"/Users/admin/Desktop/work/aharooms/jira-automate-transition/node_modules/@actions/github",author:{name:"Gregor Martynus",url:"https://github.com/gr2m"},bugs:{url:"https://github.com/octokit/rest.js/issues"},bundleDependencies:false,bundlesize:[{path:"./dist/octokit-rest.min.js.gz",maxSize:"33 kB"}],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"}],dependencies:{"@octokit/auth-token":"^2.4.0","@octokit/plugin-paginate-rest":"^1.1.1","@octokit/plugin-request-log":"^1.0.0","@octokit/plugin-rest-endpoint-methods":"2.4.0","@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"},deprecated:false,description:"GitHub REST API client for Node.js",devDependencies:{"@gimenete/type-writer":"^0.1.3","@octokit/auth":"^1.1.1","@octokit/fixtures-server":"^5.0.6","@octokit/graphql":"^4.2.0","@types/node":"^13.1.0",bundlesize:"^0.18.0",chai:"^4.1.2","compression-webpack-plugin":"^3.1.0",cypress:"^3.0.0",glob:"^7.1.2","http-proxy-agent":"^4.0.0","lodash.camelcase":"^4.3.0","lodash.merge":"^4.6.1","lodash.upperfirst":"^4.3.1",lolex:"^5.1.2",mkdirp:"^1.0.0",mocha:"^7.0.1",mustache:"^4.0.0",nock:"^11.3.3","npm-run-all":"^4.1.2",nyc:"^15.0.0",prettier:"^1.14.2",proxy:"^1.0.0","semantic-release":"^17.0.0",sinon:"^8.0.0","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"},files:["index.js","index.d.ts","lib","plugins"],homepage:"https://github.com/octokit/rest.js#readme",keywords:["octokit","github","rest","api-client"],license:"MIT",name:"@octokit/rest",nyc:{ignore:["test"]},publishConfig:{access:"public"},release:{publish:["@semantic-release/npm",{path:"@semantic-release/github",assets:["dist/*","!dist/*.map.gz"]}]},repository:{type:"git",url:"git+https://github.com/octokit/rest.js.git"},scripts:{build:"npm-run-all build:*","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","build:ts":"npm run -s update-endpoints:typescript",coverage:"nyc report --reporter=html && open coverage/index.html","generate-bundle-report":"webpack-bundle-analyzer dist/bundle-stats.json --mode=static --no-open --report dist/bundle-report.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","postvalidate:ts":"tsc --noEmit --target es6 test/typescript-validate.ts","prebuild:browser":"mkdirp dist/",pretest:"npm run -s lint","prevalidate:ts":"npm run -s build:ts","start-fixtures-server":"octokit-fixtures-server",test:'nyc mocha test/mocha-node-setup.js "test/*/**/*-test.js"',"test:browser":"cypress run --browser chrome","update-endpoints":"npm-run-all update-endpoints:*","update-endpoints:fetch-json":"node scripts/update-endpoints/fetch-json","update-endpoints:typescript":"node scripts/update-endpoints/typescript","validate:ts":"tsc --target es6 --noImplicitAny index.d.ts"},types:"index.d.ts",version:"16.43.1"}},246: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)}`)}},255:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:true});t.default=void 0;var n=r(847);var i=r(49);var s=r(405);var o=r(454);var a=r(339);var u=r(591);var p=_interopRequireDefault(r(637));var c=_interopRequireDefault(r(380));var l=_interopRequireDefault(r(156));var d=_interopRequireDefault(r(325));var g=_interopRequireDefault(r(515));function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}function _defineProperty(e,t,r){if(t in e){Object.defineProperty(e,t,{value:r,enumerable:true,configurable:true,writable:true})}else{e[t]=r}return e}const m=({type:e})=>e===i.Type.FLOW_MAP||e===i.Type.MAP;const f=({type:e})=>e===i.Type.FLOW_SEQ||e===i.Type.SEQ;class Schema{constructor({customTags:e,merge:t,schema:r,tags:i}){this.merge=!!t;this.name=r;this.tags=a.schemas[r.replace(/\W/g,"")];if(!this.tags){const e=Object.keys(a.schemas).map(e=>JSON.stringify(e)).join(", ");throw new Error(`Unknown schema "${r}"; use one of ${e}`)}if(!e&&i){e=i;(0,n.warnOptionDeprecation)("tags","customTags")}if(Array.isArray(e)){for(const t of e)this.tags=this.tags.concat(t)}else if(typeof e==="function"){this.tags=e(this.tags.slice())}for(let e=0;eJSON.stringify(e)).join(", ");throw new Error(`Unknown custom tag "${t}"; use one of ${e}`)}this.tags[e]=r}}}createNode(e,t,r,n){if(e instanceof l.default)return e;let i;if(r){if(r.startsWith("!!"))r=Schema.defaultPrefix+r.slice(2);const e=this.tags.filter(e=>e.tag===r);i=e.find(e=>!e.format)||e[0];if(!i)throw new Error(`Tag ${r} not found`)}else{i=this.tags.find(t=>(t.identify&&t.identify(e)||t.class&&e instanceof t.class)&&!t.format);if(!i){if(typeof e.toJSON==="function")e=e.toJSON();if(typeof e!=="object")return t?new g.default(e):e;i=e instanceof Map?a.tags.map:e[Symbol.iterator]?a.tags.seq:a.tags.map}}if(!n)n={wrapScalars:t};else n.wrapScalars=t;if(n.onTagObj){n.onTagObj(i);delete n.onTagObj}const s={};if(e&&typeof e==="object"&&n.prevObjects){const t=n.prevObjects.find(t=>t.value===e);if(t){const e=new p.default(t);n.aliasNodes.push(e);return e}s.value=e;n.prevObjects.push(s)}s.node=i.createNode?i.createNode(this,e,n):t?new g.default(e):e;return s.node}createPair(e,t,r){const n=this.createNode(e,r.wrapScalars,null,r);const i=this.createNode(t,r.wrapScalars,null,r);return new d.default(n,i)}resolveScalar(e,t){if(!t)t=this.tags;for(let r=0;re===r);const i=n.find(({test:e})=>!e);if(t.error)e.errors.push(t.error);try{if(i){let r=i.resolve(e,t);if(!(r instanceof c.default))r=new g.default(r);t.resolved=r}else{const r=(0,u.resolveString)(e,t);if(typeof r==="string"&&n.length>0){t.resolved=this.resolveScalar(r,n)}}}catch(r){if(!r.source)r.source=t;e.errors.push(r);t.resolved=null}if(!t.resolved)return null;if(r&&t.tag)t.resolved.tag=r;return t.resolved}resolveNodeWithFallback(e,t,r){const n=this.resolveNode(e,t,r);if(Object.prototype.hasOwnProperty.call(t,"resolved"))return n;const i=m(t)?Schema.defaultTags.MAP:f(t)?Schema.defaultTags.SEQ:Schema.defaultTags.STR;if(i){e.warnings.push(new s.YAMLWarning(t,`The tag ${r} is unavailable, falling back to ${i}`));const n=this.resolveNode(e,t,i);n.tag=r;return n}else{e.errors.push(new s.YAMLReferenceError(t,`The tag ${r} is unavailable`))}return null}getTagObject(e){if(e instanceof p.default)return p.default;if(e.tag){const t=this.tags.filter(t=>t.tag===e.tag);if(t.length>0)return t.find(t=>t.format===e.format)||t[0]}let t,r;if(e instanceof g.default){r=e.value;const n=this.tags.filter(e=>e.identify&&e.identify(r)||e.class&&r instanceof e.class);t=n.find(t=>t.format===e.format)||n.find(e=>!e.format)}else{r=e;t=this.tags.find(e=>e.nodeClass&&r instanceof e.nodeClass)}if(!t){const e=r&&r.constructor?r.constructor.name:typeof r;throw new Error(`Tag not resolved for ${e} value`)}return t}stringifyProps(e,t,{anchors:r,doc:n}){const i=[];const s=n.anchors.getName(e);if(s){r[s]=e;i.push(`&${s}`)}if(e.tag){i.push(n.stringifyTag(e.tag))}else if(!t.default){i.push(n.stringifyTag(t.tag))}return i.join(" ")}stringify(e,t,r,n){let i;if(!(e instanceof l.default)){const r={aliasNodes:[],onTagObj:e=>i=e,prevObjects:[]};e=this.createNode(e,true,null,r);const{anchors:n}=t.doc;for(const e of r.aliasNodes){e.source=e.source.node;let t=n.getName(e.source);if(!t){t=n.newName();n.map[t]=e.source}}}t.tags=this;if(e instanceof d.default)return e.toString(t,r,n);if(!i)i=this.getTagObject(e);const s=this.stringifyProps(e,i,t);const a=typeof i.stringify==="function"?i.stringify(e,t,r,n):e instanceof c.default?e.toString(t,r,n):(0,o.stringifyString)(e,t,r,n);return s?e instanceof c.default&&a[0]!=="{"&&a[0]!=="["?`${s}\n${t.indent}${a}`:`${s} ${a}`:a}}t.default=Schema;_defineProperty(Schema,"defaultPrefix","tag:yaml.org,2002:");_defineProperty(Schema,"defaultTags",{MAP:"tag:yaml.org,2002:map",SEQ:"tag:yaml.org,2002:seq",STR:"tag:yaml.org,2002:str"})},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{const e=process.env.GITHUB_EVENT_PATH;process.stdout.write(`GITHUB_EVENT_PATH ${e} 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.pull_request||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 l=u++;a[l]="\\d*[a-zA-Z-][a-zA-Z0-9-]*";var d=u++;a[d]="("+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[l]+")";var f=u++;a[f]="(?:"+a[c]+"|"+a[l]+")";var h=u++;a[h]="(?:-("+a[m]+"(?:\\."+a[m]+")*))";var y=u++;a[y]="(?:-?("+a[f]+"(?:\\."+a[f]+")*))";var b=u++;a[b]="[0-9A-Za-z-]+";var _=u++;a[_]="(?:\\+("+a[b]+"(?:\\."+a[b]+")*))";var v=u++;var w="v?"+a[d]+a[h]+"?"+a[_]+"?";a[v]="^"+w+"$";var q="[v=\\s]*"+a[g]+a[y]+"?"+a[_]+"?";var E=u++;a[E]="^"+q+"$";var T=u++;a[T]="((?:<|>)?=?)";var k=u++;a[k]=a[c]+"|x|X|\\*";var O=u++;a[O]=a[p]+"|x|X|\\*";var S=u++;a[S]="[v=\\s]*("+a[O]+")"+"(?:\\.("+a[O]+")"+"(?:\\.("+a[O]+")"+"(?:"+a[h]+")?"+a[_]+"?"+")?)?";var j=u++;a[j]="[v=\\s]*("+a[k]+")"+"(?:\\.("+a[k]+")"+"(?:\\.("+a[k]+")"+"(?:"+a[y]+")?"+a[_]+"?"+")?)?";var P=u++;a[P]="^"+a[T]+"\\s*"+a[S]+"$";var C=u++;a[C]="^"+a[T]+"\\s*"+a[j]+"$";var A=u++;a[A]="(?:^|[^\\d])"+"(\\d{1,"+s+"})"+"(?:\\.(\\d{1,"+s+"}))?"+"(?:\\.(\\d{1,"+s+"}))?"+"(?:$|[^\\d])";var R=u++;a[R]="(?:~>?)";var x=u++;a[x]="(\\s*)"+a[R]+"\\s+";o[x]=new RegExp(a[x],"g");var L="$1~";var D=u++;a[D]="^"+a[R]+a[S]+"$";var M=u++;a[M]="^"+a[R]+a[j]+"$";var I=u++;a[I]="(?:\\^)";var N=u++;a[N]="(\\s*)"+a[I]+"\\s+";o[N]=new RegExp(a[N],"g");var G="$1^";var $=u++;a[$]="^"+a[I]+a[S]+"$";var B=u++;a[B]="^"+a[I]+a[j]+"$";var F=u++;a[F]="^"+a[T]+"\\s*("+q+")$|^$";var U=u++;a[U]="^"+a[T]+"\\s*("+w+")$|^$";var H=u++;a[H]="(\\s*)"+a[T]+"\\s*("+q+"|"+a[S]+")";o[H]=new RegExp(a[H],"g");var z="$1$2$3";var W=u++;a[W]="^\\s*("+a[S]+")"+"\\s+-\\s+"+"("+a[S]+")"+"\\s*$";var Y=u++;a[Y]="^\\s*("+a[j]+")"+"\\s+-\\s+"+"("+a[j]+")"+"\\s*$";var V=u++;a[V]="(<|>)?=?\\s*\\*";for(var K=0;Kn){return null}var r=t.loose?o[E]:o[v];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[v]);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 J=/^[0-9]+$/;function compareIdentifiers(e,t){var r=J.test(e);var n=J.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===Q){this.value=""}else{this.value=this.operator+this.semver.version}r("comp",this)}var Q={};Comparator.prototype.parse=function(e){var t=this.options.loose?o[F]:o[U];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=Q}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===Q){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[Y]:o[W];e=e.replace(n,hyphenReplace);r("hyphen replace",e);e=e.replace(o[H],z);r("comparator trim",e,o[H]);e=e.replace(o[x],L);e=e.replace(o[N],G);e=e.split(/\s+/).join(" ");var i=t?o[F]:o[U];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[M]:o[D];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[B]:o[$];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[C]:o[P];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 l=c;if(n==="="&&l){n=""}if(u){if(n===">"||n==="<"){t="<0.0.0"}else{t="*"}}else if(n&&l){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[V],"")}function hyphenReplace(e,t,r,n,i,s,o,a,u,p,c,l,d){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(l){a="<="+u+"."+p+"."+c+"-"+l}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")}l=l||e;d=d||e;if(i(e.semver,l.semver,n)){l=e}else if(o(e.semver,d.semver,n)){d=e}});if(l.operator===a||l.operator===u){return false}if((!d.operator||d.operator===a)&&s(e,d.semver)){return false}else if(d.operator===u&&o(e,d.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[A]);if(t==null){return null}return parse(t[1]+"."+(t[2]||"0")+"."+(t[3]||"0"))}},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(796);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 l=`octokit.js/${o.version} ${i()}`;s.headers["user-agent"]=[c,l].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}}},299:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:true});const r="1.1.2";const n=[/^\/search\//,/^\/repos\/[^\/]+\/[^\/]+\/commits\/[^\/]+\/(check-runs|check-suites)([^\/]|$)/,/^\/installation\/repositories([^\/]|$)/,/^\/user\/installations([^\/]|$)/,/^\/repos\/[^\/]+\/[^\/]+\/actions\/secrets([^\/]|$)/,/^\/repos\/[^\/]+\/[^\/]+\/actions\/workflows(\/[^\/]+\/runs)?([^\/]|$)/,/^\/repos\/[^\/]+\/[^\/]+\/actions\/runs(\/[^\/]+\/(artifacts|jobs))?([^\/]|$)/];function normalizePaginatedListResponse(e,t,r){const i=t.replace(e.request.endpoint.DEFAULTS.baseUrl,"");const s=n.find(e=>e.test(i));if(!s)return;const o=r.data.incomplete_results;const a=r.data.repository_selection;const u=r.data.total_count;delete r.data.incomplete_results;delete r.data.repository_selection;delete r.data.total_count;const p=Object.keys(r.data)[0];const c=r.data[p];r.data=c;if(typeof o!=="undefined"){r.data.incomplete_results=o}if(typeof a!=="undefined"){r.data.repository_selection=a}r.data.total_count=u;Object.defineProperty(r.data,p,{get(){e.log.warn(`[@octokit/paginate-rest] "response.data.${p}" is deprecated for "GET ${i}". Get the results directly from "response.data"`);return Array.from(c)}})}function iterator(e,t,r){const n=e.request.endpoint(t,r);const i=n.method;const s=n.headers;let o=n.url;return{[Symbol.asyncIterator]:()=>({next(){if(!o){return Promise.resolve({done:true})}return e.request({method:i,url:o,headers:s}).then(t=>{normalizePaginatedListResponse(e,o,t);o=((t.headers.link||"").match(/<([^>]+)>;\s*rel="next"/)||[])[1];return{value:t}})}})}}function paginate(e,t,r,n){if(typeof r==="function"){n=r;r=undefined}return gather(e,[],iterator(e,t,r)[Symbol.asyncIterator](),n)}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)})}function paginateRest(e){return{paginate:Object.assign(paginate.bind(null,e),{iterator:iterator.bind(null,e)})}}paginateRest.VERSION=r;t.paginateRest=paginateRest},309:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:true});t.default=parse;var n=_interopRequireDefault(r(928));var i=_interopRequireDefault(r(968));function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}function parse(e){const t=[];if(e.indexOf("\r")!==-1){e=e.replace(/\r\n?/g,(e,r)=>{if(e.length>1)t.push(r);return"\n"})}const r=[];let s=0;do{const t=new n.default;const o=new i.default({src:e});s=t.parse(o,s);r.push(t)}while(s{if(t.length===0)return false;for(let e=1;er.join("...\n"));return r}},323:function(e){"use strict";var t=e.exports=function(e){return e!==null&&typeof e==="object"&&typeof e.pipe==="function"};t.writable=function(e){return t(e)&&e.writable!==false&&typeof e._write==="function"&&typeof e._writableState==="object"};t.readable=function(e){return t(e)&&e.readable!==false&&typeof e._read==="function"&&typeof e._readableState==="object"};t.duplex=function(e){return t.writable(e)&&t.readable(e)};t.transform=function(e){return t.duplex(e)&&typeof e._transform==="function"&&typeof e._transformState==="object"}},325:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:true});t.default=void 0;var n=_interopRequireDefault(r(836));var i=r(49);var s=_interopRequireDefault(r(923));var o=_interopRequireDefault(r(380));var a=_interopRequireDefault(r(156));var u=_interopRequireDefault(r(515));function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}const p=(e,t,r)=>{if(t===null)return"";if(typeof t!=="object")return String(t);if(e instanceof a.default&&r&&r.doc)return e.toString({anchors:{},doc:r.doc,indent:"",inFlow:true,inStringifyKey:true});return JSON.stringify(t)};class Pair extends a.default{constructor(e,t=null){super();this.key=e;this.value=t;this.type="PAIR"}get commentBefore(){return this.key&&this.key.commentBefore}set commentBefore(e){if(this.key==null)this.key=new u.default(null);this.key.commentBefore=e}addToJSMap(e,t){const r=(0,s.default)(this.key,"",e);if(t instanceof Map){const n=(0,s.default)(this.value,r,e);t.set(r,n)}else if(t instanceof Set){t.add(r)}else{const n=p(this.key,r,e);t[n]=(0,s.default)(this.value,n,e)}return t}toJSON(e,t){const r=t&&t.mapAsMap?new Map:{};return this.addToJSMap(t,r)}toString(e,t,r){if(!e||!e.doc)return JSON.stringify(this);const{simpleKeys:s}=e.doc.options;let{key:u,value:p}=this;let c=u instanceof a.default&&u.comment;if(s){if(c){throw new Error("With simple keys, key nodes cannot have comments")}if(u instanceof o.default){const e="With simple keys, collection cannot be used as a key value";throw new Error(e)}}const l=!s&&(!u||c||u instanceof o.default||u.type===i.Type.BLOCK_FOLDED||u.type===i.Type.BLOCK_LITERAL);const{doc:d,indent:g}=e;e=Object.assign({},e,{implicitKey:!l,indent:g+" "});let m=false;let f=d.schema.stringify(u,e,()=>c=null,()=>m=true);f=(0,n.default)(f,e.indent,c);if(e.allNullValues&&!s){if(this.comment){f=(0,n.default)(f,e.indent,this.comment);if(t)t()}else if(m&&!c&&r)r();return e.inFlow?f:`? ${f}`}f=l?`? ${f}\n${g}:`:`${f}:`;if(this.comment){f=(0,n.default)(f,e.indent,this.comment);if(t)t()}let h="";let y=null;if(p instanceof a.default){if(p.spaceBefore)h="\n";if(p.commentBefore){const t=p.commentBefore.replace(/^/gm,`${e.indent}#`);h+=`\n${t}`}y=p.comment}else if(p&&typeof p==="object"){p=d.schema.createNode(p,true)}e.implicitKey=false;m=false;const b=d.schema.stringify(p,e,()=>y=null,()=>m=true);let _=" ";if(h||this.comment){_=`${h}\n${e.indent}`}else if(!l&&p instanceof o.default){const t=b[0]==="["||b[0]==="{";if(!t||b.includes("\n"))_=`\n${e.indent}`}if(m&&!y&&r)r();return(0,n.default)(f+_+b,e.indent,y)}}t.default=Pair},336:function(e,t,r){e.exports=hasLastPage;const n=r(370);const i=r(577);function hasLastPage(e){n(`octokit.hasLastPage() – You can use octokit.paginate or async iterators instead: https://github.com/octokit/rest.js#pagination.`);return i(e).last}},339:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:true});t.tags=t.schemas=void 0;var n=_interopRequireDefault(r(775));var i=_interopRequireDefault(r(195));var s=_interopRequireDefault(r(77));var o=_interopRequireDefault(r(550));var a=_interopRequireDefault(r(732));var u=_interopRequireDefault(r(767));var p=_interopRequireDefault(r(996));var c=_interopRequireDefault(r(821));var l=_interopRequireDefault(r(566));var d=_interopRequireDefault(r(785));var g=r(414);function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}const m={core:n.default,failsafe:i.default,json:s.default,yaml11:o.default};t.schemas=m;const f={binary:p.default,floatTime:g.floatTime,intTime:g.intTime,map:a.default,omap:c.default,pairs:l.default,seq:u.default,set:d.default,timestamp:g.timestamp};t.tags=f},348:function(e,t,r){"use strict";e.exports=validate;const{RequestError:n}=r(463);const i=r(854);const s=r(883);function validate(e,t){if(!t.request.validate){return}const{validate:r}=t.request;Object.keys(r).forEach(e=>{const o=i(r,e);const a=o.type;let u;let p;let c=true;let l=false;if(/\./.test(e)){u=e.replace(/\.[^.]+$/,"");l=u.slice(-2)==="[]";if(l){u=u.slice(0,-2)}p=i(t,u);c=u==="headers"||typeof p==="object"&&p!==null}const d=l?(i(t,u)||[]).map(t=>t[e.split(/\./).pop()]):[i(t,e)];d.forEach((r,i)=>{const u=typeof r!=="undefined";const p=r===null;const d=l?e.replace(/\[\]/,`[${i}]`):e;if(!o.required&&!u){return}if(!c){return}if(o.allowNull&&p){return}if(!o.allowNull&&p){throw new n(`'${d}' cannot be null`,400,{request:t})}if(o.required&&!u){throw new n(`Empty value for parameter '${d}': ${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 '${d}': ${JSON.stringify(e)} is NaN`,400,{request:t})}}if(o.enum&&o.enum.indexOf(String(r))===-1){throw new n(`Invalid value for parameter '${d}': ${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 '${d}': ${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 '${d}': ${JSON.stringify(r)}`,400,{request:t})}}s(t,o.mapTo||d,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)})}},354: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)}},357:function(e){e.exports=require("assert")},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)()})}},368:function(e){e.exports=function atob(e){return Buffer.from(e,"base64").toString("binary")}},370:function(e){e.exports=deprecate;const t={};function deprecate(e){if(t[e]){return}console.warn(`DEPRECATED (@octokit/rest): ${e}`);t[e]=1}},380:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:true});t.default=t.isEmptyPath=void 0;var n=_interopRequireDefault(r(836));var i=_interopRequireDefault(r(156));var s=_interopRequireDefault(r(325));var o=_interopRequireDefault(r(515));function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}function _defineProperty(e,t,r){if(t in e){Object.defineProperty(e,t,{value:r,enumerable:true,configurable:true,writable:true})}else{e[t]=r}return e}const a=e=>e==null||typeof e==="object"&&e[Symbol.iterator]().next().done;t.isEmptyPath=a;class Collection extends i.default{constructor(...e){super(...e);_defineProperty(this,"items",[])}addIn(e,t){if(a(e))this.add(t);else{const[r,...n]=e;const i=this.get(r,true);if(i instanceof Collection)i.addIn(n,t);else throw new Error(`Expected YAML collection at ${r}. Remaining path: ${n}`)}}deleteIn([e,...t]){if(t.length===0)return this.delete(e);const r=this.get(e,true);if(r instanceof Collection)return r.deleteIn(t);else throw new Error(`Expected YAML collection at ${e}. Remaining path: ${t}`)}getIn([e,...t],r){const n=this.get(e,true);if(t.length===0)return!r&&n instanceof o.default?n.value:n;else return n instanceof Collection?n.getIn(t,r):undefined}hasAllNullValues(){return this.items.every(e=>{if(!(e instanceof s.default))return false;const t=e.value;return t==null||t instanceof o.default&&t.value==null&&!t.commentBefore&&!t.comment&&!t.tag})}hasIn([e,...t]){if(t.length===0)return this.has(e);const r=this.get(e,true);return r instanceof Collection?r.hasIn(t):false}setIn([e,...t],r){if(t.length===0){this.set(e,r)}else{const n=this.get(e,true);if(n instanceof Collection)n.setIn(t,r);else throw new Error(`Expected YAML collection at ${e}. Remaining path: ${t}`)}}toJSON(){return null}toString(e,{blockItem:t,flowChars:r,isMap:i,itemIndent:s},o,a){const{doc:u,indent:p}=e;const c=this.type&&this.type.substr(0,4)==="FLOW"||e.inFlow;if(c)s+=" ";const l=i&&this.hasAllNullValues();e=Object.assign({},e,{allNullValues:l,indent:s,inFlow:c,type:null});let d=false;let g=false;const m=this.items.reduce((t,r,i)=>{let o;if(r){if(!d&&r.spaceBefore)t.push({type:"comment",str:""});if(r.commentBefore)r.commentBefore.match(/^.*$/gm).forEach(e=>{t.push({type:"comment",str:`#${e}`})});if(r.comment)o=r.comment;if(c&&(!d&&r.spaceBefore||r.commentBefore||r.comment||r.key&&(r.key.commentBefore||r.key.comment)||r.value&&(r.value.commentBefore||r.value.comment)))g=true}d=false;let a=u.schema.stringify(r,e,()=>o=null,()=>d=true);if(c&&!g&&a.includes("\n"))g=true;if(c&&ie.str);if(g||n.reduce((e,t)=>e+t.length+2,2)>Collection.maxFlowStringSingleLineLength){f=e;for(const e of n){f+=e?`\n ${p}${e}`:"\n"}f+=`\n${p}${t}`}else{f=`${e} ${n.join(" ")} ${t}`}}else{const e=m.map(t);f=e.shift();for(const t of e)f+=t?`\n${p}${t}`:"\n"}if(this.comment){f+="\n"+this.comment.replace(/^/gm,`${p}#`);if(o)o()}else if(d&&a)a();return f}}t.default=Collection;_defineProperty(Collection,"maxFlowStringSingleLineLength",60)},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.3";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},386:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:true});t.default=t.MERGE_KEY=void 0;var n=_interopRequireDefault(r(684));var i=_interopRequireDefault(r(325));var s=_interopRequireDefault(r(515));var o=_interopRequireDefault(r(29));function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}const a="<<";t.MERGE_KEY=a;class Merge extends i.default{constructor(e){if(e instanceof i.default){let t=e.value;if(!(t instanceof o.default)){t=new o.default;t.items.push(e.value);t.range=e.value.range}super(e.key,t);this.range=e.range}else{super(new s.default(a),new o.default)}this.type="MERGE_PAIR"}addToJSMap(e,t){for(const{source:r}of this.value.items){if(!(r instanceof n.default))throw new Error("Merge sources must be maps");const i=r.toJSON(null,e,Map);for(const[e,r]of i){if(t instanceof Map){if(!t.has(e))t.set(e,r)}else if(t instanceof Set){t.add(e)}else{if(!Object.prototype.hasOwnProperty.call(t,e))t[e]=r}}}return t}toString(e,t){const r=this.value;if(r.items.length>1)return super.toString(e,t);this.value=r.items[0];const n=super.toString(e,t);this.value=r;return n}}t.default=Merge},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},397:function(e,t,r){e.exports=getNextPage;const n=r(265);function getNextPage(e,t,r){return n(e,t,"next",r)}},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}},405:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:true});t.YAMLWarning=t.YAMLSyntaxError=t.YAMLSemanticError=t.YAMLReferenceError=t.YAMLError=void 0;var n=_interopRequireDefault(r(974));var i=r(41);var s=_interopRequireDefault(r(19));function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}class YAMLError extends Error{constructor(e,t,r){if(!r||!(t instanceof n.default))throw new Error(`Invalid arguments for new ${e}`);super();this.name=e;this.message=r;this.source=t}makePretty(){if(!this.source)return;this.nodeType=this.source.type;const e=this.source.context&&this.source.context.root;if(typeof this.offset==="number"){this.range=new s.default(this.offset,this.offset+1);const t=e&&(0,i.getLinePos)(this.offset,e);if(t){const e={line:t.line,col:t.col+1};this.linePos={start:t,end:e}}delete this.offset}else{this.range=this.source.range;this.linePos=this.source.rangeAsLinePos}if(this.linePos){const{line:t,col:r}=this.linePos.start;this.message+=` at line ${t}, column ${r}`;const n=e&&(0,i.getPrettyContext)(this.linePos,e);if(n)this.message+=`:\n\n${n}\n`}delete this.source}}t.YAMLError=YAMLError;class YAMLReferenceError extends YAMLError{constructor(e,t){super("YAMLReferenceError",e,t)}}t.YAMLReferenceError=YAMLReferenceError;class YAMLSemanticError extends YAMLError{constructor(e,t){super("YAMLSemanticError",e,t)}}t.YAMLSemanticError=YAMLSemanticError;class YAMLSyntaxError extends YAMLError{constructor(e,t){super("YAMLSyntaxError",e,t)}}t.YAMLSyntaxError=YAMLSyntaxError;class YAMLWarning extends YAMLError{constructor(e,t){super("YAMLWarning",e,t)}}t.YAMLWarning=YAMLWarning},411:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:true});t.default=void 0;var n=r(405);var i=_interopRequireDefault(r(974));var s=_interopRequireDefault(r(19));function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}class QuoteSingle extends i.default{static endOfQuote(e,t){let r=e[t];while(r){if(r==="'"){if(e[t+1]!=="'")break;r=e[t+=2]}else{r=e[t+=1]}}return t+1}get strValue(){if(!this.valueRange||!this.context)return null;const e=[];const{start:t,end:r}=this.valueRange;const{indent:s,src:o}=this.context;if(o[r-1]!=="'")e.push(new n.YAMLSyntaxError(this,"Missing closing 'quote"));let a="";for(let u=t+1;ue?o.slice(e,u+1):t}else{a+=t}}return e.length>0?{errors:e,str:a}:a}parse(e,t){this.context=e;const{src:r}=e;let n=QuoteSingle.endOfQuote(r,t+1);this.valueRange=new s.default(t,n);n=i.default.endOfWhiteSpace(r,n);n=this.parseComment(n);return n}}t.default=QuoteSingle},413:function(e){e.exports=require("stream")},414:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:true});t.timestamp=t.floatTime=t.intTime=void 0;var n=r(454);const i=(e,t)=>{const r=t.split(":").reduce((e,t)=>e*60+Number(t),0);return e==="-"?-r:r};const s=({value:e})=>{if(isNaN(e)||!isFinite(e))return(0,n.stringifyNumber)(e);let t="";if(e<0){t="-";e=Math.abs(e)}const r=[e%60];if(e<60){r.unshift(0)}else{e=Math.round((e-r[0])/60);r.unshift(e%60);if(e>=60){e=Math.round((e-r[0])/60);r.unshift(e)}}return t+r.map(e=>e<10?"0"+String(e):String(e)).join(":").replace(/000000\d*$/,"")};const o={identify:e=>typeof e==="number",default:true,tag:"tag:yaml.org,2002:int",format:"TIME",test:/^([-+]?)([0-9][0-9_]*(?::[0-5]?[0-9])+)$/,resolve:(e,t,r)=>i(t,r.replace(/_/g,"")),stringify:s};t.intTime=o;const a={identify:e=>typeof e==="number",default:true,tag:"tag:yaml.org,2002:float",format:"TIME",test:/^([-+]?)([0-9][0-9_]*(?::[0-5]?[0-9])+\.[0-9_]*)$/,resolve:(e,t,r)=>i(t,r.replace(/_/g,"")),stringify:s};t.floatTime=a;const u={identify:e=>e instanceof Date,default:true,tag:"tag:yaml.org,2002:timestamp",test:RegExp("^(?:"+"([0-9]{4})-([0-9]{1,2})-([0-9]{1,2})"+"(?:(?:t|T|[ \\t]+)"+"([0-9]{1,2}):([0-9]{1,2}):([0-9]{1,2}(\\.[0-9]+)?)"+"(?:[ \\t]*(Z|[-+][012]?[0-9](?::[0-9]{2})?))?"+")?"+")$"),resolve:(e,t,r,n,s,o,a,u,p)=>{if(u)u=(u+"00").substr(1,3);let c=Date.UTC(t,r-1,n,s||0,o||0,a||0,u||0);if(p&&p!=="Z"){let e=i(p[0],p.slice(1));if(Math.abs(e)<30)e*=60;c-=6e4*e}return new Date(c)},stringify:({value:e})=>e.toISOString().replace(/((T00:00)?:00)?\.000Z$/,"")};t.timestamp=u},415:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:true});t.default=foldFlowLines;t.FOLD_QUOTED=t.FOLD_BLOCK=t.FOLD_FLOW=void 0;const r="flow";t.FOLD_FLOW=r;const n="block";t.FOLD_BLOCK=n;const i="quoted";t.FOLD_QUOTED=i;const s=(e,t)=>{let r=e[t+1];while(r===" "||r==="\t"){do{r=e[t+=1]}while(r&&r!=="\n");r=e[t+1]}return t};function foldFlowLines(e,t,r,{indentAtStart:o,lineWidth:a=80,minContentWidth:u=20,onFold:p,onOverflow:c}){if(!a||a<0)return e;const l=Math.max(1+u,1+a-t.length);if(e.length<=l)return e;const d=[];const g={};let m=a-(typeof o==="number"?o:t.length);let f=undefined;let h=undefined;let y=false;let b=-1;if(r===n){b=s(e,b);if(b!==-1)m=b+l}for(let t;t=e[b+=1];){if(r===i&&t==="\\"){switch(e[b+1]){case"x":b+=3;break;case"u":b+=5;break;case"U":b+=9;break;default:b+=1}}if(t==="\n"){if(r===n)b=s(e,b);m=b+l;f=undefined}else{if(t===" "&&h&&h!==" "&&h!=="\n"&&h!=="\t"){const t=e[b+1];if(t&&t!==" "&&t!=="\n"&&t!=="\t")f=b}if(b>=m){if(f){d.push(f);m=f+l;f=undefined}else if(r===i){while(h===" "||h==="\t"){h=t;t=e[b+=1];y=true}d.push(b-2);g[b-2]=true;m=b-2+l;f=undefined}else{y=true}}}h=t}if(y&&c)c();if(d.length===0)return e;if(p)p();let _=e.slice(0,d[0]);for(let n=0;nerrname(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));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 s="::";class Command{constructor(e,t,r){if(!e){e="missing.command"}this.command=e;this.properties=t;this.message=r}toString(){let e=s+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+=`${s}${escapeData(this.message)}`;return e}}function escapeData(e){return(e||"").replace(/%/g,"%25").replace(/\r/g,"%0D").replace(/\n/g,"%0A")}function escapeProperty(e){return(e||"").replace(/%/g,"%25").replace(/\r/g,"%0D").replace(/\n/g,"%0A").replace(/:/g,"%3A").replace(/,/g,"%2C")}},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 l=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 l=false;return function(t){if(a)return;if(l)return;l=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 d=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 l(i,o,a,function(e){if(!r)r=e;if(e)n.forEach(d);if(o)return;n.forEach(d);t(r)})});return e.reduce(g)};e.exports=m},454:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:true});t.stringifyNumber=stringifyNumber;t.stringifyString=stringifyString;var n=r(836);var i=r(49);var s=_interopRequireWildcard(r(415));var o=r(422);function _getRequireWildcardCache(){if(typeof WeakMap!=="function")return null;var e=new WeakMap;_getRequireWildcardCache=function(){return e};return e}function _interopRequireWildcard(e){if(e&&e.__esModule){return e}var t=_getRequireWildcardCache();if(t&&t.has(e)){return t.get(e)}var r={};if(e!=null){var n=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in e){if(Object.prototype.hasOwnProperty.call(e,i)){var s=n?Object.getOwnPropertyDescriptor(e,i):null;if(s&&(s.get||s.set)){Object.defineProperty(r,i,s)}else{r[i]=e[i]}}}}r.default=e;if(t){t.set(e,r)}return r}function stringifyNumber({format:e,minFractionDigits:t,tag:r,value:n}){if(!isFinite(n))return isNaN(n)?".nan":n<0?"-.inf":".inf";let i=JSON.stringify(n);if(!e&&t&&(!r||r==="tag:yaml.org,2002:float")&&/^\d/.test(i)){let e=i.indexOf(".");if(e<0){e=i.length;i+="."}let r=t-(i.length-e-1);while(r-- >0)i+="0"}return i}function lineLengthOverLimit(e,t){const r=e.length;if(r<=t)return false;for(let n=0,i=0;nt)return true;i=n+1;if(r-i<=t)return false}}return true}function doubleQuotedString(e,{implicitKey:t,indent:r}){const{jsonEncoding:n,minMultiLineLength:i}=o.strOptions.doubleQuoted;const a=JSON.stringify(e);if(n)return a;let u="";let p=0;for(let e=0,n=a[e];n;n=a[++e]){if(n===" "&&a[e+1]==="\\"&&a[e+2]==="n"){u+=a.slice(p,e)+"\\ ";e+=1;p=e;n="\\"}if(n==="\\")switch(a[e+1]){case"u":{u+=a.slice(p,e);const t=a.substr(e+2,4);switch(t){case"0000":u+="\\0";break;case"0007":u+="\\a";break;case"000b":u+="\\v";break;case"001b":u+="\\e";break;case"0085":u+="\\N";break;case"00a0":u+="\\_";break;case"2028":u+="\\L";break;case"2029":u+="\\P";break;default:if(t.substr(0,2)==="00")u+="\\x"+t.substr(2);else u+=a.substr(e,6)}e+=5;p=e+1}break;case"n":if(t||a[e+2]==='"'||a.length";if(!r)return d+"\n";let g="";let m="";r=r.replace(/[\n\t ]*$/,e=>{const t=e.indexOf("\n");if(t===-1){d+="-"}else if(r===e||t!==e.length-1){d+="+";if(u)u()}m=e.replace(/\n$/,"");return""}).replace(/^[\n ]*/,e=>{if(e.indexOf(" ")!==-1)d+=c;const t=e.match(/ +$/);if(t){g=e.slice(0,-t[0].length);return t[0]}else{g=e;return""}});if(m)m=m.replace(/\n+(?!\n|$)/g,`$&${p}`);if(g)g=g.replace(/\n+/g,`$&${p}`);if(e){d+=" #"+e.replace(/ ?[\r\n]+/g," ");if(a)a()}if(!r)return`${d}${c}\n${p}${m}`;if(l){r=r.replace(/\n+/g,`$&${p}`);return`${d}\n${p}${g}${r}${m}`}r=r.replace(/\n+/g,"\n$&").replace(/(?:^|\n)([\t ].*)(?:([\n\t ]*)\n(?![\n\t ]))?/g,"$1$2").replace(/\n+/g,`$&${p}`);const f=(0,s.default)(`${g}${r}${m}`,p,s.FOLD_BLOCK,o.strOptions.fold);return`${d}\n${p}${f}`}function plainString(e,t,r,a){const{comment:u,type:p,value:c}=e;const{actualString:l,implicitKey:d,indent:g,inFlow:m,tags:f}=t;if(d&&/[\n[\]{},]/.test(c)||m&&/[[\]{},]/.test(c)){return doubleQuotedString(c,t)}if(!c||/^[\n\t ,[\]{}#&*!|>'"%@`]|^[?-]$|^[?-][ \t]|[\n:][ \t]|[ \t]\n|[\n\t ]#|[\n\t :]$/.test(c)){return d||m||c.indexOf("\n")===-1?c.indexOf('"')!==-1&&c.indexOf("'")===-1?singleQuotedString(c,t):doubleQuotedString(c,t):blockString(e,t,r,a)}if(!d&&!m&&p!==i.Type.PLAIN&&c.indexOf("\n")!==-1){return blockString(e,t,r,a)}const h=c.replace(/\n+/g,`$&\n${g}`);if(l&&typeof f.resolveScalar(h).value!=="string"){return doubleQuotedString(c,t)}const y=d?h:(0,s.default)(h,g,s.FOLD_FLOW,o.strOptions.fold);if(u&&!m&&(y.indexOf("\n")!==-1||u.indexOf("\n")!==-1)){if(r)r();return(0,n.addCommentBefore)(y,g,u)}return y}function stringifyString(e,t,r,n){const{defaultType:s}=o.strOptions;const{implicitKey:a,inFlow:u}=t;let{type:p,value:c}=e;if(typeof c!=="string"){c=String(c);e=Object.assign({},e,{value:c})}const l=s=>{switch(s){case i.Type.BLOCK_FOLDED:case i.Type.BLOCK_LITERAL:return blockString(e,t,r,n);case i.Type.QUOTE_DOUBLE:return doubleQuotedString(c,t);case i.Type.QUOTE_SINGLE:return singleQuotedString(c,t);case i.Type.PLAIN:return plainString(e,t,r,n);default:return null}};if(p!==i.Type.QUOTE_DOUBLE&&/[\x00-\x08\x0b-\x1f\x7f-\x9f]/.test(c)){p=i.Type.QUOTE_DOUBLE}else if((a||u)&&(p===i.Type.BLOCK_FOLDED||p===i.Type.BLOCK_LITERAL)){p=i.Type.QUOTE_DOUBLE}let d=l(p);if(d===null){d=l(s);if(d===null)throw new Error(`Unsupported default string type ${s}`)}return d}},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.__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=r(898);const s=r(0);const o=n(r(262));const a=n(r(539));s.Octokit.prototype=new s.Octokit;t.context=new o.Context;class GitHub extends s.Octokit{constructor(e,t){super(GitHub.getOctokitOptions(GitHub.disambiguate(e,t)));this.graphql=GitHub.getGraphQL(GitHub.disambiguate(e,t))}static disambiguate(e,t){return[typeof e==="string"?e:"",typeof e==="object"?e:t||{}]}static getOctokitOptions(e){const t=e[0];const r=Object.assign({},e[1]);const n=GitHub.getAuthString(t,r);if(n){r.auth=n}const i=GitHub.getProxyAgent(r);if(i){r.request=r.request?Object.assign({},r.request):{};r.request.agent=i}return r}static getGraphQL(e){const t={};const r=e[0];const n=e[1];const s=this.getAuthString(r,n);if(s){t.headers={authorization:s}}const o=GitHub.getProxyAgent(n);if(o){t.request={agent:o}}return i.graphql.defaults(t)}static getAuthString(e,t){if(!e&&!t.auth){throw new Error("Parameter token or opts.auth is required")}else if(e&&t.auth){throw new Error("Parameters token and opts.auth may not both be specified")}return typeof t.auth==="string"?t.auth:`token ${e}`}static getProxyAgent(e){var t;if(!((t=e.request)===null||t===void 0?void 0:t.agent)){const e="https://api.github.com";if(a.getProxyUrl(e)){const t=new a.HttpClient;return t.getAgent(e)}}return undefined}}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=i(r(87));const a=i(r(622));var u;(function(e){e[e["Success"]=0]="Success";e[e["Failure"]=1]="Failure"})(u=t.ExitCode||(t.ExitCode={}));function exportVariable(e,t){process.env[e]=t;s.issueCommand("set-env",{name:e},t)}t.exportVariable=exportVariable;function setSecret(e){s.issueCommand("add-mask",{},e)}t.setSecret=setSecret;function addPath(e){s.issueCommand("add-path",{},e);process.env["PATH"]=`${e}${a.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 setFailed(e){process.exitCode=u.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)}t.error=error;function warning(e){s.issue("warning",e)}t.warning=warning;function info(e){process.stdout.write(e+o.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}`}},487:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:true});t.default=void 0;var n=r(49);var i=_interopRequireDefault(r(974));var s=_interopRequireDefault(r(19));function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}class Comment extends i.default{constructor(){super(n.Type.COMMENT)}parse(e,t){this.context=e;const r=this.parseComment(t);this.range=new s.default(t,r);return r}}t.default=Comment},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},494: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},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})}},514:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:true});t.default=void 0;var n=_interopRequireDefault(r(637));var i=_interopRequireDefault(r(684));var s=_interopRequireDefault(r(386));var o=_interopRequireDefault(r(515));var a=_interopRequireDefault(r(29));function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}function _defineProperty(e,t,r){if(t in e){Object.defineProperty(e,t,{value:r,enumerable:true,configurable:true,writable:true})}else{e[t]=r}return e}class Anchors{static validAnchorNode(e){return e instanceof o.default||e instanceof a.default||e instanceof i.default}constructor(e){_defineProperty(this,"map",{});this.prefix=e}createAlias(e,t){this.setAnchor(e,t);return new n.default(e)}createMergePair(...e){const t=new s.default;t.value.items=e.map(e=>{if(e instanceof n.default){if(e.source instanceof i.default)return e}else if(e instanceof i.default){return this.createAlias(e)}throw new Error("Merge sources must be Map nodes or their Aliases")});return t}getName(e){const{map:t}=this;return Object.keys(t).find(r=>t[r]===e)}getNode(e){return this.map[e]}newName(e){if(!e)e=this.prefix;const t=Object.keys(this.map);for(let r=1;true;++r){const n=`${e}${r}`;if(!t.includes(n))return n}}resolveNodes(){const{map:e,_cstAliases:t}=this;Object.keys(e).forEach(t=>{e[t]=e[t].resolved});t.forEach(e=>{e.source=e.source.resolved});delete this._cstAliases}setAnchor(e,t){if(e!=null&&!Anchors.validAnchorNode(e)){throw new Error("Anchors may only be set for Scalar, Seq and Map nodes")}if(t&&/[\x00-\x19\s,[\]{}]/.test(t)){throw new Error("Anchor names must not contain whitespace or control characters")}const{map:r}=this;const n=e&&Object.keys(r).find(t=>r[t]===e);if(n){if(!t){return n}else if(n!==t){delete r[n];r[t]=e}}else{if(!t){if(!e)return null;t=this.newName()}r[t]=e}return t}}t.default=Anchors},515:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:true});t.default=void 0;var n=_interopRequireDefault(r(923));var i=_interopRequireDefault(r(156));function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}class Scalar extends i.default{constructor(e){super();this.value=e}toJSON(e,t){return t&&t.keep?this.value:(0,n.default)(this.value,e,t)}toString(){return String(this.value)}}t.default=Scalar},521:function(e,t,r){e.exports=r(792).default},523:function(e,t,r){var n=r(363);var i=r(510);var s=r(354);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}},539:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:true});const n=r(835);const i=r(605);const s=r(34);const o=r(950);let a;var u;(function(e){e[e["OK"]=200]="OK";e[e["MultipleChoices"]=300]="MultipleChoices";e[e["MovedPermanently"]=301]="MovedPermanently";e[e["ResourceMoved"]=302]="ResourceMoved";e[e["SeeOther"]=303]="SeeOther";e[e["NotModified"]=304]="NotModified";e[e["UseProxy"]=305]="UseProxy";e[e["SwitchProxy"]=306]="SwitchProxy";e[e["TemporaryRedirect"]=307]="TemporaryRedirect";e[e["PermanentRedirect"]=308]="PermanentRedirect";e[e["BadRequest"]=400]="BadRequest";e[e["Unauthorized"]=401]="Unauthorized";e[e["PaymentRequired"]=402]="PaymentRequired";e[e["Forbidden"]=403]="Forbidden";e[e["NotFound"]=404]="NotFound";e[e["MethodNotAllowed"]=405]="MethodNotAllowed";e[e["NotAcceptable"]=406]="NotAcceptable";e[e["ProxyAuthenticationRequired"]=407]="ProxyAuthenticationRequired";e[e["RequestTimeout"]=408]="RequestTimeout";e[e["Conflict"]=409]="Conflict";e[e["Gone"]=410]="Gone";e[e["InternalServerError"]=500]="InternalServerError";e[e["NotImplemented"]=501]="NotImplemented";e[e["BadGateway"]=502]="BadGateway";e[e["ServiceUnavailable"]=503]="ServiceUnavailable";e[e["GatewayTimeout"]=504]="GatewayTimeout"})(u=t.HttpCodes||(t.HttpCodes={}));var p;(function(e){e["Accept"]="accept";e["ContentType"]="content-type"})(p=t.Headers||(t.Headers={}));var c;(function(e){e["ApplicationJson"]="application/json"})(c=t.MediaTypes||(t.MediaTypes={}));function getProxyUrl(e){let t=o.getProxyUrl(n.parse(e));return t?t.href:""}t.getProxyUrl=getProxyUrl;const l=[u.MovedPermanently,u.ResourceMoved,u.SeeOther,u.TemporaryRedirect,u.PermanentRedirect];const d=[u.BadGateway,u.ServiceUnavailable,u.GatewayTimeout];const g=["OPTIONS","GET","DELETE","HEAD"];const m=10;const f=5;class HttpClientResponse{constructor(e){this.message=e}readBody(){return new Promise(async(e,t)=>{let r=Buffer.alloc(0);this.message.on("data",e=>{r=Buffer.concat([r,e])});this.message.on("end",()=>{e(r.toString())})})}}t.HttpClientResponse=HttpClientResponse;function isHttps(e){let t=n.parse(e);return t.protocol==="https:"}t.isHttps=isHttps;class HttpClient{constructor(e,t,r){this._ignoreSslError=false;this._allowRedirects=true;this._allowRedirectDowngrade=false;this._maxRedirects=50;this._allowRetries=false;this._maxRetries=1;this._keepAlive=false;this._disposed=false;this.userAgent=e;this.handlers=t||[];this.requestOptions=r;if(r){if(r.ignoreSslError!=null){this._ignoreSslError=r.ignoreSslError}this._socketTimeout=r.socketTimeout;if(r.allowRedirects!=null){this._allowRedirects=r.allowRedirects}if(r.allowRedirectDowngrade!=null){this._allowRedirectDowngrade=r.allowRedirectDowngrade}if(r.maxRedirects!=null){this._maxRedirects=Math.max(r.maxRedirects,0)}if(r.keepAlive!=null){this._keepAlive=r.keepAlive}if(r.allowRetries!=null){this._allowRetries=r.allowRetries}if(r.maxRetries!=null){this._maxRetries=r.maxRetries}}}options(e,t){return this.request("OPTIONS",e,null,t||{})}get(e,t){return this.request("GET",e,null,t||{})}del(e,t){return this.request("DELETE",e,null,t||{})}post(e,t,r){return this.request("POST",e,t,r||{})}patch(e,t,r){return this.request("PATCH",e,t,r||{})}put(e,t,r){return this.request("PUT",e,t,r||{})}head(e,t){return this.request("HEAD",e,null,t||{})}sendStream(e,t,r,n){return this.request(e,t,r,n)}async getJson(e,t={}){t[p.Accept]=this._getExistingOrDefaultHeader(t,p.Accept,c.ApplicationJson);let r=await this.get(e,t);return this._processResponse(r,this.requestOptions)}async postJson(e,t,r={}){let n=JSON.stringify(t,null,2);r[p.Accept]=this._getExistingOrDefaultHeader(r,p.Accept,c.ApplicationJson);r[p.ContentType]=this._getExistingOrDefaultHeader(r,p.ContentType,c.ApplicationJson);let i=await this.post(e,n,r);return this._processResponse(i,this.requestOptions)}async putJson(e,t,r={}){let n=JSON.stringify(t,null,2);r[p.Accept]=this._getExistingOrDefaultHeader(r,p.Accept,c.ApplicationJson);r[p.ContentType]=this._getExistingOrDefaultHeader(r,p.ContentType,c.ApplicationJson);let i=await this.put(e,n,r);return this._processResponse(i,this.requestOptions)}async patchJson(e,t,r={}){let n=JSON.stringify(t,null,2);r[p.Accept]=this._getExistingOrDefaultHeader(r,p.Accept,c.ApplicationJson);r[p.ContentType]=this._getExistingOrDefaultHeader(r,p.ContentType,c.ApplicationJson);let i=await this.patch(e,n,r);return this._processResponse(i,this.requestOptions)}async request(e,t,r,i){if(this._disposed){throw new Error("Client has already been disposed.")}let s=n.parse(t);let o=this._prepareRequest(e,s,i);let a=this._allowRetries&&g.indexOf(e)!=-1?this._maxRetries+1:1;let p=0;let c;while(p0){const a=c.message.headers["location"];if(!a){break}let u=n.parse(a);if(s.protocol=="https:"&&s.protocol!=u.protocol&&!this._allowRedirectDowngrade){throw new Error("Redirect from HTTPS to HTTP protocol. This downgrade is not allowed for security reasons. If you want to allow this behavior, set the allowRedirectDowngrade option to true.")}await c.readBody();o=this._prepareRequest(e,u,i);c=await this.requestRaw(o,r);t--}if(d.indexOf(c.message.statusCode)==-1){return c}p+=1;if(p{let i=function(e,t){if(e){n(e)}r(t)};this.requestRawWithCallback(e,t,i)})}requestRawWithCallback(e,t,r){let n;if(typeof t==="string"){e.options.headers["Content-Length"]=Buffer.byteLength(t,"utf8")}let i=false;let s=(e,t)=>{if(!i){i=true;r(e,t)}};let o=e.httpModule.request(e.options,e=>{let t=new HttpClientResponse(e);s(null,t)});o.on("socket",e=>{n=e});o.setTimeout(this._socketTimeout||3*6e4,()=>{if(n){n.end()}s(new Error("Request timeout: "+e.options.path),null)});o.on("error",function(e){s(e,null)});if(t&&typeof t==="string"){o.write(t,"utf8")}if(t&&typeof t!=="string"){t.on("close",function(){o.end()});t.pipe(o)}else{o.end()}}getAgent(e){let t=n.parse(e);return this._getAgent(t)}_prepareRequest(e,t,r){const n={};n.parsedUrl=t;const o=n.parsedUrl.protocol==="https:";n.httpModule=o?s:i;const a=o?443:80;n.options={};n.options.host=n.parsedUrl.hostname;n.options.port=n.parsedUrl.port?parseInt(n.parsedUrl.port):a;n.options.path=(n.parsedUrl.pathname||"")+(n.parsedUrl.search||"");n.options.method=e;n.options.headers=this._mergeHeaders(r);if(this.userAgent!=null){n.options.headers["user-agent"]=this.userAgent}n.options.agent=this._getAgent(n.parsedUrl);if(this.handlers){this.handlers.forEach(e=>{e.prepareRequest(n.options)})}return n}_mergeHeaders(e){const t=e=>Object.keys(e).reduce((t,r)=>(t[r.toLowerCase()]=e[r],t),{});if(this.requestOptions&&this.requestOptions.headers){return Object.assign({},t(this.requestOptions.headers),t(e))}return t(e||{})}_getExistingOrDefaultHeader(e,t,r){const n=e=>Object.keys(e).reduce((t,r)=>(t[r.toLowerCase()]=e[r],t),{});let i;if(this.requestOptions&&this.requestOptions.headers){i=n(this.requestOptions.headers)[t]}return e[t]||i||r}_getAgent(e){let t;let n=o.getProxyUrl(e);let u=n&&n.hostname;if(this._keepAlive&&u){t=this._proxyAgent}if(this._keepAlive&&!u){t=this._agent}if(!!t){return t}const p=e.protocol==="https:";let c=100;if(!!this.requestOptions){c=this.requestOptions.maxSockets||i.globalAgent.maxSockets}if(u){if(!a){a=r(988)}const e={maxSockets:c,keepAlive:this._keepAlive,proxy:{proxyAuth:n.auth,host:n.hostname,port:n.port}};let i;const s=n.protocol==="https:";if(p){i=s?a.httpsOverHttps:a.httpsOverHttp}else{i=s?a.httpOverHttps:a.httpOverHttp}t=i(e);this._proxyAgent=t}if(this._keepAlive&&!t){const e={keepAlive:this._keepAlive,maxSockets:c};t=p?new s.Agent(e):new i.Agent(e);this._agent=t}if(!t){t=p?s.globalAgent:i.globalAgent}if(p&&this._ignoreSslError){t.options=Object.assign(t.options||{},{rejectUnauthorized:false})}return t}_performExponentialBackoff(e){e=Math.min(m,e);const t=f*Math.pow(2,e);return new Promise(e=>setTimeout(()=>e(),t))}static dateTimeDeserializer(e,t){if(typeof t==="string"){let e=new Date(t);if(!isNaN(e.valueOf())){return e}}return t}async _processResponse(e,t){return new Promise(async(r,n)=>{const i=e.message.statusCode;const s={statusCode:i,result:null,headers:{}};if(i==u.NotFound){r(s)}let o;let a;try{a=await e.readBody();if(a&&a.length>0){if(t&&t.deserializeDates){o=JSON.parse(a,HttpClient.dateTimeDeserializer)}else{o=JSON.parse(a)}s.result=o}s.headers=e.message.headers}catch(e){}if(i>299){let e;if(o&&o.message){e=o.message}else if(a&&a.length>0){e=a}else{e="Failed request: ("+i+")"}let t=new Error(e);t["statusCode"]=i;if(s.result){t["result"]=s.result}n(t)}else{r(s)}})}}t.HttpClient=HttpClient},550:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:true});t.default=void 0;var n=_interopRequireDefault(r(515));var i=r(454);var s=_interopRequireDefault(r(195));var o=r(422);var a=_interopRequireDefault(r(996));var u=_interopRequireDefault(r(821));var p=_interopRequireDefault(r(566));var c=_interopRequireDefault(r(785));var l=r(414);function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}var d=s.default.concat([{identify:e=>e==null,createNode:(e,t,r)=>r.wrapScalars?new n.default(null):null,default:true,tag:"tag:yaml.org,2002:null",test:/^(?:~|[Nn]ull|NULL)?$/,resolve:()=>null,options:o.nullOptions,stringify:()=>o.nullOptions.nullStr},{identify:e=>typeof e==="boolean",default:true,tag:"tag:yaml.org,2002:bool",test:/^(?:Y|y|[Yy]es|YES|[Tt]rue|TRUE|[Oo]n|ON)$/,resolve:()=>true,options:o.boolOptions,stringify:({value:e})=>e?o.boolOptions.trueStr:o.boolOptions.falseStr},{identify:e=>typeof e==="boolean",default:true,tag:"tag:yaml.org,2002:bool",test:/^(?:N|n|[Nn]o|NO|[Ff]alse|FALSE|[Oo]ff|OFF)$/i,resolve:()=>false,options:o.boolOptions,stringify:({value:e})=>e?o.boolOptions.trueStr:o.boolOptions.falseStr},{identify:e=>typeof e==="number",default:true,tag:"tag:yaml.org,2002:int",format:"BIN",test:/^0b([0-1_]+)$/,resolve:(e,t)=>parseInt(t.replace(/_/g,""),2),stringify:({value:e})=>"0b"+e.toString(2)},{identify:e=>typeof e==="number",default:true,tag:"tag:yaml.org,2002:int",format:"OCT",test:/^[-+]?0([0-7_]+)$/,resolve:(e,t)=>parseInt(t.replace(/_/g,""),8),stringify:({value:e})=>(e<0?"-0":"0")+e.toString(8)},{identify:e=>typeof e==="number",default:true,tag:"tag:yaml.org,2002:int",test:/^[-+]?[0-9][0-9_]*$/,resolve:e=>parseInt(e.replace(/_/g,""),10),stringify:i.stringifyNumber},{identify:e=>typeof e==="number",default:true,tag:"tag:yaml.org,2002:int",format:"HEX",test:/^0x([0-9a-fA-F_]+)$/,resolve:(e,t)=>parseInt(t.replace(/_/g,""),16),stringify:({value:e})=>(e<0?"-0x":"0x")+e.toString(16)},{identify:e=>typeof e==="number",default:true,tag:"tag:yaml.org,2002:float",test:/^(?:[-+]?\.inf|(\.nan))$/i,resolve:(e,t)=>t?NaN:e[0]==="-"?Number.NEGATIVE_INFINITY:Number.POSITIVE_INFINITY,stringify:i.stringifyNumber},{identify:e=>typeof e==="number",default:true,tag:"tag:yaml.org,2002:float",format:"EXP",test:/^[-+]?([0-9][0-9_]*)?(\.[0-9_]*)?[eE][-+]?[0-9]+$/,resolve:e=>parseFloat(e.replace(/_/g,"")),stringify:({value:e})=>Number(e).toExponential()},{identify:e=>typeof e==="number",default:true,tag:"tag:yaml.org,2002:float",test:/^[-+]?(?:[0-9][0-9_]*)?\.([0-9_]*)$/,resolve(e,t){const r=new n.default(parseFloat(e.replace(/_/g,"")));if(t){const e=t.replace(/_/g,"");if(e[e.length-1]==="0")r.minFractionDigits=e.length}return r},stringify:i.stringifyNumber}],a.default,u.default,p.default,c.default,l.intTime,l.floatTime,l.timestamp);t.default=d},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 "}return""}}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)}},566:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:true});t.parsePairs=parsePairs;t.createPairs=createPairs;t.default=void 0;var n=r(405);var i=_interopRequireDefault(r(684));var s=_interopRequireDefault(r(325));var o=_interopRequireDefault(r(858));var a=_interopRequireDefault(r(29));function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}function parsePairs(e,t){const r=(0,o.default)(e,t);for(let e=0;e1){const e="Each pair must have its own sequence indicator";throw new n.YAMLSemanticError(t,e)}const e=o.items[0]||new s.default;if(o.commentBefore)e.commentBefore=e.commentBefore?`${o.commentBefore}\n${e.commentBefore}`:o.commentBefore;if(o.comment)e.comment=e.comment?`${o.comment}\n${e.comment}`:o.comment;o=e}r.items[e]=o instanceof s.default?o:new s.default(o)}return r}function createPairs(e,t,r){const n=new a.default;n.tag="tag:yaml.org,2002:pairs";for(const i of t){let t,s;if(Array.isArray(i)){if(i.length===2){t=i[0];s=i[1]}else throw new TypeError(`Expected [key, value] tuple: ${i}`)}else if(i&&i instanceof Object){const e=Object.keys(i);if(e.length===1){t=e[0];s=i[t]}else throw new TypeError(`Expected { key: value } tuple: ${i}`)}else{t=i}const o=e.createPair(t,s,r);n.items.push(o)}return n}var u={default:false,tag:"tag:yaml.org,2002:pairs",resolve:parsePairs,createNode:createPairs};t.default=u},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 l=/node_modules[\\\/].bin[\\\/][^\\\/]+\.cmd$/i;const d=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=l.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(d){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},570:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:true});t.default=void 0;var n=_interopRequireDefault(r(836));var i=_interopRequireDefault(r(514));var s=r(49);var o=r(405);var a=_interopRequireDefault(r(880));var u=_interopRequireDefault(r(255));var p=_interopRequireDefault(r(637));var c=_interopRequireWildcard(r(380));var l=_interopRequireDefault(r(156));var d=_interopRequireDefault(r(515));var g=_interopRequireDefault(r(923));function _getRequireWildcardCache(){if(typeof WeakMap!=="function")return null;var e=new WeakMap;_getRequireWildcardCache=function(){return e};return e}function _interopRequireWildcard(e){if(e&&e.__esModule){return e}var t=_getRequireWildcardCache();if(t&&t.has(e)){return t.get(e)}var r={};if(e!=null){var n=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in e){if(Object.prototype.hasOwnProperty.call(e,i)){var s=n?Object.getOwnPropertyDescriptor(e,i):null;if(s&&(s.get||s.set)){Object.defineProperty(r,i,s)}else{r[i]=e[i]}}}}r.default=e;if(t){t.set(e,r)}return r}function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}function _defineProperty(e,t,r){if(t in e){Object.defineProperty(e,t,{value:r,enumerable:true,configurable:true,writable:true})}else{e[t]=r}return e}const m=e=>e&&[s.Type.MAP_KEY,s.Type.MAP_VALUE,s.Type.SEQ_ITEM].includes(e.type);class Document{constructor(e){this.anchors=new i.default(e.anchorPrefix);this.commentBefore=null;this.comment=null;this.contents=null;this.directivesEndMarker=null;this.errors=[];this.options=e;this.schema=null;this.tagPrefixes=[];this.version=null;this.warnings=[]}assertCollectionContents(){if(this.contents instanceof c.default)return true;throw new Error("Expected a YAML collection as document contents")}add(e){this.assertCollectionContents();return this.contents.add(e)}addIn(e,t){this.assertCollectionContents();this.contents.addIn(e,t)}delete(e){this.assertCollectionContents();return this.contents.delete(e)}deleteIn(e){if((0,c.isEmptyPath)(e)){if(this.contents==null)return false;this.contents=null;return true}this.assertCollectionContents();return this.contents.deleteIn(e)}getDefaults(){return Document.defaults[this.version]||Document.defaults[this.options.version]||{}}get(e,t){return this.contents instanceof c.default?this.contents.get(e,t):undefined}getIn(e,t){if((0,c.isEmptyPath)(e))return!t&&this.contents instanceof d.default?this.contents.value:this.contents;return this.contents instanceof c.default?this.contents.getIn(e,t):undefined}has(e){return this.contents instanceof c.default?this.contents.has(e):false}hasIn(e){if((0,c.isEmptyPath)(e))return this.contents!==undefined;return this.contents instanceof c.default?this.contents.hasIn(e):false}set(e,t){this.assertCollectionContents();this.contents.set(e,t)}setIn(e,t){if((0,c.isEmptyPath)(e))this.contents=t;else{this.assertCollectionContents();this.contents.setIn(e,t)}}setSchema(e,t){if(!e&&!t&&this.schema)return;if(typeof e==="number")e=e.toFixed(1);if(e==="1.0"||e==="1.1"||e==="1.2"){if(this.version)this.version=e;else this.options.version=e;delete this.options.schema}else if(e&&typeof e==="string"){this.options.schema=e}if(Array.isArray(t))this.options.customTags=t;const r=Object.assign({},this.getDefaults(),this.options);this.schema=new u.default(r)}parse(e,t){if(this.options.keepCstNodes)this.cstNode=e;if(this.options.keepNodeTypes)this.type="DOCUMENT";const{directives:r=[],contents:n=[],directivesEndMarker:i,error:s,valueRange:a}=e;if(s){if(!s.source)s.source=this;this.errors.push(s)}this.parseDirectives(r,t);if(i)this.directivesEndMarker=true;this.range=a?[a.start,a.end]:null;this.setSchema();this.anchors._cstAliases=[];this.parseContents(n);this.anchors.resolveNodes();if(this.options.prettyErrors){for(const e of this.errors)if(e instanceof o.YAMLError)e.makePretty();for(const e of this.warnings)if(e instanceof o.YAMLError)e.makePretty()}return this}parseDirectives(e,t){const r=[];let n=false;e.forEach(e=>{const{comment:t,name:i}=e;switch(i){case"TAG":this.resolveTagDirective(e);n=true;break;case"YAML":case"YAML:1.0":this.resolveYamlDirective(e);n=true;break;default:if(i){const t=`YAML only supports %TAG and %YAML directives, and not %${i}`;this.warnings.push(new o.YAMLWarning(e,t))}}if(t)r.push(t)});if(t&&!n&&"1.1"===(this.version||t.version||this.options.version)){const e=({handle:e,prefix:t})=>({handle:e,prefix:t});this.tagPrefixes=t.tagPrefixes.map(e);this.version=t.version}this.commentBefore=r.join("\n")||null}parseContents(e){const t={before:[],after:[]};const r=[];let n=false;e.forEach(e=>{if(e.valueRange){if(r.length===1){const t="Document is not valid YAML (bad indentation?)";this.errors.push(new o.YAMLSyntaxError(e,t))}const t=this.resolveNode(e);if(n){t.spaceBefore=true;n=false}r.push(t)}else if(e.comment!==null){const n=r.length===0?t.before:t.after;n.push(e.comment)}else if(e.type===s.Type.BLANK_LINE){n=true;if(r.length===0&&t.before.length>0&&!this.commentBefore){this.commentBefore=t.before.join("\n");t.before=[]}}});switch(r.length){case 0:this.contents=null;t.after=t.before;break;case 1:this.contents=r[0];if(this.contents){const e=t.before.join("\n")||null;if(e){const t=this.contents instanceof c.default&&this.contents.items[0]?this.contents.items[0]:this.contents;t.commentBefore=t.commentBefore?`${e}\n${t.commentBefore}`:e}}else{t.after=t.before.concat(t.after)}break;default:this.contents=r;if(this.contents[0]){this.contents[0].commentBefore=t.before.join("\n")||null}else{t.after=t.before.concat(t.after)}}this.comment=t.after.join("\n")||null}resolveTagDirective(e){const[t,r]=e.parameters;if(t&&r){if(this.tagPrefixes.every(e=>e.handle!==t)){this.tagPrefixes.push({handle:t,prefix:r})}else{const t="The %TAG directive must only be given at most once per handle in the same document.";this.errors.push(new o.YAMLSemanticError(e,t))}}else{const t="Insufficient parameters given for %TAG directive";this.errors.push(new o.YAMLSemanticError(e,t))}}resolveYamlDirective(e){let[t]=e.parameters;if(e.name==="YAML:1.0")t="1.0";if(this.version){const t="The %YAML directive must only be given at most once per document.";this.errors.push(new o.YAMLSemanticError(e,t))}if(!t){const t="Insufficient parameters given for %YAML directive";this.errors.push(new o.YAMLSemanticError(e,t))}else{if(!Document.defaults[t]){const r=this.version||this.options.version;const n=`Document will be parsed as YAML ${r} rather than YAML ${t}`;this.warnings.push(new o.YAMLWarning(e,n))}this.version=t}}resolveTagName(e){const{tag:t,type:r}=e;let n=false;if(t){const{handle:r,suffix:i,verbatim:s}=t;if(s){if(s!=="!"&&s!=="!!")return s;const t=`Verbatim tags aren't resolved, so ${s} is invalid.`;this.errors.push(new o.YAMLSemanticError(e,t))}else if(r==="!"&&!i){n=true}else{let t=this.tagPrefixes.find(e=>e.handle===r);if(!t){const e=this.getDefaults().tagPrefixes;if(e)t=e.find(e=>e.handle===r)}if(t){if(i){if(r==="!"&&(this.version||this.options.version)==="1.0"){if(i[0]==="^")return i;if(/[:\/]/.test(i)){const e=i.match(/^([a-z0-9-]+)\/(.*)/i);return e?`tag:${e[1]}.yaml.org,2002:${e[2]}`:`tag:${i}`}}return t.prefix+decodeURIComponent(i)}this.errors.push(new o.YAMLSemanticError(e,`The ${r} tag has no suffix.`))}else{const t=`The ${r} tag handle is non-default and was not declared.`;this.errors.push(new o.YAMLSemanticError(e,t))}}}switch(r){case s.Type.BLOCK_FOLDED:case s.Type.BLOCK_LITERAL:case s.Type.QUOTE_DOUBLE:case s.Type.QUOTE_SINGLE:return u.default.defaultTags.STR;case s.Type.FLOW_MAP:case s.Type.MAP:return u.default.defaultTags.MAP;case s.Type.FLOW_SEQ:case s.Type.SEQ:return u.default.defaultTags.SEQ;case s.Type.PLAIN:return n?u.default.defaultTags.STR:null;default:return null}}resolveNode(e){if(!e)return null;const{anchors:t,errors:r,schema:n}=this;let i=false;let a=false;const u={before:[],after:[]};const c=m(e.context.parent)?e.context.parent.props.concat(e.props):e.props;for(const{start:t,end:n}of c){switch(e.context.src[t]){case s.Char.COMMENT:{if(!e.commentHasRequiredWhitespace(t)){const t="Comments must be separated from other tokens by white space characters";r.push(new o.YAMLSemanticError(e,t))}const i=e.context.src.slice(t+1,n);const{header:s,valueRange:a}=e;if(a&&(t>a.start||s&&t>s.start)){u.after.push(i)}else{u.before.push(i)}}break;case s.Char.ANCHOR:if(i){const t="A node can have at most one anchor";r.push(new o.YAMLSemanticError(e,t))}i=true;break;case s.Char.TAG:if(a){const t="A node can have at most one tag";r.push(new o.YAMLSemanticError(e,t))}a=true;break}}if(i){const r=e.anchor;const n=t.getNode(r);if(n)t.map[t.newName(r)]=n;t.map[r]=e}let l;if(e.type===s.Type.ALIAS){if(i||a){const t="An alias node must not specify any properties";r.push(new o.YAMLSemanticError(e,t))}const n=e.rawValue;const s=t.getNode(n);if(!s){const t=`Aliased anchor not found: ${n}`;r.push(new o.YAMLReferenceError(e,t));return null}l=new p.default(s);t._cstAliases.push(l)}else{const t=this.resolveTagName(e);if(t){l=n.resolveNodeWithFallback(this,e,t)}else{if(e.type!==s.Type.PLAIN){const t=`Failed to resolve ${e.type} node here`;r.push(new o.YAMLSyntaxError(e,t));return null}try{l=n.resolveScalar(e.strValue||"")}catch(t){if(!t.source)t.source=e;r.push(t);return null}}}if(l){l.range=[e.range.start,e.range.end];if(this.options.keepCstNodes)l.cstNode=e;if(this.options.keepNodeTypes)l.type=e.type;const t=u.before.join("\n");if(t){l.commentBefore=l.commentBefore?`${l.commentBefore}\n${t}`:t}const r=u.after.join("\n");if(r)l.comment=l.comment?`${l.comment}\n${r}`:r}return e.resolved=l}listNonDefaultTags(){return(0,a.default)(this.contents).filter(e=>e.indexOf(u.default.defaultPrefix)!==0)}setTagPrefix(e,t){if(e[0]!=="!"||e[e.length-1]!=="!")throw new Error("Handle must start and end with !");if(t){const r=this.tagPrefixes.find(t=>t.handle===e);if(r)r.prefix=t;else this.tagPrefixes.push({handle:e,prefix:t})}else{this.tagPrefixes=this.tagPrefixes.filter(t=>t.handle!==e)}}stringifyTag(e){if((this.version||this.options.version)==="1.0"){const t=e.match(/^tag:private\.yaml\.org,2002:([^:\/]+)$/);if(t)return"!"+t[1];const r=e.match(/^tag:([a-zA-Z0-9-]+)\.yaml\.org,2002:(.*)/);return r?`!${r[1]}/${r[2]}`:`!${e.replace(/^tag:/,"")}`}else{let t=this.tagPrefixes.find(t=>e.indexOf(t.prefix)===0);if(!t){const r=this.getDefaults().tagPrefixes;t=r&&r.find(t=>e.indexOf(t.prefix)===0)}if(!t)return e[0]==="!"?e:`!<${e}>`;const r=e.substr(t.prefix.length).replace(/[!,[\]{}]/g,e=>({"!":"%21",",":"%2C","[":"%5B","]":"%5D","{":"%7B","}":"%7D"})[e]);return t.handle+r}}toJSON(e){const{keepBlobsInJSON:t,mapAsMap:r,maxAliasCount:n}=this.options;const i=t&&(typeof e!=="string"||!(this.contents instanceof d.default));const s={doc:this,keep:i,mapAsMap:i&&!!r,maxAliasCount:n};const o=Object.keys(this.anchors.map);if(o.length>0)s.anchors=o.map(e=>({alias:[],aliasCount:0,count:1,node:this.anchors.map[e]}));return(0,g.default)(this.contents,e,s)}toString(){if(this.errors.length>0)throw new Error("Document with errors cannot be stringified");this.setSchema();const e=[];let t=false;if(this.version){let r="%YAML 1.2";if(this.schema.name==="yaml-1.1"){if(this.version==="1.0")r="%YAML:1.0";else if(this.version==="1.1")r="%YAML 1.1"}e.push(r);t=true}const r=this.listNonDefaultTags();this.tagPrefixes.forEach(({handle:n,prefix:i})=>{if(r.some(e=>e.indexOf(i)===0)){e.push(`%TAG ${n} ${i}`);t=true}});if(t||this.directivesEndMarker)e.push("---");if(this.commentBefore){if(t||!this.directivesEndMarker)e.unshift("");e.unshift(this.commentBefore.replace(/^/gm,"#"))}const i={anchors:{},doc:this,indent:""};let s=false;let o=null;if(this.contents){if(this.contents instanceof l.default){if(this.contents.spaceBefore&&(t||this.directivesEndMarker))e.push("");if(this.contents.commentBefore)e.push(this.contents.commentBefore.replace(/^/gm,"#"));i.forceBlockIndent=!!this.comment;o=this.contents.comment}const r=o?null:()=>s=true;const a=this.schema.stringify(this.contents,i,()=>o=null,r);e.push((0,n.default)(a,"",o))}else if(this.contents!==undefined){e.push(this.schema.stringify(this.contents,i))}if(this.comment){if((!s||o)&&e[e.length-1]!=="")e.push("");e.push(this.comment.replace(/^/gm,"#"))}return e.join("\n")+"\n"}}t.default=Document;_defineProperty(Document,"defaults",{"1.0":{schema:"yaml-1.1",merge:true,tagPrefixes:[{handle:"!",prefix:u.default.defaultPrefix},{handle:"!!",prefix:"tag:private.yaml.org,2002:"}]},1.1:{schema:"yaml-1.1",merge:true,tagPrefixes:[{handle:"!",prefix:"!"},{handle:"!!",prefix:u.default.defaultPrefix}]},1.2:{schema:"core",merge:false,tagPrefixes:[{handle:"!",prefix:"!"},{handle:"!!",prefix:u.default.defaultPrefix}]}})},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}},591:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:true});t.default=t.resolveString=void 0;var n=r(454);var i=r(422);const s=(e,t)=>{const r=t.strValue;if(!r)return"";if(typeof r==="string")return r;r.errors.forEach(r=>{if(!r.source)r.source=t;e.errors.push(r)});return r.str};t.resolveString=s;var o={identify:e=>typeof e==="string",default:true,tag:"tag:yaml.org,2002:str",resolve:s,stringify(e,t,r,i){t=Object.assign({actualString:true},t);return(0,n.stringifyString)(e,t,r,i)},options:i.strOptions};t.default=o},605:function(e){e.exports=require("http")},614:function(e){e.exports=require("events")},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){e.exports=require("net")},637:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:true});t.default=void 0;var n=r(49);var i=r(405);var s=_interopRequireDefault(r(923));var o=_interopRequireDefault(r(380));var a=_interopRequireDefault(r(156));var u=_interopRequireDefault(r(325));function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}function _defineProperty(e,t,r){if(t in e){Object.defineProperty(e,t,{value:r,enumerable:true,configurable:true,writable:true})}else{e[t]=r}return e}const p=(e,t)=>{if(e instanceof Alias){const r=t.find(t=>t.node===e.source);return r.count*r.aliasCount}else if(e instanceof o.default){let r=0;for(const n of e.items){const e=p(n,t);if(e>r)r=e}return r}else if(e instanceof u.default){const r=p(e.key,t);const n=p(e.value,t);return Math.max(r,n)}return 1};class Alias extends a.default{static stringify({range:e,source:t},{anchors:r,doc:n,implicitKey:i,inStringifyKey:s}){let o=Object.keys(r).find(e=>r[e]===t);if(!o&&s)o=n.anchors.getName(t)||n.anchors.newName();if(o)return`*${o}${i?" ":""}`;const a=n.anchors.getName(t)?"Alias node must be after source node":"Source node not found for alias node";throw new Error(`${a} [${e}]`)}constructor(e){super();this.source=e;this.type=n.Type.ALIAS}set tag(e){throw new Error("Alias nodes cannot have tags")}toJSON(e,t){if(!t)return(0,s.default)(this.source,e,t);const{anchors:r,maxAliasCount:n}=t;const o=r.find(e=>e.node===this.source);if(!o||o.res===undefined){const e="This should not happen: Alias anchor was not resolved?";if(this.cstNode)throw new i.YAMLReferenceError(this.cstNode,e);else throw new ReferenceError(e)}if(n>=0){o.count+=1;if(o.aliasCount===0)o.aliasCount=p(this.source,r);if(o.count*o.aliasCount>n){const e="Excessive alias count indicates a resource exhaustion attack";if(this.cstNode)throw new i.YAMLReferenceError(this.cstNode,e);else throw new ReferenceError(e)}}return o.res}toString(e){return Alias.stringify(this,e)}}t.default=Alias;_defineProperty(Alias,"default",true)},641:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:true});t.default=void 0;var n=r(49);var i=_interopRequireDefault(r(974));var s=_interopRequireDefault(r(19));function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}class Directive extends i.default{static endOfDirective(e,t){let r=e[t];while(r&&r!=="\n"&&r!=="#")r=e[t+=1];r=e[t-1];while(r===" "||r==="\t"){t-=1;r=e[t-1]}return t}constructor(){super(n.Type.DIRECTIVE);this.name=null}get parameters(){const e=this.rawValue;return e?e.trim().split(/[ \t]+/):[]}parseName(e){const{src:t}=this.context;let r=e;let n=t[r];while(n&&n!=="\n"&&n!=="\t"&&n!==" ")n=t[r+=1];this.name=t.slice(e,r);return r}parseParameters(e){const{src:t}=this.context;let r=e;let n=t[r];while(n&&n!=="\n"&&n!=="#")n=t[r+=1];this.valueRange=new s.default(e,r);return r}parse(e,t){this.context=e;let r=this.parseName(t+1);r=this.parseParameters(r);r=this.parseComment(r);this.range=new s.default(t,r);return r}}t.default=Directive},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")},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")}},684:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:true});t.findPair=findPair;t.default=void 0;var n=_interopRequireDefault(r(380));var i=_interopRequireDefault(r(325));var s=_interopRequireDefault(r(515));function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}function findPair(e,t){const r=t instanceof s.default?t.value:t;for(const n of e){if(n instanceof i.default){if(n.key===t||n.key===r)return n;if(n.key&&n.key.value===r)return n}}return undefined}class YAMLMap extends n.default{add(e){if(!e)e=new i.default(e);else if(!(e instanceof i.default))e=new i.default(e.key||e,e.value);const t=findPair(this.items,e.key);if(t)throw new Error(`Key ${e.key} already set`);this.items.push(e)}delete(e){const t=findPair(this.items,e);if(!t)return false;const r=this.items.splice(this.items.indexOf(t),1);return r.length>0}get(e,t){const r=findPair(this.items,e);const n=r&&r.value;return!t&&n instanceof s.default?n.value:n}has(e){return!!findPair(this.items,e)}set(e,t){const r=findPair(this.items,e);if(r)r.value=t;else this.items.push(new i.default(e,t))}toJSON(e,t,r){const n=r?new r:t&&t.mapAsMap?new Map:{};if(t&&t.onCreate)t.onCreate(n);for(const e of this.items)e.addToJSMap(t,n);return n}toString(e,t,r){if(!e)return JSON.stringify(this);for(const e of this.items){if(!(e instanceof i.default))throw new Error(`Map items must all be pairs; found ${JSON.stringify(e)} instead`)}return super.toString(e,{blockItem:e=>e.str,flowChars:{start:"{",end:"}"},isMap:true,itemIndent:e.indent||""},t,r)}}t.default=YAMLMap},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},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}))})},724: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[d]={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[d].error=r})}}Body.prototype={get body(){return this[d].body},get bodyUsed(){return this[d].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[d].disturbed){return Body.Promise.reject(new TypeError(`body used already for: ${this.url}`))}this[d].disturbed=true;if(this[d].error){return Body.Promise.reject(this[d].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 l!=="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[h]=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[h],e);if(t===undefined){return null}return this[h][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[h]).sort();return r.map(t==="key"?function(e){return e.toLowerCase()}:t==="value"?function(t){return e[h][t].join(", ")}:function(t){return[t.toLowerCase(),e[h][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[h]);const r=find(e[h],"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(f.test(n)){continue}if(t[h][r]===undefined){t[h][r]=[n]}else{t[h][r].push(n)}}}else if(!f.test(e[r])){t[h][r]=[e[r]]}}return t}const _=Symbol("Response internals");const v=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[_]={url:t.url,status:r,statusText:t.statusText||v[r],headers:n,counter:t.counter}}get url(){return this[_].url||""}get status(){return this[_].status}get ok(){return this[_].status>=200&&this[_].status<300}get redirected(){return this[_].counter>0}get statusText(){return this[_].statusText}get headers(){return this[_].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 w=Symbol("Request internals");const q=s.parse;const E=s.format;const T="destroy"in n.Readable.prototype;function isRequest(e){return typeof e==="object"&&typeof e[w]==="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=q(e.href)}else{r=q(`${e}`)}e={}}else{r=q(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[w]={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[w].method}get url(){return E(this[w].parsedURL)}get headers(){return this[w].headers}get redirect(){return this[w].redirect}get signal(){return this[w].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[w].parsedURL;const r=new Headers(e[w].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 k=n.PassThrough;const O=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 l=u.signal;let d=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(!d||!d.body)return;d.body.emit("error",e)};if(l&&l.aborted){g();return}const m=function abortAndFinalize(){g();finalize()};const f=c(p);let h;if(l){l.addEventListener("abort",m)}function finalize(){f.abort();if(l)l.removeEventListener("abort",m);clearTimeout(h)}if(u.timeout){f.once("socket",function(e){h=setTimeout(function(){s(new FetchError(`network timeout at: ${u.url}`,"request-timeout"));finalize()},u.timeout)})}f.on("error",function(e){s(new FetchError(`request to ${u.url} failed, reason: ${e.message}`,"system",e));finalize()});f.on("response",function(e){clearTimeout(h);const t=createHeadersLenient(e.headers);if(fetch.isRedirect(e.statusCode)){const n=t.get("Location");const i=n===null?null:O(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(l)l.removeEventListener("abort",m)});let n=e.pipe(new k);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){d=new Response(n,i);r(d);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));d=new Response(n,i);r(d);return}if(o=="deflate"||o=="x-deflate"){const t=e.pipe(new k);t.once("data",function(e){if((e[0]&15)===8){n=n.pipe(a.createInflate())}else{n=n.pipe(a.createInflateRaw())}d=new Response(n,i);r(d)});return}if(o=="br"&&typeof a.createBrotliDecompress==="function"){n=n.pipe(a.createBrotliDecompress());d=new Response(n,i);r(d);return}d=new Response(n,i);r(d)});writeToStream(f,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},725:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:true});t.default=void 0;var n=r(405);var i=_interopRequireDefault(r(974));var s=_interopRequireDefault(r(19));function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}class QuoteDouble extends i.default{static endOfQuote(e,t){let r=e[t];while(r&&r!=='"'){t+=r==="\\"?2:1;r=e[t]}return t+1}get strValue(){if(!this.valueRange||!this.context)return null;const e=[];const{start:t,end:r}=this.valueRange;const{indent:s,src:o}=this.context;if(o[r-1]!=='"')e.push(new n.YAMLSyntaxError(this,'Missing closing "quote'));let a="";for(let u=t+1;ue?o.slice(e,u+1):t}else{a+=t}}return e.length>0?{errors:e,str:a}:a}parseCharCode(e,t,r){const{src:i}=this.context;const s=i.substr(e,t);const o=s.length===t&&/^[0-9a-fA-F]+$/.test(s);const a=o?parseInt(s,16):NaN;if(isNaN(a)){r.push(new n.YAMLSyntaxError(this,`Invalid escape sequence ${i.substr(e-2,t+2)}`));return i.substr(e-2,t+2)}return String.fromCodePoint(a)}parse(e,t){this.context=e;const{src:r}=e;let n=QuoteDouble.endOfQuote(r,t+1);this.valueRange=new s.default(t,n);n=i.default.endOfWhiteSpace(r,n);n=this.parseComment(n);return n}}t.default=QuoteDouble},732:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:true});t.default=void 0;var n=_interopRequireDefault(r(684));var i=_interopRequireDefault(r(763));function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}function createMap(e,t,r){const i=new n.default;if(t instanceof Map){for(const[n,s]of t)i.items.push(e.createPair(n,s,r))}else if(t&&typeof t==="object"){for(const n of Object.keys(t))i.items.push(e.createPair(n,t[n],r))}return i}var s={createNode:createMap,default:true,nodeClass:n.default,tag:"tag:yaml.org,2002:map",resolve:i.default};t.default=s},734:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:true});t.checkFlowCollectionEnd=checkFlowCollectionEnd;t.checkKeyLength=checkKeyLength;t.resolveComments=resolveComments;var n=r(405);var i=r(49);function checkFlowCollectionEnd(e,t){let r,s;switch(t.type){case i.Type.FLOW_MAP:r="}";s="flow map";break;case i.Type.FLOW_SEQ:r="]";s="flow sequence";break;default:e.push(new n.YAMLSemanticError(t,"Not a flow collection!?"));return}let o;for(let e=t.items.length-1;e>=0;--e){const r=t.items[e];if(!r||r.type!==i.Type.COMMENT){o=r;break}}if(o&&o.char!==r){const i=`Expected ${s} to end with ${r}`;let a;if(typeof o.offset==="number"){a=new n.YAMLSemanticError(t,i);a.offset=o.offset+1}else{a=new n.YAMLSemanticError(o,i);if(o.range&&o.range.end)a.offset=o.range.end-o.range.start}e.push(a)}}function checkKeyLength(e,t,r,i,s){if(!i||typeof s!=="number")return;const o=t.items[r];let a=o&&o.range&&o.range.start;if(!a){for(let e=r-1;e>=0;--e){const n=t.items[e];if(n&&n.range){a=n.range.end+2*(r-e);break}}}if(a>s+1024){const r=String(i).substr(0,8)+"..."+String(i).substr(-8);e.push(new n.YAMLSemanticError(t,`The "${r}" key is too long`))}}function resolveComments(e,t){for(const{afterKey:r,before:n,comment:i}of t){let t=e.items[n];if(!t){if(i!==undefined){if(e.comment)e.comment+="\n"+i;else e.comment=i}}else{if(r&&t.value)t=t.value;if(i===undefined){if(r||!t.commentBefore)t.spaceBefore=true}else{if(t.commentBefore)t.commentBefore+="\n"+i;else t.commentBefore=i}}}}},742:function(e,t,r){var n=r(747);var i;if(process.platform==="win32"||global.TESTING_WINDOWS){i=r(818)}else{i=r(197)}e.exports=isexe;isexe.sync=sync;function isexe(e,t,r){if(typeof t==="function"){r=t;t={}}if(!r){if(typeof Promise!=="function"){throw new TypeError("callback not provided")}return new Promise(function(r,n){isexe(e,t||{},function(e,t){if(e){n(e)}else{r(t)}})})}i(e,t||{},function(e,n){if(e){if(e.code==="EACCES"||t&&t.ignoreErrors){e=null;n=false}}r(e,n)})}function sync(e,t){try{return i.sync(e,t||{})}catch(e){if(t&&t.ignoreErrors||e.code==="EACCES"){return false}else{throw e}}}},747:function(e){e.exports=require("fs")},753: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(385);var i=r(211);var s=_interopDefault(r(696));var o=_interopDefault(r(724));var a=r(463);const u="5.3.2";function getBufferResponse(e){return e.arrayBuffer()}function fetchWrapper(e){if(s(e.body)||Array.isArray(e.body)){e.body=JSON.stringify(e.body)}let t={};let r;let n;const i=e.request&&e.request.fetch||o;return i(e.url,Object.assign({method:e.method,body:e.body,headers:e.headers,redirect:e.redirect},e.request)).then(i=>{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,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:true});t.default=parseMap;var n=r(49);var i=_interopRequireDefault(r(119));var s=r(405);var o=_interopRequireDefault(r(684));var a=_interopRequireWildcard(r(386));var u=_interopRequireDefault(r(325));var p=r(734);var c=_interopRequireDefault(r(637));var l=_interopRequireDefault(r(380));function _getRequireWildcardCache(){if(typeof WeakMap!=="function")return null;var e=new WeakMap;_getRequireWildcardCache=function(){return e};return e}function _interopRequireWildcard(e){if(e&&e.__esModule){return e}var t=_getRequireWildcardCache();if(t&&t.has(e)){return t.get(e)}var r={};if(e!=null){var n=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in e){if(Object.prototype.hasOwnProperty.call(e,i)){var s=n?Object.getOwnPropertyDescriptor(e,i):null;if(s&&(s.get||s.set)){Object.defineProperty(r,i,s)}else{r[i]=e[i]}}}}r.default=e;if(t){t.set(e,r)}return r}function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}function parseMap(e,t){if(t.type!==n.Type.MAP&&t.type!==n.Type.FLOW_MAP){const r=`A ${t.type} node cannot be resolved as a mapping`;e.errors.push(new s.YAMLSyntaxError(t,r));return null}const{comments:r,items:i}=t.type===n.Type.FLOW_MAP?resolveFlowMapItems(e,t):resolveBlockMapItems(e,t);const u=new o.default;u.items=i;(0,p.resolveComments)(u,r);let d=false;for(let r=0;r{if(e instanceof c.default){const{type:t}=e.source;if(t===n.Type.MAP||t===n.Type.FLOW_MAP)return false;return u="Merge nodes aliases can only point to maps"}return u="Merge nodes can only have Alias nodes as values"});if(u)e.errors.push(new s.YAMLSemanticError(t,u))}else{for(let n=r+1;n{if(i.length===0)return false;const{start:s}=i[0];if(t&&s>t.valueRange.start)return false;if(r[s]!==n.Char.COMMENT)return false;for(let t=e;t0){r=new i.default(n.Type.PLAIN,[]);r.context={parent:d,src:d.context.src};const e=d.range.start+1;r.range={start:e,end:e};r.valueRange={start:e,end:e};if(typeof d.range.origStart==="number"){const e=d.range.origStart+1;r.range.origStart=r.range.origEnd=e;r.valueRange.origStart=r.valueRange.origEnd=e}}const g=new u.default(a,e.resolveNode(r));resolvePairComment(d,g);o.push(g);(0,p.checkKeyLength)(e.errors,t,l,a,c);a=undefined;c=null}break;default:if(a!==undefined)o.push(new u.default(a));a=e.resolveNode(d);c=d.range.start;if(d.error)e.errors.push(d.error);e:for(let r=l+1;;++r){const i=t.items[r];switch(i&&i.type){case n.Type.BLANK_LINE:case n.Type.COMMENT:continue e;case n.Type.MAP_VALUE:break e;default:e.errors.push(new s.YAMLSemanticError(d,"Implicit map keys need to be followed by map values"));break e}}if(d.valueRangeContainsNewline){const t="Implicit map keys need to be on a single line";e.errors.push(new s.YAMLSemanticError(d,t))}}}if(a!==undefined)o.push(new u.default(a));return{comments:r,items:o}}function resolveFlowMapItems(e,t){const r=[];const i=[];let o=undefined;let a=null;let c=false;let l="{";for(let d=0;de==null,createNode:(e,t,r)=>r.wrapScalars?new n.default(null):null,default:true,tag:"tag:yaml.org,2002:null",test:/^(?:~|[Nn]ull|NULL)?$/,resolve:()=>null,options:o.nullOptions,stringify:()=>o.nullOptions.nullStr},{identify:e=>typeof e==="boolean",default:true,tag:"tag:yaml.org,2002:bool",test:/^(?:[Tt]rue|TRUE|[Ff]alse|FALSE)$/,resolve:e=>e[0]==="t"||e[0]==="T",options:o.boolOptions,stringify:({value:e})=>e?o.boolOptions.trueStr:o.boolOptions.falseStr},{identify:e=>typeof e==="number",default:true,tag:"tag:yaml.org,2002:int",format:"OCT",test:/^0o([0-7]+)$/,resolve:(e,t)=>parseInt(t,8),stringify:({value:e})=>"0o"+e.toString(8)},{identify:e=>typeof e==="number",default:true,tag:"tag:yaml.org,2002:int",test:/^[-+]?[0-9]+$/,resolve:e=>parseInt(e,10),stringify:i.stringifyNumber},{identify:e=>typeof e==="number",default:true,tag:"tag:yaml.org,2002:int",format:"HEX",test:/^0x([0-9a-fA-F]+)$/,resolve:(e,t)=>parseInt(t,16),stringify:({value:e})=>"0x"+e.toString(16)},{identify:e=>typeof e==="number",default:true,tag:"tag:yaml.org,2002:float",test:/^(?:[-+]?\.inf|(\.nan))$/i,resolve:(e,t)=>t?NaN:e[0]==="-"?Number.NEGATIVE_INFINITY:Number.POSITIVE_INFINITY,stringify:i.stringifyNumber},{identify:e=>typeof e==="number",default:true,tag:"tag:yaml.org,2002:float",format:"EXP",test:/^[-+]?(?:0|[1-9][0-9]*)(\.[0-9]*)?[eE][-+]?[0-9]+$/,resolve:e=>parseFloat(e),stringify:({value:e})=>Number(e).toExponential()},{identify:e=>typeof e==="number",default:true,tag:"tag:yaml.org,2002:float",test:/^[-+]?(?:0|[1-9][0-9]*)\.([0-9]*)$/,resolve(e,t){const r=new n.default(parseFloat(e));if(t&&t[t.length-1]==="0")r.minFractionDigits=t.length;return r},stringify:i.stringifyNumber}]);t.default=a},777:function(e,t,r){e.exports=getFirstPage;const n=r(265);function getFirstPage(e,t,r){return n(e,t,"first",r)}},785:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:true});t.default=t.YAMLSet=void 0;var n=r(405);var i=_interopRequireWildcard(r(684));var s=_interopRequireDefault(r(325));var o=_interopRequireDefault(r(763));var a=_interopRequireDefault(r(515));function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}function _getRequireWildcardCache(){if(typeof WeakMap!=="function")return null;var e=new WeakMap;_getRequireWildcardCache=function(){return e};return e}function _interopRequireWildcard(e){if(e&&e.__esModule){return e}var t=_getRequireWildcardCache();if(t&&t.has(e)){return t.get(e)}var r={};if(e!=null){var n=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in e){if(Object.prototype.hasOwnProperty.call(e,i)){var s=n?Object.getOwnPropertyDescriptor(e,i):null;if(s&&(s.get||s.set)){Object.defineProperty(r,i,s)}else{r[i]=e[i]}}}}r.default=e;if(t){t.set(e,r)}return r}function _defineProperty(e,t,r){if(t in e){Object.defineProperty(e,t,{value:r,enumerable:true,configurable:true,writable:true})}else{e[t]=r}return e}class YAMLSet extends i.default{constructor(){super();this.tag=YAMLSet.tag}add(e){const t=e instanceof s.default?e:new s.default(e);const r=(0,i.findPair)(this.items,t.key);if(!r)this.items.push(t)}get(e,t){const r=(0,i.findPair)(this.items,e);return!t&&r instanceof s.default?r.key instanceof a.default?r.key.value:r.key:r}set(e,t){if(typeof t!=="boolean")throw new Error(`Expected boolean value for set(key, value) in a YAML set, not ${typeof t}`);const r=(0,i.findPair)(this.items,e);if(r&&!t){this.items.splice(this.items.indexOf(r),1)}else if(!r&&t){this.items.push(new s.default(e))}}toJSON(e,t){return super.toJSON(e,t,Set)}toString(e,t,r){if(!e)return JSON.stringify(this);if(this.hasAllNullValues())return super.toString(e,t,r);else throw new Error("Set items must all have null values")}}t.YAMLSet=YAMLSet;_defineProperty(YAMLSet,"tag","tag:yaml.org,2002:set");function parseSet(e,t){const r=(0,o.default)(e,t);if(!r.hasAllNullValues())throw new n.YAMLSemanticError(t,"Set items must all have null values");return Object.assign(new YAMLSet,r)}function createSet(e,t,r){const n=new YAMLSet;for(const i of t)n.items.push(e.createPair(i,null,r));return n}var u={identify:e=>e instanceof Set,nodeClass:YAMLSet,default:false,tag:"tag:yaml.org,2002:set",resolve:parseSet,createNode:createSet};t.default=u},792:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:true});t.default=void 0;var n=_interopRequireDefault(r(309));var i=_interopRequireDefault(r(570));var s=r(405);var o=_interopRequireDefault(r(255));var a=r(847);function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}const u={anchorPrefix:"a",customTags:null,keepCstNodes:false,keepNodeTypes:true,keepBlobsInJSON:true,mapAsMap:false,maxAliasCount:100,prettyErrors:false,simpleKeys:false,version:"1.2"};function createNode(e,t=true,r){if(r===undefined&&typeof t==="string"){r=t;t=true}const n=Object.assign({},i.default.defaults[u.version],u);const s=new o.default(n);return s.createNode(e,t,r)}class Document extends i.default{constructor(e){super(Object.assign({},u,e))}}function parseAllDocuments(e,t){const r=[];let i;for(const s of(0,n.default)(e)){const e=new Document(t);e.parse(s,i);r.push(e);i=e}return r}function parseDocument(e,t){const r=(0,n.default)(e);const i=new Document(t).parse(r[0]);if(r.length>1){const e="Source contains multiple documents; please use YAML.parseAllDocuments()";i.errors.unshift(new s.YAMLSemanticError(r[1],e))}return i}function parse(e,t){const r=parseDocument(e,t);r.warnings.forEach(e=>(0,a.warn)(e));if(r.errors.length>0)throw r.errors[0];return r.toJSON()}function stringify(e,t){const r=new Document(t);r.contents=e;return String(r)}var p={createNode:createNode,defaultOptions:u,Document:Document,parse:parse,parseAllDocuments:parseAllDocuments,parseCST:n.default,parseDocument:parseDocument,stringify:stringify};t.default=p},794:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:true});t.default=void 0;var n=r(49);var i=_interopRequireDefault(r(974));var s=_interopRequireDefault(r(19));function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}class BlankLine extends i.default{constructor(){super(n.Type.BLANK_LINE)}get includesTrailingLines(){return true}parse(e,t){this.context=e;const{src:r}=e;let n=t+1;while(i.default.atBlank(r,n)){const e=i.default.endOfWhiteSpace(r,n);if(e==="\n")n=e+1;else break}this.range=new s.default(t,n);return n}}t.default=BlankLine},796: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},813:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:true});async function auth(e){const t=e.split(/\./).length===3?"app":/^v\d+\./.test(e)?"installation":"oauth";return{type:"token",token:e,tokenType:t}}function withAuthorizationPrefix(e){if(e.split(/\./).length===3){return`bearer ${e}`}return`token ${e}`}async function hook(e,t,r,n){const i=t.endpoint.merge(r,n);i.headers.authorization=withAuthorizationPrefix(e);return t(i)}const r=function createTokenAuth(e){if(!e){throw new Error("[@octokit/auth-token] No token passed to createTokenAuth")}if(typeof e!=="string"){throw new Error("[@octokit/auth-token] Token passed to createTokenAuth is not a string")}e=e.replace(/^(token|bearer) +/i,"");return Object.assign(auth.bind(null,e),{hook:hook.bind(null,e)})};t.createTokenAuth=r},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 l=s[n];if(l.charAt(0)==='"'&&l.slice(-1)==='"')l=l.slice(1,-1);var d=i.join(l,e);if(!l&&/^\.[\\\/]/.test(e)){d=e.slice(0,2)+d}(function E(e,i){if(e===i)return F(n+1,c);var s=a[e];o(d+s,{pathExt:u},function(n,o){if(!n&&o){if(t.all)p.push(d+s);else return r(null,d+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;pe instanceof Map,nodeClass:YAMLOMap,default:false,tag:"tag:yaml.org,2002:omap",resolve:parseOMap,createNode:createOMap};t.default=c},835:function(e){e.exports=require("url")},836:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:true});t.addCommentBefore=addCommentBefore;t.default=addComment;function addCommentBefore(e,t,r){if(!r)return e;const n=r.replace(/[\s\S]^/gm,`$&${t}#`);return`#${n}\n${t}${e}`}function addComment(e,t,r){return!r?e:r.indexOf("\n")===-1?`${e} #${r}`:`${e}\n`+r.replace(/^/gm,`${t||""}#`)}},842:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:true});var n=r(692);var i={actions:{cancelWorkflowRun:{method:"POST",params:{owner:{required:true,type:"string"},repo:{required:true,type:"string"},run_id:{required:true,type:"integer"}},url:"/repos/:owner/:repo/actions/runs/:run_id/cancel"},createOrUpdateSecretForRepo:{method:"PUT",params:{encrypted_value:{type:"string"},key_id:{type:"string"},name:{required:true,type:"string"},owner:{required:true,type:"string"},repo:{required:true,type:"string"}},url:"/repos/:owner/:repo/actions/secrets/:name"},createRegistrationToken:{method:"POST",params:{owner:{required:true,type:"string"},repo:{required:true,type:"string"}},url:"/repos/:owner/:repo/actions/runners/registration-token"},createRemoveToken:{method:"POST",params:{owner:{required:true,type:"string"},repo:{required:true,type:"string"}},url:"/repos/:owner/:repo/actions/runners/remove-token"},deleteArtifact:{method:"DELETE",params:{artifact_id:{required:true,type:"integer"},owner:{required:true,type:"string"},repo:{required:true,type:"string"}},url:"/repos/:owner/:repo/actions/artifacts/:artifact_id"},deleteSecretFromRepo:{method:"DELETE",params:{name:{required:true,type:"string"},owner:{required:true,type:"string"},repo:{required:true,type:"string"}},url:"/repos/:owner/:repo/actions/secrets/:name"},downloadArtifact:{method:"GET",params:{archive_format:{required:true,type:"string"},artifact_id:{required:true,type:"integer"},owner:{required:true,type:"string"},repo:{required:true,type:"string"}},url:"/repos/:owner/:repo/actions/artifacts/:artifact_id/:archive_format"},getArtifact:{method:"GET",params:{artifact_id:{required:true,type:"integer"},owner:{required:true,type:"string"},repo:{required:true,type:"string"}},url:"/repos/:owner/:repo/actions/artifacts/:artifact_id"},getPublicKey:{method:"GET",params:{owner:{required:true,type:"string"},repo:{required:true,type:"string"}},url:"/repos/:owner/:repo/actions/secrets/public-key"},getSecret:{method:"GET",params:{name:{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/actions/secrets/:name"},getSelfHostedRunner:{method:"GET",params:{owner:{required:true,type:"string"},repo:{required:true,type:"string"},runner_id:{required:true,type:"integer"}},url:"/repos/:owner/:repo/actions/runners/:runner_id"},getWorkflow:{method:"GET",params:{owner:{required:true,type:"string"},repo:{required:true,type:"string"},workflow_id:{required:true,type:"integer"}},url:"/repos/:owner/:repo/actions/workflows/:workflow_id"},getWorkflowJob:{method:"GET",params:{job_id:{required:true,type:"integer"},owner:{required:true,type:"string"},repo:{required:true,type:"string"}},url:"/repos/:owner/:repo/actions/jobs/:job_id"},getWorkflowRun:{method:"GET",params:{owner:{required:true,type:"string"},repo:{required:true,type:"string"},run_id:{required:true,type:"integer"}},url:"/repos/:owner/:repo/actions/runs/:run_id"},listDownloadsForSelfHostedRunnerApplication:{method:"GET",params:{owner:{required:true,type:"string"},repo:{required:true,type:"string"}},url:"/repos/:owner/:repo/actions/runners/downloads"},listJobsForWorkflowRun:{method:"GET",params:{owner:{required:true,type:"string"},page:{type:"integer"},per_page:{type:"integer"},repo:{required:true,type:"string"},run_id:{required:true,type:"integer"}},url:"/repos/:owner/:repo/actions/runs/:run_id/jobs"},listRepoWorkflowRuns:{method:"GET",params:{actor:{type:"string"},branch:{type:"string"},event:{type:"string"},owner:{required:true,type:"string"},page:{type:"integer"},per_page:{type:"integer"},repo:{required:true,type:"string"},status:{enum:["completed","status","conclusion"],type:"string"}},url:"/repos/:owner/:repo/actions/runs"},listRepoWorkflows:{method:"GET",params:{owner:{required:true,type:"string"},page:{type:"integer"},per_page:{type:"integer"},repo:{required:true,type:"string"}},url:"/repos/:owner/:repo/actions/workflows"},listSecretsForRepo:{method:"GET",params:{owner:{required:true,type:"string"},page:{type:"integer"},per_page:{type:"integer"},repo:{required:true,type:"string"}},url:"/repos/:owner/:repo/actions/secrets"},listSelfHostedRunnersForRepo:{method:"GET",params:{owner:{required:true,type:"string"},page:{type:"integer"},per_page:{type:"integer"},repo:{required:true,type:"string"}},url:"/repos/:owner/:repo/actions/runners"},listWorkflowJobLogs:{method:"GET",params:{job_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/actions/jobs/:job_id/logs"},listWorkflowRunArtifacts:{method:"GET",params:{owner:{required:true,type:"string"},page:{type:"integer"},per_page:{type:"integer"},repo:{required:true,type:"string"},run_id:{required:true,type:"integer"}},url:"/repos/:owner/:repo/actions/runs/:run_id/artifacts"},listWorkflowRunLogs:{method:"GET",params:{owner:{required:true,type:"string"},page:{type:"integer"},per_page:{type:"integer"},repo:{required:true,type:"string"},run_id:{required:true,type:"integer"}},url:"/repos/:owner/:repo/actions/runs/:run_id/logs"},listWorkflowRuns:{method:"GET",params:{actor:{type:"string"},branch:{type:"string"},event:{type:"string"},owner:{required:true,type:"string"},page:{type:"integer"},per_page:{type:"integer"},repo:{required:true,type:"string"},status:{enum:["completed","status","conclusion"],type:"string"},workflow_id:{required:true,type:"integer"}},url:"/repos/:owner/:repo/actions/workflows/:workflow_id/runs"},reRunWorkflow:{method:"POST",params:{owner:{required:true,type:"string"},repo:{required:true,type:"string"},run_id:{required:true,type:"integer"}},url:"/repos/:owner/:repo/actions/runs/:run_id/rerun"},removeSelfHostedRunner:{method:"DELETE",params:{owner:{required:true,type:"string"},repo:{required:true,type:"string"},runner_id:{required:true,type:"integer"}},url:"/repos/:owner/:repo/actions/runners/:runner_id"}},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"}},url:"/marketplace_listing/accounts/:account_id"},checkAccountIsAssociatedWithAnyStubbed:{method:"GET",params:{account_id:{required:true,type:"integer"}},url:"/marketplace_listing/stubbed/accounts/:account_id"},checkAuthorization:{deprecated:"octokit.apps.checkAuthorization() is deprecated, see https://developer.github.com/v3/apps/oauth_applications/#check-an-authorization",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.apps.resetAuthorization() is deprecated, see https://developer.github.com/v3/apps/oauth_applications/#reset-an-authorization",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.apps.revokeAuthorizationForApplication() is deprecated, see https://developer.github.com/v3/apps/oauth_applications/#revoke-an-authorization-for-an-application",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.apps.revokeGrantForApplication() is deprecated, see https://developer.github.com/v3/apps/oauth_applications/#revoke-a-grant-for-an-application",method:"DELETE",params:{access_token:{required:true,type:"string"},client_id:{required:true,type:"string"}},url:"/applications/:client_id/grants/:access_token"},revokeInstallationToken:{headers:{accept:"application/vnd.github.gambit-preview+json"},method:"DELETE",params:{},url:"/installation/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"},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:{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"},downloadArchiveForOrg:{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"},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:{deprecated:"octokit.migrations.getArchiveForOrg() has been renamed to octokit.migrations.downloadArchiveForOrg() (2020-01-27)",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:{method:"GET",params:{owner:{required:true,type:"string"},repo:{required:true,type:"string"},since:{type:"string"}},url:"/repos/:owner/:repo/import/authors"},getImportProgress:{method:"GET",params:{owner:{required:true,type:"string"},repo:{required:true,type:"string"}},url:"/repos/:owner/:repo/import"},getLargeFiles:{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"},listReposForOrg:{headers:{accept:"application/vnd.github.wyandotte-preview+json"},method:"GET",params:{migration_id:{required:true,type:"integer"},org:{required:true,type:"string"},page:{type:"integer"},per_page:{type:"integer"}},url:"/orgs/:org/migrations/:migration_id/repositories"},listReposForUser:{headers:{accept:"application/vnd.github.wyandotte-preview+json"},method:"GET",params:{migration_id:{required:true,type:"integer"},page:{type:"integer"},per_page:{type:"integer"}},url:"/user/:migration_id/repositories"},mapCommitAuthor:{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:{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:{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:{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:"integer"}},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_internal_repositories:{type:"boolean"},members_can_create_private_repositories:{type:"boolean"},members_can_create_public_repositories:{type:"boolean"},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:{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:{deprecated:"octokit.reactions.createForTeamDiscussion() has been renamed to octokit.reactions.createForTeamDiscussionLegacy() (2020-01-16)",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"},discussion_number:{required:true,type:"integer"},team_id:{required:true,type:"integer"}},url:"/teams/:team_id/discussions/:discussion_number/reactions"},createForTeamDiscussionComment:{deprecated:"octokit.reactions.createForTeamDiscussionComment() has been renamed to octokit.reactions.createForTeamDiscussionCommentLegacy() (2020-01-16)",headers:{accept:"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"},createForTeamDiscussionCommentInOrg:{headers:{accept:"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"},org:{required:true,type:"string"},team_slug:{required:true,type:"string"}},url:"/orgs/:org/teams/:team_slug/discussions/:discussion_number/comments/:comment_number/reactions"},createForTeamDiscussionCommentLegacy:{deprecated:"octokit.reactions.createForTeamDiscussionCommentLegacy() is deprecated, see https://developer.github.com/v3/reactions/#create-reaction-for-a-team-discussion-comment-legacy",headers:{accept:"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"},createForTeamDiscussionInOrg:{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"},discussion_number:{required:true,type:"integer"},org:{required:true,type:"string"},team_slug:{required:true,type:"string"}},url:"/orgs/:org/teams/:team_slug/discussions/:discussion_number/reactions"},createForTeamDiscussionLegacy:{deprecated:"octokit.reactions.createForTeamDiscussionLegacy() is deprecated, see https://developer.github.com/v3/reactions/#create-reaction-for-a-team-discussion-legacy",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"},discussion_number:{required:true,type:"integer"},team_id:{required:true,type:"integer"}},url:"/teams/:team_id/discussions/:discussion_number/reactions"},delete:{headers:{accept:"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:{deprecated:"octokit.reactions.listForTeamDiscussion() has been renamed to octokit.reactions.listForTeamDiscussionLegacy() (2020-01-16)",headers:{accept:"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:{deprecated:"octokit.reactions.listForTeamDiscussionComment() has been renamed to octokit.reactions.listForTeamDiscussionCommentLegacy() (2020-01-16)",headers:{accept:"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"},listForTeamDiscussionCommentInOrg:{headers:{accept:"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"},org:{required:true,type:"string"},page:{type:"integer"},per_page:{type:"integer"},team_slug:{required:true,type:"string"}},url:"/orgs/:org/teams/:team_slug/discussions/:discussion_number/comments/:comment_number/reactions"},listForTeamDiscussionCommentLegacy:{deprecated:"octokit.reactions.listForTeamDiscussionCommentLegacy() is deprecated, see https://developer.github.com/v3/reactions/#list-reactions-for-a-team-discussion-comment-legacy",headers:{accept:"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"},listForTeamDiscussionInOrg:{headers:{accept:"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"},org:{required:true,type:"string"},page:{type:"integer"},per_page:{type:"integer"},team_slug:{required:true,type:"string"}},url:"/orgs/:org/teams/:team_slug/discussions/:discussion_number/reactions"},listForTeamDiscussionLegacy:{deprecated:"octokit.reactions.listForTeamDiscussionLegacy() is deprecated, see https://developer.github.com/v3/reactions/#list-reactions-for-a-team-discussion-legacy",headers:{accept:"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"}},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:{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"},delete_branch_on_merge:{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"},visibility:{enum:["public","private","visibility","internal"],type:"string"}},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"},delete_branch_on_merge:{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"},visibility:{enum:["public","private","visibility","internal"],type:"string"}},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","internal"],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:"integer"}},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:{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"},delete_branch_on_merge:{type:"boolean"},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"},visibility:{enum:["public","private","visibility","internal"],type:"string"}},url:"/repos/:owner/:repo"},updateBranchProtection:{method:"PUT",params:{allow_deletions:{type:"boolean"},allow_force_pushes:{allowNull:true,type:"boolean"},branch:{required:true,type:"string"},enforce_admins:{allowNull:true,required:true,type:"boolean"},owner:{required:true,type:"string"},repo:{required:true,type:"string"},required_linear_history:{type:"boolean"},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:{data:{mapTo:"data",required:true,type:"string | object"},file:{alias:"data",deprecated: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() has been renamed to octokit.teams.addMemberLegacy() (2020-01-16)",method:"PUT",params:{team_id:{required:true,type:"integer"},username:{required:true,type:"string"}},url:"/teams/:team_id/members/:username"},addMemberLegacy:{deprecated:"octokit.teams.addMemberLegacy() is deprecated, see https://developer.github.com/v3/teams/members/#add-team-member-legacy",method:"PUT",params:{team_id:{required:true,type:"integer"},username:{required:true,type:"string"}},url:"/teams/:team_id/members/:username"},addOrUpdateMembership:{deprecated:"octokit.teams.addOrUpdateMembership() has been renamed to octokit.teams.addOrUpdateMembershipLegacy() (2020-01-16)",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"},addOrUpdateMembershipInOrg:{method:"PUT",params:{org:{required:true,type:"string"},role:{enum:["member","maintainer"],type:"string"},team_slug:{required:true,type:"string"},username:{required:true,type:"string"}},url:"/orgs/:org/teams/:team_slug/memberships/:username"},addOrUpdateMembershipLegacy:{deprecated:"octokit.teams.addOrUpdateMembershipLegacy() is deprecated, see https://developer.github.com/v3/teams/members/#add-or-update-team-membership-legacy",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:{deprecated:"octokit.teams.addOrUpdateProject() has been renamed to octokit.teams.addOrUpdateProjectLegacy() (2020-01-16)",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"},addOrUpdateProjectInOrg:{headers:{accept:"application/vnd.github.inertia-preview+json"},method:"PUT",params:{org:{required:true,type:"string"},permission:{enum:["read","write","admin"],type:"string"},project_id:{required:true,type:"integer"},team_slug:{required:true,type:"string"}},url:"/orgs/:org/teams/:team_slug/projects/:project_id"},addOrUpdateProjectLegacy:{deprecated:"octokit.teams.addOrUpdateProjectLegacy() is deprecated, see https://developer.github.com/v3/teams/#add-or-update-team-project-legacy",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:{deprecated:"octokit.teams.addOrUpdateRepo() has been renamed to octokit.teams.addOrUpdateRepoLegacy() (2020-01-16)",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"},addOrUpdateRepoInOrg:{method:"PUT",params:{org:{required:true,type:"string"},owner:{required:true,type:"string"},permission:{enum:["pull","push","admin"],type:"string"},repo:{required:true,type:"string"},team_slug:{required:true,type:"string"}},url:"/orgs/:org/teams/:team_slug/repos/:owner/:repo"},addOrUpdateRepoLegacy:{deprecated:"octokit.teams.addOrUpdateRepoLegacy() is deprecated, see https://developer.github.com/v3/teams/#add-or-update-team-repository-legacy",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:{deprecated:"octokit.teams.checkManagesRepo() has been renamed to octokit.teams.checkManagesRepoLegacy() (2020-01-16)",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"},checkManagesRepoInOrg:{method:"GET",params:{org:{required:true,type:"string"},owner:{required:true,type:"string"},repo:{required:true,type:"string"},team_slug:{required:true,type:"string"}},url:"/orgs/:org/teams/:team_slug/repos/:owner/:repo"},checkManagesRepoLegacy:{deprecated:"octokit.teams.checkManagesRepoLegacy() is deprecated, see https://developer.github.com/v3/teams/#check-if-a-team-manages-a-repository-legacy",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:{deprecated:"octokit.teams.createDiscussion() has been renamed to octokit.teams.createDiscussionLegacy() (2020-01-16)",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:{deprecated:"octokit.teams.createDiscussionComment() has been renamed to octokit.teams.createDiscussionCommentLegacy() (2020-01-16)",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"},createDiscussionCommentInOrg:{method:"POST",params:{body:{required:true,type:"string"},discussion_number:{required:true,type:"integer"},org:{required:true,type:"string"},team_slug:{required:true,type:"string"}},url:"/orgs/:org/teams/:team_slug/discussions/:discussion_number/comments"},createDiscussionCommentLegacy:{deprecated:"octokit.teams.createDiscussionCommentLegacy() is deprecated, see https://developer.github.com/v3/teams/discussion_comments/#create-a-comment-legacy",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"},createDiscussionInOrg:{method:"POST",params:{body:{required:true,type:"string"},org:{required:true,type:"string"},private:{type:"boolean"},team_slug:{required:true,type:"string"},title:{required:true,type:"string"}},url:"/orgs/:org/teams/:team_slug/discussions"},createDiscussionLegacy:{deprecated:"octokit.teams.createDiscussionLegacy() is deprecated, see https://developer.github.com/v3/teams/discussions/#create-a-discussion-legacy",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"},delete:{deprecated:"octokit.teams.delete() has been renamed to octokit.teams.deleteLegacy() (2020-01-16)",method:"DELETE",params:{team_id:{required:true,type:"integer"}},url:"/teams/:team_id"},deleteDiscussion:{deprecated:"octokit.teams.deleteDiscussion() has been renamed to octokit.teams.deleteDiscussionLegacy() (2020-01-16)",method:"DELETE",params:{discussion_number:{required:true,type:"integer"},team_id:{required:true,type:"integer"}},url:"/teams/:team_id/discussions/:discussion_number"},deleteDiscussionComment:{deprecated:"octokit.teams.deleteDiscussionComment() has been renamed to octokit.teams.deleteDiscussionCommentLegacy() (2020-01-16)",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"},deleteDiscussionCommentInOrg:{method:"DELETE",params:{comment_number:{required:true,type:"integer"},discussion_number:{required:true,type:"integer"},org:{required:true,type:"string"},team_slug:{required:true,type:"string"}},url:"/orgs/:org/teams/:team_slug/discussions/:discussion_number/comments/:comment_number"},deleteDiscussionCommentLegacy:{deprecated:"octokit.teams.deleteDiscussionCommentLegacy() is deprecated, see https://developer.github.com/v3/teams/discussion_comments/#delete-a-comment-legacy",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"},deleteDiscussionInOrg:{method:"DELETE",params:{discussion_number:{required:true,type:"integer"},org:{required:true,type:"string"},team_slug:{required:true,type:"string"}},url:"/orgs/:org/teams/:team_slug/discussions/:discussion_number"},deleteDiscussionLegacy:{deprecated:"octokit.teams.deleteDiscussionLegacy() is deprecated, see https://developer.github.com/v3/teams/discussions/#delete-a-discussion-legacy",method:"DELETE",params:{discussion_number:{required:true,type:"integer"},team_id:{required:true,type:"integer"}},url:"/teams/:team_id/discussions/:discussion_number"},deleteInOrg:{method:"DELETE",params:{org:{required:true,type:"string"},team_slug:{required:true,type:"string"}},url:"/orgs/:org/teams/:team_slug"},deleteLegacy:{deprecated:"octokit.teams.deleteLegacy() is deprecated, see https://developer.github.com/v3/teams/#delete-team-legacy",method:"DELETE",params:{team_id:{required:true,type:"integer"}},url:"/teams/:team_id"},get:{deprecated:"octokit.teams.get() has been renamed to octokit.teams.getLegacy() (2020-01-16)",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:{deprecated:"octokit.teams.getDiscussion() has been renamed to octokit.teams.getDiscussionLegacy() (2020-01-16)",method:"GET",params:{discussion_number:{required:true,type:"integer"},team_id:{required:true,type:"integer"}},url:"/teams/:team_id/discussions/:discussion_number"},getDiscussionComment:{deprecated:"octokit.teams.getDiscussionComment() has been renamed to octokit.teams.getDiscussionCommentLegacy() (2020-01-16)",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"},getDiscussionCommentInOrg:{method:"GET",params:{comment_number:{required:true,type:"integer"},discussion_number:{required:true,type:"integer"},org:{required:true,type:"string"},team_slug:{required:true,type:"string"}},url:"/orgs/:org/teams/:team_slug/discussions/:discussion_number/comments/:comment_number"},getDiscussionCommentLegacy:{deprecated:"octokit.teams.getDiscussionCommentLegacy() is deprecated, see https://developer.github.com/v3/teams/discussion_comments/#get-a-single-comment-legacy",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"},getDiscussionInOrg:{method:"GET",params:{discussion_number:{required:true,type:"integer"},org:{required:true,type:"string"},team_slug:{required:true,type:"string"}},url:"/orgs/:org/teams/:team_slug/discussions/:discussion_number"},getDiscussionLegacy:{deprecated:"octokit.teams.getDiscussionLegacy() is deprecated, see https://developer.github.com/v3/teams/discussions/#get-a-single-discussion-legacy",method:"GET",params:{discussion_number:{required:true,type:"integer"},team_id:{required:true,type:"integer"}},url:"/teams/:team_id/discussions/:discussion_number"},getLegacy:{deprecated:"octokit.teams.getLegacy() is deprecated, see https://developer.github.com/v3/teams/#get-team-legacy",method:"GET",params:{team_id:{required:true,type:"integer"}},url:"/teams/:team_id"},getMember:{deprecated:"octokit.teams.getMember() has been renamed to octokit.teams.getMemberLegacy() (2020-01-16)",method:"GET",params:{team_id:{required:true,type:"integer"},username:{required:true,type:"string"}},url:"/teams/:team_id/members/:username"},getMemberLegacy:{deprecated:"octokit.teams.getMemberLegacy() is deprecated, see https://developer.github.com/v3/teams/members/#get-team-member-legacy",method:"GET",params:{team_id:{required:true,type:"integer"},username:{required:true,type:"string"}},url:"/teams/:team_id/members/:username"},getMembership:{deprecated:"octokit.teams.getMembership() has been renamed to octokit.teams.getMembershipLegacy() (2020-01-16)",method:"GET",params:{team_id:{required:true,type:"integer"},username:{required:true,type:"string"}},url:"/teams/:team_id/memberships/:username"},getMembershipInOrg:{method:"GET",params:{org:{required:true,type:"string"},team_slug:{required:true,type:"string"},username:{required:true,type:"string"}},url:"/orgs/:org/teams/:team_slug/memberships/:username"},getMembershipLegacy:{deprecated:"octokit.teams.getMembershipLegacy() is deprecated, see https://developer.github.com/v3/teams/members/#get-team-membership-legacy",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:{deprecated:"octokit.teams.listChild() has been renamed to octokit.teams.listChildLegacy() (2020-01-16)",method:"GET",params:{page:{type:"integer"},per_page:{type:"integer"},team_id:{required:true,type:"integer"}},url:"/teams/:team_id/teams"},listChildInOrg:{method:"GET",params:{org:{required:true,type:"string"},page:{type:"integer"},per_page:{type:"integer"},team_slug:{required:true,type:"string"}},url:"/orgs/:org/teams/:team_slug/teams"},listChildLegacy:{deprecated:"octokit.teams.listChildLegacy() is deprecated, see https://developer.github.com/v3/teams/#list-child-teams-legacy",method:"GET",params:{page:{type:"integer"},per_page:{type:"integer"},team_id:{required:true,type:"integer"}},url:"/teams/:team_id/teams"},listDiscussionComments:{deprecated:"octokit.teams.listDiscussionComments() has been renamed to octokit.teams.listDiscussionCommentsLegacy() (2020-01-16)",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"},listDiscussionCommentsInOrg:{method:"GET",params:{direction:{enum:["asc","desc"],type:"string"},discussion_number:{required:true,type:"integer"},org:{required:true,type:"string"},page:{type:"integer"},per_page:{type:"integer"},team_slug:{required:true,type:"string"}},url:"/orgs/:org/teams/:team_slug/discussions/:discussion_number/comments"},listDiscussionCommentsLegacy:{deprecated:"octokit.teams.listDiscussionCommentsLegacy() is deprecated, see https://developer.github.com/v3/teams/discussion_comments/#list-comments-legacy",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:{deprecated:"octokit.teams.listDiscussions() has been renamed to octokit.teams.listDiscussionsLegacy() (2020-01-16)",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"},listDiscussionsInOrg:{method:"GET",params:{direction:{enum:["asc","desc"],type:"string"},org:{required:true,type:"string"},page:{type:"integer"},per_page:{type:"integer"},team_slug:{required:true,type:"string"}},url:"/orgs/:org/teams/:team_slug/discussions"},listDiscussionsLegacy:{deprecated:"octokit.teams.listDiscussionsLegacy() is deprecated, see https://developer.github.com/v3/teams/discussions/#list-discussions-legacy",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:{deprecated:"octokit.teams.listMembers() has been renamed to octokit.teams.listMembersLegacy() (2020-01-16)",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"},listMembersInOrg:{method:"GET",params:{org:{required:true,type:"string"},page:{type:"integer"},per_page:{type:"integer"},role:{enum:["member","maintainer","all"],type:"string"},team_slug:{required:true,type:"string"}},url:"/orgs/:org/teams/:team_slug/members"},listMembersLegacy:{deprecated:"octokit.teams.listMembersLegacy() is deprecated, see https://developer.github.com/v3/teams/members/#list-team-members-legacy",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:{deprecated:"octokit.teams.listPendingInvitations() has been renamed to octokit.teams.listPendingInvitationsLegacy() (2020-01-16)",method:"GET",params:{page:{type:"integer"},per_page:{type:"integer"},team_id:{required:true,type:"integer"}},url:"/teams/:team_id/invitations"},listPendingInvitationsInOrg:{method:"GET",params:{org:{required:true,type:"string"},page:{type:"integer"},per_page:{type:"integer"},team_slug:{required:true,type:"string"}},url:"/orgs/:org/teams/:team_slug/invitations"},listPendingInvitationsLegacy:{deprecated:"octokit.teams.listPendingInvitationsLegacy() is deprecated, see https://developer.github.com/v3/teams/members/#list-pending-team-invitations-legacy",method:"GET",params:{page:{type:"integer"},per_page:{type:"integer"},team_id:{required:true,type:"integer"}},url:"/teams/:team_id/invitations"},listProjects:{deprecated:"octokit.teams.listProjects() has been renamed to octokit.teams.listProjectsLegacy() (2020-01-16)",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"},listProjectsInOrg:{headers:{accept:"application/vnd.github.inertia-preview+json"},method:"GET",params:{org:{required:true,type:"string"},page:{type:"integer"},per_page:{type:"integer"},team_slug:{required:true,type:"string"}},url:"/orgs/:org/teams/:team_slug/projects"},listProjectsLegacy:{deprecated:"octokit.teams.listProjectsLegacy() is deprecated, see https://developer.github.com/v3/teams/#list-team-projects-legacy",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:{deprecated:"octokit.teams.listRepos() has been renamed to octokit.teams.listReposLegacy() (2020-01-16)",method:"GET",params:{page:{type:"integer"},per_page:{type:"integer"},team_id:{required:true,type:"integer"}},url:"/teams/:team_id/repos"},listReposInOrg:{method:"GET",params:{org:{required:true,type:"string"},page:{type:"integer"},per_page:{type:"integer"},team_slug:{required:true,type:"string"}},url:"/orgs/:org/teams/:team_slug/repos"},listReposLegacy:{deprecated:"octokit.teams.listReposLegacy() is deprecated, see https://developer.github.com/v3/teams/#list-team-repos-legacy",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() has been renamed to octokit.teams.removeMemberLegacy() (2020-01-16)",method:"DELETE",params:{team_id:{required:true,type:"integer"},username:{required:true,type:"string"}},url:"/teams/:team_id/members/:username"},removeMemberLegacy:{deprecated:"octokit.teams.removeMemberLegacy() is deprecated, see https://developer.github.com/v3/teams/members/#remove-team-member-legacy",method:"DELETE",params:{team_id:{required:true,type:"integer"},username:{required:true,type:"string"}},url:"/teams/:team_id/members/:username"},removeMembership:{deprecated:"octokit.teams.removeMembership() has been renamed to octokit.teams.removeMembershipLegacy() (2020-01-16)",method:"DELETE",params:{team_id:{required:true,type:"integer"},username:{required:true,type:"string"}},url:"/teams/:team_id/memberships/:username"},removeMembershipInOrg:{method:"DELETE",params:{org:{required:true,type:"string"},team_slug:{required:true,type:"string"},username:{required:true,type:"string"}},url:"/orgs/:org/teams/:team_slug/memberships/:username"},removeMembershipLegacy:{deprecated:"octokit.teams.removeMembershipLegacy() is deprecated, see https://developer.github.com/v3/teams/members/#remove-team-membership-legacy",method:"DELETE",params:{team_id:{required:true,type:"integer"},username:{required:true,type:"string"}},url:"/teams/:team_id/memberships/:username"},removeProject:{deprecated:"octokit.teams.removeProject() has been renamed to octokit.teams.removeProjectLegacy() (2020-01-16)",method:"DELETE",params:{project_id:{required:true,type:"integer"},team_id:{required:true,type:"integer"}},url:"/teams/:team_id/projects/:project_id"},removeProjectInOrg:{method:"DELETE",params:{org:{required:true,type:"string"},project_id:{required:true,type:"integer"},team_slug:{required:true,type:"string"}},url:"/orgs/:org/teams/:team_slug/projects/:project_id"},removeProjectLegacy:{deprecated:"octokit.teams.removeProjectLegacy() is deprecated, see https://developer.github.com/v3/teams/#remove-team-project-legacy",method:"DELETE",params:{project_id:{required:true,type:"integer"},team_id:{required:true,type:"integer"}},url:"/teams/:team_id/projects/:project_id"},removeRepo:{deprecated:"octokit.teams.removeRepo() has been renamed to octokit.teams.removeRepoLegacy() (2020-01-16)",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"},removeRepoInOrg:{method:"DELETE",params:{org:{required:true,type:"string"},owner:{required:true,type:"string"},repo:{required:true,type:"string"},team_slug:{required:true,type:"string"}},url:"/orgs/:org/teams/:team_slug/repos/:owner/:repo"},removeRepoLegacy:{deprecated:"octokit.teams.removeRepoLegacy() is deprecated, see https://developer.github.com/v3/teams/#remove-team-repository-legacy",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:{deprecated:"octokit.teams.reviewProject() has been renamed to octokit.teams.reviewProjectLegacy() (2020-01-16)",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"},reviewProjectInOrg:{headers:{accept:"application/vnd.github.inertia-preview+json"},method:"GET",params:{org:{required:true,type:"string"},project_id:{required:true,type:"integer"},team_slug:{required:true,type:"string"}},url:"/orgs/:org/teams/:team_slug/projects/:project_id"},reviewProjectLegacy:{deprecated:"octokit.teams.reviewProjectLegacy() is deprecated, see https://developer.github.com/v3/teams/#review-a-team-project-legacy",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:{deprecated:"octokit.teams.update() has been renamed to octokit.teams.updateLegacy() (2020-01-16)",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:{deprecated:"octokit.teams.updateDiscussion() has been renamed to octokit.teams.updateDiscussionLegacy() (2020-01-16)",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:{deprecated:"octokit.teams.updateDiscussionComment() has been renamed to octokit.teams.updateDiscussionCommentLegacy() (2020-01-16)",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"},updateDiscussionCommentInOrg:{method:"PATCH",params:{body:{required:true,type:"string"},comment_number:{required:true,type:"integer"},discussion_number:{required:true,type:"integer"},org:{required:true,type:"string"},team_slug:{required:true,type:"string"}},url:"/orgs/:org/teams/:team_slug/discussions/:discussion_number/comments/:comment_number"},updateDiscussionCommentLegacy:{deprecated:"octokit.teams.updateDiscussionCommentLegacy() is deprecated, see https://developer.github.com/v3/teams/discussion_comments/#edit-a-comment-legacy",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"},updateDiscussionInOrg:{method:"PATCH",params:{body:{type:"string"},discussion_number:{required:true,type:"integer"},org:{required:true,type:"string"},team_slug:{required:true,type:"string"},title:{type:"string"}},url:"/orgs/:org/teams/:team_slug/discussions/:discussion_number"},updateDiscussionLegacy:{deprecated:"octokit.teams.updateDiscussionLegacy() is deprecated, see https://developer.github.com/v3/teams/discussions/#edit-a-discussion-legacy",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"},updateInOrg:{method:"PATCH",params:{description:{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"},team_slug:{required:true,type:"string"}},url:"/orgs/:org/teams/:team_slug"},updateLegacy:{deprecated:"octokit.teams.updateLegacy() is deprecated, see https://developer.github.com/v3/teams/#edit-team-legacy",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"}},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:{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"}}};const s="2.4.0";function registerEndpoints(e,t){Object.keys(t).forEach(r=>{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]=Object.assign(function deprecatedEndpointMethod(){e.log.warn(new n.Deprecation(`[@octokit/rest] ${s.deprecated}`));e[r][i]=a;return a.apply(null,arguments)},a);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.Deprecation(`[@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}function restEndpointMethods(e){e.registerEndpoints=registerEndpoints.bind(null,e);registerEndpoints(e,i);[["gitdata","git"],["authorization","oauthAuthorizations"],["pullRequests","pulls"]].forEach(([t,r])=>{Object.defineProperty(e,t,{get(){e.log.warn(new n.Deprecation(`[@octokit/plugin-rest-endpoint-methods] "octokit.${t}.*" methods are deprecated, use "octokit.${r}.*" instead`));return e[r]}})});return{}}restEndpointMethods.VERSION=s;t.restEndpointMethods=restEndpointMethods},847:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:true});t.warn=warn;t.warnFileDeprecation=warnFileDeprecation;t.warnOptionDeprecation=warnOptionDeprecation;function warn(e,t){if(global&&global._YAML_SILENCE_WARNINGS)return;const{emitWarning:r}=global&&global.process;if(r)r(e,t);else{console.warn(t?`${t}: ${e}`:e)}}function warnFileDeprecation(e){if(global&&global._YAML_SILENCE_DEPRECATION_WARNINGS)return;const t=e.replace(/.*yaml[\/\\]/i,"").replace(/\.js$/,"").replace(/\\/g,"/");warn(`The endpoint 'yaml/${t}' will be removed in a future release.`,"DeprecationWarning")}const r={};function warnOptionDeprecation(e,t){if(global&&global._YAML_SILENCE_DEPRECATION_WARNINGS)return;if(r[e])return;r[e]=true;let n=`The option '${e}' will be removed in a future release`;n+=t?`, use '${t}' instead.`:".";warn(n,"DeprecationWarning")}},850:function(e,t,r){e.exports=paginationMethodsPlugin;function paginationMethodsPlugin(e){e.getFirstPage=r(777).bind(null,e);e.getLastPage=r(649).bind(null,e);e.getNextPage=r(397).bind(null,e);e.getPreviousPage=r(563).bind(null,e);e.hasFirstPage=r(536);e.hasLastPage=r(336);e.hasNextPage=r(929);e.hasPreviousPage=r(558)}},854:function(e){var t="Expected a function";var r="__lodash_hash_undefined__";var n=1/0;var i="[object Function]",s="[object GeneratorFunction]",o="[object Symbol]";var a=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,u=/^\w*$/,p=/^\./,c=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g;var l=/[\\^$.*+?()[\]{}|]/g;var d=/\\(\\)?/g;var g=/^\[object .+?Constructor\]$/;var m=typeof global=="object"&&global&&global.Object===Object&&global;var f=typeof self=="object"&&self&&self.Object===Object&&self;var h=m||f||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 y=Array.prototype,b=Function.prototype,_=Object.prototype;var v=h["__core-js_shared__"];var w=function(){var e=/[^.]+$/.exec(v&&v.keys&&v.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}();var q=b.toString;var E=_.hasOwnProperty;var T=_.toString;var k=RegExp("^"+q.call(E).replace(l,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");var O=h.Symbol,S=y.splice;var j=getNative(h,"Map"),P=getNative(Object,"create");var C=O?O.prototype:undefined,A=C?C.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(++te instanceof s.default&&e.key instanceof u.default)){const r="Keys with collection values will be stringified as YAML due to JS Object restrictions. Use mapAsMap: true to avoid this.";e.warnings.push(new i.YAMLWarning(t,r))}t.resolved=c;return c}function resolveBlockSeqItems(e,t){const r=[];const s=[];for(let o=0;o{return e.auth()}).then(e=>{t.headers.authorization=i(e)})}},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:"")}},880:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:true});t.default=void 0;var n=_interopRequireDefault(r(380));var i=_interopRequireDefault(r(325));var s=_interopRequireDefault(r(515));function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}const o=(e,t)=>{if(e&&typeof e==="object"){const{tag:r}=e;if(e instanceof n.default){if(r)t[r]=true;e.items.forEach(e=>o(e,t))}else if(e instanceof i.default){o(e.key,t);o(e.value,t)}else if(e instanceof s.default){if(r)t[r]=true}}return t};var a=e=>Object.keys(o(e,{}));t.default=a},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=/^\./,l=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g;var d=/[\\^$.*+?()[\]{}|]/g;var g=/\\(\\)?/g;var m=/^\[object .+?Constructor\]$/;var f=/^(?:0|[1-9]\d*)$/;var h=typeof global=="object"&&global&&global.Object===Object&&global;var y=typeof self=="object"&&self&&self.Object===Object&&self;var b=h||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 _=Array.prototype,v=Function.prototype,w=Object.prototype;var q=b["__core-js_shared__"];var E=function(){var e=/[^.]+$/.exec(q&&q.keys&&q.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}();var T=v.toString;var k=w.hasOwnProperty;var O=w.toString;var S=RegExp("^"+T.call(k).replace(d,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");var j=b.Symbol,P=_.splice;var C=getNative(b,"Map"),A=getNative(Object,"create");var R=j?j.prototype:undefined,x=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(o.includes(t)){e[t]=r[t];return e}if(!e.variables){e.variables={}}e.variables[t]=r[t];return e},{});return e(n).then(e=>{if(e.data.errors){throw new GraphqlError(n,{data:e.data})}return e.data.data})}function withDefaults(e,t){const r=e.defaults(t);const i=(e,t)=>{return graphql(r,e,t)};return Object.assign(i,{defaults:withDefaults.bind(null,r),endpoint:n.request.endpoint})}const a=withDefaults(n.request,{headers:{"user-agent":`octokit-graphql.js/${s} ${i.getUserAgent()}`},method:"POST",url:"/graphql"});function withCustomRequest(e){return withDefaults(e,{method:"POST",url:"/graphql"})}t.graphql=a;t.withCustomRequest=withCustomRequest},906:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:true});t.default=void 0;var n=r(49);var i=r(405);var s=_interopRequireDefault(r(794));var o=_interopRequireDefault(r(974));var a=_interopRequireDefault(r(19));function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}class CollectionItem extends o.default{constructor(e,t){super(e,t);this.node=null}get includesTrailingLines(){return!!this.node&&this.node.includesTrailingLines}parse(e,t){this.context=e;const{parseNode:r,src:u}=e;let{atLineStart:p,lineStart:c}=e;if(!p&&this.type===n.Type.SEQ_ITEM)this.error=new i.YAMLSemanticError(this,"Sequence items must not have preceding content on the same line");const l=p?t-c:e.indent;let d=o.default.endOfWhiteSpace(u,t+1);let g=u[d];const m=g==="#";const f=[];let h=null;while(g==="\n"||g==="#"){if(g==="#"){const e=o.default.endOfLine(u,d+1);f.push(new a.default(d,e));d=e}else{p=true;c=d+1;const e=o.default.endOfWhiteSpace(u,c);if(u[e]==="\n"&&f.length===0){h=new s.default;c=h.parse({src:u},c)}d=o.default.endOfIndent(u,c)}g=u[d]}if(o.default.nextNodeIsIndented(g,d-(c+l),this.type!==n.Type.SEQ_ITEM)){this.node=r({atLineStart:p,inCollection:false,indent:l,lineStart:c,parent:this},d)}else if(g&&c>t+1){d=c-1}if(this.node){if(h){const t=e.parent.items||e.parent.contents;if(t)t.push(h)}if(f.length)Array.prototype.push.apply(this.props,f);d=this.node.range.end}else{if(m){const e=f[0];this.props.push(e);d=e.end}else{d=o.default.endOfLine(u,t+1)}}const y=this.node?this.node.valueRange.end:d;this.valueRange=new a.default(t,y);return d}setOrigRanges(e,t){t=super.setOrigRanges(e,t);return this.node?this.node.setOrigRanges(e,t):t}toString(){const{context:{src:e},node:t,range:r,value:n}=this;if(n!=null)return n;const i=t?e.slice(r.start,t.range.start)+String(t):e.slice(r.start,r.end);return o.default.addStringTerminator(e,r.end,i)}}t.default=CollectionItem},916:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:true});const r="1.0.0";function requestLog(e){e.hook.wrap("request",(t,r)=>{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})})}requestLog.VERSION=r;t.requestLog=requestLog},923:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:true});t.default=toJSON;function toJSON(e,t,r){if(Array.isArray(e))return e.map((e,t)=>toJSON(e,String(t),r));if(e&&typeof e.toJSON==="function"){const n=r&&r.anchors&&r.anchors.find(t=>t.node===e);if(n)r.onCreate=(e=>{n.res=e;delete r.onCreate});const i=e.toJSON(t,r);if(n&&r.onCreate)r.onCreate(i);return i}return e}},928:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:true});t.default=void 0;var n=r(49);var i=r(405);var s=_interopRequireDefault(r(794));var o=r(954);var a=_interopRequireDefault(r(487));var u=_interopRequireDefault(r(641));var p=_interopRequireDefault(r(974));var c=_interopRequireDefault(r(19));function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}class Document extends p.default{static startCommentOrEndBlankLine(e,t){const r=p.default.endOfWhiteSpace(e,t);const n=e[r];return n==="#"||n==="\n"?r:t}constructor(){super(n.Type.DOCUMENT);this.directives=null;this.contents=null;this.directivesEndMarker=null;this.documentEndMarker=null}parseDirectives(e){const{src:t}=this.context;this.directives=[];let r=true;let o=false;let l=e;while(!p.default.atDocumentBoundary(t,l,n.Char.DIRECTIVES_END)){l=Document.startCommentOrEndBlankLine(t,l);switch(t[l]){case"\n":if(r){const e=new s.default;l=e.parse({src:t},l);if(l0){this.contents=this.directives;this.directives=[]}return l}}if(t[l]){this.directivesEndMarker=new c.default(l,l+3);return l+3}if(o){this.error=new i.YAMLSemanticError(this,"Missing directives-end indicator line")}else if(this.directives.length>0){this.contents=this.directives;this.directives=[]}return l}parseContents(e){const{parseNode:t,src:r}=this.context;if(!this.contents)this.contents=[];let u=e;while(r[u-1]==="-")u-=1;let l=p.default.endOfWhiteSpace(r,e);let d=u===e;this.valueRange=new c.default(l);while(!p.default.atDocumentBoundary(r,l,n.Char.DOCUMENT_END)){switch(r[l]){case"\n":if(d){const e=new s.default;l=e.parse({src:r},l);if(l{t=r.setOrigRanges(e,t)});if(this.directivesEndMarker)t=this.directivesEndMarker.setOrigRange(e,t);this.contents.forEach(r=>{t=r.setOrigRanges(e,t)});if(this.documentEndMarker)t=this.documentEndMarker.setOrigRange(e,t);return t}toString(){const{contents:e,directives:t,value:r}=this;if(r!=null)return r;let i=t.join("");if(e.length>0){if(t.length>0||e[0].type===n.Type.COMMENT)i+="---\n";i+=e.join("")}if(i[i.length-1]!=="\n")i+="\n";return i}}t.default=Document},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}},948:function(e){"use strict";e.exports=function(e){try{return e()}catch(e){}}},950:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:true});const n=r(835);function getProxyUrl(e){let t=e.protocol==="https:";let r;if(checkBypass(e)){return r}let i;if(t){i=process.env["https_proxy"]||process.env["HTTPS_PROXY"]}else{i=process.env["http_proxy"]||process.env["HTTP_PROXY"]}if(i){r=n.parse(i)}return r}t.getProxyUrl=getProxyUrl;function checkBypass(e){if(!e.hostname){return false}let t=process.env["no_proxy"]||process.env["NO_PROXY"]||"";if(!t){return false}let r;if(e.port){r=Number(e.port)}else if(e.protocol==="http:"){r=80}else if(e.protocol==="https:"){r=443}let n=[e.hostname.toUpperCase()];if(typeof r==="number"){n.push(`${n[0]}:${r}`)}for(let e of t.split(",").map(e=>e.trim().toUpperCase()).filter(e=>e)){if(n.some(t=>t===e)){return true}}return false}t.checkBypass=checkBypass},954:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:true});t.grabCollectionEndComments=grabCollectionEndComments;t.default=void 0;var n=r(49);var i=_interopRequireDefault(r(794));var s=_interopRequireDefault(r(906));var o=_interopRequireDefault(r(487));var a=_interopRequireDefault(r(974));var u=_interopRequireDefault(r(19));function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}function grabCollectionEndComments(e){let t=e;while(t instanceof s.default)t=t.node;if(!(t instanceof Collection))return null;const r=t.items.length;let i=-1;for(let e=r-1;e>=0;--e){const r=t.items[e];if(r.type===n.Type.COMMENT){const{indent:t,lineStart:n}=r.context;if(t>0&&r.range.start>=n+t)break;i=e}else if(r.type===n.Type.BLANK_LINE)i=e;else break}if(i===-1)return null;const o=t.items.splice(i,r-i);const a=o[0].range.start;while(true){t.range.end=a;if(t.valueRange&&t.valueRange.end>a)t.valueRange.end=a;if(t===e)break;t=t.context.parent}return o}class Collection extends a.default{static nextContentHasIndent(e,t,r){const n=a.default.endOfLine(e,t)+1;t=a.default.endOfWhiteSpace(e,n);const i=e[t];if(!i)return false;if(t>=n+r)return true;if(i!=="#"&&i!=="\n")return false;return Collection.nextContentHasIndent(e,t,r)}constructor(e){super(e.type===n.Type.SEQ_ITEM?n.Type.SEQ:n.Type.MAP);for(let t=e.props.length-1;t>=0;--t){if(e.props[t].start0}parse(e,t){this.context=e;const{parseNode:r,src:s}=e;let p=a.default.startOfLine(s,t);const c=this.items[0];c.context.parent=this;this.valueRange=u.default.copy(c.valueRange);const l=c.range.start-c.context.lineStart;let d=t;d=a.default.normalizeOffset(s,d);let g=s[d];let m=a.default.endOfWhiteSpace(s,p)===d;let f=false;while(g){while(g==="\n"||g==="#"){if(m&&g==="\n"&&!f){const e=new i.default;d=e.parse({src:s},d);this.valueRange.end=d;if(d>=s.length){g=null;break}this.items.push(e);d-=1}else if(g==="#"){if(d=s.length){g=null;break}}p=d+1;d=a.default.endOfIndent(s,p);if(a.default.atBlank(s,d)){const e=a.default.endOfWhiteSpace(s,d);const t=s[e];if(!t||t==="\n"||t==="#"){d=e}}g=s[d];m=true}if(!g){break}if(d!==p+l&&(m||g!==":")){if(p>t)d=p;break}if(c.type===n.Type.SEQ_ITEM!==(g==="-")){let e=true;if(g==="-"){const t=s[d+1];e=!t||t==="\n"||t==="\t"||t===" "}if(e){if(p>t)d=p;break}}const e=r({atLineStart:m,inCollection:true,indent:l,lineStart:p,parent:this},d);if(!e)return d;this.items.push(e);this.valueRange.end=e.valueRange.end;d=a.default.normalizeOffset(s,e.range.end);g=s[d];m=false;f=e.includesTrailingLines;if(g){let e=d-1;let t=s[e];while(t===" "||t==="\t")t=s[--e];if(t==="\n"){p=e+1;m=true}}const u=grabCollectionEndComments(e);if(u)Array.prototype.push.apply(this.items,u)}return d}setOrigRanges(e,t){t=super.setOrigRanges(e,t);this.items.forEach(r=>{t=r.setOrigRanges(e,t)});return t}toString(){const{context:{src:e},items:t,range:r,value:n}=this;if(n!=null)return n;let i=e.slice(r.start,t[0].range.start)+String(t[0]);for(let e=1;e{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?d(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 d;try{d=i.spawn(n.cmd,n.args,n.opts)}catch(e){return Promise.reject(e)}let g;if(n.opts.cleanup){g=l(()=>{d.kill()})}let m=null;let f=false;const h=()=>{if(m){clearTimeout(m);m=null}if(g){g()}};if(n.opts.timeout>0){m=setTimeout(()=>{m=null;f=true;d.kill(n.opts.killSignal)},n.opts.timeout)}const y=new Promise(e=>{d.on("exit",(t,r)=>{h();e({code:t,signal:r})});d.on("error",t=>{h();e({error:t})});if(d.stdin){d.stdin.on("error",t=>{h();e({error:t})})}});function destroy(){if(d.stdout){d.stdout.destroy()}if(d.stderr){d.stderr.destroy()}}const b=()=>c(Promise.all([y,getStream(d,"stdout",{encoding:o,buffer:a,maxBuffer:u}),getStream(d,"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:f});e.killed=e.killed||d.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(d,n.parsed);handleInput(d,n.opts.input);d.then=((e,t)=>b().then(e,t));d.catch=(e=>b().catch(e));return d});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))},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})},968:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:true});t.default=void 0;var n=r(49);var i=r(405);var s=_interopRequireDefault(r(856));var o=_interopRequireDefault(r(24));var a=_interopRequireDefault(r(954));var u=_interopRequireDefault(r(906));var p=_interopRequireDefault(r(185));var c=_interopRequireDefault(r(974));var l=_interopRequireDefault(r(119));var d=_interopRequireDefault(r(725));var g=_interopRequireDefault(r(411));var m=_interopRequireDefault(r(19));function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}function _defineProperty(e,t,r){if(t in e){Object.defineProperty(e,t,{value:r,enumerable:true,configurable:true,writable:true})}else{e[t]=r}return e}class ParseContext{static parseType(e,t,r){switch(e[t]){case"*":return n.Type.ALIAS;case">":return n.Type.BLOCK_FOLDED;case"|":return n.Type.BLOCK_LITERAL;case"{":return n.Type.FLOW_MAP;case"[":return n.Type.FLOW_SEQ;case"?":return!r&&c.default.atBlank(e,t+1,true)?n.Type.MAP_KEY:n.Type.PLAIN;case":":return!r&&c.default.atBlank(e,t+1,true)?n.Type.MAP_VALUE:n.Type.PLAIN;case"-":return!r&&c.default.atBlank(e,t+1,true)?n.Type.SEQ_ITEM:n.Type.PLAIN;case'"':return n.Type.QUOTE_DOUBLE;case"'":return n.Type.QUOTE_SINGLE;default:return n.Type.PLAIN}}constructor(e={},{atLineStart:t,inCollection:r,inFlow:f,indent:h,lineStart:y,parent:b}={}){_defineProperty(this,"parseNode",(e,t)=>{if(c.default.atDocumentBoundary(this.src,t))return null;const r=new ParseContext(this,e);const{props:f,type:h,valueStart:y}=r.parseProps(t);let b;switch(h){case n.Type.ALIAS:b=new s.default(h,f);break;case n.Type.BLOCK_FOLDED:case n.Type.BLOCK_LITERAL:b=new o.default(h,f);break;case n.Type.FLOW_MAP:case n.Type.FLOW_SEQ:b=new p.default(h,f);break;case n.Type.MAP_KEY:case n.Type.MAP_VALUE:case n.Type.SEQ_ITEM:b=new u.default(h,f);break;case n.Type.COMMENT:case n.Type.PLAIN:b=new l.default(h,f);break;case n.Type.QUOTE_DOUBLE:b=new d.default(h,f);break;case n.Type.QUOTE_SINGLE:b=new g.default(h,f);break;default:b.error=new i.YAMLSyntaxError(b,`Unknown node type: ${JSON.stringify(h)}`);b.range=new m.default(t,t+1);return b}let _=b.parse(r,y);b.range=new m.default(t,_);if(_<=t){b.error=new Error(`Node#parse consumed no characters`);b.error.parseEnd=_;b.error.source=b;b.range.end=t+1}if(r.nodeStartsCollection(b)){if(!b.error&&!r.atLineStart&&r.parent.type===n.Type.DOCUMENT){b.error=new i.YAMLSyntaxError(b,"Block collection must not have preceding content here (e.g. directives-end indicator)")}const e=new a.default(b);_=e.parse(new ParseContext(r),_);e.range=new m.default(t,_);return e}return b});this.atLineStart=t!=null?t:e.atLineStart||false;this.inCollection=r!=null?r:e.inCollection||false;this.inFlow=f!=null?f:e.inFlow||false;this.indent=h!=null?h:e.indent;this.lineStart=y!=null?y:e.lineStart;this.parent=b!=null?b:e.parent||{};this.root=e.root;this.src=e.src}get pretty(){const e={start:`${this.lineStart} + ${this.indent}`,in:[],parent:this.parent.type};if(!this.atLineStart)e.start+=" + N";if(this.inCollection)e.in.push("collection");if(this.inFlow)e.in.push("flow");return e}nodeStartsCollection(e){const{inCollection:t,inFlow:r,src:n}=this;if(t||r)return false;if(e instanceof u.default)return true;let i=e.range.end;if(n[i]==="\n"||n[i-1]==="\n")return false;i=c.default.endOfWhiteSpace(n,i);return n[i]===":"}parseProps(e){const{inFlow:t,parent:r,src:i}=this;const s=[];let o=false;e=c.default.endOfWhiteSpace(i,e);let a=i[e];while(a===n.Char.ANCHOR||a===n.Char.COMMENT||a===n.Char.TAG||a==="\n"){if(a==="\n"){const t=e+1;const s=c.default.endOfIndent(i,t);const a=s-(t+this.indent);const u=r.type===n.Type.SEQ_ITEM&&r.context.atLineStart;if(!c.default.nextNodeIsIndented(i[s],a,!u))break;this.atLineStart=true;this.lineStart=t;o=false;e=s}else if(a===n.Char.COMMENT){const t=c.default.endOfLine(i,e+1);s.push(new m.default(e,t));e=t}else{let t=c.default.endOfIdentifier(i,e+1);if(a===n.Char.TAG&&i[t]===","&&/^[a-zA-Z0-9-]+\.[a-zA-Z0-9-]+,\d\d\d\d(-\d\d){0,2}\/\S/.test(i.slice(e+1,t+13))){t=c.default.endOfIdentifier(i,t+5)}s.push(new m.default(e,t));o=true;e=c.default.endOfWhiteSpace(i,t)}a=i[e]}if(o&&a===":"&&c.default.atBlank(i,e+1,true))e-=1;const u=ParseContext.parseType(i,e,t);return{props:s,type:u,valueStart:e}}}t.default=ParseContext},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}},974:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:true});t.default=void 0;var n=r(49);var i=r(41);var s=_interopRequireDefault(r(19));function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}class Node{static addStringTerminator(e,t,r){if(r[r.length-1]==="\n")return r;const n=Node.endOfWhiteSpace(e,t);return n>=e.length||e[n]==="\n"?r+"\n":r}static atDocumentBoundary(e,t,r){const i=e[t];if(!i)return true;const s=e[t-1];if(s&&s!=="\n")return false;if(r){if(i!==r)return false}else{if(i!==n.Char.DIRECTIVES_END&&i!==n.Char.DOCUMENT_END)return false}const o=e[t+1];const a=e[t+2];if(o!==i||a!==i)return false;const u=e[t+3];return!u||u==="\n"||u==="\t"||u===" "}static endOfIdentifier(e,t){let r=e[t];const n=r==="<";const i=n?["\n","\t"," ",">"]:["\n","\t"," ","[","]","{","}",","];while(r&&i.indexOf(r)===-1)r=e[t+=1];if(n&&r===">")t+=1;return t}static endOfIndent(e,t){let r=e[t];while(r===" ")r=e[t+=1];return t}static endOfLine(e,t){let r=e[t];while(r&&r!=="\n")r=e[t+=1];return t}static endOfWhiteSpace(e,t){let r=e[t];while(r==="\t"||r===" ")r=e[t+=1];return t}static startOfLine(e,t){let r=e[t-1];if(r==="\n")return t;while(r&&r!=="\n")r=e[t-=1];return t+1}static endOfBlockIndent(e,t,r){const n=Node.endOfIndent(e,r);if(n>r+t){return n}else{const t=Node.endOfWhiteSpace(e,n);const r=e[t];if(!r||r==="\n")return t}return null}static atBlank(e,t,r){const n=e[t];return n==="\n"||n==="\t"||n===" "||r&&!n}static atCollectionItem(e,t){const r=e[t];return(r==="?"||r===":"||r==="-")&&Node.atBlank(e,t+1,true)}static nextNodeIsIndented(e,t,r){if(!e||t<0)return false;if(t>0)return true;return r&&e==="-"}static normalizeOffset(e,t){const r=e[t];return!r?t:r!=="\n"&&e[t-1]==="\n"?t-1:Node.endOfWhiteSpace(e,t)}static foldNewline(e,t,r){let n=0;let i=false;let s="";let o=e[t+1];while(o===" "||o==="\t"||o==="\n"){switch(o){case"\n":n=0;t+=1;s+="\n";break;case"\t":if(n<=r)i=true;t=Node.endOfWhiteSpace(e,t+2)-1;break;case" ":n+=1;t+=1;break}o=e[t+1]}if(!s)s=" ";if(o&&n<=r)i=true;return{fold:s,offset:t,error:i}}constructor(e,t,r){Object.defineProperty(this,"context",{value:r||null,writable:true});this.error=null;this.range=null;this.valueRange=null;this.props=t||[];this.type=e;this.value=null}getPropValue(e,t,r){if(!this.context)return null;const{src:n}=this.context;const i=this.props[e];return i&&n[i.start]===t?n.slice(i.start+(r?1:0),i.end):null}get anchor(){for(let e=0;e0?e.join("\n"):null}commentHasRequiredWhitespace(e){const{src:t}=this.context;if(this.header&&e===this.header.end)return false;if(!this.valueRange)return false;const{end:r}=this.valueRange;return e!==r||Node.atBlank(t,r-1)}get hasComment(){if(this.context){const{src:e}=this.context;for(let t=0;tr.setOrigRange(e,t));return t}toString(){const{context:{src:e},range:t,value:r}=this;if(r!=null)return r;const n=e.slice(t.start,t.end);return Node.addStringTerminator(e,t.end,n)}}t.default=Node},988:function(e,t,r){e.exports=r(141)},996:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:true});t.default=void 0;var n=r(49);var i=r(405);var s=r(454);var o=r(591);var a=r(422);var u={identify:e=>e instanceof Uint8Array,default:false,tag:"tag:yaml.org,2002:binary",resolve:(e,t)=>{if(typeof Buffer==="function"){const r=(0,o.resolveString)(e,t);return Buffer.from(r,"base64")}else if(typeof atob==="function"){const r=atob((0,o.resolveString)(e,t));const n=new Uint8Array(r.length);for(let e=0;e{let p;if(typeof Buffer==="function"){p=r instanceof Buffer?r.toString("base64"):Buffer.from(r.buffer).toString("base64")}else if(typeof btoa==="function"){let e="";for(let t=0;t ParsedResult | void = () => { + const resolveTicketIdsScript = core.getInput("resolve-ticket-ids-script"); + + const resolveTicketIdsFunc = + resolveTicketIdsScript !== "" + ? new AsyncFunction("branchName", resolveTicketIdsScript) + : undefined; + let jiraConfig: Partial = {}; jiraConfig.jiraIssueId = core.getInput("jira-issue-id"); try { @@ -15,20 +24,18 @@ const getArgs: () => ParsedResult | void = () => { const { jiraAccount, jiraEndpoint, jiraIssueId, jiraToken } = jiraConfig; - if (!jiraIssueId || jiraIssueId === "") { + if ((!jiraIssueId || jiraIssueId === "") && !resolveTicketIdsFunc) { return { exit: true, success: false, - message: "Jira issue id not found, exiting...", + message: "Jira issue id and ticket id resolver not found, exiting...", parsedInput: undefined }; } - Array.from([jiraAccount, jiraEndpoint, jiraIssueId, jiraToken]).forEach( - value => { - if (value === "" || !value) throw new Error(""); - } - ); + Array.from([jiraAccount, jiraEndpoint, jiraToken]).forEach(value => { + if (value === "" || !value) throw new Error(""); + }); } catch (error) { console.log(`Missing input, using config file instead...`); const { @@ -73,7 +80,8 @@ const getArgs: () => ParsedResult | void = () => { jiraIssueNumber, jiraTokenEncoded: Buffer.from(`${jiraAccount}:${jiraToken}`).toString( "base64" - ) + ), + resolveTicketIdsFunc } }; }; diff --git a/src/handlers.ts b/src/handlers.ts index df710a0..e20b5e2 100644 --- a/src/handlers.ts +++ b/src/handlers.ts @@ -1,14 +1,15 @@ import { JiraClient } from "./jira"; import { HandleTransitionParams } from "./interfaces"; -import { warning } from "@actions/core"; +import { warning, info } from "@actions/core"; -const handleTransitionIssue = async ({ +const transitionIssue = async ({ jiraTokenEncoded, jiraEndpoint, jiraIssueId, colName }: HandleTransitionParams) => { const jira = new JiraClient(jiraTokenEncoded); + const issueDetail = await jira.request( `${jiraEndpoint}/rest/api/3/issue/${jiraIssueId}` ); @@ -19,9 +20,9 @@ const handleTransitionIssue = async ({ } = issueDetail; if (name === colName) { warning(` - The issue ${jiraIssueId} is already in status ${colName}. - Action will exit without doing anything. - `); + The issue ${jiraIssueId} is already in status ${colName}. + Action will exit without doing anything. + `); } else { const availableTransitions = await jira.request( `${jiraEndpoint}/rest/api/3/issue/${jiraIssueId}/transitions` @@ -31,11 +32,12 @@ const handleTransitionIssue = async ({ )?.id; if (!transitionId) throw new Error(` - There was an error trying to transition issue ${jiraIssueId}: - Transition to status "${colName}" cannot be found. - Check all of the transitions' rules, conditions of yourr project's workflow. - See more: https://confluence.atlassian.com/adminjiraserver073/working-with-workflows-861253510.html - `); + There was an error trying to transition issue ${jiraIssueId}: + Transition to status "${colName}" cannot be found. + Check all of the transitions' rules, conditions of yourr project's workflow. + See more: https://confluence.atlassian.com/adminjiraserver073/working-with-workflows-861253510.html + `); + info(`Changing issue ${jiraIssueId} to ${colName}`); await jira.request( `${jiraEndpoint}/rest/api/3/issue/${jiraIssueId}/transitions`, "POST", @@ -44,4 +46,25 @@ const handleTransitionIssue = async ({ } }; +const handleTransitionIssue = async ({ + resolveTicketIdsFunc, + branchName, + ...rest +}: HandleTransitionParams) => { + if (resolveTicketIdsFunc && branchName) { + const result = await resolveTicketIdsFunc(branchName); + if (Array.isArray(result)) { + result.forEach(ticketId => { + transitionIssue({ ...rest, jiraIssueId: ticketId }); + }); + } else if (typeof result === "string") { + transitionIssue({ ...rest, jiraIssueId: result }); + } else { + transitionIssue({ ...rest }); + } + } else { + transitionIssue({ ...rest }); + } +}; + export { handleTransitionIssue }; diff --git a/src/index.ts b/src/index.ts index 48c7c6d..d09b38a 100644 --- a/src/index.ts +++ b/src/index.ts @@ -17,23 +17,33 @@ async function run() { const context = github.context; const { repo: { owner, repo }, - payload: { action }, + payload, eventName } = context; - if (eventName === "pull_request" && action === "review_requested") { - core.info( - `Changing issue ${parsedInput.jiraIssueId} to ${parsedInput.columnToMoveToWhenReviewRequested}` - ); + if ( + eventName === "pull_request" && + payload.action === "review_requested" + ) { + const { + pull_request: { + head: { ref } + } + } = payload as Webhooks.WebhookPayloadPullRequest; + core.info(`Branch name: ${ref}`); await handleTransitionIssue({ ...parsedInput, - colName: parsedInput.columnToMoveToWhenReviewRequested + colName: parsedInput.columnToMoveToWhenReviewRequested, + branchName: ref }); } else if ( eventName === "pull_request_review" && - action === "submitted" + payload.action === "submitted" ) { const { - pull_request: { number }, + pull_request: { + number, + head: { ref } + }, review: { id } } = context.payload as Webhooks.WebhookPayloadPullRequestReview; const { githubToken } = parsedInput; @@ -43,25 +53,26 @@ async function run() { review_id: id }); if (isRequestChange) { - core.info( - `Changing issue ${parsedInput.jiraIssueId} to ${parsedInput.columnToMoveToWhenChangesRequested}` - ); + core.info(`Branch name: ${ref}`); await handleTransitionIssue({ ...parsedInput, - colName: parsedInput.columnToMoveToWhenChangesRequested + colName: parsedInput.columnToMoveToWhenChangesRequested, + branchName: ref }); } - } else if (eventName === "pull_request" && action === "closed") { + } else if (eventName === "pull_request" && payload.action === "closed") { const { - merged - } = (context.payload as Webhooks.WebhookPayloadPullRequest).pull_request; + pull_request: { + merged, + head: { ref } + } + } = payload as Webhooks.WebhookPayloadPullRequest; if (merged && parsedInput.columnToMoveToWhenMerged) { - core.info( - `Changing issue ${parsedInput.jiraIssueId} to ${parsedInput.columnToMoveToWhenMerged}` - ); + core.info(`Branch name: ${ref}`); await handleTransitionIssue({ ...parsedInput, - colName: parsedInput.columnToMoveToWhenMerged + colName: parsedInput.columnToMoveToWhenMerged, + branchName: ref }); } } diff --git a/src/interfaces.ts b/src/interfaces.ts index 85270e4..0ce3cfa 100644 --- a/src/interfaces.ts +++ b/src/interfaces.ts @@ -11,6 +11,9 @@ interface _Params { columnToMoveToWhenReviewRequested: string; columnToMoveToWhenChangesRequested: string; columnToMoveToWhenMerged?: string; + resolveTicketIdsFunc?: ( + branchName: string + ) => Promise; } interface AdditionalJiraConfig { @@ -34,7 +37,10 @@ export interface ParsedResult { } type HandlerParams = Pick< ParsedInput, - "jiraTokenEncoded" | "jiraEndpoint" | "jiraIssueId" + "jiraTokenEncoded" | "jiraEndpoint" | "jiraIssueId" | "resolveTicketIdsFunc" >; -export type HandleTransitionParams = HandlerParams & { colName: string }; +export type HandleTransitionParams = HandlerParams & { + colName: string; + branchName?: string; +};