diff --git a/action.yml b/action.yml index f9323bc4..19c36674 100644 --- a/action.yml +++ b/action.yml @@ -38,9 +38,15 @@ inputs: a .firebaserc file" required: false channelId: + description: "The ID of the channel to deploy to. If you leave this blank, + a preview channel and its ID will be auto-generated per branch or PR." + required: false + target: description: - "The preview channel id to deploy to. If you leave this blank, an channel - id will be auto-generated per branch or PR" + "The target name of the Hosting site to deploy to. If you leave this blank, + the default target or all targets defined in the .firebaserc will be deployed to. + Refer to the Hosting docs about [multiple sites](https://firebase.google.com/docs/hosting/multisites) + for more information about deploy targets." required: false entryPoint: description: diff --git a/bin/action.min.js b/bin/action.min.js index 4140f5e6..f8fe11b1 100644 --- a/bin/action.min.js +++ b/bin/action.min.js @@ -1 +1 @@ -function e(e){return e&&"object"==typeof e&&"default"in e?e.default:e}var t=e(require("os")),r=require("fs"),i=e(r),n=e(require("path")),s=e(require("stream")),o=e(require("http")),a=e(require("url")),p=e(require("https")),u=e(require("zlib"));require("net");var c=e(require("tls")),d=e(require("events")),l=e(require("assert")),g=e(require("util")),m=e(require("crypto")),h=e(require("child_process")),y="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function f(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function b(e,t,r){return e(r={path:t,exports:{},require:function(e,t){return function(){throw new Error("Dynamic requires are not currently supported by @rollup/plugin-commonjs")}()}},r.exports),r.exports}var _=b(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.toCommandValue=function(e){return null==e?"":"string"==typeof e||e instanceof String?e:JSON.stringify(e)}}),q=b(function(e,r){var i=y&&y.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)Object.hasOwnProperty.call(e,r)&&(t[r]=e[r]);return t.default=e,t};Object.defineProperty(r,"__esModule",{value:!0});const n=i(t);function s(e,t,r){const i=new o(e,t,r);process.stdout.write(i.toString()+n.EOL)}r.issueCommand=s,r.issue=function(e,t=""){s(e,{},t)};class o{constructor(e,t,r){e||(e="missing.command"),this.command=e,this.properties=t,this.message=r}toString(){let e="::"+this.command;if(this.properties&&Object.keys(this.properties).length>0){e+=" ";let r=!0;for(const i in this.properties)if(this.properties.hasOwnProperty(i)){const n=this.properties[i];n&&(r?r=!1:e+=",",e+=`${i}=${t=n,_.toCommandValue(t).replace(/%/g,"%25").replace(/\r/g,"%0D").replace(/\n/g,"%0A").replace(/:/g,"%3A").replace(/,/g,"%2C")}`)}}var t;return e+="::"+function(e){return _.toCommandValue(e).replace(/%/g,"%25").replace(/\r/g,"%0D").replace(/\n/g,"%0A")}(this.message),e}}}),w=b(function(e,r){var n=y&&y.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)Object.hasOwnProperty.call(e,r)&&(t[r]=e[r]);return t.default=e,t};Object.defineProperty(r,"__esModule",{value:!0});const s=n(i),o=n(t);r.issueCommand=function(e,t){const r=process.env["GITHUB_"+e];if(!r)throw new Error("Unable to find environment variable for file command "+e);if(!s.existsSync(r))throw new Error("Missing file at path: "+r);s.appendFileSync(r,`${_.toCommandValue(t)}${o.EOL}`,{encoding:"utf8"})}}),v=b(function(e,r){var i=y&&y.__awaiter||function(e,t,r,i){return new(r||(r=Promise))(function(n,s){function o(e){try{p(i.next(e))}catch(e){s(e)}}function a(e){try{p(i.throw(e))}catch(e){s(e)}}function p(e){var t;e.done?n(e.value):(t=e.value,t instanceof r?t:new r(function(e){e(t)})).then(o,a)}p((i=i.apply(e,t||[])).next())})},s=y&&y.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)Object.hasOwnProperty.call(e,r)&&(t[r]=e[r]);return t.default=e,t};Object.defineProperty(r,"__esModule",{value:!0});const o=s(t),a=s(n);var p;function u(e){q.issue("error",e instanceof Error?e.toString():e)}function c(e){q.issue("group",e)}function d(){q.issue("endgroup")}!function(e){e[e.Success=0]="Success",e[e.Failure=1]="Failure"}(p=r.ExitCode||(r.ExitCode={})),r.exportVariable=function(e,t){const r=_.toCommandValue(t);if(process.env[e]=r,process.env.GITHUB_ENV){const t="_GitHubActionsFileCommandDelimeter_";w.issueCommand("ENV",`${e}<<${t}${o.EOL}${r}${o.EOL}${t}`)}else q.issueCommand("set-env",{name:e},r)},r.setSecret=function(e){q.issueCommand("add-mask",{},e)},r.addPath=function(e){process.env.GITHUB_PATH?w.issueCommand("PATH",e):q.issueCommand("add-path",{},e),process.env.PATH=`${e}${a.delimiter}${process.env.PATH}`},r.getInput=function(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()},r.setOutput=function(e,t){q.issueCommand("set-output",{name:e},t)},r.setCommandEcho=function(e){q.issue("echo",e?"on":"off")},r.setFailed=function(e){process.exitCode=p.Failure,u(e)},r.isDebug=function(){return"1"===process.env.RUNNER_DEBUG},r.debug=function(e){q.issueCommand("debug",{},e)},r.error=u,r.warning=function(e){q.issue("warning",e instanceof Error?e.toString():e)},r.info=function(e){process.stdout.write(e+o.EOL)},r.startGroup=c,r.endGroup=d,r.group=function(e,t){return i(this,void 0,void 0,function*(){let r;c(e);try{r=yield t()}finally{d()}return r})},r.saveState=function(e,t){q.issueCommand("save-state",{name:e},t)},r.getState=function(e){return process.env["STATE_"+e]||""}});function E(e){return"[object Object]"===Object.prototype.toString.call(e)}function T(e){var t,r;return!1!==E(e)&&(void 0===(t=e.constructor)||!1!==E(r=t.prototype)&&!1!==r.hasOwnProperty("isPrototypeOf"))}function k(){return"object"==typeof navigator&&"userAgent"in navigator?navigator.userAgent:"object"==typeof process&&"version"in process?`Node.js/${process.version.substr(1)} (${process.platform}; ${process.arch})`:""}function j(e,t,r){if("string"==typeof t){let[e,i]=t.split(" ");r=Object.assign(i?{method:e,url:i}:{url:e},r)}else r=Object.assign({},t);var i;r.headers=(i=r.headers)?Object.keys(i).reduce((e,t)=>(e[t.toLowerCase()]=i[t],e),{}):{};const n=function e(t,r){const i=Object.assign({},t);return Object.keys(r).forEach(n=>{T(r[n])?n in t?i[n]=e(t[n],r[n]):Object.assign(i,{[n]:r[n]}):Object.assign(i,{[n]:r[n]})}),i}(e||{},r);return 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/,"")),n}const O=/\{[^}]+\}/g;function P(e){return e.replace(/^\W+|\W+$/g,"").split(/,/)}function S(e,t){return Object.keys(e).filter(e=>!t.includes(e)).reduce((t,r)=>(t[r]=e[r],t),{})}function A(e){return e.split(/(%[0-9A-Fa-f]{2})/g).map(function(e){return/%[0-9A-Fa-f]/.test(e)||(e=encodeURI(e).replace(/%5B/g,"[").replace(/%5D/g,"]")),e}).join("")}function G(e){return encodeURIComponent(e).replace(/[!'()*]/g,function(e){return"%"+e.charCodeAt(0).toString(16).toUpperCase()})}function C(e,t,r){return t="+"===e||"#"===e?A(t):G(t),r?G(r)+"="+t:t}function R(e){return null!=e}function x(e){return";"===e||"&"===e||"?"===e}function D(e,t){var r=["+","#",".","/",";","?","&"];return e.replace(/\{([^\{\}]+)\}|([^\{\}]+)/g,function(e,i,n){if(i){let e="";const n=[];if(-1!==r.indexOf(i.charAt(0))&&(e=i.charAt(0),i=i.substr(1)),i.split(/,/g).forEach(function(r){var i=/([^:\*]*)(?::(\d+)|(\*))?/.exec(r);n.push(function(e,t,r,i){var n=e[r],s=[];if(R(n)&&""!==n)if("string"==typeof n||"number"==typeof n||"boolean"==typeof n)n=n.toString(),i&&"*"!==i&&(n=n.substring(0,parseInt(i,10))),s.push(C(t,n,x(t)?r:""));else if("*"===i)Array.isArray(n)?n.filter(R).forEach(function(e){s.push(C(t,e,x(t)?r:""))}):Object.keys(n).forEach(function(e){R(n[e])&&s.push(C(t,n[e],e))});else{const e=[];Array.isArray(n)?n.filter(R).forEach(function(r){e.push(C(t,r))}):Object.keys(n).forEach(function(r){R(n[r])&&(e.push(G(r)),e.push(C(t,n[r].toString())))}),x(t)?s.push(G(r)+"="+e.join(",")):0!==e.length&&s.push(e.join(","))}else";"===t?R(n)&&s.push(G(r)):""!==n||"&"!==t&&"?"!==t?""===n&&s.push(""):s.push(G(r)+"=");return s}(t,e,i[1],i[2]||i[3]))}),e&&"+"!==e){var s=",";return"?"===e?s="&":"#"!==e&&(s=e),(0!==n.length?e:"")+n.join(s)}return n.join(",")}return A(n)})}function L(e){let t,r=e.method.toUpperCase(),i=(e.url||"/").replace(/:([a-z]\w+)/g,"{+$1}"),n=Object.assign({},e.headers),s=S(e,["method","baseUrl","url","headers","request","mediaType"]);const o=function(e){const t=e.match(O);return t?t.map(P).reduce((e,t)=>e.concat(t),[]):[]}(i);var a;i=(a=i,{expand:D.bind(null,a)}).expand(s),/^http/.test(i)||(i=e.baseUrl+i);const p=S(s,Object.keys(e).filter(e=>o.includes(e)).concat("baseUrl"));if(!/application\/octet-stream/i.test(n.accept)&&(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(",")),e.mediaType.previews.length)){const t=n.accept.match(/[\w-]+(?=-preview)/g)||[];n.accept=t.concat(e.mediaType.previews).map(t=>`application/vnd.github.${t}-preview${e.mediaType.format?"."+e.mediaType.format:"+json"}`).join(",")}return["GET","HEAD"].includes(r)?i=function(e,t){const r=/\?/.test(e)?"&":"?",i=Object.keys(t);return 0===i.length?e:e+r+i.map(e=>"q"===e?"q="+t.q.split("+").map(encodeURIComponent).join("+"):`${e}=${encodeURIComponent(t[e])}`).join("&")}(i,p):"data"in p?t=p.data:Object.keys(p).length?t=p:n["content-length"]=0,n["content-type"]||void 0===t||(n["content-type"]="application/json; charset=utf-8"),["PATCH","PUT"].includes(r)&&void 0===t&&(t=""),Object.assign({method:r,url:i,headers:n},void 0!==t?{body:t}:null,e.request?{request:e.request}:null)}function U(e,t,r){return L(j(e,t,r))}const I=function e(t,r){const i=j(t,r),n=U.bind(null,i);return Object.assign(n,{DEFAULTS:i,defaults:e.bind(null,i),merge:j.bind(null,i),parse:L})}(null,{method:"GET",baseUrl:"https://api.github.com",headers:{accept:"application/vnd.github.v3+json","user-agent":"octokit-endpoint.js/6.0.6 "+k()},mediaType:{format:"",previews:[]}}),F=s.Readable,$=Symbol("buffer"),N=Symbol("type");class B{constructor(){this[N]="";const e=arguments[0],t=arguments[1],r=[];if(e){const t=e,i=Number(t.length);for(let e=0;e1&&void 0!==arguments[1]?arguments[1]:{},i=r.size;let n=void 0===i?0:i;var o=r.timeout;let a=void 0===o?0:o;null==e?e=null:Q(e)?e=Buffer.from(e.toString()):K(e)||Buffer.isBuffer(e)||("[object ArrayBuffer]"===Object.prototype.toString.call(e)?e=Buffer.from(e):ArrayBuffer.isView(e)?e=Buffer.from(e.buffer,e.byteOffset,e.byteLength):e instanceof s||(e=Buffer.from(String(e)))),this[z]={body:e,disturbed:!1,error:null},this.size=n,this.timeout=a,e instanceof s&&e.on("error",function(e){const r="AbortError"===e.name?e:new M(`Invalid response body while trying to fetch ${t.url}: ${e.message}`,"system",e);t[z].error=r})}function V(){var e=this;if(this[z].disturbed)return J.Promise.reject(new TypeError("body used already for: "+this.url));if(this[z].disturbed=!0,this[z].error)return J.Promise.reject(this[z].error);let t=this.body;if(null===t)return J.Promise.resolve(Buffer.alloc(0));if(K(t)&&(t=t.stream()),Buffer.isBuffer(t))return J.Promise.resolve(t);if(!(t instanceof s))return J.Promise.resolve(Buffer.alloc(0));let r=[],i=0,n=!1;return new J.Promise(function(s,o){let a;e.timeout&&(a=setTimeout(function(){n=!0,o(new M(`Response timeout while trying to fetch ${e.url} (over ${e.timeout}ms)`,"body-timeout"))},e.timeout)),t.on("error",function(t){"AbortError"===t.name?(n=!0,o(t)):o(new M(`Invalid response body while trying to fetch ${e.url}: ${t.message}`,"system",t))}),t.on("data",function(t){if(!n&&null!==t){if(e.size&&i+t.length>e.size)return n=!0,void o(new M(`content size at ${e.url} over limit: ${e.size}`,"max-size"));i+=t.length,r.push(t)}}),t.on("end",function(){if(!n){clearTimeout(a);try{s(Buffer.concat(r,i))}catch(t){o(new M(`Could not create Buffer from response body for ${e.url}: ${t.message}`,"system",t))}}})})}function Q(e){return"object"==typeof e&&"function"==typeof e.append&&"function"==typeof e.delete&&"function"==typeof e.get&&"function"==typeof e.getAll&&"function"==typeof e.has&&"function"==typeof e.set&&("URLSearchParams"===e.constructor.name||"[object URLSearchParams]"===Object.prototype.toString.call(e)||"function"==typeof e.sort)}function K(e){return"object"==typeof e&&"function"==typeof e.arrayBuffer&&"string"==typeof e.type&&"function"==typeof e.stream&&"function"==typeof e.constructor&&"string"==typeof e.constructor.name&&/^(Blob|File)$/.test(e.constructor.name)&&/^(Blob|File)$/.test(e[Symbol.toStringTag])}function Y(e){let t,r,i=e.body;if(e.bodyUsed)throw new Error("cannot clone body after it is used");return i instanceof s&&"function"!=typeof i.getBoundary&&(t=new W,r=new W,i.pipe(t),i.pipe(r),e[z].body=t,i=r),i}function X(e){return null===e?null:"string"==typeof e?"text/plain;charset=UTF-8":Q(e)?"application/x-www-form-urlencoded;charset=UTF-8":K(e)?e.type||null:Buffer.isBuffer(e)||"[object ArrayBuffer]"===Object.prototype.toString.call(e)||ArrayBuffer.isView(e)?null:"function"==typeof e.getBoundary?"multipart/form-data;boundary="+e.getBoundary():e instanceof s?null:"text/plain;charset=UTF-8"}function Z(e){const t=e.body;return null===t?0:K(t)?t.size:Buffer.isBuffer(t)?t.length:t&&"function"==typeof t.getLengthSync&&(t._lengthRetrievers&&0==t._lengthRetrievers.length||t.hasKnownLength&&t.hasKnownLength())?t.getLengthSync():null}J.prototype={get body(){return this[z].body},get bodyUsed(){return this[z].disturbed},arrayBuffer(){return V.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 V.call(this).then(function(t){return Object.assign(new B([],{type:e.toLowerCase()}),{[$]:t})})},json(){var e=this;return V.call(this).then(function(t){try{return JSON.parse(t.toString())}catch(t){return J.Promise.reject(new M(`invalid json response body at ${e.url} reason: ${t.message}`,"invalid-json"))}})},text(){return V.call(this).then(function(e){return e.toString()})},buffer(){return V.call(this)},textConverted(){var e=this;return V.call(this).then(function(t){return function(e,t){if("function"!=typeof H)throw new Error("The package `encoding` must be installed to use the textConverted() function");const r=t.get("content-type");let i,n,s="utf-8";return r&&(i=/charset=([^;]*)/i.exec(r)),n=e.slice(0,1024).toString(),!i&&n&&(i=/0&&void 0!==arguments[0]?arguments[0]:void 0;if(this[se]=Object.create(null),e instanceof oe){const t=e.raw(),r=Object.keys(t);for(const e of r)for(const r of t[e])this.append(e,r)}else if(null==e);else{if("object"!=typeof e)throw new TypeError("Provided initializer must be an object");{const t=e[Symbol.iterator];if(null!=t){if("function"!=typeof t)throw new TypeError("Header pairs must be iterable");const r=[];for(const t of e){if("object"!=typeof t||"function"!=typeof t[Symbol.iterator])throw new TypeError("Each header pair must be iterable");r.push(Array.from(t))}for(const e of r){if(2!==e.length)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))this.append(t,e[t])}}}get(e){re(e=""+e);const t=ne(this[se],e);return void 0===t?null:this[se][t].join(", ")}forEach(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:void 0,r=ae(this),i=0;for(;i1&&void 0!==arguments[1]?arguments[1]:"key+value";const r=Object.keys(e[se]).sort();return r.map("key"===t?function(e){return e.toLowerCase()}:"value"===t?function(t){return e[se][t].join(", ")}:function(t){return[t.toLowerCase(),e[se][t].join(", ")]})}oe.prototype.entries=oe.prototype[Symbol.iterator],Object.defineProperty(oe.prototype,Symbol.toStringTag,{value:"Headers",writable:!1,enumerable:!1,configurable:!0}),Object.defineProperties(oe.prototype,{get:{enumerable:!0},forEach:{enumerable:!0},set:{enumerable:!0},append:{enumerable:!0},has:{enumerable:!0},delete:{enumerable:!0},keys:{enumerable:!0},values:{enumerable:!0},entries:{enumerable:!0}});const pe=Symbol("internal");function ue(e,t){const r=Object.create(ce);return r[pe]={target:e,kind:t,index:0},r}const ce=Object.setPrototypeOf({next(){if(!this||Object.getPrototypeOf(this)!==ce)throw new TypeError("Value of `this` is not a HeadersIterator");var e=this[pe];const t=e.index,r=ae(e.target,e.kind);return t>=r.length?{value:void 0,done:!0}:(this[pe].index=t+1,{value:r[t],done:!1})}},Object.getPrototypeOf(Object.getPrototypeOf([][Symbol.iterator]())));function de(e){const t=Object.assign({__proto__:null},e[se]),r=ne(e[se],"Host");return void 0!==r&&(t[r]=t[r][0]),t}Object.defineProperty(ce,Symbol.toStringTag,{value:"HeadersIterator",writable:!1,enumerable:!1,configurable:!0});const le=Symbol("Response internals"),ge=o.STATUS_CODES;class me{constructor(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};J.call(this,e,t);const r=t.status||200,i=new oe(t.headers);if(null!=e&&!i.has("Content-Type")){const t=X(e);t&&i.append("Content-Type",t)}this[le]={url:t.url,status:r,statusText:t.statusText||ge[r],headers:i,counter:t.counter}}get url(){return this[le].url||""}get status(){return this[le].status}get ok(){return this[le].status>=200&&this[le].status<300}get redirected(){return this[le].counter>0}get statusText(){return this[le].statusText}get headers(){return this[le].headers}clone(){return new me(Y(this),{url:this.url,status:this.status,statusText:this.statusText,headers:this.headers,ok:this.ok,redirected:this.redirected})}}J.mixIn(me.prototype),Object.defineProperties(me.prototype,{url:{enumerable:!0},status:{enumerable:!0},ok:{enumerable:!0},redirected:{enumerable:!0},statusText:{enumerable:!0},headers:{enumerable:!0},clone:{enumerable:!0}}),Object.defineProperty(me.prototype,Symbol.toStringTag,{value:"Response",writable:!1,enumerable:!1,configurable:!0});const he=Symbol("Request internals"),ye=a.parse,fe=a.format,be="destroy"in s.Readable.prototype;function _e(e){return"object"==typeof e&&"object"==typeof e[he]}class qe{constructor(e){let t,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};_e(e)?t=ye(e.url):(t=ye(e&&e.href?e.href:""+e),e={});let i=r.method||e.method||"GET";if(i=i.toUpperCase(),(null!=r.body||_e(e)&&null!==e.body)&&("GET"===i||"HEAD"===i))throw new TypeError("Request with GET/HEAD method cannot have body");let n=null!=r.body?r.body:_e(e)&&null!==e.body?Y(e):null;J.call(this,n,{timeout:r.timeout||e.timeout||0,size:r.size||e.size||0});const s=new oe(r.headers||e.headers||{});if(null!=n&&!s.has("Content-Type")){const e=X(n);e&&s.append("Content-Type",e)}let o=_e(e)?e.signal:null;if("signal"in r&&(o=r.signal),null!=o&&!function(e){const t=e&&"object"==typeof e&&Object.getPrototypeOf(e);return!(!t||"AbortSignal"!==t.constructor.name)}(o))throw new TypeError("Expected signal to be an instanceof AbortSignal");this[he]={method:i,redirect:r.redirect||e.redirect||"follow",headers:s,parsedURL:t,signal:o},this.follow=void 0!==r.follow?r.follow:void 0!==e.follow?e.follow:20,this.compress=void 0!==r.compress?r.compress:void 0===e.compress||e.compress,this.counter=r.counter||e.counter||0,this.agent=r.agent||e.agent}get method(){return this[he].method}get url(){return fe(this[he].parsedURL)}get headers(){return this[he].headers}get redirect(){return this[he].redirect}get signal(){return this[he].signal}clone(){return new qe(this)}}function we(e){Error.call(this,e),this.type="aborted",this.message=e,Error.captureStackTrace(this,this.constructor)}J.mixIn(qe.prototype),Object.defineProperty(qe.prototype,Symbol.toStringTag,{value:"Request",writable:!1,enumerable:!1,configurable:!0}),Object.defineProperties(qe.prototype,{method:{enumerable:!0},url:{enumerable:!0},headers:{enumerable:!0},redirect:{enumerable:!0},clone:{enumerable:!0},signal:{enumerable:!0}}),(we.prototype=Object.create(Error.prototype)).constructor=we,we.prototype.name="AbortError";const ve=s.PassThrough,Ee=a.resolve;function Te(e,t){if(!Te.Promise)throw new Error("native promise missing, set fetch.Promise to your favorite alternative");return J.Promise=Te.Promise,new Te.Promise(function(r,i){const n=new qe(e,t),a=function(e){const t=e[he].parsedURL,r=new oe(e[he].headers);if(r.has("Accept")||r.set("Accept","*/*"),!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 s.Readable&&!be)throw new Error("Cancellation of streamed requests with AbortSignal is not supported in node < 8");let i=null;if(null==e.body&&/^(POST|PUT)$/i.test(e.method)&&(i="0"),null!=e.body){const t=Z(e);"number"==typeof t&&(i=String(t))}i&&r.set("Content-Length",i),r.has("User-Agent")||r.set("User-Agent","node-fetch/1.0 (+https://github.com/bitinn/node-fetch)"),e.compress&&!r.has("Accept-Encoding")&&r.set("Accept-Encoding","gzip,deflate");let n=e.agent;return"function"==typeof n&&(n=n(t)),r.has("Connection")||n||r.set("Connection","close"),Object.assign({},t,{method:e.method,headers:de(r),agent:n})}(n),c=("https:"===a.protocol?p:o).request,d=n.signal;let l=null;const g=function(){let e=new we("The user aborted a request.");i(e),n.body&&n.body instanceof s.Readable&&n.body.destroy(e),l&&l.body&&l.body.emit("error",e)};if(d&&d.aborted)return void g();const m=function(){g(),f()},h=c(a);let y;function f(){h.abort(),d&&d.removeEventListener("abort",m),clearTimeout(y)}d&&d.addEventListener("abort",m),n.timeout&&h.once("socket",function(e){y=setTimeout(function(){i(new M("network timeout at: "+n.url,"request-timeout")),f()},n.timeout)}),h.on("error",function(e){i(new M(`request to ${n.url} failed, reason: ${e.message}`,"system",e)),f()}),h.on("response",function(e){clearTimeout(y);const t=function(e){const t=new oe;for(const r of Object.keys(e))if(!ee.test(r))if(Array.isArray(e[r]))for(const i of e[r])te.test(i)||(void 0===t[se][r]?t[se][r]=[i]:t[se][r].push(i));else te.test(e[r])||(t[se][r]=[e[r]]);return t}(e.headers);if(Te.isRedirect(e.statusCode)){const s=t.get("Location"),o=null===s?null:Ee(n.url,s);switch(n.redirect){case"error":return i(new M("uri requested responds with a redirect, redirect mode is set to error: "+n.url,"no-redirect")),void f();case"manual":if(null!==o)try{t.set("Location",o)}catch(e){i(e)}break;case"follow":if(null===o)break;if(n.counter>=n.follow)return i(new M("maximum redirect reached at: "+n.url,"max-redirect")),void f();const s={headers:new oe(n.headers),follow:n.follow,counter:n.counter+1,agent:n.agent,compress:n.compress,method:n.method,body:n.body,signal:n.signal,timeout:n.timeout,size:n.size};return 303!==e.statusCode&&n.body&&null===Z(n)?(i(new M("Cannot follow redirect with body being a readable stream","unsupported-redirect")),void f()):(303!==e.statusCode&&(301!==e.statusCode&&302!==e.statusCode||"POST"!==n.method)||(s.method="GET",s.body=void 0,s.headers.delete("content-length")),r(Te(new qe(o,s))),void f())}}e.once("end",function(){d&&d.removeEventListener("abort",m)});let s=e.pipe(new ve);const o={url:n.url,status:e.statusCode,statusText:e.statusMessage,headers:t,size:n.size,timeout:n.timeout,counter:n.counter},a=t.get("Content-Encoding");if(!n.compress||"HEAD"===n.method||null===a||204===e.statusCode||304===e.statusCode)return l=new me(s,o),void r(l);if("gzip"==a||"x-gzip"==a)return s=s.pipe(u.createGunzip({flush:u.Z_SYNC_FLUSH,finishFlush:u.Z_SYNC_FLUSH})),l=new me(s,o),void r(l);if("deflate"!=a&&"x-deflate"!=a){if("br"==a&&"function"==typeof u.createBrotliDecompress)return s=s.pipe(u.createBrotliDecompress()),l=new me(s,o),void r(l);l=new me(s,o),r(l)}else e.pipe(new ve).once("data",function(e){s=s.pipe(8==(15&e[0])?u.createInflate():u.createInflateRaw()),l=new me(s,o),r(l)})}),function(e,t){const r=t.body;null===r?e.end():K(r)?r.stream().pipe(e):Buffer.isBuffer(r)?(e.write(r),e.end()):r.pipe(e)}(h,n)})}Te.isRedirect=function(e){return 301===e||302===e||303===e||307===e||308===e},Te.Promise=global.Promise;class ke extends Error{constructor(e){super(e),Error.captureStackTrace&&Error.captureStackTrace(this,this.constructor),this.name="Deprecation"}}var je={__proto__:null,Deprecation:ke},Oe=function e(t,r){if(t&&r)return e(t)(r);if("function"!=typeof t)throw new TypeError("need wrapper function");return Object.keys(t).forEach(function(e){i[e]=t[e]}),i;function i(){for(var e=new Array(arguments.length),r=0;rconsole.warn(e));class Re extends Error{constructor(e,t,r){super(e),Error.captureStackTrace&&Error.captureStackTrace(this,this.constructor),this.name="HttpError",this.status=t,Object.defineProperty(this,"code",{get:()=>(Ce(new ke("[@octokit/request-error] `error.code` is deprecated, use `error.status`.")),t)}),this.headers=r.headers||{};const i=Object.assign({},r.request);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}}function xe(e){(T(e.body)||Array.isArray(e.body))&&(e.body=JSON.stringify(e.body));let t,r,i={};return(e.request&&e.request.fetch||Te)(e.url,Object.assign({method:e.method,body:e.body,headers:e.headers,redirect:e.redirect},e.request)).then(n=>{r=n.url,t=n.status;for(const e of n.headers)i[e[0]]=e[1];if(204===t||205===t)return;if("HEAD"===e.method){if(t<400)return;throw new Re(n.statusText,t,{headers:i,request:e})}if(304===t)throw new Re("Not modified",t,{headers:i,request:e});if(t>=400)return n.text().then(r=>{const n=new Re(r,t,{headers:i,request:e});try{let e=JSON.parse(n.message);Object.assign(n,e),n.message=n.message+": "+e.errors.map(JSON.stringify).join(", ")}catch(e){}throw n});const s=n.headers.get("content-type");return/application\/json/.test(s)?n.json():!s||/^text\/|charset=utf-8$/.test(s)?n.text():function(e){return e.arrayBuffer()}(n)}).then(e=>({status:t,url:r,headers:i,data:e})).catch(t=>{if(t instanceof Re)throw t;throw new Re(t.message,500,{headers:i,request:e})})}const De=function e(t,r){const i=t.defaults(r);return Object.assign(function(t,r){const n=i.merge(t,r);if(!n.request||!n.request.hook)return xe(i.parse(n));const s=(e,t)=>xe(i.parse(i.merge(e,t)));return Object.assign(s,{endpoint:i,defaults:e.bind(null,i)}),n.request.hook(s,n)},{endpoint:i,defaults:e.bind(null,i)})}(I,{headers:{"user-agent":"octokit-request.js/5.4.9 "+k()}});var Le={__proto__:null,request:De};class Ue extends Error{constructor(e,t){super(t.data.errors[0].message),Object.assign(this,t.data),Object.assign(this,{headers:t.headers}),this.name="GraphqlError",this.request=e,Error.captureStackTrace&&Error.captureStackTrace(this,this.constructor)}}const Ie=["method","baseUrl","url","headers","request","query","mediaType"],Fe=/\/api\/v3\/?$/;function $e(e,t){const r=e.defaults(t);return Object.assign((e,t)=>function(e,t,r){if("string"==typeof t&&r&&"query"in r)return Promise.reject(new Error('[@octokit/graphql] "query" cannot be used as variable name'));const i="string"==typeof t?Object.assign({query:t},r):t,n=Object.keys(i).reduce((e,t)=>Ie.includes(t)?(e[t]=i[t],e):(e.variables||(e.variables={}),e.variables[t]=i[t],e),{}),s=i.baseUrl||e.endpoint.DEFAULTS.baseUrl;return Fe.test(s)&&(n.url=s.replace(Fe,"/api/graphql")),e(n).then(e=>{if(e.data.errors){const t={};for(const r of Object.keys(e.headers))t[r]=e.headers[r];throw new Ue(n,{headers:t,data:e.data})}return e.data.data})}(r,e,t),{defaults:$e.bind(null,r),endpoint:De.endpoint})}var Ne={__proto__:null,graphql:$e(De,{headers:{"user-agent":"octokit-graphql.js/4.5.6 "+k()},method:"POST",url:"/graphql"}),withCustomRequest:function(e){return $e(e,{method:"POST",url:"/graphql"})}};function Be(e){e.hook.wrap("request",(t,r)=>{e.log.debug("request",r);const i=Date.now(),n=e.request.endpoint.parse(r),s=n.url.replace(r.baseUrl,"");return t(r).then(t=>(e.log.info(`${n.method} ${s} - ${t.status} in ${Date.now()-i}ms`),t)).catch(t=>{throw e.log.info(`${n.method} ${s} - ${t.status} in ${Date.now()-i}ms`),t})})}Be.VERSION="1.0.0";var Me={__proto__:null,requestLog:Be},He={actions:{cancelWorkflowRun:{method:"POST",params:{owner:{required:!0,type:"string"},repo:{required:!0,type:"string"},run_id:{required:!0,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:!0,type:"string"},owner:{required:!0,type:"string"},repo:{required:!0,type:"string"}},url:"/repos/:owner/:repo/actions/secrets/:name"},createRegistrationToken:{method:"POST",params:{owner:{required:!0,type:"string"},repo:{required:!0,type:"string"}},url:"/repos/:owner/:repo/actions/runners/registration-token"},createRemoveToken:{method:"POST",params:{owner:{required:!0,type:"string"},repo:{required:!0,type:"string"}},url:"/repos/:owner/:repo/actions/runners/remove-token"},deleteArtifact:{method:"DELETE",params:{artifact_id:{required:!0,type:"integer"},owner:{required:!0,type:"string"},repo:{required:!0,type:"string"}},url:"/repos/:owner/:repo/actions/artifacts/:artifact_id"},deleteSecretFromRepo:{method:"DELETE",params:{name:{required:!0,type:"string"},owner:{required:!0,type:"string"},repo:{required:!0,type:"string"}},url:"/repos/:owner/:repo/actions/secrets/:name"},downloadArtifact:{method:"GET",params:{archive_format:{required:!0,type:"string"},artifact_id:{required:!0,type:"integer"},owner:{required:!0,type:"string"},repo:{required:!0,type:"string"}},url:"/repos/:owner/:repo/actions/artifacts/:artifact_id/:archive_format"},getArtifact:{method:"GET",params:{artifact_id:{required:!0,type:"integer"},owner:{required:!0,type:"string"},repo:{required:!0,type:"string"}},url:"/repos/:owner/:repo/actions/artifacts/:artifact_id"},getPublicKey:{method:"GET",params:{owner:{required:!0,type:"string"},repo:{required:!0,type:"string"}},url:"/repos/:owner/:repo/actions/secrets/public-key"},getSecret:{method:"GET",params:{name:{required:!0,type:"string"},owner:{required:!0,type:"string"},page:{type:"integer"},per_page:{type:"integer"},repo:{required:!0,type:"string"}},url:"/repos/:owner/:repo/actions/secrets/:name"},getSelfHostedRunner:{method:"GET",params:{owner:{required:!0,type:"string"},repo:{required:!0,type:"string"},runner_id:{required:!0,type:"integer"}},url:"/repos/:owner/:repo/actions/runners/:runner_id"},getWorkflow:{method:"GET",params:{owner:{required:!0,type:"string"},repo:{required:!0,type:"string"},workflow_id:{required:!0,type:"integer"}},url:"/repos/:owner/:repo/actions/workflows/:workflow_id"},getWorkflowJob:{method:"GET",params:{job_id:{required:!0,type:"integer"},owner:{required:!0,type:"string"},repo:{required:!0,type:"string"}},url:"/repos/:owner/:repo/actions/jobs/:job_id"},getWorkflowRun:{method:"GET",params:{owner:{required:!0,type:"string"},repo:{required:!0,type:"string"},run_id:{required:!0,type:"integer"}},url:"/repos/:owner/:repo/actions/runs/:run_id"},listDownloadsForSelfHostedRunnerApplication:{method:"GET",params:{owner:{required:!0,type:"string"},repo:{required:!0,type:"string"}},url:"/repos/:owner/:repo/actions/runners/downloads"},listJobsForWorkflowRun:{method:"GET",params:{owner:{required:!0,type:"string"},page:{type:"integer"},per_page:{type:"integer"},repo:{required:!0,type:"string"},run_id:{required:!0,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:!0,type:"string"},page:{type:"integer"},per_page:{type:"integer"},repo:{required:!0,type:"string"},status:{enum:["completed","status","conclusion"],type:"string"}},url:"/repos/:owner/:repo/actions/runs"},listRepoWorkflows:{method:"GET",params:{owner:{required:!0,type:"string"},page:{type:"integer"},per_page:{type:"integer"},repo:{required:!0,type:"string"}},url:"/repos/:owner/:repo/actions/workflows"},listSecretsForRepo:{method:"GET",params:{owner:{required:!0,type:"string"},page:{type:"integer"},per_page:{type:"integer"},repo:{required:!0,type:"string"}},url:"/repos/:owner/:repo/actions/secrets"},listSelfHostedRunnersForRepo:{method:"GET",params:{owner:{required:!0,type:"string"},page:{type:"integer"},per_page:{type:"integer"},repo:{required:!0,type:"string"}},url:"/repos/:owner/:repo/actions/runners"},listWorkflowJobLogs:{method:"GET",params:{job_id:{required:!0,type:"integer"},owner:{required:!0,type:"string"},page:{type:"integer"},per_page:{type:"integer"},repo:{required:!0,type:"string"}},url:"/repos/:owner/:repo/actions/jobs/:job_id/logs"},listWorkflowRunArtifacts:{method:"GET",params:{owner:{required:!0,type:"string"},page:{type:"integer"},per_page:{type:"integer"},repo:{required:!0,type:"string"},run_id:{required:!0,type:"integer"}},url:"/repos/:owner/:repo/actions/runs/:run_id/artifacts"},listWorkflowRunLogs:{method:"GET",params:{owner:{required:!0,type:"string"},page:{type:"integer"},per_page:{type:"integer"},repo:{required:!0,type:"string"},run_id:{required:!0,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:!0,type:"string"},page:{type:"integer"},per_page:{type:"integer"},repo:{required:!0,type:"string"},status:{enum:["completed","status","conclusion"],type:"string"},workflow_id:{required:!0,type:"integer"}},url:"/repos/:owner/:repo/actions/workflows/:workflow_id/runs"},reRunWorkflow:{method:"POST",params:{owner:{required:!0,type:"string"},repo:{required:!0,type:"string"},run_id:{required:!0,type:"integer"}},url:"/repos/:owner/:repo/actions/runs/:run_id/rerun"},removeSelfHostedRunner:{method:"DELETE",params:{owner:{required:!0,type:"string"},repo:{required:!0,type:"string"},runner_id:{required:!0,type:"integer"}},url:"/repos/:owner/:repo/actions/runners/:runner_id"}},activity:{checkStarringRepo:{method:"GET",params:{owner:{required:!0,type:"string"},repo:{required:!0,type:"string"}},url:"/user/starred/:owner/:repo"},deleteRepoSubscription:{method:"DELETE",params:{owner:{required:!0,type:"string"},repo:{required:!0,type:"string"}},url:"/repos/:owner/:repo/subscription"},deleteThreadSubscription:{method:"DELETE",params:{thread_id:{required:!0,type:"integer"}},url:"/notifications/threads/:thread_id/subscription"},getRepoSubscription:{method:"GET",params:{owner:{required:!0,type:"string"},repo:{required:!0,type:"string"}},url:"/repos/:owner/:repo/subscription"},getThread:{method:"GET",params:{thread_id:{required:!0,type:"integer"}},url:"/notifications/threads/:thread_id"},getThreadSubscription:{method:"GET",params:{thread_id:{required:!0,type:"integer"}},url:"/notifications/threads/:thread_id/subscription"},listEventsForOrg:{method:"GET",params:{org:{required:!0,type:"string"},page:{type:"integer"},per_page:{type:"integer"},username:{required:!0,type:"string"}},url:"/users/:username/events/orgs/:org"},listEventsForUser:{method:"GET",params:{page:{type:"integer"},per_page:{type:"integer"},username:{required:!0,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:!0,type:"string"},page:{type:"integer"},participating:{type:"boolean"},per_page:{type:"integer"},repo:{required:!0,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:!0,type:"string"},page:{type:"integer"},per_page:{type:"integer"}},url:"/orgs/:org/events"},listPublicEventsForRepoNetwork:{method:"GET",params:{owner:{required:!0,type:"string"},page:{type:"integer"},per_page:{type:"integer"},repo:{required:!0,type:"string"}},url:"/networks/:owner/:repo/events"},listPublicEventsForUser:{method:"GET",params:{page:{type:"integer"},per_page:{type:"integer"},username:{required:!0,type:"string"}},url:"/users/:username/events/public"},listReceivedEventsForUser:{method:"GET",params:{page:{type:"integer"},per_page:{type:"integer"},username:{required:!0,type:"string"}},url:"/users/:username/received_events"},listReceivedPublicEventsForUser:{method:"GET",params:{page:{type:"integer"},per_page:{type:"integer"},username:{required:!0,type:"string"}},url:"/users/:username/received_events/public"},listRepoEvents:{method:"GET",params:{owner:{required:!0,type:"string"},page:{type:"integer"},per_page:{type:"integer"},repo:{required:!0,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:!0,type:"string"}},url:"/users/:username/starred"},listReposWatchedByUser:{method:"GET",params:{page:{type:"integer"},per_page:{type:"integer"},username:{required:!0,type:"string"}},url:"/users/:username/subscriptions"},listStargazersForRepo:{method:"GET",params:{owner:{required:!0,type:"string"},page:{type:"integer"},per_page:{type:"integer"},repo:{required:!0,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:!0,type:"string"},page:{type:"integer"},per_page:{type:"integer"},repo:{required:!0,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:!0,type:"string"},repo:{required:!0,type:"string"}},url:"/repos/:owner/:repo/notifications"},markThreadAsRead:{method:"PATCH",params:{thread_id:{required:!0,type:"integer"}},url:"/notifications/threads/:thread_id"},setRepoSubscription:{method:"PUT",params:{ignored:{type:"boolean"},owner:{required:!0,type:"string"},repo:{required:!0,type:"string"},subscribed:{type:"boolean"}},url:"/repos/:owner/:repo/subscription"},setThreadSubscription:{method:"PUT",params:{ignored:{type:"boolean"},thread_id:{required:!0,type:"integer"}},url:"/notifications/threads/:thread_id/subscription"},starRepo:{method:"PUT",params:{owner:{required:!0,type:"string"},repo:{required:!0,type:"string"}},url:"/user/starred/:owner/:repo"},unstarRepo:{method:"DELETE",params:{owner:{required:!0,type:"string"},repo:{required:!0,type:"string"}},url:"/user/starred/:owner/:repo"}},apps:{addRepoToInstallation:{headers:{accept:"application/vnd.github.machine-man-preview+json"},method:"PUT",params:{installation_id:{required:!0,type:"integer"},repository_id:{required:!0,type:"integer"}},url:"/user/installations/:installation_id/repositories/:repository_id"},checkAccountIsAssociatedWithAny:{method:"GET",params:{account_id:{required:!0,type:"integer"}},url:"/marketplace_listing/accounts/:account_id"},checkAccountIsAssociatedWithAnyStubbed:{method:"GET",params:{account_id:{required:!0,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:!0,type:"string"},client_id:{required:!0,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:!0,type:"string"}},url:"/applications/:client_id/token"},createContentAttachment:{headers:{accept:"application/vnd.github.corsair-preview+json"},method:"POST",params:{body:{required:!0,type:"string"},content_reference_id:{required:!0,type:"integer"},title:{required:!0,type:"string"}},url:"/content_references/:content_reference_id/attachments"},createFromManifest:{headers:{accept:"application/vnd.github.fury-preview+json"},method:"POST",params:{code:{required:!0,type:"string"}},url:"/app-manifests/:code/conversions"},createInstallationToken:{headers:{accept:"application/vnd.github.machine-man-preview+json"},method:"POST",params:{installation_id:{required:!0,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:!0,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:!0,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:!0,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:!0,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:!0,type:"string"},repo:{required:!0,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:!0,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:!0,type:"string"}},url:"/apps/:app_slug"},getInstallation:{headers:{accept:"application/vnd.github.machine-man-preview+json"},method:"GET",params:{installation_id:{required:!0,type:"integer"}},url:"/app/installations/:installation_id"},getOrgInstallation:{headers:{accept:"application/vnd.github.machine-man-preview+json"},method:"GET",params:{org:{required:!0,type:"string"}},url:"/orgs/:org/installation"},getRepoInstallation:{headers:{accept:"application/vnd.github.machine-man-preview+json"},method:"GET",params:{owner:{required:!0,type:"string"},repo:{required:!0,type:"string"}},url:"/repos/:owner/:repo/installation"},getUserInstallation:{headers:{accept:"application/vnd.github.machine-man-preview+json"},method:"GET",params:{username:{required:!0,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:!0,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:!0,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:!0,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:!0,type:"integer"},repository_id:{required:!0,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:!0,type:"string"},client_id:{required:!0,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:!0,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:!0,type:"string"},client_id:{required:!0,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:!0,type:"string"},client_id:{required:!0,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:!0,type:"string"},"actions[].identifier":{required:!0,type:"string"},"actions[].label":{required:!0,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:!0,type:"string"},name:{required:!0,type:"string"},output:{type:"object"},"output.annotations":{type:"object[]"},"output.annotations[].annotation_level":{enum:["notice","warning","failure"],required:!0,type:"string"},"output.annotations[].end_column":{type:"integer"},"output.annotations[].end_line":{required:!0,type:"integer"},"output.annotations[].message":{required:!0,type:"string"},"output.annotations[].path":{required:!0,type:"string"},"output.annotations[].raw_details":{type:"string"},"output.annotations[].start_column":{type:"integer"},"output.annotations[].start_line":{required:!0,type:"integer"},"output.annotations[].title":{type:"string"},"output.images":{type:"object[]"},"output.images[].alt":{required:!0,type:"string"},"output.images[].caption":{type:"string"},"output.images[].image_url":{required:!0,type:"string"},"output.summary":{required:!0,type:"string"},"output.text":{type:"string"},"output.title":{required:!0,type:"string"},owner:{required:!0,type:"string"},repo:{required:!0,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:!0,type:"string"},owner:{required:!0,type:"string"},repo:{required:!0,type:"string"}},url:"/repos/:owner/:repo/check-suites"},get:{headers:{accept:"application/vnd.github.antiope-preview+json"},method:"GET",params:{check_run_id:{required:!0,type:"integer"},owner:{required:!0,type:"string"},repo:{required:!0,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:!0,type:"integer"},owner:{required:!0,type:"string"},repo:{required:!0,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:!0,type:"integer"},owner:{required:!0,type:"string"},page:{type:"integer"},per_page:{type:"integer"},repo:{required:!0,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:!0,type:"string"},page:{type:"integer"},per_page:{type:"integer"},ref:{required:!0,type:"string"},repo:{required:!0,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:!0,type:"integer"},filter:{enum:["latest","all"],type:"string"},owner:{required:!0,type:"string"},page:{type:"integer"},per_page:{type:"integer"},repo:{required:!0,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:!0,type:"string"},page:{type:"integer"},per_page:{type:"integer"},ref:{required:!0,type:"string"},repo:{required:!0,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:!0,type:"integer"},owner:{required:!0,type:"string"},repo:{required:!0,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:!0,type:"integer"},"auto_trigger_checks[].setting":{required:!0,type:"boolean"},owner:{required:!0,type:"string"},repo:{required:!0,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:!0,type:"string"},"actions[].identifier":{required:!0,type:"string"},"actions[].label":{required:!0,type:"string"},check_run_id:{required:!0,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:!0,type:"string"},"output.annotations[].end_column":{type:"integer"},"output.annotations[].end_line":{required:!0,type:"integer"},"output.annotations[].message":{required:!0,type:"string"},"output.annotations[].path":{required:!0,type:"string"},"output.annotations[].raw_details":{type:"string"},"output.annotations[].start_column":{type:"integer"},"output.annotations[].start_line":{required:!0,type:"integer"},"output.annotations[].title":{type:"string"},"output.images":{type:"object[]"},"output.images[].alt":{required:!0,type:"string"},"output.images[].caption":{type:"string"},"output.images[].image_url":{required:!0,type:"string"},"output.summary":{required:!0,type:"string"},"output.text":{type:"string"},"output.title":{type:"string"},owner:{required:!0,type:"string"},repo:{required:!0,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:!0,type:"string"}},url:"/codes_of_conduct/:key"},getForRepo:{headers:{accept:"application/vnd.github.scarlet-witch-preview+json"},method:"GET",params:{owner:{required:!0,type:"string"},repo:{required:!0,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:!0,type:"string"}},url:"/gists/:gist_id/star"},create:{method:"POST",params:{description:{type:"string"},files:{required:!0,type:"object"},"files.content":{type:"string"},public:{type:"boolean"}},url:"/gists"},createComment:{method:"POST",params:{body:{required:!0,type:"string"},gist_id:{required:!0,type:"string"}},url:"/gists/:gist_id/comments"},delete:{method:"DELETE",params:{gist_id:{required:!0,type:"string"}},url:"/gists/:gist_id"},deleteComment:{method:"DELETE",params:{comment_id:{required:!0,type:"integer"},gist_id:{required:!0,type:"string"}},url:"/gists/:gist_id/comments/:comment_id"},fork:{method:"POST",params:{gist_id:{required:!0,type:"string"}},url:"/gists/:gist_id/forks"},get:{method:"GET",params:{gist_id:{required:!0,type:"string"}},url:"/gists/:gist_id"},getComment:{method:"GET",params:{comment_id:{required:!0,type:"integer"},gist_id:{required:!0,type:"string"}},url:"/gists/:gist_id/comments/:comment_id"},getRevision:{method:"GET",params:{gist_id:{required:!0,type:"string"},sha:{required:!0,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:!0,type:"string"},page:{type:"integer"},per_page:{type:"integer"}},url:"/gists/:gist_id/comments"},listCommits:{method:"GET",params:{gist_id:{required:!0,type:"string"},page:{type:"integer"},per_page:{type:"integer"}},url:"/gists/:gist_id/commits"},listForks:{method:"GET",params:{gist_id:{required:!0,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:!0,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:!0,type:"string"}},url:"/gists/:gist_id/star"},unstar:{method:"DELETE",params:{gist_id:{required:!0,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:!0,type:"string"}},url:"/gists/:gist_id"},updateComment:{method:"PATCH",params:{body:{required:!0,type:"string"},comment_id:{required:!0,type:"integer"},gist_id:{required:!0,type:"string"}},url:"/gists/:gist_id/comments/:comment_id"}},git:{createBlob:{method:"POST",params:{content:{required:!0,type:"string"},encoding:{type:"string"},owner:{required:!0,type:"string"},repo:{required:!0,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:!0,type:"string"},owner:{required:!0,type:"string"},parents:{required:!0,type:"string[]"},repo:{required:!0,type:"string"},signature:{type:"string"},tree:{required:!0,type:"string"}},url:"/repos/:owner/:repo/git/commits"},createRef:{method:"POST",params:{owner:{required:!0,type:"string"},ref:{required:!0,type:"string"},repo:{required:!0,type:"string"},sha:{required:!0,type:"string"}},url:"/repos/:owner/:repo/git/refs"},createTag:{method:"POST",params:{message:{required:!0,type:"string"},object:{required:!0,type:"string"},owner:{required:!0,type:"string"},repo:{required:!0,type:"string"},tag:{required:!0,type:"string"},tagger:{type:"object"},"tagger.date":{type:"string"},"tagger.email":{type:"string"},"tagger.name":{type:"string"},type:{enum:["commit","tree","blob"],required:!0,type:"string"}},url:"/repos/:owner/:repo/git/tags"},createTree:{method:"POST",params:{base_tree:{type:"string"},owner:{required:!0,type:"string"},repo:{required:!0,type:"string"},tree:{required:!0,type:"object[]"},"tree[].content":{type:"string"},"tree[].mode":{enum:["100644","100755","040000","160000","120000"],type:"string"},"tree[].path":{type:"string"},"tree[].sha":{allowNull:!0,type:"string"},"tree[].type":{enum:["blob","tree","commit"],type:"string"}},url:"/repos/:owner/:repo/git/trees"},deleteRef:{method:"DELETE",params:{owner:{required:!0,type:"string"},ref:{required:!0,type:"string"},repo:{required:!0,type:"string"}},url:"/repos/:owner/:repo/git/refs/:ref"},getBlob:{method:"GET",params:{file_sha:{required:!0,type:"string"},owner:{required:!0,type:"string"},repo:{required:!0,type:"string"}},url:"/repos/:owner/:repo/git/blobs/:file_sha"},getCommit:{method:"GET",params:{commit_sha:{required:!0,type:"string"},owner:{required:!0,type:"string"},repo:{required:!0,type:"string"}},url:"/repos/:owner/:repo/git/commits/:commit_sha"},getRef:{method:"GET",params:{owner:{required:!0,type:"string"},ref:{required:!0,type:"string"},repo:{required:!0,type:"string"}},url:"/repos/:owner/:repo/git/ref/:ref"},getTag:{method:"GET",params:{owner:{required:!0,type:"string"},repo:{required:!0,type:"string"},tag_sha:{required:!0,type:"string"}},url:"/repos/:owner/:repo/git/tags/:tag_sha"},getTree:{method:"GET",params:{owner:{required:!0,type:"string"},recursive:{enum:["1"],type:"integer"},repo:{required:!0,type:"string"},tree_sha:{required:!0,type:"string"}},url:"/repos/:owner/:repo/git/trees/:tree_sha"},listMatchingRefs:{method:"GET",params:{owner:{required:!0,type:"string"},page:{type:"integer"},per_page:{type:"integer"},ref:{required:!0,type:"string"},repo:{required:!0,type:"string"}},url:"/repos/:owner/:repo/git/matching-refs/:ref"},listRefs:{method:"GET",params:{namespace:{type:"string"},owner:{required:!0,type:"string"},page:{type:"integer"},per_page:{type:"integer"},repo:{required:!0,type:"string"}},url:"/repos/:owner/:repo/git/refs/:namespace"},updateRef:{method:"PATCH",params:{force:{type:"boolean"},owner:{required:!0,type:"string"},ref:{required:!0,type:"string"},repo:{required:!0,type:"string"},sha:{required:!0,type:"string"}},url:"/repos/:owner/:repo/git/refs/:ref"}},gitignore:{getTemplate:{method:"GET",params:{name:{required:!0,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:!0,type:"string"},org:{required:!0,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:!0,type:"string"},owner:{required:!0,type:"string"},repo:{required:!0,type:"string"}},url:"/repos/:owner/:repo/interaction-limits"},getRestrictionsForOrg:{headers:{accept:"application/vnd.github.sombra-preview+json"},method:"GET",params:{org:{required:!0,type:"string"}},url:"/orgs/:org/interaction-limits"},getRestrictionsForRepo:{headers:{accept:"application/vnd.github.sombra-preview+json"},method:"GET",params:{owner:{required:!0,type:"string"},repo:{required:!0,type:"string"}},url:"/repos/:owner/:repo/interaction-limits"},removeRestrictionsForOrg:{headers:{accept:"application/vnd.github.sombra-preview+json"},method:"DELETE",params:{org:{required:!0,type:"string"}},url:"/orgs/:org/interaction-limits"},removeRestrictionsForRepo:{headers:{accept:"application/vnd.github.sombra-preview+json"},method:"DELETE",params:{owner:{required:!0,type:"string"},repo:{required:!0,type:"string"}},url:"/repos/:owner/:repo/interaction-limits"}},issues:{addAssignees:{method:"POST",params:{assignees:{type:"string[]"},issue_number:{required:!0,type:"integer"},number:{alias:"issue_number",deprecated:!0,type:"integer"},owner:{required:!0,type:"string"},repo:{required:!0,type:"string"}},url:"/repos/:owner/:repo/issues/:issue_number/assignees"},addLabels:{method:"POST",params:{issue_number:{required:!0,type:"integer"},labels:{required:!0,type:"string[]"},number:{alias:"issue_number",deprecated:!0,type:"integer"},owner:{required:!0,type:"string"},repo:{required:!0,type:"string"}},url:"/repos/:owner/:repo/issues/:issue_number/labels"},checkAssignee:{method:"GET",params:{assignee:{required:!0,type:"string"},owner:{required:!0,type:"string"},repo:{required:!0,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:!0,type:"string"},repo:{required:!0,type:"string"},title:{required:!0,type:"string"}},url:"/repos/:owner/:repo/issues"},createComment:{method:"POST",params:{body:{required:!0,type:"string"},issue_number:{required:!0,type:"integer"},number:{alias:"issue_number",deprecated:!0,type:"integer"},owner:{required:!0,type:"string"},repo:{required:!0,type:"string"}},url:"/repos/:owner/:repo/issues/:issue_number/comments"},createLabel:{method:"POST",params:{color:{required:!0,type:"string"},description:{type:"string"},name:{required:!0,type:"string"},owner:{required:!0,type:"string"},repo:{required:!0,type:"string"}},url:"/repos/:owner/:repo/labels"},createMilestone:{method:"POST",params:{description:{type:"string"},due_on:{type:"string"},owner:{required:!0,type:"string"},repo:{required:!0,type:"string"},state:{enum:["open","closed"],type:"string"},title:{required:!0,type:"string"}},url:"/repos/:owner/:repo/milestones"},deleteComment:{method:"DELETE",params:{comment_id:{required:!0,type:"integer"},owner:{required:!0,type:"string"},repo:{required:!0,type:"string"}},url:"/repos/:owner/:repo/issues/comments/:comment_id"},deleteLabel:{method:"DELETE",params:{name:{required:!0,type:"string"},owner:{required:!0,type:"string"},repo:{required:!0,type:"string"}},url:"/repos/:owner/:repo/labels/:name"},deleteMilestone:{method:"DELETE",params:{milestone_number:{required:!0,type:"integer"},number:{alias:"milestone_number",deprecated:!0,type:"integer"},owner:{required:!0,type:"string"},repo:{required:!0,type:"string"}},url:"/repos/:owner/:repo/milestones/:milestone_number"},get:{method:"GET",params:{issue_number:{required:!0,type:"integer"},number:{alias:"issue_number",deprecated:!0,type:"integer"},owner:{required:!0,type:"string"},repo:{required:!0,type:"string"}},url:"/repos/:owner/:repo/issues/:issue_number"},getComment:{method:"GET",params:{comment_id:{required:!0,type:"integer"},owner:{required:!0,type:"string"},repo:{required:!0,type:"string"}},url:"/repos/:owner/:repo/issues/comments/:comment_id"},getEvent:{method:"GET",params:{event_id:{required:!0,type:"integer"},owner:{required:!0,type:"string"},repo:{required:!0,type:"string"}},url:"/repos/:owner/:repo/issues/events/:event_id"},getLabel:{method:"GET",params:{name:{required:!0,type:"string"},owner:{required:!0,type:"string"},repo:{required:!0,type:"string"}},url:"/repos/:owner/:repo/labels/:name"},getMilestone:{method:"GET",params:{milestone_number:{required:!0,type:"integer"},number:{alias:"milestone_number",deprecated:!0,type:"integer"},owner:{required:!0,type:"string"},repo:{required:!0,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:!0,type:"string"},page:{type:"integer"},per_page:{type:"integer"},repo:{required:!0,type:"string"}},url:"/repos/:owner/:repo/assignees"},listComments:{method:"GET",params:{issue_number:{required:!0,type:"integer"},number:{alias:"issue_number",deprecated:!0,type:"integer"},owner:{required:!0,type:"string"},page:{type:"integer"},per_page:{type:"integer"},repo:{required:!0,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:!0,type:"string"},repo:{required:!0,type:"string"},since:{type:"string"},sort:{enum:["created","updated"],type:"string"}},url:"/repos/:owner/:repo/issues/comments"},listEvents:{method:"GET",params:{issue_number:{required:!0,type:"integer"},number:{alias:"issue_number",deprecated:!0,type:"integer"},owner:{required:!0,type:"string"},page:{type:"integer"},per_page:{type:"integer"},repo:{required:!0,type:"string"}},url:"/repos/:owner/:repo/issues/:issue_number/events"},listEventsForRepo:{method:"GET",params:{owner:{required:!0,type:"string"},page:{type:"integer"},per_page:{type:"integer"},repo:{required:!0,type:"string"}},url:"/repos/:owner/:repo/issues/events"},listEventsForTimeline:{headers:{accept:"application/vnd.github.mockingbird-preview+json"},method:"GET",params:{issue_number:{required:!0,type:"integer"},number:{alias:"issue_number",deprecated:!0,type:"integer"},owner:{required:!0,type:"string"},page:{type:"integer"},per_page:{type:"integer"},repo:{required:!0,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:!0,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:!0,type:"string"},page:{type:"integer"},per_page:{type:"integer"},repo:{required:!0,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:!0,type:"integer"},number:{alias:"milestone_number",deprecated:!0,type:"integer"},owner:{required:!0,type:"string"},page:{type:"integer"},per_page:{type:"integer"},repo:{required:!0,type:"string"}},url:"/repos/:owner/:repo/milestones/:milestone_number/labels"},listLabelsForRepo:{method:"GET",params:{owner:{required:!0,type:"string"},page:{type:"integer"},per_page:{type:"integer"},repo:{required:!0,type:"string"}},url:"/repos/:owner/:repo/labels"},listLabelsOnIssue:{method:"GET",params:{issue_number:{required:!0,type:"integer"},number:{alias:"issue_number",deprecated:!0,type:"integer"},owner:{required:!0,type:"string"},page:{type:"integer"},per_page:{type:"integer"},repo:{required:!0,type:"string"}},url:"/repos/:owner/:repo/issues/:issue_number/labels"},listMilestonesForRepo:{method:"GET",params:{direction:{enum:["asc","desc"],type:"string"},owner:{required:!0,type:"string"},page:{type:"integer"},per_page:{type:"integer"},repo:{required:!0,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:!0,type:"integer"},lock_reason:{enum:["off-topic","too heated","resolved","spam"],type:"string"},number:{alias:"issue_number",deprecated:!0,type:"integer"},owner:{required:!0,type:"string"},repo:{required:!0,type:"string"}},url:"/repos/:owner/:repo/issues/:issue_number/lock"},removeAssignees:{method:"DELETE",params:{assignees:{type:"string[]"},issue_number:{required:!0,type:"integer"},number:{alias:"issue_number",deprecated:!0,type:"integer"},owner:{required:!0,type:"string"},repo:{required:!0,type:"string"}},url:"/repos/:owner/:repo/issues/:issue_number/assignees"},removeLabel:{method:"DELETE",params:{issue_number:{required:!0,type:"integer"},name:{required:!0,type:"string"},number:{alias:"issue_number",deprecated:!0,type:"integer"},owner:{required:!0,type:"string"},repo:{required:!0,type:"string"}},url:"/repos/:owner/:repo/issues/:issue_number/labels/:name"},removeLabels:{method:"DELETE",params:{issue_number:{required:!0,type:"integer"},number:{alias:"issue_number",deprecated:!0,type:"integer"},owner:{required:!0,type:"string"},repo:{required:!0,type:"string"}},url:"/repos/:owner/:repo/issues/:issue_number/labels"},replaceLabels:{method:"PUT",params:{issue_number:{required:!0,type:"integer"},labels:{type:"string[]"},number:{alias:"issue_number",deprecated:!0,type:"integer"},owner:{required:!0,type:"string"},repo:{required:!0,type:"string"}},url:"/repos/:owner/:repo/issues/:issue_number/labels"},unlock:{method:"DELETE",params:{issue_number:{required:!0,type:"integer"},number:{alias:"issue_number",deprecated:!0,type:"integer"},owner:{required:!0,type:"string"},repo:{required:!0,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:!0,type:"integer"},labels:{type:"string[]"},milestone:{allowNull:!0,type:"integer"},number:{alias:"issue_number",deprecated:!0,type:"integer"},owner:{required:!0,type:"string"},repo:{required:!0,type:"string"},state:{enum:["open","closed"],type:"string"},title:{type:"string"}},url:"/repos/:owner/:repo/issues/:issue_number"},updateComment:{method:"PATCH",params:{body:{required:!0,type:"string"},comment_id:{required:!0,type:"integer"},owner:{required:!0,type:"string"},repo:{required:!0,type:"string"}},url:"/repos/:owner/:repo/issues/comments/:comment_id"},updateLabel:{method:"PATCH",params:{color:{type:"string"},current_name:{required:!0,type:"string"},description:{type:"string"},name:{type:"string"},owner:{required:!0,type:"string"},repo:{required:!0,type:"string"}},url:"/repos/:owner/:repo/labels/:current_name"},updateMilestone:{method:"PATCH",params:{description:{type:"string"},due_on:{type:"string"},milestone_number:{required:!0,type:"integer"},number:{alias:"milestone_number",deprecated:!0,type:"integer"},owner:{required:!0,type:"string"},repo:{required:!0,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:!0,type:"string"}},url:"/licenses/:license"},getForRepo:{method:"GET",params:{owner:{required:!0,type:"string"},repo:{required:!0,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:!0,type:"string"}},url:"/markdown"},renderRaw:{headers:{"content-type":"text/plain; charset=utf-8"},method:"POST",params:{data:{mapTo:"data",required:!0,type:"string"}},url:"/markdown/raw"}},meta:{get:{method:"GET",params:{},url:"/meta"}},migrations:{cancelImport:{method:"DELETE",params:{owner:{required:!0,type:"string"},repo:{required:!0,type:"string"}},url:"/repos/:owner/:repo/import"},deleteArchiveForAuthenticatedUser:{headers:{accept:"application/vnd.github.wyandotte-preview+json"},method:"DELETE",params:{migration_id:{required:!0,type:"integer"}},url:"/user/migrations/:migration_id/archive"},deleteArchiveForOrg:{headers:{accept:"application/vnd.github.wyandotte-preview+json"},method:"DELETE",params:{migration_id:{required:!0,type:"integer"},org:{required:!0,type:"string"}},url:"/orgs/:org/migrations/:migration_id/archive"},downloadArchiveForOrg:{headers:{accept:"application/vnd.github.wyandotte-preview+json"},method:"GET",params:{migration_id:{required:!0,type:"integer"},org:{required:!0,type:"string"}},url:"/orgs/:org/migrations/:migration_id/archive"},getArchiveForAuthenticatedUser:{headers:{accept:"application/vnd.github.wyandotte-preview+json"},method:"GET",params:{migration_id:{required:!0,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:!0,type:"integer"},org:{required:!0,type:"string"}},url:"/orgs/:org/migrations/:migration_id/archive"},getCommitAuthors:{method:"GET",params:{owner:{required:!0,type:"string"},repo:{required:!0,type:"string"},since:{type:"string"}},url:"/repos/:owner/:repo/import/authors"},getImportProgress:{method:"GET",params:{owner:{required:!0,type:"string"},repo:{required:!0,type:"string"}},url:"/repos/:owner/:repo/import"},getLargeFiles:{method:"GET",params:{owner:{required:!0,type:"string"},repo:{required:!0,type:"string"}},url:"/repos/:owner/:repo/import/large_files"},getStatusForAuthenticatedUser:{headers:{accept:"application/vnd.github.wyandotte-preview+json"},method:"GET",params:{migration_id:{required:!0,type:"integer"}},url:"/user/migrations/:migration_id"},getStatusForOrg:{headers:{accept:"application/vnd.github.wyandotte-preview+json"},method:"GET",params:{migration_id:{required:!0,type:"integer"},org:{required:!0,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:!0,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:!0,type:"integer"},org:{required:!0,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:!0,type:"integer"},page:{type:"integer"},per_page:{type:"integer"}},url:"/user/:migration_id/repositories"},mapCommitAuthor:{method:"PATCH",params:{author_id:{required:!0,type:"integer"},email:{type:"string"},name:{type:"string"},owner:{required:!0,type:"string"},repo:{required:!0,type:"string"}},url:"/repos/:owner/:repo/import/authors/:author_id"},setLfsPreference:{method:"PATCH",params:{owner:{required:!0,type:"string"},repo:{required:!0,type:"string"},use_lfs:{enum:["opt_in","opt_out"],required:!0,type:"string"}},url:"/repos/:owner/:repo/import/lfs"},startForAuthenticatedUser:{method:"POST",params:{exclude_attachments:{type:"boolean"},lock_repositories:{type:"boolean"},repositories:{required:!0,type:"string[]"}},url:"/user/migrations"},startForOrg:{method:"POST",params:{exclude_attachments:{type:"boolean"},lock_repositories:{type:"boolean"},org:{required:!0,type:"string"},repositories:{required:!0,type:"string[]"}},url:"/orgs/:org/migrations"},startImport:{method:"PUT",params:{owner:{required:!0,type:"string"},repo:{required:!0,type:"string"},tfvc_project:{type:"string"},vcs:{enum:["subversion","git","mercurial","tfvc"],type:"string"},vcs_password:{type:"string"},vcs_url:{required:!0,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:!0,type:"integer"},repo_name:{required:!0,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:!0,type:"integer"},org:{required:!0,type:"string"},repo_name:{required:!0,type:"string"}},url:"/orgs/:org/migrations/:migration_id/repos/:repo_name/lock"},updateImport:{method:"PATCH",params:{owner:{required:!0,type:"string"},repo:{required:!0,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:!0,type:"string"},client_id:{required:!0,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:!0,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:!0,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:!0,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:!0,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:!0,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:!0,type:"string"},client_secret:{required:!0,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:!0,type:"string"},client_secret:{required:!0,type:"string"},fingerprint:{required:!0,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:!0,type:"string"},client_secret:{required:!0,type:"string"},fingerprint:{required:!0,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:!0,type:"string"},client_id:{required:!0,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:!0,type:"string"},client_id:{required:!0,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:!0,type:"string"},client_id:{required:!0,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:!0,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:!0,type:"string"},role:{enum:["admin","member"],type:"string"},username:{required:!0,type:"string"}},url:"/orgs/:org/memberships/:username"},blockUser:{method:"PUT",params:{org:{required:!0,type:"string"},username:{required:!0,type:"string"}},url:"/orgs/:org/blocks/:username"},checkBlockedUser:{method:"GET",params:{org:{required:!0,type:"string"},username:{required:!0,type:"string"}},url:"/orgs/:org/blocks/:username"},checkMembership:{method:"GET",params:{org:{required:!0,type:"string"},username:{required:!0,type:"string"}},url:"/orgs/:org/members/:username"},checkPublicMembership:{method:"GET",params:{org:{required:!0,type:"string"},username:{required:!0,type:"string"}},url:"/orgs/:org/public_members/:username"},concealMembership:{method:"DELETE",params:{org:{required:!0,type:"string"},username:{required:!0,type:"string"}},url:"/orgs/:org/public_members/:username"},convertMemberToOutsideCollaborator:{method:"PUT",params:{org:{required:!0,type:"string"},username:{required:!0,type:"string"}},url:"/orgs/:org/outside_collaborators/:username"},createHook:{method:"POST",params:{active:{type:"boolean"},config:{required:!0,type:"object"},"config.content_type":{type:"string"},"config.insecure_ssl":{type:"string"},"config.secret":{type:"string"},"config.url":{required:!0,type:"string"},events:{type:"string[]"},name:{required:!0,type:"string"},org:{required:!0,type:"string"}},url:"/orgs/:org/hooks"},createInvitation:{method:"POST",params:{email:{type:"string"},invitee_id:{type:"integer"},org:{required:!0,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:!0,type:"integer"},org:{required:!0,type:"string"}},url:"/orgs/:org/hooks/:hook_id"},get:{method:"GET",params:{org:{required:!0,type:"string"}},url:"/orgs/:org"},getHook:{method:"GET",params:{hook_id:{required:!0,type:"integer"},org:{required:!0,type:"string"}},url:"/orgs/:org/hooks/:hook_id"},getMembership:{method:"GET",params:{org:{required:!0,type:"string"},username:{required:!0,type:"string"}},url:"/orgs/:org/memberships/:username"},getMembershipForAuthenticatedUser:{method:"GET",params:{org:{required:!0,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:!0,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:!0,type:"string"}},url:"/users/:username/orgs"},listHooks:{method:"GET",params:{org:{required:!0,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:!0,type:"string"},page:{type:"integer"},per_page:{type:"integer"}},url:"/orgs/:org/installations"},listInvitationTeams:{method:"GET",params:{invitation_id:{required:!0,type:"integer"},org:{required:!0,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:!0,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:!0,type:"string"},page:{type:"integer"},per_page:{type:"integer"}},url:"/orgs/:org/outside_collaborators"},listPendingInvitations:{method:"GET",params:{org:{required:!0,type:"string"},page:{type:"integer"},per_page:{type:"integer"}},url:"/orgs/:org/invitations"},listPublicMembers:{method:"GET",params:{org:{required:!0,type:"string"},page:{type:"integer"},per_page:{type:"integer"}},url:"/orgs/:org/public_members"},pingHook:{method:"POST",params:{hook_id:{required:!0,type:"integer"},org:{required:!0,type:"string"}},url:"/orgs/:org/hooks/:hook_id/pings"},publicizeMembership:{method:"PUT",params:{org:{required:!0,type:"string"},username:{required:!0,type:"string"}},url:"/orgs/:org/public_members/:username"},removeMember:{method:"DELETE",params:{org:{required:!0,type:"string"},username:{required:!0,type:"string"}},url:"/orgs/:org/members/:username"},removeMembership:{method:"DELETE",params:{org:{required:!0,type:"string"},username:{required:!0,type:"string"}},url:"/orgs/:org/memberships/:username"},removeOutsideCollaborator:{method:"DELETE",params:{org:{required:!0,type:"string"},username:{required:!0,type:"string"}},url:"/orgs/:org/outside_collaborators/:username"},unblockUser:{method:"DELETE",params:{org:{required:!0,type:"string"},username:{required:!0,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:!0,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:!0,type:"string"},events:{type:"string[]"},hook_id:{required:!0,type:"integer"},org:{required:!0,type:"string"}},url:"/orgs/:org/hooks/:hook_id"},updateMembership:{method:"PATCH",params:{org:{required:!0,type:"string"},state:{enum:["active"],required:!0,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:!0,type:"integer"},username:{required:!0,type:"string"}},url:"/projects/:project_id/collaborators/:username"},createCard:{headers:{accept:"application/vnd.github.inertia-preview+json"},method:"POST",params:{column_id:{required:!0,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:!0,type:"string"},project_id:{required:!0,type:"integer"}},url:"/projects/:project_id/columns"},createForAuthenticatedUser:{headers:{accept:"application/vnd.github.inertia-preview+json"},method:"POST",params:{body:{type:"string"},name:{required:!0,type:"string"}},url:"/user/projects"},createForOrg:{headers:{accept:"application/vnd.github.inertia-preview+json"},method:"POST",params:{body:{type:"string"},name:{required:!0,type:"string"},org:{required:!0,type:"string"}},url:"/orgs/:org/projects"},createForRepo:{headers:{accept:"application/vnd.github.inertia-preview+json"},method:"POST",params:{body:{type:"string"},name:{required:!0,type:"string"},owner:{required:!0,type:"string"},repo:{required:!0,type:"string"}},url:"/repos/:owner/:repo/projects"},delete:{headers:{accept:"application/vnd.github.inertia-preview+json"},method:"DELETE",params:{project_id:{required:!0,type:"integer"}},url:"/projects/:project_id"},deleteCard:{headers:{accept:"application/vnd.github.inertia-preview+json"},method:"DELETE",params:{card_id:{required:!0,type:"integer"}},url:"/projects/columns/cards/:card_id"},deleteColumn:{headers:{accept:"application/vnd.github.inertia-preview+json"},method:"DELETE",params:{column_id:{required:!0,type:"integer"}},url:"/projects/columns/:column_id"},get:{headers:{accept:"application/vnd.github.inertia-preview+json"},method:"GET",params:{project_id:{required:!0,type:"integer"}},url:"/projects/:project_id"},getCard:{headers:{accept:"application/vnd.github.inertia-preview+json"},method:"GET",params:{card_id:{required:!0,type:"integer"}},url:"/projects/columns/cards/:card_id"},getColumn:{headers:{accept:"application/vnd.github.inertia-preview+json"},method:"GET",params:{column_id:{required:!0,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:!0,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:!0,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:!0,type:"integer"}},url:"/projects/:project_id/columns"},listForOrg:{headers:{accept:"application/vnd.github.inertia-preview+json"},method:"GET",params:{org:{required:!0,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:!0,type:"string"},page:{type:"integer"},per_page:{type:"integer"},repo:{required:!0,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:!0,type:"string"}},url:"/users/:username/projects"},moveCard:{headers:{accept:"application/vnd.github.inertia-preview+json"},method:"POST",params:{card_id:{required:!0,type:"integer"},column_id:{type:"integer"},position:{required:!0,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:!0,type:"integer"},position:{required:!0,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:!0,type:"integer"},username:{required:!0,type:"string"}},url:"/projects/:project_id/collaborators/:username"},reviewUserPermissionLevel:{headers:{accept:"application/vnd.github.inertia-preview+json"},method:"GET",params:{project_id:{required:!0,type:"integer"},username:{required:!0,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:!0,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:!0,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:!0,type:"integer"},name:{required:!0,type:"string"}},url:"/projects/columns/:column_id"}},pulls:{checkIfMerged:{method:"GET",params:{number:{alias:"pull_number",deprecated:!0,type:"integer"},owner:{required:!0,type:"string"},pull_number:{required:!0,type:"integer"},repo:{required:!0,type:"string"}},url:"/repos/:owner/:repo/pulls/:pull_number/merge"},create:{method:"POST",params:{base:{required:!0,type:"string"},body:{type:"string"},draft:{type:"boolean"},head:{required:!0,type:"string"},maintainer_can_modify:{type:"boolean"},owner:{required:!0,type:"string"},repo:{required:!0,type:"string"},title:{required:!0,type:"string"}},url:"/repos/:owner/:repo/pulls"},createComment:{method:"POST",params:{body:{required:!0,type:"string"},commit_id:{required:!0,type:"string"},in_reply_to:{deprecated:!0,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:!0,type:"integer"},owner:{required:!0,type:"string"},path:{required:!0,type:"string"},position:{type:"integer"},pull_number:{required:!0,type:"integer"},repo:{required:!0,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:!0,type:"string"},commit_id:{required:!0,type:"string"},in_reply_to:{deprecated:!0,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:!0,type:"integer"},owner:{required:!0,type:"string"},path:{required:!0,type:"string"},position:{type:"integer"},pull_number:{required:!0,type:"integer"},repo:{required:!0,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:!0,type:"string"},draft:{type:"boolean"},head:{required:!0,type:"string"},issue:{required:!0,type:"integer"},maintainer_can_modify:{type:"boolean"},owner:{required:!0,type:"string"},repo:{required:!0,type:"string"}},url:"/repos/:owner/:repo/pulls"},createReview:{method:"POST",params:{body:{type:"string"},comments:{type:"object[]"},"comments[].body":{required:!0,type:"string"},"comments[].path":{required:!0,type:"string"},"comments[].position":{required:!0,type:"integer"},commit_id:{type:"string"},event:{enum:["APPROVE","REQUEST_CHANGES","COMMENT"],type:"string"},number:{alias:"pull_number",deprecated:!0,type:"integer"},owner:{required:!0,type:"string"},pull_number:{required:!0,type:"integer"},repo:{required:!0,type:"string"}},url:"/repos/:owner/:repo/pulls/:pull_number/reviews"},createReviewCommentReply:{method:"POST",params:{body:{required:!0,type:"string"},comment_id:{required:!0,type:"integer"},owner:{required:!0,type:"string"},pull_number:{required:!0,type:"integer"},repo:{required:!0,type:"string"}},url:"/repos/:owner/:repo/pulls/:pull_number/comments/:comment_id/replies"},createReviewRequest:{method:"POST",params:{number:{alias:"pull_number",deprecated:!0,type:"integer"},owner:{required:!0,type:"string"},pull_number:{required:!0,type:"integer"},repo:{required:!0,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:!0,type:"integer"},owner:{required:!0,type:"string"},repo:{required:!0,type:"string"}},url:"/repos/:owner/:repo/pulls/comments/:comment_id"},deletePendingReview:{method:"DELETE",params:{number:{alias:"pull_number",deprecated:!0,type:"integer"},owner:{required:!0,type:"string"},pull_number:{required:!0,type:"integer"},repo:{required:!0,type:"string"},review_id:{required:!0,type:"integer"}},url:"/repos/:owner/:repo/pulls/:pull_number/reviews/:review_id"},deleteReviewRequest:{method:"DELETE",params:{number:{alias:"pull_number",deprecated:!0,type:"integer"},owner:{required:!0,type:"string"},pull_number:{required:!0,type:"integer"},repo:{required:!0,type:"string"},reviewers:{type:"string[]"},team_reviewers:{type:"string[]"}},url:"/repos/:owner/:repo/pulls/:pull_number/requested_reviewers"},dismissReview:{method:"PUT",params:{message:{required:!0,type:"string"},number:{alias:"pull_number",deprecated:!0,type:"integer"},owner:{required:!0,type:"string"},pull_number:{required:!0,type:"integer"},repo:{required:!0,type:"string"},review_id:{required:!0,type:"integer"}},url:"/repos/:owner/:repo/pulls/:pull_number/reviews/:review_id/dismissals"},get:{method:"GET",params:{number:{alias:"pull_number",deprecated:!0,type:"integer"},owner:{required:!0,type:"string"},pull_number:{required:!0,type:"integer"},repo:{required:!0,type:"string"}},url:"/repos/:owner/:repo/pulls/:pull_number"},getComment:{method:"GET",params:{comment_id:{required:!0,type:"integer"},owner:{required:!0,type:"string"},repo:{required:!0,type:"string"}},url:"/repos/:owner/:repo/pulls/comments/:comment_id"},getCommentsForReview:{method:"GET",params:{number:{alias:"pull_number",deprecated:!0,type:"integer"},owner:{required:!0,type:"string"},page:{type:"integer"},per_page:{type:"integer"},pull_number:{required:!0,type:"integer"},repo:{required:!0,type:"string"},review_id:{required:!0,type:"integer"}},url:"/repos/:owner/:repo/pulls/:pull_number/reviews/:review_id/comments"},getReview:{method:"GET",params:{number:{alias:"pull_number",deprecated:!0,type:"integer"},owner:{required:!0,type:"string"},pull_number:{required:!0,type:"integer"},repo:{required:!0,type:"string"},review_id:{required:!0,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:!0,type:"string"},page:{type:"integer"},per_page:{type:"integer"},repo:{required:!0,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:!0,type:"integer"},owner:{required:!0,type:"string"},page:{type:"integer"},per_page:{type:"integer"},pull_number:{required:!0,type:"integer"},repo:{required:!0,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:!0,type:"string"},page:{type:"integer"},per_page:{type:"integer"},repo:{required:!0,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:!0,type:"integer"},owner:{required:!0,type:"string"},page:{type:"integer"},per_page:{type:"integer"},pull_number:{required:!0,type:"integer"},repo:{required:!0,type:"string"}},url:"/repos/:owner/:repo/pulls/:pull_number/commits"},listFiles:{method:"GET",params:{number:{alias:"pull_number",deprecated:!0,type:"integer"},owner:{required:!0,type:"string"},page:{type:"integer"},per_page:{type:"integer"},pull_number:{required:!0,type:"integer"},repo:{required:!0,type:"string"}},url:"/repos/:owner/:repo/pulls/:pull_number/files"},listReviewRequests:{method:"GET",params:{number:{alias:"pull_number",deprecated:!0,type:"integer"},owner:{required:!0,type:"string"},page:{type:"integer"},per_page:{type:"integer"},pull_number:{required:!0,type:"integer"},repo:{required:!0,type:"string"}},url:"/repos/:owner/:repo/pulls/:pull_number/requested_reviewers"},listReviews:{method:"GET",params:{number:{alias:"pull_number",deprecated:!0,type:"integer"},owner:{required:!0,type:"string"},page:{type:"integer"},per_page:{type:"integer"},pull_number:{required:!0,type:"integer"},repo:{required:!0,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:!0,type:"integer"},owner:{required:!0,type:"string"},pull_number:{required:!0,type:"integer"},repo:{required:!0,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:!0,type:"string"},number:{alias:"pull_number",deprecated:!0,type:"integer"},owner:{required:!0,type:"string"},pull_number:{required:!0,type:"integer"},repo:{required:!0,type:"string"},review_id:{required:!0,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:!0,type:"integer"},owner:{required:!0,type:"string"},pull_number:{required:!0,type:"integer"},repo:{required:!0,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:!0,type:"string"},pull_number:{required:!0,type:"integer"},repo:{required:!0,type:"string"}},url:"/repos/:owner/:repo/pulls/:pull_number/update-branch"},updateComment:{method:"PATCH",params:{body:{required:!0,type:"string"},comment_id:{required:!0,type:"integer"},owner:{required:!0,type:"string"},repo:{required:!0,type:"string"}},url:"/repos/:owner/:repo/pulls/comments/:comment_id"},updateReview:{method:"PUT",params:{body:{required:!0,type:"string"},number:{alias:"pull_number",deprecated:!0,type:"integer"},owner:{required:!0,type:"string"},pull_number:{required:!0,type:"integer"},repo:{required:!0,type:"string"},review_id:{required:!0,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:!0,type:"integer"},content:{enum:["+1","-1","laugh","confused","heart","hooray","rocket","eyes"],required:!0,type:"string"},owner:{required:!0,type:"string"},repo:{required:!0,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:!0,type:"string"},issue_number:{required:!0,type:"integer"},number:{alias:"issue_number",deprecated:!0,type:"integer"},owner:{required:!0,type:"string"},repo:{required:!0,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:!0,type:"integer"},content:{enum:["+1","-1","laugh","confused","heart","hooray","rocket","eyes"],required:!0,type:"string"},owner:{required:!0,type:"string"},repo:{required:!0,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:!0,type:"integer"},content:{enum:["+1","-1","laugh","confused","heart","hooray","rocket","eyes"],required:!0,type:"string"},owner:{required:!0,type:"string"},repo:{required:!0,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:!0,type:"string"},discussion_number:{required:!0,type:"integer"},team_id:{required:!0,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:!0,type:"integer"},content:{enum:["+1","-1","laugh","confused","heart","hooray","rocket","eyes"],required:!0,type:"string"},discussion_number:{required:!0,type:"integer"},team_id:{required:!0,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:!0,type:"integer"},content:{enum:["+1","-1","laugh","confused","heart","hooray","rocket","eyes"],required:!0,type:"string"},discussion_number:{required:!0,type:"integer"},org:{required:!0,type:"string"},team_slug:{required:!0,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:!0,type:"integer"},content:{enum:["+1","-1","laugh","confused","heart","hooray","rocket","eyes"],required:!0,type:"string"},discussion_number:{required:!0,type:"integer"},team_id:{required:!0,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:!0,type:"string"},discussion_number:{required:!0,type:"integer"},org:{required:!0,type:"string"},team_slug:{required:!0,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:!0,type:"string"},discussion_number:{required:!0,type:"integer"},team_id:{required:!0,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:!0,type:"integer"}},url:"/reactions/:reaction_id"},listForCommitComment:{headers:{accept:"application/vnd.github.squirrel-girl-preview+json"},method:"GET",params:{comment_id:{required:!0,type:"integer"},content:{enum:["+1","-1","laugh","confused","heart","hooray","rocket","eyes"],type:"string"},owner:{required:!0,type:"string"},page:{type:"integer"},per_page:{type:"integer"},repo:{required:!0,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:!0,type:"integer"},number:{alias:"issue_number",deprecated:!0,type:"integer"},owner:{required:!0,type:"string"},page:{type:"integer"},per_page:{type:"integer"},repo:{required:!0,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:!0,type:"integer"},content:{enum:["+1","-1","laugh","confused","heart","hooray","rocket","eyes"],type:"string"},owner:{required:!0,type:"string"},page:{type:"integer"},per_page:{type:"integer"},repo:{required:!0,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:!0,type:"integer"},content:{enum:["+1","-1","laugh","confused","heart","hooray","rocket","eyes"],type:"string"},owner:{required:!0,type:"string"},page:{type:"integer"},per_page:{type:"integer"},repo:{required:!0,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:!0,type:"integer"},page:{type:"integer"},per_page:{type:"integer"},team_id:{required:!0,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:!0,type:"integer"},content:{enum:["+1","-1","laugh","confused","heart","hooray","rocket","eyes"],type:"string"},discussion_number:{required:!0,type:"integer"},page:{type:"integer"},per_page:{type:"integer"},team_id:{required:!0,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:!0,type:"integer"},content:{enum:["+1","-1","laugh","confused","heart","hooray","rocket","eyes"],type:"string"},discussion_number:{required:!0,type:"integer"},org:{required:!0,type:"string"},page:{type:"integer"},per_page:{type:"integer"},team_slug:{required:!0,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:!0,type:"integer"},content:{enum:["+1","-1","laugh","confused","heart","hooray","rocket","eyes"],type:"string"},discussion_number:{required:!0,type:"integer"},page:{type:"integer"},per_page:{type:"integer"},team_id:{required:!0,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:!0,type:"integer"},org:{required:!0,type:"string"},page:{type:"integer"},per_page:{type:"integer"},team_slug:{required:!0,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:!0,type:"integer"},page:{type:"integer"},per_page:{type:"integer"},team_id:{required:!0,type:"integer"}},url:"/teams/:team_id/discussions/:discussion_number/reactions"}},repos:{acceptInvitation:{method:"PATCH",params:{invitation_id:{required:!0,type:"integer"}},url:"/user/repository_invitations/:invitation_id"},addCollaborator:{method:"PUT",params:{owner:{required:!0,type:"string"},permission:{enum:["pull","push","admin"],type:"string"},repo:{required:!0,type:"string"},username:{required:!0,type:"string"}},url:"/repos/:owner/:repo/collaborators/:username"},addDeployKey:{method:"POST",params:{key:{required:!0,type:"string"},owner:{required:!0,type:"string"},read_only:{type:"boolean"},repo:{required:!0,type:"string"},title:{type:"string"}},url:"/repos/:owner/:repo/keys"},addProtectedBranchAdminEnforcement:{method:"POST",params:{branch:{required:!0,type:"string"},owner:{required:!0,type:"string"},repo:{required:!0,type:"string"}},url:"/repos/:owner/:repo/branches/:branch/protection/enforce_admins"},addProtectedBranchAppRestrictions:{method:"POST",params:{apps:{mapTo:"data",required:!0,type:"string[]"},branch:{required:!0,type:"string"},owner:{required:!0,type:"string"},repo:{required:!0,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:!0,type:"string"},owner:{required:!0,type:"string"},repo:{required:!0,type:"string"}},url:"/repos/:owner/:repo/branches/:branch/protection/required_signatures"},addProtectedBranchRequiredStatusChecksContexts:{method:"POST",params:{branch:{required:!0,type:"string"},contexts:{mapTo:"data",required:!0,type:"string[]"},owner:{required:!0,type:"string"},repo:{required:!0,type:"string"}},url:"/repos/:owner/:repo/branches/:branch/protection/required_status_checks/contexts"},addProtectedBranchTeamRestrictions:{method:"POST",params:{branch:{required:!0,type:"string"},owner:{required:!0,type:"string"},repo:{required:!0,type:"string"},teams:{mapTo:"data",required:!0,type:"string[]"}},url:"/repos/:owner/:repo/branches/:branch/protection/restrictions/teams"},addProtectedBranchUserRestrictions:{method:"POST",params:{branch:{required:!0,type:"string"},owner:{required:!0,type:"string"},repo:{required:!0,type:"string"},users:{mapTo:"data",required:!0,type:"string[]"}},url:"/repos/:owner/:repo/branches/:branch/protection/restrictions/users"},checkCollaborator:{method:"GET",params:{owner:{required:!0,type:"string"},repo:{required:!0,type:"string"},username:{required:!0,type:"string"}},url:"/repos/:owner/:repo/collaborators/:username"},checkVulnerabilityAlerts:{headers:{accept:"application/vnd.github.dorian-preview+json"},method:"GET",params:{owner:{required:!0,type:"string"},repo:{required:!0,type:"string"}},url:"/repos/:owner/:repo/vulnerability-alerts"},compareCommits:{method:"GET",params:{base:{required:!0,type:"string"},head:{required:!0,type:"string"},owner:{required:!0,type:"string"},repo:{required:!0,type:"string"}},url:"/repos/:owner/:repo/compare/:base...:head"},createCommitComment:{method:"POST",params:{body:{required:!0,type:"string"},commit_sha:{required:!0,type:"string"},line:{type:"integer"},owner:{required:!0,type:"string"},path:{type:"string"},position:{type:"integer"},repo:{required:!0,type:"string"},sha:{alias:"commit_sha",deprecated:!0,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:!0,type:"string"},payload:{type:"string"},production_environment:{type:"boolean"},ref:{required:!0,type:"string"},repo:{required:!0,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:!0,type:"integer"},description:{type:"string"},environment:{enum:["production","staging","qa"],type:"string"},environment_url:{type:"string"},log_url:{type:"string"},owner:{required:!0,type:"string"},repo:{required:!0,type:"string"},state:{enum:["error","failure","inactive","in_progress","queued","pending","success"],required:!0,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:!0,type:"string"},repo:{required:!0,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:!0,type:"string"},"author.name":{required:!0,type:"string"},branch:{type:"string"},committer:{type:"object"},"committer.email":{required:!0,type:"string"},"committer.name":{required:!0,type:"string"},content:{required:!0,type:"string"},message:{required:!0,type:"string"},owner:{required:!0,type:"string"},path:{required:!0,type:"string"},repo:{required:!0,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:!0,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:!0,type:"string"},repo:{required:!0,type:"string"}},url:"/repos/:owner/:repo/forks"},createHook:{method:"POST",params:{active:{type:"boolean"},config:{required:!0,type:"object"},"config.content_type":{type:"string"},"config.insecure_ssl":{type:"string"},"config.secret":{type:"string"},"config.url":{required:!0,type:"string"},events:{type:"string[]"},name:{type:"string"},owner:{required:!0,type:"string"},repo:{required:!0,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:!0,type:"string"},org:{required:!0,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:!0,type:"string"},"author.name":{required:!0,type:"string"},branch:{type:"string"},committer:{type:"object"},"committer.email":{required:!0,type:"string"},"committer.name":{required:!0,type:"string"},content:{required:!0,type:"string"},message:{required:!0,type:"string"},owner:{required:!0,type:"string"},path:{required:!0,type:"string"},repo:{required:!0,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:!0,type:"string"},prerelease:{type:"boolean"},repo:{required:!0,type:"string"},tag_name:{required:!0,type:"string"},target_commitish:{type:"string"}},url:"/repos/:owner/:repo/releases"},createStatus:{method:"POST",params:{context:{type:"string"},description:{type:"string"},owner:{required:!0,type:"string"},repo:{required:!0,type:"string"},sha:{required:!0,type:"string"},state:{enum:["error","failure","pending","success"],required:!0,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:!0,type:"string"},owner:{type:"string"},private:{type:"boolean"},template_owner:{required:!0,type:"string"},template_repo:{required:!0,type:"string"}},url:"/repos/:template_owner/:template_repo/generate"},declineInvitation:{method:"DELETE",params:{invitation_id:{required:!0,type:"integer"}},url:"/user/repository_invitations/:invitation_id"},delete:{method:"DELETE",params:{owner:{required:!0,type:"string"},repo:{required:!0,type:"string"}},url:"/repos/:owner/:repo"},deleteCommitComment:{method:"DELETE",params:{comment_id:{required:!0,type:"integer"},owner:{required:!0,type:"string"},repo:{required:!0,type:"string"}},url:"/repos/:owner/:repo/comments/:comment_id"},deleteDownload:{method:"DELETE",params:{download_id:{required:!0,type:"integer"},owner:{required:!0,type:"string"},repo:{required:!0,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:!0,type:"string"},owner:{required:!0,type:"string"},path:{required:!0,type:"string"},repo:{required:!0,type:"string"},sha:{required:!0,type:"string"}},url:"/repos/:owner/:repo/contents/:path"},deleteHook:{method:"DELETE",params:{hook_id:{required:!0,type:"integer"},owner:{required:!0,type:"string"},repo:{required:!0,type:"string"}},url:"/repos/:owner/:repo/hooks/:hook_id"},deleteInvitation:{method:"DELETE",params:{invitation_id:{required:!0,type:"integer"},owner:{required:!0,type:"string"},repo:{required:!0,type:"string"}},url:"/repos/:owner/:repo/invitations/:invitation_id"},deleteRelease:{method:"DELETE",params:{owner:{required:!0,type:"string"},release_id:{required:!0,type:"integer"},repo:{required:!0,type:"string"}},url:"/repos/:owner/:repo/releases/:release_id"},deleteReleaseAsset:{method:"DELETE",params:{asset_id:{required:!0,type:"integer"},owner:{required:!0,type:"string"},repo:{required:!0,type:"string"}},url:"/repos/:owner/:repo/releases/assets/:asset_id"},disableAutomatedSecurityFixes:{headers:{accept:"application/vnd.github.london-preview+json"},method:"DELETE",params:{owner:{required:!0,type:"string"},repo:{required:!0,type:"string"}},url:"/repos/:owner/:repo/automated-security-fixes"},disablePagesSite:{headers:{accept:"application/vnd.github.switcheroo-preview+json"},method:"DELETE",params:{owner:{required:!0,type:"string"},repo:{required:!0,type:"string"}},url:"/repos/:owner/:repo/pages"},disableVulnerabilityAlerts:{headers:{accept:"application/vnd.github.dorian-preview+json"},method:"DELETE",params:{owner:{required:!0,type:"string"},repo:{required:!0,type:"string"}},url:"/repos/:owner/:repo/vulnerability-alerts"},enableAutomatedSecurityFixes:{headers:{accept:"application/vnd.github.london-preview+json"},method:"PUT",params:{owner:{required:!0,type:"string"},repo:{required:!0,type:"string"}},url:"/repos/:owner/:repo/automated-security-fixes"},enablePagesSite:{headers:{accept:"application/vnd.github.switcheroo-preview+json"},method:"POST",params:{owner:{required:!0,type:"string"},repo:{required:!0,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:!0,type:"string"},repo:{required:!0,type:"string"}},url:"/repos/:owner/:repo/vulnerability-alerts"},get:{method:"GET",params:{owner:{required:!0,type:"string"},repo:{required:!0,type:"string"}},url:"/repos/:owner/:repo"},getAppsWithAccessToProtectedBranch:{method:"GET",params:{branch:{required:!0,type:"string"},owner:{required:!0,type:"string"},repo:{required:!0,type:"string"}},url:"/repos/:owner/:repo/branches/:branch/protection/restrictions/apps"},getArchiveLink:{method:"GET",params:{archive_format:{required:!0,type:"string"},owner:{required:!0,type:"string"},ref:{required:!0,type:"string"},repo:{required:!0,type:"string"}},url:"/repos/:owner/:repo/:archive_format/:ref"},getBranch:{method:"GET",params:{branch:{required:!0,type:"string"},owner:{required:!0,type:"string"},repo:{required:!0,type:"string"}},url:"/repos/:owner/:repo/branches/:branch"},getBranchProtection:{method:"GET",params:{branch:{required:!0,type:"string"},owner:{required:!0,type:"string"},repo:{required:!0,type:"string"}},url:"/repos/:owner/:repo/branches/:branch/protection"},getClones:{method:"GET",params:{owner:{required:!0,type:"string"},per:{enum:["day","week"],type:"string"},repo:{required:!0,type:"string"}},url:"/repos/:owner/:repo/traffic/clones"},getCodeFrequencyStats:{method:"GET",params:{owner:{required:!0,type:"string"},repo:{required:!0,type:"string"}},url:"/repos/:owner/:repo/stats/code_frequency"},getCollaboratorPermissionLevel:{method:"GET",params:{owner:{required:!0,type:"string"},repo:{required:!0,type:"string"},username:{required:!0,type:"string"}},url:"/repos/:owner/:repo/collaborators/:username/permission"},getCombinedStatusForRef:{method:"GET",params:{owner:{required:!0,type:"string"},ref:{required:!0,type:"string"},repo:{required:!0,type:"string"}},url:"/repos/:owner/:repo/commits/:ref/status"},getCommit:{method:"GET",params:{commit_sha:{alias:"ref",deprecated:!0,type:"string"},owner:{required:!0,type:"string"},ref:{required:!0,type:"string"},repo:{required:!0,type:"string"},sha:{alias:"ref",deprecated:!0,type:"string"}},url:"/repos/:owner/:repo/commits/:ref"},getCommitActivityStats:{method:"GET",params:{owner:{required:!0,type:"string"},repo:{required:!0,type:"string"}},url:"/repos/:owner/:repo/stats/commit_activity"},getCommitComment:{method:"GET",params:{comment_id:{required:!0,type:"integer"},owner:{required:!0,type:"string"},repo:{required:!0,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:!0,type:"string"},ref:{required:!0,type:"string"},repo:{required:!0,type:"string"}},url:"/repos/:owner/:repo/commits/:ref"},getContents:{method:"GET",params:{owner:{required:!0,type:"string"},path:{required:!0,type:"string"},ref:{type:"string"},repo:{required:!0,type:"string"}},url:"/repos/:owner/:repo/contents/:path"},getContributorsStats:{method:"GET",params:{owner:{required:!0,type:"string"},repo:{required:!0,type:"string"}},url:"/repos/:owner/:repo/stats/contributors"},getDeployKey:{method:"GET",params:{key_id:{required:!0,type:"integer"},owner:{required:!0,type:"string"},repo:{required:!0,type:"string"}},url:"/repos/:owner/:repo/keys/:key_id"},getDeployment:{method:"GET",params:{deployment_id:{required:!0,type:"integer"},owner:{required:!0,type:"string"},repo:{required:!0,type:"string"}},url:"/repos/:owner/:repo/deployments/:deployment_id"},getDeploymentStatus:{method:"GET",params:{deployment_id:{required:!0,type:"integer"},owner:{required:!0,type:"string"},repo:{required:!0,type:"string"},status_id:{required:!0,type:"integer"}},url:"/repos/:owner/:repo/deployments/:deployment_id/statuses/:status_id"},getDownload:{method:"GET",params:{download_id:{required:!0,type:"integer"},owner:{required:!0,type:"string"},repo:{required:!0,type:"string"}},url:"/repos/:owner/:repo/downloads/:download_id"},getHook:{method:"GET",params:{hook_id:{required:!0,type:"integer"},owner:{required:!0,type:"string"},repo:{required:!0,type:"string"}},url:"/repos/:owner/:repo/hooks/:hook_id"},getLatestPagesBuild:{method:"GET",params:{owner:{required:!0,type:"string"},repo:{required:!0,type:"string"}},url:"/repos/:owner/:repo/pages/builds/latest"},getLatestRelease:{method:"GET",params:{owner:{required:!0,type:"string"},repo:{required:!0,type:"string"}},url:"/repos/:owner/:repo/releases/latest"},getPages:{method:"GET",params:{owner:{required:!0,type:"string"},repo:{required:!0,type:"string"}},url:"/repos/:owner/:repo/pages"},getPagesBuild:{method:"GET",params:{build_id:{required:!0,type:"integer"},owner:{required:!0,type:"string"},repo:{required:!0,type:"string"}},url:"/repos/:owner/:repo/pages/builds/:build_id"},getParticipationStats:{method:"GET",params:{owner:{required:!0,type:"string"},repo:{required:!0,type:"string"}},url:"/repos/:owner/:repo/stats/participation"},getProtectedBranchAdminEnforcement:{method:"GET",params:{branch:{required:!0,type:"string"},owner:{required:!0,type:"string"},repo:{required:!0,type:"string"}},url:"/repos/:owner/:repo/branches/:branch/protection/enforce_admins"},getProtectedBranchPullRequestReviewEnforcement:{method:"GET",params:{branch:{required:!0,type:"string"},owner:{required:!0,type:"string"},repo:{required:!0,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:!0,type:"string"},owner:{required:!0,type:"string"},repo:{required:!0,type:"string"}},url:"/repos/:owner/:repo/branches/:branch/protection/required_signatures"},getProtectedBranchRequiredStatusChecks:{method:"GET",params:{branch:{required:!0,type:"string"},owner:{required:!0,type:"string"},repo:{required:!0,type:"string"}},url:"/repos/:owner/:repo/branches/:branch/protection/required_status_checks"},getProtectedBranchRestrictions:{method:"GET",params:{branch:{required:!0,type:"string"},owner:{required:!0,type:"string"},repo:{required:!0,type:"string"}},url:"/repos/:owner/:repo/branches/:branch/protection/restrictions"},getPunchCardStats:{method:"GET",params:{owner:{required:!0,type:"string"},repo:{required:!0,type:"string"}},url:"/repos/:owner/:repo/stats/punch_card"},getReadme:{method:"GET",params:{owner:{required:!0,type:"string"},ref:{type:"string"},repo:{required:!0,type:"string"}},url:"/repos/:owner/:repo/readme"},getRelease:{method:"GET",params:{owner:{required:!0,type:"string"},release_id:{required:!0,type:"integer"},repo:{required:!0,type:"string"}},url:"/repos/:owner/:repo/releases/:release_id"},getReleaseAsset:{method:"GET",params:{asset_id:{required:!0,type:"integer"},owner:{required:!0,type:"string"},repo:{required:!0,type:"string"}},url:"/repos/:owner/:repo/releases/assets/:asset_id"},getReleaseByTag:{method:"GET",params:{owner:{required:!0,type:"string"},repo:{required:!0,type:"string"},tag:{required:!0,type:"string"}},url:"/repos/:owner/:repo/releases/tags/:tag"},getTeamsWithAccessToProtectedBranch:{method:"GET",params:{branch:{required:!0,type:"string"},owner:{required:!0,type:"string"},repo:{required:!0,type:"string"}},url:"/repos/:owner/:repo/branches/:branch/protection/restrictions/teams"},getTopPaths:{method:"GET",params:{owner:{required:!0,type:"string"},repo:{required:!0,type:"string"}},url:"/repos/:owner/:repo/traffic/popular/paths"},getTopReferrers:{method:"GET",params:{owner:{required:!0,type:"string"},repo:{required:!0,type:"string"}},url:"/repos/:owner/:repo/traffic/popular/referrers"},getUsersWithAccessToProtectedBranch:{method:"GET",params:{branch:{required:!0,type:"string"},owner:{required:!0,type:"string"},repo:{required:!0,type:"string"}},url:"/repos/:owner/:repo/branches/:branch/protection/restrictions/users"},getViews:{method:"GET",params:{owner:{required:!0,type:"string"},per:{enum:["day","week"],type:"string"},repo:{required:!0,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:!0,type:"string"},owner:{required:!0,type:"string"},repo:{required:!0,type:"string"}},url:"/repos/:owner/:repo/branches/:branch/protection/restrictions/apps"},listAssetsForRelease:{method:"GET",params:{owner:{required:!0,type:"string"},page:{type:"integer"},per_page:{type:"integer"},release_id:{required:!0,type:"integer"},repo:{required:!0,type:"string"}},url:"/repos/:owner/:repo/releases/:release_id/assets"},listBranches:{method:"GET",params:{owner:{required:!0,type:"string"},page:{type:"integer"},per_page:{type:"integer"},protected:{type:"boolean"},repo:{required:!0,type:"string"}},url:"/repos/:owner/:repo/branches"},listBranchesForHeadCommit:{headers:{accept:"application/vnd.github.groot-preview+json"},method:"GET",params:{commit_sha:{required:!0,type:"string"},owner:{required:!0,type:"string"},repo:{required:!0,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:!0,type:"string"},page:{type:"integer"},per_page:{type:"integer"},repo:{required:!0,type:"string"}},url:"/repos/:owner/:repo/collaborators"},listCommentsForCommit:{method:"GET",params:{commit_sha:{required:!0,type:"string"},owner:{required:!0,type:"string"},page:{type:"integer"},per_page:{type:"integer"},ref:{alias:"commit_sha",deprecated:!0,type:"string"},repo:{required:!0,type:"string"}},url:"/repos/:owner/:repo/commits/:commit_sha/comments"},listCommitComments:{method:"GET",params:{owner:{required:!0,type:"string"},page:{type:"integer"},per_page:{type:"integer"},repo:{required:!0,type:"string"}},url:"/repos/:owner/:repo/comments"},listCommits:{method:"GET",params:{author:{type:"string"},owner:{required:!0,type:"string"},page:{type:"integer"},path:{type:"string"},per_page:{type:"integer"},repo:{required:!0,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:!0,type:"string"},page:{type:"integer"},per_page:{type:"integer"},repo:{required:!0,type:"string"}},url:"/repos/:owner/:repo/contributors"},listDeployKeys:{method:"GET",params:{owner:{required:!0,type:"string"},page:{type:"integer"},per_page:{type:"integer"},repo:{required:!0,type:"string"}},url:"/repos/:owner/:repo/keys"},listDeploymentStatuses:{method:"GET",params:{deployment_id:{required:!0,type:"integer"},owner:{required:!0,type:"string"},page:{type:"integer"},per_page:{type:"integer"},repo:{required:!0,type:"string"}},url:"/repos/:owner/:repo/deployments/:deployment_id/statuses"},listDeployments:{method:"GET",params:{environment:{type:"string"},owner:{required:!0,type:"string"},page:{type:"integer"},per_page:{type:"integer"},ref:{type:"string"},repo:{required:!0,type:"string"},sha:{type:"string"},task:{type:"string"}},url:"/repos/:owner/:repo/deployments"},listDownloads:{method:"GET",params:{owner:{required:!0,type:"string"},page:{type:"integer"},per_page:{type:"integer"},repo:{required:!0,type:"string"}},url:"/repos/:owner/:repo/downloads"},listForOrg:{method:"GET",params:{direction:{enum:["asc","desc"],type:"string"},org:{required:!0,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:!0,type:"string"}},url:"/users/:username/repos"},listForks:{method:"GET",params:{owner:{required:!0,type:"string"},page:{type:"integer"},per_page:{type:"integer"},repo:{required:!0,type:"string"},sort:{enum:["newest","oldest","stargazers"],type:"string"}},url:"/repos/:owner/:repo/forks"},listHooks:{method:"GET",params:{owner:{required:!0,type:"string"},page:{type:"integer"},per_page:{type:"integer"},repo:{required:!0,type:"string"}},url:"/repos/:owner/:repo/hooks"},listInvitations:{method:"GET",params:{owner:{required:!0,type:"string"},page:{type:"integer"},per_page:{type:"integer"},repo:{required:!0,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:!0,type:"string"},repo:{required:!0,type:"string"}},url:"/repos/:owner/:repo/languages"},listPagesBuilds:{method:"GET",params:{owner:{required:!0,type:"string"},page:{type:"integer"},per_page:{type:"integer"},repo:{required:!0,type:"string"}},url:"/repos/:owner/:repo/pages/builds"},listProtectedBranchRequiredStatusChecksContexts:{method:"GET",params:{branch:{required:!0,type:"string"},owner:{required:!0,type:"string"},repo:{required:!0,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:!0,type:"string"},owner:{required:!0,type:"string"},repo:{required:!0,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:!0,type:"string"},owner:{required:!0,type:"string"},repo:{required:!0,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:!0,type:"string"},owner:{required:!0,type:"string"},page:{type:"integer"},per_page:{type:"integer"},repo:{required:!0,type:"string"}},url:"/repos/:owner/:repo/commits/:commit_sha/pulls"},listReleases:{method:"GET",params:{owner:{required:!0,type:"string"},page:{type:"integer"},per_page:{type:"integer"},repo:{required:!0,type:"string"}},url:"/repos/:owner/:repo/releases"},listStatusesForRef:{method:"GET",params:{owner:{required:!0,type:"string"},page:{type:"integer"},per_page:{type:"integer"},ref:{required:!0,type:"string"},repo:{required:!0,type:"string"}},url:"/repos/:owner/:repo/commits/:ref/statuses"},listTags:{method:"GET",params:{owner:{required:!0,type:"string"},page:{type:"integer"},per_page:{type:"integer"},repo:{required:!0,type:"string"}},url:"/repos/:owner/:repo/tags"},listTeams:{method:"GET",params:{owner:{required:!0,type:"string"},page:{type:"integer"},per_page:{type:"integer"},repo:{required:!0,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:!0,type:"string"},owner:{required:!0,type:"string"},repo:{required:!0,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:!0,type:"string"},repo:{required:!0,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:!0,type:"string"},owner:{required:!0,type:"string"},repo:{required:!0,type:"string"}},url:"/repos/:owner/:repo/branches/:branch/protection/restrictions/users"},merge:{method:"POST",params:{base:{required:!0,type:"string"},commit_message:{type:"string"},head:{required:!0,type:"string"},owner:{required:!0,type:"string"},repo:{required:!0,type:"string"}},url:"/repos/:owner/:repo/merges"},pingHook:{method:"POST",params:{hook_id:{required:!0,type:"integer"},owner:{required:!0,type:"string"},repo:{required:!0,type:"string"}},url:"/repos/:owner/:repo/hooks/:hook_id/pings"},removeBranchProtection:{method:"DELETE",params:{branch:{required:!0,type:"string"},owner:{required:!0,type:"string"},repo:{required:!0,type:"string"}},url:"/repos/:owner/:repo/branches/:branch/protection"},removeCollaborator:{method:"DELETE",params:{owner:{required:!0,type:"string"},repo:{required:!0,type:"string"},username:{required:!0,type:"string"}},url:"/repos/:owner/:repo/collaborators/:username"},removeDeployKey:{method:"DELETE",params:{key_id:{required:!0,type:"integer"},owner:{required:!0,type:"string"},repo:{required:!0,type:"string"}},url:"/repos/:owner/:repo/keys/:key_id"},removeProtectedBranchAdminEnforcement:{method:"DELETE",params:{branch:{required:!0,type:"string"},owner:{required:!0,type:"string"},repo:{required:!0,type:"string"}},url:"/repos/:owner/:repo/branches/:branch/protection/enforce_admins"},removeProtectedBranchAppRestrictions:{method:"DELETE",params:{apps:{mapTo:"data",required:!0,type:"string[]"},branch:{required:!0,type:"string"},owner:{required:!0,type:"string"},repo:{required:!0,type:"string"}},url:"/repos/:owner/:repo/branches/:branch/protection/restrictions/apps"},removeProtectedBranchPullRequestReviewEnforcement:{method:"DELETE",params:{branch:{required:!0,type:"string"},owner:{required:!0,type:"string"},repo:{required:!0,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:!0,type:"string"},owner:{required:!0,type:"string"},repo:{required:!0,type:"string"}},url:"/repos/:owner/:repo/branches/:branch/protection/required_signatures"},removeProtectedBranchRequiredStatusChecks:{method:"DELETE",params:{branch:{required:!0,type:"string"},owner:{required:!0,type:"string"},repo:{required:!0,type:"string"}},url:"/repos/:owner/:repo/branches/:branch/protection/required_status_checks"},removeProtectedBranchRequiredStatusChecksContexts:{method:"DELETE",params:{branch:{required:!0,type:"string"},contexts:{mapTo:"data",required:!0,type:"string[]"},owner:{required:!0,type:"string"},repo:{required:!0,type:"string"}},url:"/repos/:owner/:repo/branches/:branch/protection/required_status_checks/contexts"},removeProtectedBranchRestrictions:{method:"DELETE",params:{branch:{required:!0,type:"string"},owner:{required:!0,type:"string"},repo:{required:!0,type:"string"}},url:"/repos/:owner/:repo/branches/:branch/protection/restrictions"},removeProtectedBranchTeamRestrictions:{method:"DELETE",params:{branch:{required:!0,type:"string"},owner:{required:!0,type:"string"},repo:{required:!0,type:"string"},teams:{mapTo:"data",required:!0,type:"string[]"}},url:"/repos/:owner/:repo/branches/:branch/protection/restrictions/teams"},removeProtectedBranchUserRestrictions:{method:"DELETE",params:{branch:{required:!0,type:"string"},owner:{required:!0,type:"string"},repo:{required:!0,type:"string"},users:{mapTo:"data",required:!0,type:"string[]"}},url:"/repos/:owner/:repo/branches/:branch/protection/restrictions/users"},replaceProtectedBranchAppRestrictions:{method:"PUT",params:{apps:{mapTo:"data",required:!0,type:"string[]"},branch:{required:!0,type:"string"},owner:{required:!0,type:"string"},repo:{required:!0,type:"string"}},url:"/repos/:owner/:repo/branches/:branch/protection/restrictions/apps"},replaceProtectedBranchRequiredStatusChecksContexts:{method:"PUT",params:{branch:{required:!0,type:"string"},contexts:{mapTo:"data",required:!0,type:"string[]"},owner:{required:!0,type:"string"},repo:{required:!0,type:"string"}},url:"/repos/:owner/:repo/branches/:branch/protection/required_status_checks/contexts"},replaceProtectedBranchTeamRestrictions:{method:"PUT",params:{branch:{required:!0,type:"string"},owner:{required:!0,type:"string"},repo:{required:!0,type:"string"},teams:{mapTo:"data",required:!0,type:"string[]"}},url:"/repos/:owner/:repo/branches/:branch/protection/restrictions/teams"},replaceProtectedBranchUserRestrictions:{method:"PUT",params:{branch:{required:!0,type:"string"},owner:{required:!0,type:"string"},repo:{required:!0,type:"string"},users:{mapTo:"data",required:!0,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:!0,type:"string[]"},owner:{required:!0,type:"string"},repo:{required:!0,type:"string"}},url:"/repos/:owner/:repo/topics"},requestPageBuild:{method:"POST",params:{owner:{required:!0,type:"string"},repo:{required:!0,type:"string"}},url:"/repos/:owner/:repo/pages/builds"},retrieveCommunityProfileMetrics:{method:"GET",params:{owner:{required:!0,type:"string"},repo:{required:!0,type:"string"}},url:"/repos/:owner/:repo/community/profile"},testPushHook:{method:"POST",params:{hook_id:{required:!0,type:"integer"},owner:{required:!0,type:"string"},repo:{required:!0,type:"string"}},url:"/repos/:owner/:repo/hooks/:hook_id/tests"},transfer:{method:"POST",params:{new_owner:{type:"string"},owner:{required:!0,type:"string"},repo:{required:!0,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:!0,type:"string"},private:{type:"boolean"},repo:{required:!0,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:!0,type:"boolean"},branch:{required:!0,type:"string"},enforce_admins:{allowNull:!0,required:!0,type:"boolean"},owner:{required:!0,type:"string"},repo:{required:!0,type:"string"},required_linear_history:{type:"boolean"},required_pull_request_reviews:{allowNull:!0,required:!0,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:!0,required:!0,type:"object"},"required_status_checks.contexts":{required:!0,type:"string[]"},"required_status_checks.strict":{required:!0,type:"boolean"},restrictions:{allowNull:!0,required:!0,type:"object"},"restrictions.apps":{type:"string[]"},"restrictions.teams":{required:!0,type:"string[]"},"restrictions.users":{required:!0,type:"string[]"}},url:"/repos/:owner/:repo/branches/:branch/protection"},updateCommitComment:{method:"PATCH",params:{body:{required:!0,type:"string"},comment_id:{required:!0,type:"integer"},owner:{required:!0,type:"string"},repo:{required:!0,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:!0,type:"string"},"author.name":{required:!0,type:"string"},branch:{type:"string"},committer:{type:"object"},"committer.email":{required:!0,type:"string"},"committer.name":{required:!0,type:"string"},content:{required:!0,type:"string"},message:{required:!0,type:"string"},owner:{required:!0,type:"string"},path:{required:!0,type:"string"},repo:{required:!0,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:!0,type:"string"},events:{type:"string[]"},hook_id:{required:!0,type:"integer"},owner:{required:!0,type:"string"},remove_events:{type:"string[]"},repo:{required:!0,type:"string"}},url:"/repos/:owner/:repo/hooks/:hook_id"},updateInformationAboutPagesSite:{method:"PUT",params:{cname:{type:"string"},owner:{required:!0,type:"string"},repo:{required:!0,type:"string"},source:{enum:['"gh-pages"','"master"','"master /docs"'],type:"string"}},url:"/repos/:owner/:repo/pages"},updateInvitation:{method:"PATCH",params:{invitation_id:{required:!0,type:"integer"},owner:{required:!0,type:"string"},permissions:{enum:["read","write","admin"],type:"string"},repo:{required:!0,type:"string"}},url:"/repos/:owner/:repo/invitations/:invitation_id"},updateProtectedBranchPullRequestReviewEnforcement:{method:"PATCH",params:{branch:{required:!0,type:"string"},dismiss_stale_reviews:{type:"boolean"},dismissal_restrictions:{type:"object"},"dismissal_restrictions.teams":{type:"string[]"},"dismissal_restrictions.users":{type:"string[]"},owner:{required:!0,type:"string"},repo:{required:!0,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:!0,type:"string"},contexts:{type:"string[]"},owner:{required:!0,type:"string"},repo:{required:!0,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:!0,type:"string"},prerelease:{type:"boolean"},release_id:{required:!0,type:"integer"},repo:{required:!0,type:"string"},tag_name:{type:"string"},target_commitish:{type:"string"}},url:"/repos/:owner/:repo/releases/:release_id"},updateReleaseAsset:{method:"PATCH",params:{asset_id:{required:!0,type:"integer"},label:{type:"string"},name:{type:"string"},owner:{required:!0,type:"string"},repo:{required:!0,type:"string"}},url:"/repos/:owner/:repo/releases/assets/:asset_id"},uploadReleaseAsset:{method:"POST",params:{data:{mapTo:"data",required:!0,type:"string | object"},file:{alias:"data",deprecated:!0,type:"string | object"},headers:{required:!0,type:"object"},"headers.content-length":{required:!0,type:"integer"},"headers.content-type":{required:!0,type:"string"},label:{type:"string"},name:{required:!0,type:"string"},url:{required:!0,type:"string"}},url:":url"}},search:{code:{method:"GET",params:{order:{enum:["desc","asc"],type:"string"},page:{type:"integer"},per_page:{type:"integer"},q:{required:!0,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:!0,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:!0,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:!0,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:!0,type:"string"},repository_id:{required:!0,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:!0,type:"string"},sort:{enum:["stars","forks","help-wanted-issues","updated"],type:"string"}},url:"/search/repositories"},topics:{method:"GET",params:{q:{required:!0,type:"string"}},url:"/search/topics"},users:{method:"GET",params:{order:{enum:["desc","asc"],type:"string"},page:{type:"integer"},per_page:{type:"integer"},q:{required:!0,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:!0,type:"integer"},username:{required:!0,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:!0,type:"integer"},username:{required:!0,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:!0,type:"integer"},username:{required:!0,type:"string"}},url:"/teams/:team_id/memberships/:username"},addOrUpdateMembershipInOrg:{method:"PUT",params:{org:{required:!0,type:"string"},role:{enum:["member","maintainer"],type:"string"},team_slug:{required:!0,type:"string"},username:{required:!0,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:!0,type:"integer"},username:{required:!0,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:!0,type:"integer"},team_id:{required:!0,type:"integer"}},url:"/teams/:team_id/projects/:project_id"},addOrUpdateProjectInOrg:{headers:{accept:"application/vnd.github.inertia-preview+json"},method:"PUT",params:{org:{required:!0,type:"string"},permission:{enum:["read","write","admin"],type:"string"},project_id:{required:!0,type:"integer"},team_slug:{required:!0,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:!0,type:"integer"},team_id:{required:!0,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:!0,type:"string"},permission:{enum:["pull","push","admin"],type:"string"},repo:{required:!0,type:"string"},team_id:{required:!0,type:"integer"}},url:"/teams/:team_id/repos/:owner/:repo"},addOrUpdateRepoInOrg:{method:"PUT",params:{org:{required:!0,type:"string"},owner:{required:!0,type:"string"},permission:{enum:["pull","push","admin"],type:"string"},repo:{required:!0,type:"string"},team_slug:{required:!0,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:!0,type:"string"},permission:{enum:["pull","push","admin"],type:"string"},repo:{required:!0,type:"string"},team_id:{required:!0,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:!0,type:"string"},repo:{required:!0,type:"string"},team_id:{required:!0,type:"integer"}},url:"/teams/:team_id/repos/:owner/:repo"},checkManagesRepoInOrg:{method:"GET",params:{org:{required:!0,type:"string"},owner:{required:!0,type:"string"},repo:{required:!0,type:"string"},team_slug:{required:!0,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:!0,type:"string"},repo:{required:!0,type:"string"},team_id:{required:!0,type:"integer"}},url:"/teams/:team_id/repos/:owner/:repo"},create:{method:"POST",params:{description:{type:"string"},maintainers:{type:"string[]"},name:{required:!0,type:"string"},org:{required:!0,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:!0,type:"string"},private:{type:"boolean"},team_id:{required:!0,type:"integer"},title:{required:!0,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:!0,type:"string"},discussion_number:{required:!0,type:"integer"},team_id:{required:!0,type:"integer"}},url:"/teams/:team_id/discussions/:discussion_number/comments"},createDiscussionCommentInOrg:{method:"POST",params:{body:{required:!0,type:"string"},discussion_number:{required:!0,type:"integer"},org:{required:!0,type:"string"},team_slug:{required:!0,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:!0,type:"string"},discussion_number:{required:!0,type:"integer"},team_id:{required:!0,type:"integer"}},url:"/teams/:team_id/discussions/:discussion_number/comments"},createDiscussionInOrg:{method:"POST",params:{body:{required:!0,type:"string"},org:{required:!0,type:"string"},private:{type:"boolean"},team_slug:{required:!0,type:"string"},title:{required:!0,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:!0,type:"string"},private:{type:"boolean"},team_id:{required:!0,type:"integer"},title:{required:!0,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:!0,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:!0,type:"integer"},team_id:{required:!0,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:!0,type:"integer"},discussion_number:{required:!0,type:"integer"},team_id:{required:!0,type:"integer"}},url:"/teams/:team_id/discussions/:discussion_number/comments/:comment_number"},deleteDiscussionCommentInOrg:{method:"DELETE",params:{comment_number:{required:!0,type:"integer"},discussion_number:{required:!0,type:"integer"},org:{required:!0,type:"string"},team_slug:{required:!0,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:!0,type:"integer"},discussion_number:{required:!0,type:"integer"},team_id:{required:!0,type:"integer"}},url:"/teams/:team_id/discussions/:discussion_number/comments/:comment_number"},deleteDiscussionInOrg:{method:"DELETE",params:{discussion_number:{required:!0,type:"integer"},org:{required:!0,type:"string"},team_slug:{required:!0,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:!0,type:"integer"},team_id:{required:!0,type:"integer"}},url:"/teams/:team_id/discussions/:discussion_number"},deleteInOrg:{method:"DELETE",params:{org:{required:!0,type:"string"},team_slug:{required:!0,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:!0,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:!0,type:"integer"}},url:"/teams/:team_id"},getByName:{method:"GET",params:{org:{required:!0,type:"string"},team_slug:{required:!0,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:!0,type:"integer"},team_id:{required:!0,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:!0,type:"integer"},discussion_number:{required:!0,type:"integer"},team_id:{required:!0,type:"integer"}},url:"/teams/:team_id/discussions/:discussion_number/comments/:comment_number"},getDiscussionCommentInOrg:{method:"GET",params:{comment_number:{required:!0,type:"integer"},discussion_number:{required:!0,type:"integer"},org:{required:!0,type:"string"},team_slug:{required:!0,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:!0,type:"integer"},discussion_number:{required:!0,type:"integer"},team_id:{required:!0,type:"integer"}},url:"/teams/:team_id/discussions/:discussion_number/comments/:comment_number"},getDiscussionInOrg:{method:"GET",params:{discussion_number:{required:!0,type:"integer"},org:{required:!0,type:"string"},team_slug:{required:!0,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:!0,type:"integer"},team_id:{required:!0,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:!0,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:!0,type:"integer"},username:{required:!0,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:!0,type:"integer"},username:{required:!0,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:!0,type:"integer"},username:{required:!0,type:"string"}},url:"/teams/:team_id/memberships/:username"},getMembershipInOrg:{method:"GET",params:{org:{required:!0,type:"string"},team_slug:{required:!0,type:"string"},username:{required:!0,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:!0,type:"integer"},username:{required:!0,type:"string"}},url:"/teams/:team_id/memberships/:username"},list:{method:"GET",params:{org:{required:!0,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:!0,type:"integer"}},url:"/teams/:team_id/teams"},listChildInOrg:{method:"GET",params:{org:{required:!0,type:"string"},page:{type:"integer"},per_page:{type:"integer"},team_slug:{required:!0,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:!0,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:!0,type:"integer"},page:{type:"integer"},per_page:{type:"integer"},team_id:{required:!0,type:"integer"}},url:"/teams/:team_id/discussions/:discussion_number/comments"},listDiscussionCommentsInOrg:{method:"GET",params:{direction:{enum:["asc","desc"],type:"string"},discussion_number:{required:!0,type:"integer"},org:{required:!0,type:"string"},page:{type:"integer"},per_page:{type:"integer"},team_slug:{required:!0,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:!0,type:"integer"},page:{type:"integer"},per_page:{type:"integer"},team_id:{required:!0,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:!0,type:"integer"}},url:"/teams/:team_id/discussions"},listDiscussionsInOrg:{method:"GET",params:{direction:{enum:["asc","desc"],type:"string"},org:{required:!0,type:"string"},page:{type:"integer"},per_page:{type:"integer"},team_slug:{required:!0,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:!0,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:!0,type:"integer"}},url:"/teams/:team_id/members"},listMembersInOrg:{method:"GET",params:{org:{required:!0,type:"string"},page:{type:"integer"},per_page:{type:"integer"},role:{enum:["member","maintainer","all"],type:"string"},team_slug:{required:!0,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:!0,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:!0,type:"integer"}},url:"/teams/:team_id/invitations"},listPendingInvitationsInOrg:{method:"GET",params:{org:{required:!0,type:"string"},page:{type:"integer"},per_page:{type:"integer"},team_slug:{required:!0,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:!0,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:!0,type:"integer"}},url:"/teams/:team_id/projects"},listProjectsInOrg:{headers:{accept:"application/vnd.github.inertia-preview+json"},method:"GET",params:{org:{required:!0,type:"string"},page:{type:"integer"},per_page:{type:"integer"},team_slug:{required:!0,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:!0,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:!0,type:"integer"}},url:"/teams/:team_id/repos"},listReposInOrg:{method:"GET",params:{org:{required:!0,type:"string"},page:{type:"integer"},per_page:{type:"integer"},team_slug:{required:!0,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:!0,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:!0,type:"integer"},username:{required:!0,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:!0,type:"integer"},username:{required:!0,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:!0,type:"integer"},username:{required:!0,type:"string"}},url:"/teams/:team_id/memberships/:username"},removeMembershipInOrg:{method:"DELETE",params:{org:{required:!0,type:"string"},team_slug:{required:!0,type:"string"},username:{required:!0,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:!0,type:"integer"},username:{required:!0,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:!0,type:"integer"},team_id:{required:!0,type:"integer"}},url:"/teams/:team_id/projects/:project_id"},removeProjectInOrg:{method:"DELETE",params:{org:{required:!0,type:"string"},project_id:{required:!0,type:"integer"},team_slug:{required:!0,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:!0,type:"integer"},team_id:{required:!0,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:!0,type:"string"},repo:{required:!0,type:"string"},team_id:{required:!0,type:"integer"}},url:"/teams/:team_id/repos/:owner/:repo"},removeRepoInOrg:{method:"DELETE",params:{org:{required:!0,type:"string"},owner:{required:!0,type:"string"},repo:{required:!0,type:"string"},team_slug:{required:!0,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:!0,type:"string"},repo:{required:!0,type:"string"},team_id:{required:!0,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:!0,type:"integer"},team_id:{required:!0,type:"integer"}},url:"/teams/:team_id/projects/:project_id"},reviewProjectInOrg:{headers:{accept:"application/vnd.github.inertia-preview+json"},method:"GET",params:{org:{required:!0,type:"string"},project_id:{required:!0,type:"integer"},team_slug:{required:!0,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:!0,type:"integer"},team_id:{required:!0,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:!0,type:"string"},parent_team_id:{type:"integer"},permission:{enum:["pull","push","admin"],type:"string"},privacy:{enum:["secret","closed"],type:"string"},team_id:{required:!0,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:!0,type:"integer"},team_id:{required:!0,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:!0,type:"string"},comment_number:{required:!0,type:"integer"},discussion_number:{required:!0,type:"integer"},team_id:{required:!0,type:"integer"}},url:"/teams/:team_id/discussions/:discussion_number/comments/:comment_number"},updateDiscussionCommentInOrg:{method:"PATCH",params:{body:{required:!0,type:"string"},comment_number:{required:!0,type:"integer"},discussion_number:{required:!0,type:"integer"},org:{required:!0,type:"string"},team_slug:{required:!0,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:!0,type:"string"},comment_number:{required:!0,type:"integer"},discussion_number:{required:!0,type:"integer"},team_id:{required:!0,type:"integer"}},url:"/teams/:team_id/discussions/:discussion_number/comments/:comment_number"},updateDiscussionInOrg:{method:"PATCH",params:{body:{type:"string"},discussion_number:{required:!0,type:"integer"},org:{required:!0,type:"string"},team_slug:{required:!0,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:!0,type:"integer"},team_id:{required:!0,type:"integer"},title:{type:"string"}},url:"/teams/:team_id/discussions/:discussion_number"},updateInOrg:{method:"PATCH",params:{description:{type:"string"},name:{required:!0,type:"string"},org:{required:!0,type:"string"},parent_team_id:{type:"integer"},permission:{enum:["pull","push","admin"],type:"string"},privacy:{enum:["secret","closed"],type:"string"},team_slug:{required:!0,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:!0,type:"string"},parent_team_id:{type:"integer"},permission:{enum:["pull","push","admin"],type:"string"},privacy:{enum:["secret","closed"],type:"string"},team_id:{required:!0,type:"integer"}},url:"/teams/:team_id"}},users:{addEmails:{method:"POST",params:{emails:{required:!0,type:"string[]"}},url:"/user/emails"},block:{method:"PUT",params:{username:{required:!0,type:"string"}},url:"/user/blocks/:username"},checkBlocked:{method:"GET",params:{username:{required:!0,type:"string"}},url:"/user/blocks/:username"},checkFollowing:{method:"GET",params:{username:{required:!0,type:"string"}},url:"/user/following/:username"},checkFollowingForUser:{method:"GET",params:{target_user:{required:!0,type:"string"},username:{required:!0,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:!0,type:"string[]"}},url:"/user/emails"},deleteGpgKey:{method:"DELETE",params:{gpg_key_id:{required:!0,type:"integer"}},url:"/user/gpg_keys/:gpg_key_id"},deletePublicKey:{method:"DELETE",params:{key_id:{required:!0,type:"integer"}},url:"/user/keys/:key_id"},follow:{method:"PUT",params:{username:{required:!0,type:"string"}},url:"/user/following/:username"},getAuthenticated:{method:"GET",params:{},url:"/user"},getByUsername:{method:"GET",params:{username:{required:!0,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:!0,type:"string"}},url:"/users/:username/hovercard"},getGpgKey:{method:"GET",params:{gpg_key_id:{required:!0,type:"integer"}},url:"/user/gpg_keys/:gpg_key_id"},getPublicKey:{method:"GET",params:{key_id:{required:!0,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:!0,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:!0,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:!0,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:!0,type:"string"}},url:"/users/:username/keys"},togglePrimaryEmailVisibility:{method:"PATCH",params:{email:{required:!0,type:"string"},visibility:{required:!0,type:"string"}},url:"/user/email/visibility"},unblock:{method:"DELETE",params:{username:{required:!0,type:"string"}},url:"/user/blocks/:username"},unfollow:{method:"DELETE",params:{username:{required:!0,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"}}};function ze(e,t){Object.keys(t).forEach(r=>{e[r]||(e[r]={}),Object.keys(t[r]).forEach(i=>{const n=t[r][i],s=["method","url","headers"].reduce((e,t)=>(void 0!==n[t]&&(e[t]=n[t]),e),{});s.request={validate:n.params};let o=e.request.defaults(s);if(Object.keys(n.params||{}).find(e=>n.params[e].deprecated)){const t=We.bind(null,e,n);o=t(e.request.defaults(s),`.${r}.${i}()`),o.endpoint=t(o.endpoint,`.${r}.${i}.endpoint()`),o.endpoint.merge=t(o.endpoint.merge,`.${r}.${i}.endpoint.merge()`)}e[r][i]=n.deprecated?Object.assign(function(){return e.log.warn(new ke("[@octokit/rest] "+n.deprecated)),e[r][i]=o,o.apply(null,arguments)},o):o})})}function We(e,t,r,i){const n=n=>(n=Object.assign({},n),Object.keys(n).forEach(r=>{if(t.params[r]&&t.params[r].deprecated){const s=t.params[r].alias;e.log.warn(new ke(`[@octokit/rest] "${r}" parameter is deprecated for "${i}". Use "${s}" instead`)),s in n||(n[s]=n[r]),delete n[r]}}),r(n));return Object.keys(r).forEach(e=>{n[e]=r[e]}),n}function Je(e){return e.registerEndpoints=ze.bind(null,e),ze(e,He),[["gitdata","git"],["authorization","oauthAuthorizations"],["pullRequests","pulls"]].forEach(([t,r])=>{Object.defineProperty(e,t,{get:()=>(e.log.warn(new ke(`[@octokit/plugin-rest-endpoint-methods] "octokit.${t}.*" methods are deprecated, use "octokit.${r}.*" instead`)),e[r])})}),{}}Je.VERSION="2.4.0";var Ve={__proto__:null,restEndpointMethods:Je},Qe=function e(t,r,i,n){if("function"!=typeof i)throw new Error("method for before hook must be a function");return n||(n={}),Array.isArray(r)?r.reverse().reduce(function(r,i){return e.bind(null,t,i,r,n)},i)():Promise.resolve().then(function(){return t.registry[r]?t.registry[r].reduce(function(e,t){return t.hook.bind(null,e,n)},i)():i(n)})},Ke=function(e,t,r,i){var n=i;e.registry[r]||(e.registry[r]=[]),"before"===t&&(i=function(e,t){return Promise.resolve().then(n.bind(null,t)).then(e.bind(null,t))}),"after"===t&&(i=function(e,t){var r;return Promise.resolve().then(e.bind(null,t)).then(function(e){return n(r=e,t)}).then(function(){return r})}),"error"===t&&(i=function(e,t){return Promise.resolve().then(e.bind(null,t)).catch(function(e){return n(e,t)})}),e.registry[r].push({hook:i,orig:n})},Ye=function(e,t,r){if(e.registry[t]){var i=e.registry[t].map(function(e){return e.orig}).indexOf(r);-1!==i&&e.registry[t].splice(i,1)}},Xe=Function.bind,Ze=Xe.bind(Xe);function et(e,t,r){var i=Ze(Ye,null).apply(null,r?[t,r]:[t]);e.api={remove:i},e.remove=i,["before","error","after","wrap"].forEach(function(i){var n=r?[t,i,r]:[t,i];e[i]=e.api[i]=Ze(Ke,null).apply(null,n)})}function tt(){var e={registry:{}},t=Qe.bind(null,e);return et(t,e),t}var rt=!1;function it(){return rt||(console.warn('[before-after-hook]: "Hook()" repurposing warning, use "Hook.Collection()". Read more: https://git.io/upgrade-before-after-hook-to-1.4'),rt=!0),tt()}it.Singular=function(){var e={registry:{}},t=Qe.bind(null,e,"h");return et(t,e,"h"),t}.bind(),it.Collection=tt.bind();var nt=it,st=it.Singular,ot=it.Collection;nt.Hook=it,nt.Singular=st,nt.Collection=ot;var at,pt={__proto__:null,getUserAgent:function(){try{return navigator.userAgent}catch(e){return""}}},ut="@octokit/rest@^16.43.1",ct="@octokit/rest@16.43.2",dt="sha512-ngDBevLbBTFfrHZeiS7SAMAZ6ssuVmXuya+F/7RaVvlysgGa1JKJkKWY+jV6TCJYcW0OALfJ7nTIGXcBXzycfQ==",lt={"@types/node":"14.11.2",deprecation:"2.3.1",once:"1.4.0","os-name":"3.1.0"},gt={type:"range",registry:!0,raw:"@octokit/rest@^16.43.1",name:"@octokit/rest",escapedName:"@octokit%2frest",scope:"@octokit",rawSpec:"^16.43.1",saveSpec:null,fetchSpec:"^16.43.1"},mt=["/@actions/github"],ht="https://registry.npmjs.org/@octokit/rest/-/rest-16.43.2.tgz",yt="c53426f1e1d1044dee967023e3279c50993dd91b",ft="@octokit/rest@^16.43.1",bt="/Users/jhuleatt/git/action-hosting-deploy/node_modules/@actions/github",_t={name:"Gregor Martynus",url:"https://github.com/gr2m"},qt={url:"https://github.com/octokit/rest.js/issues"},wt=[{path:"./dist/octokit-rest.min.js.gz",maxSize:"33 kB"}],vt=[{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"}],Et={"@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"},Tt="GitHub REST API client for Node.js",kt={"@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:"^4.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:"^6.0.0",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"},jt=["index.js","index.d.ts","lib","plugins"],Ot="https://github.com/octokit/rest.js#readme",Pt=["octokit","github","rest","api-client"],St="@octokit/rest",At={ignore:["test"]},Gt={access:"public"},Ct={publish:["@semantic-release/npm",{path:"@semantic-release/github",assets:["dist/*","!dist/*.map.gz"]}]},Rt={type:"git",url:"git+https://github.com/octokit/rest.js.git"},xt={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"},Dt=(at={__proto__:null,_from:ut,_id:ct,_inBundle:!1,_integrity:dt,_location:"/@octokit/rest",_phantomChildren:lt,_requested:gt,_requiredBy:mt,_resolved:ht,_shasum:yt,_spec:ft,_where:bt,author:_t,bugs:qt,bundleDependencies:!1,bundlesize:wt,contributors:vt,dependencies:Et,deprecated:!1,description:Tt,devDependencies:kt,files:jt,homepage:Ot,keywords:Pt,license:"MIT",name:St,nyc:At,publishConfig:Gt,release:Ct,repository:Rt,scripts:xt,types:"index.d.ts",version:"16.43.2",default:{_from:ut,_id:ct,_inBundle:!1,_integrity:dt,_location:"/@octokit/rest",_phantomChildren:lt,_requested:gt,_requiredBy:mt,_resolved:ht,_shasum:yt,_spec:ft,_where:bt,author:_t,bugs:qt,bundleDependencies:!1,bundlesize:wt,contributors:vt,dependencies:Et,deprecated:!1,description:Tt,devDependencies:kt,files:jt,homepage:Ot,keywords:Pt,license:"MIT",name:St,nyc:At,publishConfig:Gt,release:Ct,repository:Rt,scripts:xt,types:"index.d.ts",version:"16.43.2"}})&&at.default||at,Lt=function(e,t,r){e.headers&&(e.headers=Object.keys(e.headers).reduce((t,r)=>(t[r.toLowerCase()]=e.headers[r],t),{}));const i={headers:e.headers||{},request:e.request||{},mediaType:{previews:[],format:""}};e.baseUrl&&(i.baseUrl=e.baseUrl),e.userAgent&&(i.headers["user-agent"]=e.userAgent),e.previews&&(i.mediaType.previews=e.previews),e.timeZone&&(i.headers["time-zone"]=e.timeZone),e.timeout&&(Ft(t,new Ut("[@octokit/rest] new Octokit({timeout}) is deprecated. Use {request: {timeout}} instead. See https://github.com/octokit/request.js#request")),i.request.timeout=e.timeout),e.agent&&($t(t,new Ut("[@octokit/rest] new Octokit({agent}) is deprecated. Use {request: {agent}} instead. See https://github.com/octokit/request.js#request")),i.request.agent=e.agent),e.headers&&Nt(t,new Ut("[@octokit/rest] new Octokit({headers}) is deprecated. Use {userAgent, previews} instead. See https://github.com/octokit/request.js#request"));const n=i.headers["user-agent"],s=`octokit.js/${Dt.version} ${It()}`;return i.headers["user-agent"]=[n,s].filter(Boolean).join(" "),i.request.hook=r.bind(null,"request"),i};const{Deprecation:Ut}=je,{getUserAgent:It}=pt,Ft=Pe((e,t)=>e.warn(t)),$t=Pe((e,t)=>e.warn(t)),Nt=Pe((e,t)=>e.warn(t));var Bt=function(e,t){t=t||{};const r=new nt.Collection,i=Object.assign({debug:()=>{},info:()=>{},warn:console.warn,error:console.error},t&&t.log),n={hook:r,log:i,request:Mt.defaults(Lt(t,i,r))};return e.forEach(e=>e(n,t)),n};const{request:Mt}=Le;var Ht=function(e,t){return zt(e.includes(t)?e:e.concat(t))},zt=function(e){const t=Bt.bind(null,e||[]);return t.plugin=Ht.bind(null,e||[]),t},Wt=zt();async function Jt(e){const t=3===e.split(/\./).length?"app":/^v\d+\./.test(e)?"installation":"oauth";return{type:"token",token:e,tokenType:t}}async function Vt(e,t,r,i){const n=t.endpoint.merge(r,i);return n.headers.authorization=function(e){return 3===e.split(/\./).length?"bearer "+e:"token "+e}(e),t(n)}var Qt={__proto__:null,createTokenAuth:function(e){if(!e)throw new Error("[@octokit/auth-token] No token passed to createTokenAuth");if("string"!=typeof e)throw new Error("[@octokit/auth-token] Token passed to createTokenAuth is not a string");return e=e.replace(/^(token|bearer) +/i,""),Object.assign(Jt.bind(null,e),{hook:Vt.bind(null,e)})}},Kt=function(e){return new Buffer(e).toString("base64")},Yt=function(e){if(/^(basic|bearer|token) /i.test(e))return e;try{if(Xt.test(Buffer.from(e,"base64").toString("binary")))return"basic "+e}catch(e){}return 3===e.split(/\./).length?"bearer "+e:"token "+e};const Xt=/^[\w-]+:/;var Zt=function(e,t){if("string"!=typeof e.auth){if(e.auth.username){const r=Kt(`${e.auth.username}:${e.auth.password}`);return t.headers.authorization="Basic "+r,void(e.otp&&(t.headers["x-github-otp"]=e.otp))}if(e.auth.clientId){if(/\/applications\/:?[\w_]+\/tokens\/:?[\w_]+($|\?)/.test(t.url)){const r=Kt(`${e.auth.clientId}:${e.auth.clientSecret}`);return void(t.headers.authorization="Basic "+r)}return t.url+=-1===t.url.indexOf("?")?"?":"&",void(t.url+=`client_id=${e.auth.clientId}&client_secret=${e.auth.clientSecret}`)}return Promise.resolve().then(()=>e.auth()).then(e=>{t.headers.authorization=Yt(e)})}t.headers.authorization=Yt(e.auth)};const er=Pe(e=>console.warn(e));class tr extends Error{constructor(e,t,r){super(e),Error.captureStackTrace&&Error.captureStackTrace(this,this.constructor),this.name="HttpError",this.status=t,Object.defineProperty(this,"code",{get:()=>(er(new ke("[@octokit/request-error] `error.code` is deprecated, use `error.status`.")),t)}),this.headers=r.headers||{};const i=Object.assign({},r.request);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}}var rr={__proto__:null,RequestError:tr},ir=function(e,t,r){if(!t.headers)throw t;const i=/required/.test(t.headers["x-github-otp"]||"");if(401!==t.status||!i)throw t;if(401===t.status&&i&&t.request&&t.request.headers["x-github-otp"]){if(!e.otp)throw new nr("Invalid one-time password for two-factor authentication",401,{headers:t.headers,request:r});delete e.otp}if("function"!=typeof e.auth.on2fa)throw new nr("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(()=>e.auth.on2fa()).then(t=>{const i=Object.assign(r,{headers:Object.assign(r.headers,{"x-github-otp":t})});return e.octokit.request(i).then(r=>(e.otp=t,r))})};const{RequestError:nr}=rr,{createTokenAuth:sr}=Qt,{Deprecation:or}=je,ar=Pe((e,t)=>e.warn(t)),pr=Pe((e,t)=>e.warn(t));var ur=function(e,t){if(dr(e.octokit.log,new cr('[@octokit/rest] octokit.authenticate() is deprecated. Use "auth" constructor option instead.')),t){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}else e.auth=!1};const{Deprecation:cr}=je,dr=Pe((e,t)=>e.warn(t));var lr=/^\[object .+?Constructor\]$/,gr="object"==typeof self&&self&&self.Object===Object&&self,mr="object"==typeof y&&y&&y.Object===Object&&y||gr||Function("return this")();function hr(e,t){return!(!e||!e.length)&&function(e,t,r){if(t!=t)return function(e,t,r,i){for(var n=e.length,s=-1;++s-1}function yr(e){return e!=e}function fr(e,t){return e.has(t)}function br(e){var t=-1,r=Array(e.size);return e.forEach(function(e){r[++t]=e}),r}var _r,qr=Array.prototype,wr=Function.prototype,vr=Object.prototype,Er=mr["__core-js_shared__"],Tr=(_r=/[^.]+$/.exec(Er&&Er.keys&&Er.keys.IE_PROTO||""))?"Symbol(src)_1."+_r:"",kr=wr.toString,jr=vr.hasOwnProperty,Or=vr.toString,Pr=RegExp("^"+kr.call(jr).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),Sr=qr.splice,Ar=$r(mr,"Map"),Gr=$r(mr,"Set"),Cr=$r(Object,"create");function Rr(e){var t=-1,r=e?e.length:0;for(this.clear();++t-1},xr.prototype.set=function(e,t){var r=this.__data__,i=Ur(r,e);return i<0?r.push([e,t]):r[i][1]=t,this},Dr.prototype.clear=function(){this.__data__={hash:new Rr,map:new(Ar||xr),string:new Rr}},Dr.prototype.delete=function(e){return Fr(this,e).delete(e)},Dr.prototype.get=function(e){return Fr(this,e).get(e)},Dr.prototype.has=function(e){return Fr(this,e).has(e)},Dr.prototype.set=function(e,t){return Fr(this,e).set(e,t),this},Lr.prototype.add=Lr.prototype.push=function(e){return this.__data__.set(e,"__lodash_hash_undefined__"),this},Lr.prototype.has=function(e){return this.__data__.has(e)};var Ir=Gr&&1/br(new Gr([,-0]))[1]==1/0?function(e){return new Gr(e)}:function(){};function Fr(e,t){var r,i,n=e.__data__;return("string"==(i=typeof(r=t))||"number"==i||"symbol"==i||"boolean"==i?"__proto__"!==r:null===r)?n["string"==typeof t?"string":"hash"]:n.map}function $r(e,t){var r=function(e,t){return null==e?void 0:e[t]}(e,t);return function(e){return!(!Nr(e)||(t=e,Tr&&Tr in t))&&(function(e){var t=Nr(e)?Or.call(e):"";return"[object Function]"==t||"[object GeneratorFunction]"==t}(e)||function(e){var t=!1;if(null!=e&&"function"!=typeof e.toString)try{t=!!(e+"")}catch(e){}return t}(e)?Pr:lr).test(function(e){if(null!=e){try{return kr.call(e)}catch(e){}try{return e+""}catch(e){}}return""}(e));var t}(r)?r:void 0}function Nr(e){var t=typeof e;return!!e&&("object"==t||"function"==t)}var Br=function(e,t){if(!e.auth.type)return;if("basic"===e.auth.type){const r=Kt(`${e.auth.username}:${e.auth.password}`);return void(t.headers.authorization="Basic "+r)}if("token"===e.auth.type)return void(t.headers.authorization="token "+e.auth.token);if("app"===e.auth.type){t.headers.authorization="Bearer "+e.auth.token;const i=t.headers.accept.split(",").concat("application/vnd.github.machine-man-preview+json");return void(t.headers.accept=(r=i,r&&r.length?function(e,t,r){var i=-1,n=hr,s=e.length,o=!0,a=[],p=a;if(s>=200){var u=Ir(e);if(u)return br(u);o=!1,n=fr,p=new Lr}else p=a;e:for(;++ie.auth.on2fa()).then(t=>{const i=Object.assign(r,{headers:Object.assign({"x-github-otp":t},r.headers)});return e.octokit.request(i)})};const{RequestError:Hr}=rr,{Deprecation:zr}=je,Wr=Pe((e,t)=>e.warn(t)),Jr=[/^\/search\//,/^\/repos\/[^/]+\/[^/]+\/commits\/[^/]+\/(check-runs|check-suites)([^/]|$)/,/^\/installation\/repositories([^/]|$)/,/^\/user\/installations([^/]|$)/,/^\/repos\/[^/]+\/[^/]+\/actions\/secrets([^/]|$)/,/^\/repos\/[^/]+\/[^/]+\/actions\/workflows(\/[^/]+\/runs)?([^/]|$)/,/^\/repos\/[^/]+\/[^/]+\/actions\/runs(\/[^/]+\/(artifacts|jobs))?([^/]|$)/];function Vr(e,t,r){const i=e.request.endpoint(t,r),n=i.method,s=i.headers;let o=i.url;return{[Symbol.asyncIterator]:()=>({next:()=>o?e.request({method:n,url:o,headers:s}).then(t=>(function(e,t,r){const i=t.replace(e.request.endpoint.DEFAULTS.baseUrl,"");if(!Jr.find(e=>e.test(i)))return;const n=r.data.incomplete_results,s=r.data.repository_selection,o=r.data.total_count;delete r.data.incomplete_results,delete r.data.repository_selection,delete r.data.total_count;const a=Object.keys(r.data)[0],p=r.data[a];r.data=p,void 0!==n&&(r.data.incomplete_results=n),void 0!==s&&(r.data.repository_selection=s),r.data.total_count=o,Object.defineProperty(r.data,a,{get:()=>(e.log.warn(`[@octokit/paginate-rest] "response.data.${a}" is deprecated for "GET ${i}". Get the results directly from "response.data"`),Array.from(p))})}(e,o,t),o=((t.headers.link||"").match(/<([^>]+)>;\s*rel="next"/)||[])[1],{value:t})):Promise.resolve({done:!0})})}}function Qr(e,t,r,i){return"function"==typeof r&&(i=r,r=void 0),function e(t,r,i,n){return i.next().then(s=>{if(s.done)return r;let o=!1;return r=r.concat(n?n(s.value,function(){o=!0}):s.value.data),o?r:e(t,r,i,n)})}(e,[],Vr(e,t,r)[Symbol.asyncIterator](),i)}function Kr(e){return{paginate:Object.assign(Qr.bind(null,e),{iterator:Vr.bind(null,e)})}}Kr.VERSION="1.1.2";var Yr={__proto__:null,paginateRest:Kr};const{paginateRest:Xr}=Yr;var Zr=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,ei=/^\w*$/,ti=/^\./,ri=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,ii=/\\(\\)?/g,ni=/^\[object .+?Constructor\]$/,si="object"==typeof self&&self&&self.Object===Object&&self,oi="object"==typeof y&&y&&y.Object===Object&&y||si||Function("return this")(),ai=Array.prototype,pi=Function.prototype,ui=Object.prototype,ci=oi["__core-js_shared__"],di=function(){var e=/[^.]+$/.exec(ci&&ci.keys&&ci.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}(),li=pi.toString,gi=ui.hasOwnProperty,mi=ui.toString,hi=RegExp("^"+li.call(gi).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),yi=oi.Symbol,fi=ai.splice,bi=Oi(oi,"Map"),_i=Oi(Object,"create"),qi=yi?yi.prototype:void 0,wi=qi?qi.toString:void 0;function vi(e){var t=-1,r=e?e.length:0;for(this.clear();++t-1},Ei.prototype.set=function(e,t){var r=this.__data__,i=ki(r,e);return i<0?r.push([e,t]):r[i][1]=t,this},Ti.prototype.clear=function(){this.__data__={hash:new vi,map:new(bi||Ei),string:new vi}},Ti.prototype.delete=function(e){return ji(this,e).delete(e)},Ti.prototype.get=function(e){return ji(this,e).get(e)},Ti.prototype.has=function(e){return ji(this,e).has(e)},Ti.prototype.set=function(e,t){return ji(this,e).set(e,t),this};var Pi=Ai(function(e){var t;e=null==(t=e)?"":function(e){if("string"==typeof e)return e;if(Ri(e))return wi?wi.call(e):"";var t=e+"";return"0"==t&&1/e==-1/0?"-0":t}(t);var r=[];return ti.test(e)&&r.push(""),e.replace(ri,function(e,t,i,n){r.push(i?n.replace(ii,"$1"):t||e)}),r});function Si(e){if("string"==typeof e||Ri(e))return e;var t=e+"";return"0"==t&&1/e==-1/0?"-0":t}function Ai(e,t){if("function"!=typeof e||t&&"function"!=typeof t)throw new TypeError("Expected a function");var r=function(){var i=arguments,n=t?t.apply(this,i):i[0],s=r.cache;if(s.has(n))return s.get(n);var o=e.apply(this,i);return r.cache=s.set(n,o),o};return r.cache=new(Ai.Cache||Ti),r}Ai.Cache=Ti;var Gi=Array.isArray;function Ci(e){var t=typeof e;return!!e&&("object"==t||"function"==t)}function Ri(e){return"symbol"==typeof e||function(e){return!!e&&"object"==typeof e}(e)&&"[object Symbol]"==mi.call(e)}var xi=function(e,t,r){var i=null==e?void 0:function(e,t){for(var r,i=0,n=(t=function(e,t){if(Gi(e))return!1;var r=typeof e;return!("number"!=r&&"symbol"!=r&&"boolean"!=r&&null!=e&&!Ri(e))||ei.test(e)||!Zr.test(e)||null!=t&&e in Object(t)}(t,e)?[t]:Gi(r=t)?r:Pi(r)).length;null!=e&&i-1&&e%1==0&&e-1},an.prototype.set=function(e,t){var r=this.__data__,i=cn(r,e);return i<0?r.push([e,t]):r[i][1]=t,this},pn.prototype.clear=function(){this.__data__={hash:new on,map:new(tn||an),string:new on}},pn.prototype.delete=function(e){return dn(this,e).delete(e)},pn.prototype.get=function(e){return dn(this,e).get(e)},pn.prototype.has=function(e){return dn(this,e).has(e)},pn.prototype.set=function(e,t){return dn(this,e).set(e,t),this};var mn=yn(function(e){var t;e=null==(t=e)?"":function(e){if("string"==typeof e)return e;if(qn(e))return sn?sn.call(e):"";var t=e+"";return"0"==t&&1/e==-1/0?"-0":t}(t);var r=[];return Ui.test(e)&&r.push(""),e.replace(Ii,function(e,t,i,n){r.push(i?n.replace(Fi,"$1"):t||e)}),r});function hn(e){if("string"==typeof e||qn(e))return e;var t=e+"";return"0"==t&&1/e==-1/0?"-0":t}function yn(e,t){if("function"!=typeof e||t&&"function"!=typeof t)throw new TypeError("Expected a function");var r=function(){var i=arguments,n=t?t.apply(this,i):i[0],s=r.cache;if(s.has(n))return s.get(n);var o=e.apply(this,i);return r.cache=s.set(n,o),o};return r.cache=new(yn.Cache||pn),r}function fn(e,t){return e===t||e!=e&&t!=t}yn.Cache=pn;var bn=Array.isArray;function _n(e){var t=typeof e;return!!e&&("object"==t||"function"==t)}function qn(e){return"symbol"==typeof e||function(e){return!!e&&"object"==typeof e}(e)&&"[object Symbol]"==Yi.call(e)}var wn=function(e,t){if(!t.request.validate)return;const{validate:r}=t.request;return Object.keys(r).forEach(e=>{const i=xi(r,e),n=i.type;let s,o,a=!0,p=!1;/\./.test(e)&&(s=e.replace(/\.[^.]+$/,""),p="[]"===s.slice(-2),p&&(s=s.slice(0,-2)),o=xi(t,s),a="headers"===s||"object"==typeof o&&null!==o),(p?(xi(t,s)||[]).map(t=>t[e.split(/\./).pop()]):[xi(t,e)]).forEach((r,s)=>{const o=void 0!==r,u=null===r,c=p?e.replace(/\[\]/,`[${s}]`):e;if((i.required||o)&&a&&(!i.allowNull||!u)){if(!i.allowNull&&u)throw new vn(`'${c}' cannot be null`,400,{request:t});if(i.required&&!o)throw new vn(`Empty value for parameter '${c}': ${JSON.stringify(r)}`,400,{request:t});if("integer"===n){const e=r;if(r=parseInt(r,10),isNaN(r))throw new vn(`Invalid value for parameter '${c}': ${JSON.stringify(e)} is NaN`,400,{request:t})}if(i.enum&&-1===i.enum.indexOf(String(r)))throw new vn(`Invalid value for parameter '${c}': ${JSON.stringify(r)}`,400,{request:t});if(i.validation&&!new RegExp(i.validation).test(r))throw new vn(`Invalid value for parameter '${c}': ${JSON.stringify(r)}`,400,{request:t});if("object"===n&&"string"==typeof r)try{r=JSON.parse(r)}catch(e){throw new vn(`JSON parse error of value for parameter '${c}': ${JSON.stringify(r)}`,400,{request:t})}!function(e,t,r){null==e||function(e,t,r,i){if(!_n(e))return e;for(var n=-1,s=(t=function(e,t){if(bn(e))return!1;var r=typeof e;return!("number"!=r&&"symbol"!=r&&"boolean"!=r&&null!=e&&!qn(e))||Li.test(e)||!Di.test(e)||null!=t&&e in Object(t)}(t,e)?[t]:function(e){return bn(e)?e:mn(e)}(t)).length,o=s-1,a=e;null!=a&&++n]*)>;\s*rel="([\w]*)"/g,(e,r,i)=>{t[i]=r}),t},jn=class extends Error{constructor(e,t,r){super(e),Error.captureStackTrace&&Error.captureStackTrace(this,this.constructor),this.name="HttpError",this.code=t,this.headers=r}},On=function(e,t,r,i){En(`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 n=kn(t)[r];if(!n){const e=new jn(`No ${r} page found`,404);return Promise.reject(e)}const s={url:n,headers:Pn(t,i)};return e.request(s)};function Pn(e,t){const r=e.headers&&e.headers["x-github-media-type"];return!r||t&&t.accept||((t=t||{}).accept="application/vnd."+r.replace("; param=",".").replace("; format=","+")),t}var Sn=function(e,t,r){return On(e,t,"first",r)},An=function(e,t,r){return On(e,t,"last",r)},Gn=function(e,t,r){return On(e,t,"next",r)},Cn=function(e,t,r){return On(e,t,"prev",r)},Rn=function(e){return En("octokit.hasFirstPage() – You can use octokit.paginate or async iterators instead: https://github.com/octokit/rest.js#pagination."),kn(e).first},xn=function(e){return En("octokit.hasLastPage() – You can use octokit.paginate or async iterators instead: https://github.com/octokit/rest.js#pagination."),kn(e).last},Dn=function(e){return En("octokit.hasNextPage() – You can use octokit.paginate or async iterators instead: https://github.com/octokit/rest.js#pagination."),kn(e).next},Ln=function(e){return En("octokit.hasPreviousPage() – You can use octokit.paginate or async iterators instead: https://github.com/octokit/rest.js#pagination."),kn(e).prev};const{requestLog:Un}=Me,{restEndpointMethods:In}=Ve,Fn=Wt.plugin([function(e,t){if(t.authStrategy){const r=t.authStrategy(t.auth);return e.hook.wrap("request",r.hook),void(e.auth=r)}if(!t.auth)return void(e.auth=()=>Promise.resolve({type:"unauthenticated"}));const r="string"==typeof t.auth&&/^basic/.test(Yt(t.auth));if("string"==typeof t.auth&&!r){const r=sr(t.auth);return e.hook.wrap("request",r.hook),void(e.auth=r)}const[i,n]=r?[ar,'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)']:[pr,'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)'];i(e.log,new or("[@octokit/rest] "+n)),e.auth=()=>Promise.resolve({type:"deprecated",message:n}),function(e){if("string"!=typeof e&&"function"!=typeof e&&!(e.username&&e.password||e.clientId&&e.clientSecret))throw new Error('Invalid "auth" option: '+JSON.stringify(e))}(t.auth);const s={octokit:e,auth:t.auth};e.hook.before("request",Zt.bind(null,s)),e.hook.error("request",ir.bind(null,s))},function(e,t){if(t.auth)return void(e.authenticate=()=>{Wr(e.log,new zr('[@octokit/rest] octokit.authenticate() is deprecated and has no effect when "auth" option is set on Octokit constructor'))});const r={octokit:e,auth:!1};e.authenticate=ur.bind(null,r),e.hook.before("request",Br.bind(null,r)),e.hook.error("request",Mr.bind(null,r))},Un,function(e){Object.assign(e,Xr(e))},In,function(e){e.hook.before("request",wn.bind(null,e))},function(e){e.getFirstPage=Sn.bind(null,e),e.getLastPage=An.bind(null,e),e.getNextPage=Gn.bind(null,e),e.getPreviousPage=Cn.bind(null,e),e.hasFirstPage=Rn,e.hasLastPage=xn,e.hasNextPage=Dn,e.hasPreviousPage=Ln}]),$n=Object.assign(function(e){return(e&&e.log&&e.log.warn?e.log.warn:console.warn)('[@octokit/rest] `const Octokit = require("@octokit/rest")` is deprecated. Use `const { Octokit } = require("@octokit/rest")` instead'),new Fn(e)},{Octokit:Fn});Object.keys(Fn).forEach(e=>{Fn.hasOwnProperty(e)&&($n[e]=Fn[e])});var Nn,Bn=$n,Mn=b(function(e,r){Object.defineProperty(r,"__esModule",{value:!0}),r.Context=class{constructor(){if(this.payload={},process.env.GITHUB_EVENT_PATH)if(i.existsSync(process.env.GITHUB_EVENT_PATH))this.payload=JSON.parse(i.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${t.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'")}}}),Hn=b(function(e,t){function r(e){if(!e.hostname)return!1;let t,r=process.env.no_proxy||process.env.NO_PROXY||"";if(!r)return!1;e.port?t=Number(e.port):"http:"===e.protocol?t=80:"https:"===e.protocol&&(t=443);let i=[e.hostname.toUpperCase()];"number"==typeof t&&i.push(`${i[0]}:${t}`);for(let e of r.split(",").map(e=>e.trim().toUpperCase()).filter(e=>e))if(i.some(t=>t===e))return!0;return!1}Object.defineProperty(t,"__esModule",{value:!0}),t.getProxyUrl=function(e){let t,i,n="https:"===e.protocol;return r(e)||(i=n?process.env.https_proxy||process.env.HTTPS_PROXY:process.env.http_proxy||process.env.HTTP_PROXY,i&&(t=a.parse(i))),t},t.checkBypass=r});function zn(e){var t=this;t.options=e||{},t.proxyOptions=t.options.proxy||{},t.maxSockets=t.options.maxSockets||o.Agent.defaultMaxSockets,t.requests=[],t.sockets=[],t.on("free",function(e,r,i,n){for(var s=Jn(r,i,n),o=0,a=t.requests.length;o=this.maxSockets?n.requests.push(s):n.createSocket(s,function(t){function r(){n.emit("free",t,s)}function i(e){n.removeSocket(t),t.removeListener("free",r),t.removeListener("close",i),t.removeListener("agentRemove",i)}t.on("free",r),t.on("close",i),t.on("agentRemove",i),e.onSocket(t)})},zn.prototype.createSocket=function(e,t){var r=this,i={};r.sockets.push(i);var n=Vn({},r.proxyOptions,{method:"CONNECT",path:e.host+":"+e.port,agent:!1,headers:{host:e.host+":"+e.port}});e.localAddress&&(n.localAddress=e.localAddress),n.proxyAuth&&(n.headers=n.headers||{},n.headers["Proxy-Authorization"]="Basic "+new Buffer(n.proxyAuth).toString("base64")),Nn("making CONNECT request");var s=r.request(n);function o(n,o,a){var p;return s.removeAllListeners(),o.removeAllListeners(),200!==n.statusCode?(Nn("tunneling socket could not be established, statusCode=%d",n.statusCode),o.destroy(),(p=new Error("tunneling socket could not be established, statusCode="+n.statusCode)).code="ECONNRESET",e.request.emit("error",p),void r.removeSocket(i)):a.length>0?(Nn("got illegal response body from proxy"),o.destroy(),(p=new Error("got illegal response body from proxy")).code="ECONNRESET",e.request.emit("error",p),void r.removeSocket(i)):(Nn("tunneling connection has established"),r.sockets[r.sockets.indexOf(i)]=o,t(o))}s.useChunkedEncodingByDefault=!1,s.once("response",function(e){e.upgrade=!0}),s.once("upgrade",function(e,t,r){process.nextTick(function(){o(e,t,r)})}),s.once("connect",o),s.once("error",function(t){s.removeAllListeners(),Nn("tunneling socket could not be established, cause=%s\n",t.message,t.stack);var n=new Error("tunneling socket could not be established, cause="+t.message);n.code="ECONNRESET",e.request.emit("error",n),r.removeSocket(i)}),s.end()},zn.prototype.removeSocket=function(e){var t=this.sockets.indexOf(e);if(-1!==t){this.sockets.splice(t,1);var r=this.requests.shift();r&&this.createSocket(r,function(e){r.request.onSocket(e)})}};var Qn={httpOverHttp:function(e){var t=new zn(e);return t.request=o.request,t},httpsOverHttp:function(e){var t=new zn(e);return t.request=o.request,t.createSocket=Wn,t.defaultPort=443,t},httpOverHttps:function(e){var t=new zn(e);return t.request=p.request,t},httpsOverHttps:function(e){var t=new zn(e);return t.request=p.request,t.createSocket=Wn,t.defaultPort=443,t},debug:Nn=process.env.NODE_DEBUG&&/\btunnel\b/.test(process.env.NODE_DEBUG)?function(){var e=Array.prototype.slice.call(arguments);"string"==typeof e[0]?e[0]="TUNNEL: "+e[0]:e.unshift("TUNNEL:"),console.error.apply(console,e)}:function(){}},Kn=b(function(e,t){let r;var i,n,s;Object.defineProperty(t,"__esModule",{value:!0}),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.TooManyRequests=429]="TooManyRequests",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"}(i=t.HttpCodes||(t.HttpCodes={})),function(e){e.Accept="accept",e.ContentType="content-type"}(n=t.Headers||(t.Headers={})),function(e){e.ApplicationJson="application/json"}(s=t.MediaTypes||(t.MediaTypes={})),t.getProxyUrl=function(e){let t=Hn.getProxyUrl(a.parse(e));return t?t.href:""};const u=[i.MovedPermanently,i.ResourceMoved,i.SeeOther,i.TemporaryRedirect,i.PermanentRedirect],c=[i.BadGateway,i.ServiceUnavailable,i.GatewayTimeout],d=["OPTIONS","GET","DELETE","HEAD"];class l{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=l,t.isHttps=function(e){return"https:"===a.parse(e).protocol};class g{constructor(e,t,r){this._ignoreSslError=!1,this._allowRedirects=!0,this._allowRedirectDowngrade=!1,this._maxRedirects=50,this._allowRetries=!1,this._maxRetries=1,this._keepAlive=!1,this._disposed=!1,this.userAgent=e,this.handlers=t||[],this.requestOptions=r,r&&(null!=r.ignoreSslError&&(this._ignoreSslError=r.ignoreSslError),this._socketTimeout=r.socketTimeout,null!=r.allowRedirects&&(this._allowRedirects=r.allowRedirects),null!=r.allowRedirectDowngrade&&(this._allowRedirectDowngrade=r.allowRedirectDowngrade),null!=r.maxRedirects&&(this._maxRedirects=Math.max(r.maxRedirects,0)),null!=r.keepAlive&&(this._keepAlive=r.keepAlive),null!=r.allowRetries&&(this._allowRetries=r.allowRetries),null!=r.maxRetries&&(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,i){return this.request(e,t,r,i)}async getJson(e,t={}){t[n.Accept]=this._getExistingOrDefaultHeader(t,n.Accept,s.ApplicationJson);let r=await this.get(e,t);return this._processResponse(r,this.requestOptions)}async postJson(e,t,r={}){let i=JSON.stringify(t,null,2);r[n.Accept]=this._getExistingOrDefaultHeader(r,n.Accept,s.ApplicationJson),r[n.ContentType]=this._getExistingOrDefaultHeader(r,n.ContentType,s.ApplicationJson);let o=await this.post(e,i,r);return this._processResponse(o,this.requestOptions)}async putJson(e,t,r={}){let i=JSON.stringify(t,null,2);r[n.Accept]=this._getExistingOrDefaultHeader(r,n.Accept,s.ApplicationJson),r[n.ContentType]=this._getExistingOrDefaultHeader(r,n.ContentType,s.ApplicationJson);let o=await this.put(e,i,r);return this._processResponse(o,this.requestOptions)}async patchJson(e,t,r={}){let i=JSON.stringify(t,null,2);r[n.Accept]=this._getExistingOrDefaultHeader(r,n.Accept,s.ApplicationJson),r[n.ContentType]=this._getExistingOrDefaultHeader(r,n.ContentType,s.ApplicationJson);let o=await this.patch(e,i,r);return this._processResponse(o,this.requestOptions)}async request(e,t,r,n){if(this._disposed)throw new Error("Client has already been disposed.");let s,o=a.parse(t),p=this._prepareRequest(e,o,n),l=this._allowRetries&&-1!=d.indexOf(e)?this._maxRetries+1:1,g=0;for(;g0;){const i=s.message.headers.location;if(!i)break;let u=a.parse(i);if("https:"==o.protocol&&o.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.");if(await s.readBody(),u.hostname!==o.hostname)for(let e in n)"authorization"===e.toLowerCase()&&delete n[e];p=this._prepareRequest(e,u,n),s=await this.requestRaw(p,r),t--}if(-1==c.indexOf(s.message.statusCode))return s;g+=1,g{this.requestRawWithCallback(e,t,function(e,t){e&&i(e),r(t)})})}requestRawWithCallback(e,t,r){let i;"string"==typeof t&&(e.options.headers["Content-Length"]=Buffer.byteLength(t,"utf8"));let n=!1,s=(e,t)=>{n||(n=!0,r(e,t))},o=e.httpModule.request(e.options,e=>{let t=new l(e);s(null,t)});o.on("socket",e=>{i=e}),o.setTimeout(this._socketTimeout||18e4,()=>{i&&i.end(),s(new Error("Request timeout: "+e.options.path),null)}),o.on("error",function(e){s(e,null)}),t&&"string"==typeof t&&o.write(t,"utf8"),t&&"string"!=typeof t?(t.on("close",function(){o.end()}),t.pipe(o)):o.end()}getAgent(e){let t=a.parse(e);return this._getAgent(t)}_prepareRequest(e,t,r){const i={};i.parsedUrl=t;const n="https:"===i.parsedUrl.protocol;i.httpModule=n?p:o;const s=n?443:80;return i.options={},i.options.host=i.parsedUrl.hostname,i.options.port=i.parsedUrl.port?parseInt(i.parsedUrl.port):s,i.options.path=(i.parsedUrl.pathname||"")+(i.parsedUrl.search||""),i.options.method=e,i.options.headers=this._mergeHeaders(r),null!=this.userAgent&&(i.options.headers["user-agent"]=this.userAgent),i.options.agent=this._getAgent(i.parsedUrl),this.handlers&&this.handlers.forEach(e=>{e.prepareRequest(i.options)}),i}_mergeHeaders(e){const t=e=>Object.keys(e).reduce((t,r)=>(t[r.toLowerCase()]=e[r],t),{});return this.requestOptions&&this.requestOptions.headers?Object.assign({},t(this.requestOptions.headers),t(e)):t(e||{})}_getExistingOrDefaultHeader(e,t,r){let i;var n;return this.requestOptions&&this.requestOptions.headers&&(i=(n=this.requestOptions.headers,Object.keys(n).reduce((e,t)=>(e[t.toLowerCase()]=n[t],e),{}))[t]),e[t]||i||r}_getAgent(e){let t,i=Hn.getProxyUrl(e),n=i&&i.hostname;if(this._keepAlive&&n&&(t=this._proxyAgent),this._keepAlive&&!n&&(t=this._agent),t)return t;const s="https:"===e.protocol;let a=100;if(this.requestOptions&&(a=this.requestOptions.maxSockets||o.globalAgent.maxSockets),n){let e;r||(r=Qn);const n="https:"===i.protocol;e=s?n?r.httpsOverHttps:r.httpsOverHttp:n?r.httpOverHttps:r.httpOverHttp,t=e({maxSockets:a,keepAlive:this._keepAlive,proxy:{proxyAuth:i.auth,host:i.hostname,port:i.port}}),this._proxyAgent=t}if(this._keepAlive&&!t){const e={keepAlive:this._keepAlive,maxSockets:a};t=s?new p.Agent(e):new o.Agent(e),this._agent=t}return t||(t=s?p.globalAgent:o.globalAgent),s&&this._ignoreSslError&&(t.options=Object.assign(t.options||{},{rejectUnauthorized:!1})),t}_performExponentialBackoff(e){e=Math.min(10,e);const t=5*Math.pow(2,e);return new Promise(e=>setTimeout(()=>e(),t))}static dateTimeDeserializer(e,t){if("string"==typeof t){let e=new Date(t);if(!isNaN(e.valueOf()))return e}return t}async _processResponse(e,t){return new Promise(async(r,n)=>{const s=e.message.statusCode,o={statusCode:s,result:null,headers:{}};let a,p;s==i.NotFound&&r(o);try{p=await e.readBody(),p&&p.length>0&&(a=t&&t.deserializeDates?JSON.parse(p,g.dateTimeDeserializer):JSON.parse(p),o.result=a),o.headers=e.message.headers}catch(e){}if(s>299){let e;e=a&&a.message?a.message:p&&p.length>0?p:"Failed request: ("+s+")";let t=new Error(e);t.statusCode=s,o.result&&(t.result=o.result),n(t)}else r(o)})}}t.HttpClient=g}),Yn=b(function(e,t){var r=y&&y.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)Object.hasOwnProperty.call(e,r)&&(t[r]=e[r]);return t.default=e,t};Object.defineProperty(t,"__esModule",{value:!0});const i=r(Mn),n=r(Kn);Bn.Octokit.prototype=new Bn.Octokit,t.context=new i.Context;class s extends Bn.Octokit{constructor(e,t){super(s.getOctokitOptions(s.disambiguate(e,t))),this.graphql=s.getGraphQL(s.disambiguate(e,t))}static disambiguate(e,t){return["string"==typeof e?e:"","object"==typeof e?e:t||{}]}static getOctokitOptions(e){const t=e[0],r=Object.assign({},e[1]);r.baseUrl=r.baseUrl||this.getApiBaseUrl();const i=s.getAuthString(t,r);i&&(r.auth=i);const n=s.getProxyAgent(r.baseUrl,r);return n&&(r.request=r.request?Object.assign({},r.request):{},r.request.agent=n),r}static getGraphQL(e){const t={};t.baseUrl=this.getGraphQLBaseUrl();const r=e[1],i=this.getAuthString(e[0],r);i&&(t.headers={authorization:i});const n=s.getProxyAgent(t.baseUrl,r);return n&&(t.request={agent:n}),Ne.graphql.defaults(t)}static getAuthString(e,t){if(!e&&!t.auth)throw new Error("Parameter token or opts.auth is required");if(e&&t.auth)throw new Error("Parameters token and opts.auth may not both be specified");return"string"==typeof t.auth?t.auth:"token "+e}static getProxyAgent(e,t){var r;if(!(null===(r=t.request)||void 0===r?void 0:r.agent)&&n.getProxyUrl(e))return(new n.HttpClient).getAgent(e)}static getApiBaseUrl(){return process.env.GITHUB_API_URL||"https://api.github.com"}static getGraphQLBaseUrl(){let e=process.env.GITHUB_GRAPHQL_URL||"https://api.github.com/graphql";return e.endsWith("/")&&(e=e.substr(0,e.length-1)),e.toUpperCase().endsWith("/GRAPHQL")&&(e=e.substr(0,e.length-"/graphql".length)),e}}t.GitHub=s});function Xn(){return(Xn=Object.assign||function(e){for(var t=1;t=e.length)return t&&(t[u]=e),r(null,e);ts.lastIndex=s;var n=ts.exec(e);return p=o,o+=n[0],s=ts.lastIndex,d[a=p+n[1]]||t&&t[a]===a?process.nextTick(g):t&&Object.prototype.hasOwnProperty.call(t,a)?y(t[a]):i.lstat(a,m)}function m(e,n){if(e)return r(e);if(!n.isSymbolicLink())return d[a]=!0,t&&(t[a]=a),process.nextTick(g);if(!Zn){var s=n.dev.toString(32)+":"+n.ino.toString(32);if(c.hasOwnProperty(s))return h(null,c[s],a)}i.stat(a,function(e){if(e)return r(e);i.readlink(a,function(e,t){Zn||(c[s]=t),h(e,t)})})}function h(e,i,s){if(e)return r(e);var o=n.resolve(p,i);t&&(t[s]=o),y(o)}function y(t){e=n.resolve(t,e.slice(s)),l()}l()}(e,t,r):r(s,o)})}function cs(e,t){if(as)return ss(e,t);try{return ss(e,t)}catch(r){if(ps(r))return function(e,t){if(e=n.resolve(e),t&&Object.prototype.hasOwnProperty.call(t,e))return t[e];var r,s,o,a,p=e,u={},c={};function d(){var t=rs.exec(e);r=t[0].length,s=t[0],o=t[0],a="",Zn&&!c[o]&&(i.lstatSync(o),c[o]=!0)}for(d();r=0&&u>0){for(i=[],s=r.length;c>=0&&!a;)c==p?(i.push(c),p=r.indexOf(e,c+1)):1==i.length?a=[i.pop(),u]:((n=i.pop())=0?p:u;i.length&&(a=[s,o])}return a}gs.range=hs;var ys="\0SLASH"+Math.random()+"\0",fs="\0OPEN"+Math.random()+"\0",bs="\0CLOSE"+Math.random()+"\0",_s="\0COMMA"+Math.random()+"\0",qs="\0PERIOD"+Math.random()+"\0";function ws(e){return parseInt(e,10)==e?parseInt(e,10):e.charCodeAt(0)}function vs(e){return e.split(ys).join("\\").split(fs).join("{").split(bs).join("}").split(_s).join(",").split(qs).join(".")}function Es(e){return"{"+e+"}"}function Ts(e){return/^-?0\d/.test(e)}function ks(e,t){return e<=t}function js(e,t){return e>=t}var Os=xs;xs.Minimatch=Ds;var Ps={sep:"/"};try{Ps=n}catch(e){}var Ss=xs.GLOBSTAR=Ds.GLOBSTAR={},As={"!":{open:"(?:(?!(?:",close:"))[^/]*?)"},"?":{open:"(?:",close:")?"},"+":{open:"(?:",close:")+"},"*":{open:"(?:",close:")*"},"@":{open:"(?:",close:")"}},Gs="().*{}+?[]^$\\!".split("").reduce(function(e,t){return e[t]=!0,e},{}),Cs=/\/+/;function Rs(e,t){e=e||{},t=t||{};var r={};return Object.keys(t).forEach(function(e){r[e]=t[e]}),Object.keys(e).forEach(function(t){r[t]=e[t]}),r}function xs(e,t,r){if("string"!=typeof t)throw new TypeError("glob pattern string required");return r||(r={}),!(!r.nocomment&&"#"===t.charAt(0))&&(""===t.trim()?""===e:new Ds(t,r).match(e))}function Ds(e,t){if(!(this instanceof Ds))return new Ds(e,t);if("string"!=typeof e)throw new TypeError("glob pattern string required");t||(t={}),e=e.trim(),"/"!==Ps.sep&&(e=e.split(Ps.sep).join("/")),this.options=t,this.set=[],this.pattern=e,this.regexp=null,this.negate=!1,this.comment=!1,this.empty=!1,this.make()}function Ls(e,t){if(t||(t=this instanceof Ds?this.options:{}),void 0===(e=void 0===e?this.pattern:e))throw new TypeError("undefined pattern");return t.nobrace||!e.match(/\{.*\}/)?[e]:(r=e)?("{}"===r.substr(0,2)&&(r="\\{\\}"+r.substr(2)),function e(t,r){var i=[],n=ls("{","}",t);if(!n||/\$$/.test(n.pre))return[t];var s,o=/^-?\d+\.\.-?\d+(?:\.\.-?\d+)?$/.test(n.body),a=/^[a-zA-Z]\.\.[a-zA-Z](?:\.\.-?\d+)?$/.test(n.body),p=o||a,u=n.body.indexOf(",")>=0;if(!p&&!u)return n.post.match(/,.*\}/)?e(t=n.pre+"{"+n.body+bs+n.post):[t];if(p)s=n.body.split(/\.\./);else if(1===(s=function e(t){if(!t)return[""];var r=[],i=ls("{","}",t);if(!i)return t.split(",");var n=i.body,s=i.post,o=i.pre.split(",");o[o.length-1]+="{"+n+"}";var a=e(s);return s.length&&(o[o.length-1]+=a.shift(),o.push.apply(o,a)),r.push.apply(r,o),r}(n.body)).length&&1===(s=e(s[0],!1).map(Es)).length)return(l=n.post.length?e(n.post,!1):[""]).map(function(e){return n.pre+s[0]+e});var c,d=n.pre,l=n.post.length?e(n.post,!1):[""];if(p){var g=ws(s[0]),m=ws(s[1]),h=Math.max(s[0].length,s[1].length),y=3==s.length?Math.abs(ws(s[2])):1,f=ks;m0){var v=new Array(w+1).join("0");q=_<0?"-"+v+q.slice(1):v+q}}c.push(q)}}else c=function(t,r){for(var i=[],n=0;n65536)throw new TypeError("pattern is too long");var r=this.options;if(!r.noglobstar&&"**"===e)return Ss;if(""===e)return"";var i,n="",s=!!r.nocase,o=!1,a=[],p=[],u=!1,c=-1,d=-1,l="."===e.charAt(0)?"":r.dot?"(?!(?:^|\\/)\\.{1,2}(?:$|\\/))":"(?!\\.)",g=this;function m(){if(i){switch(i){case"*":n+="[^/]*?",s=!0;break;case"?":n+="[^/]",s=!0;break;default:n+="\\"+i}g.debug("clearStateChar %j %j",i,n),i=!1}}for(var h,y=0,f=e.length;y-1;T--){var k=p[T],j=n.slice(0,k.reStart),O=n.slice(k.reStart,k.reEnd-8),P=n.slice(k.reEnd-8,k.reEnd),S=n.slice(k.reEnd);P+=S;var A=j.split("(").length-1,G=S;for(y=0;y=0&&!(i=e[n]);n--);for(n=0;n>> no match, partial?",e,d,t,l),d!==o))}if("string"==typeof u?(p=i.nocase?c.toLowerCase()===u.toLowerCase():c===u,this.debug("string match",u,c,p)):(p=c.match(u),this.debug("pattern match",u,c,p)),!p)return!1}if(n===o&&s===a)return!0;if(n===o)return r;if(s===a)return n===o-1&&""===e[n];throw new Error("wtf?")};var Is=b(function(e){e.exports="function"==typeof Object.create?function(e,t){t&&(e.super_=t,e.prototype=Object.create(t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}))}:function(e,t){if(t){e.super_=t;var r=function(){};r.prototype=t.prototype,e.prototype=new r,e.prototype.constructor=e}}}),Fs=b(function(e){try{if("function"!=typeof g.inherits)throw"";e.exports=g.inherits}catch(t){e.exports=Is}});function $s(e){return"/"===e.charAt(0)}function Ns(e){var t=/^([a-zA-Z]:|[\\\/]{2}[^\\\/]+[\\\/]+[^\\\/]+)?([\\\/])?([\s\S]*?)$/.exec(e),r=t[1]||"",i=Boolean(r&&":"!==r.charAt(1));return Boolean(t[2]||i)}var Bs="win32"===process.platform?Ns:$s,Ms=Ns;function Hs(e,t){return Object.prototype.hasOwnProperty.call(e,t)}Bs.posix=$s,Bs.win32=Ms;var zs=Os.Minimatch;function Ws(e,t){return e.toLowerCase().localeCompare(t.toLowerCase())}function Js(e,t){return e.localeCompare(t)}function Vs(e){var t=null;if("/**"===e.slice(-3)){var r=e.replace(/(\/\*\*)+$/,"");t=new zs(r,{dot:!0})}return{matcher:new zs(e,{dot:!0}),gmatcher:t}}function Qs(e,t){var r=t;return r="/"===t.charAt(0)?n.join(e.root,t):Bs(t)||""===t?t:e.changedCwd?n.resolve(e.cwd,t):n.resolve(t),"win32"===process.platform&&(r=r.replace(/\\/g,"/")),r}function Ks(e,t){return!!e.ignore.length&&e.ignore.some(function(e){return e.matcher.match(t)||!(!e.gmatcher||!e.gmatcher.match(t))})}var Ys={alphasort:Js,alphasorti:Ws,setopts:function(e,t,r){if(r||(r={}),r.matchBase&&-1===t.indexOf("/")){if(r.noglobstar)throw new Error("base matching requires globstar");t="**/"+t}e.silent=!!r.silent,e.pattern=t,e.strict=!1!==r.strict,e.realpath=!!r.realpath,e.realpathCache=r.realpathCache||Object.create(null),e.follow=!!r.follow,e.dot=!!r.dot,e.mark=!!r.mark,e.nodir=!!r.nodir,e.nodir&&(e.mark=!0),e.sync=!!r.sync,e.nounique=!!r.nounique,e.nonull=!!r.nonull,e.nosort=!!r.nosort,e.nocase=!!r.nocase,e.stat=!!r.stat,e.noprocess=!!r.noprocess,e.absolute=!!r.absolute,e.maxLength=r.maxLength||Infinity,e.cache=r.cache||Object.create(null),e.statCache=r.statCache||Object.create(null),e.symlinks=r.symlinks||Object.create(null),function(e,t){e.ignore=t.ignore||[],Array.isArray(e.ignore)||(e.ignore=[e.ignore]),e.ignore.length&&(e.ignore=e.ignore.map(Vs))}(e,r),e.changedCwd=!1;var i=process.cwd();Hs(r,"cwd")?(e.cwd=n.resolve(r.cwd),e.changedCwd=e.cwd!==i):e.cwd=i,e.root=r.root||n.resolve(e.cwd,"/"),e.root=n.resolve(e.root),"win32"===process.platform&&(e.root=e.root.replace(/\\/g,"/")),e.cwdAbs=Bs(e.cwd)?e.cwd:Qs(e,e.cwd),"win32"===process.platform&&(e.cwdAbs=e.cwdAbs.replace(/\\/g,"/")),e.nomount=!!r.nomount,r.nonegate=!0,r.nocomment=!0,e.minimatch=new zs(t,r),e.options=e.minimatch.options},ownProp:Hs,makeAbs:Qs,finish:function(e){for(var t=e.nounique,r=t?[]:Object.create(null),i=0,n=e.matches.length;ithis.maxLength)return!1;if(!this.stat&&eo(this.cache,t)){var n=this.cache[t];if(Array.isArray(n)&&(n="DIR"),!r||"DIR"===n)return n;if(r&&"FILE"===n)return!1}var s=this.statCache[t];if(!s){var o;try{o=i.lstatSync(t)}catch(e){if(e&&("ENOENT"===e.code||"ENOTDIR"===e.code))return this.statCache[t]=!1,!1}if(o&&o.isSymbolicLink())try{s=i.statSync(t)}catch(e){s=o}else s=o}return this.statCache[t]=s,n=!0,s&&(n=s.isDirectory()?"DIR":"FILE"),this.cache[t]=this.cache[t]||n,(!r||"FILE"!==n)&&n},no.prototype._mark=function(e){return Ys.mark(this,e)},no.prototype._makeAbs=function(e){return Ys.makeAbs(this,e)};var so=Object.create(null),oo=Oe(function(e,t){return so[e]?(so[e].push(t),null):(so[e]=[t],function(e){return Pe(function t(){var r=so[e],i=r.length,n=ao(arguments);try{for(var s=0;si?(r.splice(0,i),process.nextTick(function(){t.apply(null,n)})):delete so[e]}})}(e))});function ao(e){for(var t=e.length,r=[],i=0;i1)return!0;for(var n=0;nthis.maxLength)return t();if(!this.stat&&lo(this.cache,r)){var s=this.cache[r];if(Array.isArray(s)&&(s="DIR"),!n||"DIR"===s)return t(null,s);if(n&&"FILE"===s)return t()}var o=this.statCache[r];if(void 0!==o){if(!1===o)return t(null,o);var a=o.isDirectory()?"DIR":"FILE";return n&&"FILE"===a?t():t(null,a,o)}var p=this,u=oo("stat\0"+r,function(n,s){if(s&&s.isSymbolicLink())return i.stat(r,function(i,n){i?p._stat2(e,r,null,s,t):p._stat2(e,r,i,n,t)});p._stat2(e,r,n,s,t)});u&&i.lstat(r,u)},fo.prototype._stat2=function(e,t,r,i,n){if(r&&("ENOENT"===r.code||"ENOTDIR"===r.code))return this.statCache[t]=!1,n();var s="/"===e.slice(-1);if(this.statCache[t]=i,"/"===t.slice(-1)&&i&&!i.isDirectory())return n(null,!1,i);var o=!0;return i&&(o=i.isDirectory()?"DIR":"FILE"),this.cache[t]=this.cache[t]||o,s&&"FILE"===o?n():n(null,o,i)};let bo=void 0;try{bo=po}catch(e){}const _o={nosort:!0,silent:!0};let qo=0;const wo="win32"===process.platform,vo=e=>{if(["unlink","chmod","stat","lstat","rmdir","readdir"].forEach(t=>{e[t]=e[t]||i[t],e[t+="Sync"]=e[t]||i[t]}),e.maxBusyTries=e.maxBusyTries||3,e.emfileWait=e.emfileWait||1e3,!1===e.glob&&(e.disableGlob=!0),!0!==e.disableGlob&&void 0===bo)throw Error("glob dependency not found, set `options.disableGlob = true` if intentional");e.disableGlob=e.disableGlob||!1,e.glob=e.glob||_o},Eo=(e,t,r)=>{"function"==typeof t&&(r=t,t={}),l(e,"rimraf: missing path"),l.equal(typeof e,"string","rimraf: path should be a string"),l.equal(typeof r,"function","rimraf: callback function required"),l(t,"rimraf: invalid options argument provided"),l.equal(typeof t,"object","rimraf: options should be object"),vo(t);let i=0,n=null,s=0;const o=(e,o)=>e?r(e):(s=o.length,0===s?r():void o.forEach(e=>{const o=a=>{if(a){if(("EBUSY"===a.code||"ENOTEMPTY"===a.code||"EPERM"===a.code)&&iTo(e,t,o),100*i);if("EMFILE"===a.code&&qoTo(e,t,o),qo++);"ENOENT"===a.code&&(a=null)}qo=0,(e=>{n=n||e,0==--s&&r(n)})(a)};To(e,t,o)}));if(t.disableGlob||!bo.hasMagic(e))return o(null,[e]);t.lstat(e,(r,i)=>{if(!r)return o(null,[e]);bo(e,t.glob,o)})},To=(e,t,r)=>{l(e),l(t),l("function"==typeof r),t.lstat(e,(i,n)=>i&&"ENOENT"===i.code?r(null):(i&&"EPERM"===i.code&&wo&&ko(e,t,i,r),n&&n.isDirectory()?Oo(e,t,i,r):void t.unlink(e,i=>{if(i){if("ENOENT"===i.code)return r(null);if("EPERM"===i.code)return wo?ko(e,t,i,r):Oo(e,t,i,r);if("EISDIR"===i.code)return Oo(e,t,i,r)}return r(i)})))},ko=(e,t,r,i)=>{l(e),l(t),l("function"==typeof i),t.chmod(e,438,n=>{n?i("ENOENT"===n.code?null:r):t.stat(e,(n,s)=>{n?i("ENOENT"===n.code?null:r):s.isDirectory()?Oo(e,t,r,i):t.unlink(e,i)})})},jo=(e,t,r)=>{l(e),l(t);try{t.chmodSync(e,438)}catch(e){if("ENOENT"===e.code)return;throw r}let i;try{i=t.statSync(e)}catch(e){if("ENOENT"===e.code)return;throw r}i.isDirectory()?Ao(e,t,r):t.unlinkSync(e)},Oo=(e,t,r,i)=>{l(e),l(t),l("function"==typeof i),t.rmdir(e,n=>{!n||"ENOTEMPTY"!==n.code&&"EEXIST"!==n.code&&"EPERM"!==n.code?i(n&&"ENOTDIR"===n.code?r:n):Po(e,t,i)})},Po=(e,t,r)=>{l(e),l(t),l("function"==typeof r),t.readdir(e,(i,s)=>{if(i)return r(i);let o,a=s.length;if(0===a)return t.rmdir(e,r);s.forEach(i=>{Eo(n.join(e,i),t,i=>{if(!o)return i?r(o=i):void(0==--a&&t.rmdir(e,r))})})})},So=(e,t)=>{let r;if(vo(t=t||{}),l(e,"rimraf: missing path"),l.equal(typeof e,"string","rimraf: path should be a string"),l(t,"rimraf: missing options"),l.equal(typeof t,"object","rimraf: options should be object"),t.disableGlob||!bo.hasMagic(e))r=[e];else try{t.lstatSync(e),r=[e]}catch(i){r=bo.sync(e,t.glob)}if(r.length)for(let e=0;e{l(e),l(t);try{t.rmdirSync(e)}catch(i){if("ENOENT"===i.code)return;if("ENOTDIR"===i.code)throw r;"ENOTEMPTY"!==i.code&&"EEXIST"!==i.code&&"EPERM"!==i.code||Go(e,t)}},Go=(e,t)=>{l(e),l(t),t.readdirSync(e).forEach(r=>So(n.join(e,r),t));const r=wo?100:1;let i=0;for(;;){let n=!0;try{const s=t.rmdirSync(e,t);return n=!1,s}finally{if(++i0?e():s(new Error("Could not get a unique tmp filename, max tries reached "+t));s(null,t)})}catch(e){s(e)}}()}function f(e){const t=j(e)[0];P(t);let r=t.tries;do{const e=O(t);try{i.statSync(e)}catch(t){return e}}while(r-- >0);throw new Error("Could not get a unique tmp filename, max tries reached")}function b(e,t){const r=function(e){if(e&&!C(e))return t(e);t()};0<=e[0]?i.close(e[0],function(){i.unlink(e[1],r)}):i.unlink(e[1],r)}function _(e){let t=null;try{0<=e[0]&&i.closeSync(e[0])}catch(e){if(!R(e,-u,"EBADF")&&!C(e))throw e}finally{try{i.unlinkSync(e[1])}catch(e){C(e)||(t=e)}}if(null!==t)throw t}function q(e,t,r,i){const n=v(_,[t,e],i),s=v(b,[t,e],i,n);return r.keep||d.unshift(n),i?n:s}function w(e,t,r){const n=t.unsafeCleanup?Co:i.rmdir.bind(i),s=v(t.unsafeCleanup?g:l,e,r),o=v(n,e,r,s);return t.keep||d.unshift(s),r?s:o}function v(e,t,r,i){let n=!1;return function s(o){if(!n){const a=d.indexOf(i||s);return a>=0&&d.splice(a,1),n=!0,r||e===l||e===g?e(t):e(t,o||function(){})}}}function E(e){let t=[],r=null;try{r=m.randomBytes(e)}catch(t){r=m.pseudoRandomBytes(e)}for(var i=0;i0||(8&e.mode)>0&&e.gid===process.getgid()||(64&e.mode)>0&&e.uid===process.getuid()}Object.defineProperty(t,"__esModule",{value:!0}),t.chmod=(r=i.promises).chmod,t.copyFile=r.copyFile,t.lstat=r.lstat,t.mkdir=r.mkdir,t.readdir=r.readdir,t.readlink=r.readlink,t.rename=r.rename,t.rmdir=r.rmdir,t.stat=r.stat,t.symlink=r.symlink,t.unlink=r.unlink,t.IS_WINDOWS="win32"===process.platform,t.exists=function(e){return s(this,void 0,void 0,function*(){try{yield t.stat(e)}catch(e){if("ENOENT"===e.code)return!1;throw e}return!0})},t.isDirectory=function(e,r=!1){return s(this,void 0,void 0,function*(){return(r?yield t.stat(e):yield t.lstat(e)).isDirectory()})},t.isRooted=function(e){if(!(e=function(e){return e=e||"",t.IS_WINDOWS?(e=e.replace(/\//g,"\\")).replace(/\\\\+/g,"\\"):e.replace(/\/\/+/g,"/")}(e)))throw new Error('isRooted() parameter "p" cannot be empty');return t.IS_WINDOWS?e.startsWith("\\")||/^[A-Z]:/i.test(e):e.startsWith("/")},t.mkdirP=function e(r,i=1e3,o=1){return s(this,void 0,void 0,function*(){if(l.ok(r,"a path argument must be provided"),r=n.resolve(r),o>=i)return t.mkdir(r);try{return void(yield t.mkdir(r))}catch(s){switch(s.code){case"ENOENT":return yield e(n.dirname(r),i,o+1),void(yield t.mkdir(r));default:{let e;try{e=yield t.stat(r)}catch(e){throw s}if(!e.isDirectory())throw s}}}})},t.tryGetExecutablePath=function(e,r){return s(this,void 0,void 0,function*(){let i=void 0;try{i=yield t.stat(e)}catch(t){"ENOENT"!==t.code&&console.log(`Unexpected error attempting to determine if executable file exists '${e}': ${t}`)}if(i&&i.isFile())if(t.IS_WINDOWS){const t=n.extname(e).toUpperCase();if(r.some(e=>e.toUpperCase()===t))return e}else if(o(i))return e;const s=e;for(const a of r){e=s+a,i=void 0;try{i=yield t.stat(e)}catch(t){"ENOENT"!==t.code&&console.log(`Unexpected error attempting to determine if executable file exists '${e}': ${t}`)}if(i&&i.isFile()){if(t.IS_WINDOWS){try{const r=n.dirname(e),i=n.basename(e).toUpperCase();for(const s of yield t.readdir(r))if(i===s.toUpperCase()){e=n.join(r,s);break}}catch(t){console.log(`Unexpected error attempting to determine the actual case of the file '${e}': ${t}`)}return e}if(o(i))return e}}return""})}}),Do=b(function(e,t){var r=y&&y.__awaiter||function(e,t,r,i){return new(r||(r=Promise))(function(n,s){function o(e){try{p(i.next(e))}catch(e){s(e)}}function a(e){try{p(i.throw(e))}catch(e){s(e)}}function p(e){var t;e.done?n(e.value):(t=e.value,t instanceof r?t:new r(function(e){e(t)})).then(o,a)}p((i=i.apply(e,t||[])).next())})};Object.defineProperty(t,"__esModule",{value:!0});const i=g.promisify(h.exec);function s(e){return r(this,void 0,void 0,function*(){if(xo.IS_WINDOWS){try{(yield xo.isDirectory(e,!0))?yield i(`rd /s /q "${e}"`):yield i(`del /f /a "${e}"`)}catch(e){if("ENOENT"!==e.code)throw e}try{yield xo.unlink(e)}catch(e){if("ENOENT"!==e.code)throw e}}else{let t=!1;try{t=yield xo.isDirectory(e)}catch(e){if("ENOENT"!==e.code)throw e;return}t?yield i(`rm -rf "${e}"`):yield xo.unlink(e)}})}function o(e){return r(this,void 0,void 0,function*(){yield xo.mkdirP(e)})}function a(e,t,i){return r(this,void 0,void 0,function*(){if((yield xo.lstat(e)).isSymbolicLink()){try{yield xo.lstat(t),yield xo.unlink(t)}catch(e){"EPERM"===e.code&&(yield xo.chmod(t,"0666"),yield xo.unlink(t))}const r=yield xo.readlink(e);yield xo.symlink(r,t,xo.IS_WINDOWS?"junction":null)}else(yield xo.exists(t))&&!i||(yield xo.copyFile(e,t))})}t.cp=function(e,t,i={}){return r(this,void 0,void 0,function*(){const{force:s,recursive:p}=function(e){return{force:null==e.force||e.force,recursive:Boolean(e.recursive)}}(i),u=(yield xo.exists(t))?yield xo.stat(t):null;if(u&&u.isFile()&&!s)return;const c=u&&u.isDirectory()?n.join(t,n.basename(e)):t;if(!(yield xo.exists(e)))throw new Error("no such file or directory: "+e);if((yield xo.stat(e)).isDirectory()){if(!p)throw new Error(`Failed to copy. ${e} is a directory, but tried to copy without recursive flag.`);yield function e(t,i,n,s){return r(this,void 0,void 0,function*(){if(n>=255)return;n++,yield o(i);const r=yield xo.readdir(t);for(const o of r){const r=`${t}/${o}`,p=`${i}/${o}`;(yield xo.lstat(r)).isDirectory()?yield e(r,p,n,s):yield a(r,p,s)}yield xo.chmod(i,(yield xo.stat(t)).mode)})}(e,c,0,s)}else{if(""===n.relative(e,c))throw new Error(`'${c}' and '${e}' are the same file`);yield a(e,c,s)}})},t.mv=function(e,t,i={}){return r(this,void 0,void 0,function*(){if(yield xo.exists(t)){let r=!0;if((yield xo.isDirectory(t))&&(t=n.join(t,n.basename(e)),r=yield xo.exists(t)),r){if(null!=i.force&&!i.force)throw new Error("Destination already exists");yield s(t)}}yield o(n.dirname(t)),yield xo.rename(e,t)})},t.rmRF=s,t.mkdirP=o,t.which=function e(t,i){return r(this,void 0,void 0,function*(){if(!t)throw new Error("parameter 'tool' is required");if(i&&!(yield e(t,!1)))throw xo.IS_WINDOWS?new Error(`Unable to locate executable file: ${t}. Please verify either the file path exists or the file can be found within a directory specified by the PATH environment variable. Also verify the file has a valid extension for an executable file.`):new Error(`Unable to locate executable file: ${t}. Please verify either the file path exists or the file can be found within a directory specified by the PATH environment variable. Also check the file mode to verify the file is executable.`);try{const e=[];if(xo.IS_WINDOWS&&process.env.PATHEXT)for(const t of process.env.PATHEXT.split(n.delimiter))t&&e.push(t);if(xo.isRooted(t))return(yield xo.tryGetExecutablePath(t,e))||"";if(t.includes("/")||xo.IS_WINDOWS&&t.includes("\\"))return"";const r=[];if(process.env.PATH)for(const e of process.env.PATH.split(n.delimiter))e&&r.push(e);for(const i of r){const r=yield xo.tryGetExecutablePath(i+n.sep+t,e);if(r)return r}return""}catch(e){throw new Error("which failed with message "+e.message)}})}}),Lo=b(function(e,r){var i=y&&y.__awaiter||function(e,t,r,i){return new(r||(r=Promise))(function(n,s){function o(e){try{p(i.next(e))}catch(e){s(e)}}function a(e){try{p(i.throw(e))}catch(e){s(e)}}function p(e){var t;e.done?n(e.value):(t=e.value,t instanceof r?t:new r(function(e){e(t)})).then(o,a)}p((i=i.apply(e,t||[])).next())})},s=y&&y.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)Object.hasOwnProperty.call(e,r)&&(t[r]=e[r]);return t.default=e,t};Object.defineProperty(r,"__esModule",{value:!0});const o=s(t),a=s(d),p=s(h),u=s(n),c=s(Do),l=s(xo),g="win32"===process.platform;r.ToolRunner=class extends a.EventEmitter{constructor(e,t,r){if(super(),!e)throw new Error("Parameter 'toolPath' cannot be null or empty.");this.toolPath=e,this.args=t||[],this.options=r||{}}_debug(e){this.options.listeners&&this.options.listeners.debug&&this.options.listeners.debug(e)}_getCommandString(e,t){const r=this._getSpawnFileName(),i=this._getSpawnArgs(e);let n=t?"":"[command]";if(g)if(this._isCmdFile()){n+=r;for(const e of i)n+=" "+e}else if(e.windowsVerbatimArguments){n+=`"${r}"`;for(const e of i)n+=" "+e}else{n+=this._windowsQuoteCmdArg(r);for(const e of i)n+=" "+this._windowsQuoteCmdArg(e)}else{n+=r;for(const e of i)n+=" "+e}return n}_processLineBuffer(e,t,r){try{let i=t+e.toString(),n=i.indexOf(o.EOL);for(;n>-1;)r(i.substring(0,n)),i=i.substring(n+o.EOL.length),n=i.indexOf(o.EOL);t=i}catch(e){this._debug("error processing line. Failed with error "+e)}}_getSpawnFileName(){return g&&this._isCmdFile()?process.env.COMSPEC||"cmd.exe":this.toolPath}_getSpawnArgs(e){if(g&&this._isCmdFile()){let t='/D /S /C "'+this._windowsQuoteCmdArg(this.toolPath);for(const r of this.args)t+=" ",t+=e.windowsVerbatimArguments?r:this._windowsQuoteCmdArg(r);return t+='"',[t]}return this.args}_endsWith(e,t){return e.endsWith(t)}_isCmdFile(){const e=this.toolPath.toUpperCase();return this._endsWith(e,".CMD")||this._endsWith(e,".BAT")}_windowsQuoteCmdArg(e){if(!this._isCmdFile())return this._uvQuoteCmdArg(e);if(!e)return'""';const t=[" ","\t","&","(",")","[","]","{","}","^","=",";","!","'","+",",","`","~","|","<",">",'"'];let r=!1;for(const i of e)if(t.some(e=>e===i)){r=!0;break}if(!r)return e;let i='"',n=!0;for(let t=e.length;t>0;t--)i+=e[t-1],n&&"\\"===e[t-1]?i+="\\":'"'===e[t-1]?(n=!0,i+='"'):n=!1;return i+='"',i.split("").reverse().join("")}_uvQuoteCmdArg(e){if(!e)return'""';if(!e.includes(" ")&&!e.includes("\t")&&!e.includes('"'))return e;if(!e.includes('"')&&!e.includes("\\"))return`"${e}"`;let t='"',r=!0;for(let i=e.length;i>0;i--)t+=e[i-1],r&&"\\"===e[i-1]?t+="\\":'"'===e[i-1]?(r=!0,t+="\\"):r=!1;return t+='"',t.split("").reverse().join("")}_cloneExecOptions(e){const t={cwd:(e=e||{}).cwd||process.cwd(),env:e.env||process.env,silent:e.silent||!1,windowsVerbatimArguments:e.windowsVerbatimArguments||!1,failOnStdErr:e.failOnStdErr||!1,ignoreReturnCode:e.ignoreReturnCode||!1,delay:e.delay||1e4};return t.outStream=e.outStream||process.stdout,t.errStream=e.errStream||process.stderr,t}_getSpawnOptions(e,t){const r={};return r.cwd=(e=e||{}).cwd,r.env=e.env,r.windowsVerbatimArguments=e.windowsVerbatimArguments||this._isCmdFile(),e.windowsVerbatimArguments&&(r.argv0=`"${t}"`),r}exec(){return i(this,void 0,void 0,function*(){return!l.isRooted(this.toolPath)&&(this.toolPath.includes("/")||g&&this.toolPath.includes("\\"))&&(this.toolPath=u.resolve(process.cwd(),this.options.cwd||process.cwd(),this.toolPath)),this.toolPath=yield c.which(this.toolPath,!0),new Promise((e,t)=>{this._debug("exec tool: "+this.toolPath),this._debug("arguments:");for(const e of this.args)this._debug(" "+e);const r=this._cloneExecOptions(this.options);!r.silent&&r.outStream&&r.outStream.write(this._getCommandString(r)+o.EOL);const i=new m(r,this.toolPath);i.on("debug",e=>{this._debug(e)});const n=this._getSpawnFileName(),s=p.spawn(n,this._getSpawnArgs(r),this._getSpawnOptions(this.options,n));if(s.stdout&&s.stdout.on("data",e=>{this.options.listeners&&this.options.listeners.stdout&&this.options.listeners.stdout(e),!r.silent&&r.outStream&&r.outStream.write(e),this._processLineBuffer(e,"",e=>{this.options.listeners&&this.options.listeners.stdline&&this.options.listeners.stdline(e)})}),s.stderr&&s.stderr.on("data",e=>{i.processStderr=!0,this.options.listeners&&this.options.listeners.stderr&&this.options.listeners.stderr(e),!r.silent&&r.errStream&&r.outStream&&(r.failOnStdErr?r.errStream:r.outStream).write(e),this._processLineBuffer(e,"",e=>{this.options.listeners&&this.options.listeners.errline&&this.options.listeners.errline(e)})}),s.on("error",e=>{i.processError=e.message,i.processExited=!0,i.processClosed=!0,i.CheckComplete()}),s.on("exit",e=>{i.processExitCode=e,i.processExited=!0,this._debug(`Exit code ${e} received from tool '${this.toolPath}'`),i.CheckComplete()}),s.on("close",e=>{i.processExitCode=e,i.processExited=!0,i.processClosed=!0,this._debug(`STDIO streams have closed for tool '${this.toolPath}'`),i.CheckComplete()}),i.on("done",(r,i)=>{"".length>0&&this.emit("stdline",""),"".length>0&&this.emit("errline",""),s.removeAllListeners(),r?t(r):e(i)}),this.options.input){if(!s.stdin)throw new Error("child process missing stdin");s.stdin.end(this.options.input)}})})}},r.argStringToArray=function(e){const t=[];let r=!1,i=!1,n="";function s(e){i&&'"'!==e&&(n+="\\"),n+=e,i=!1}for(let o=0;o0&&(t.push(n),n=""):i?s(a):r=!r}return n.length>0&&t.push(n.trim()),t};class m extends a.EventEmitter{constructor(e,t){if(super(),this.processClosed=!1,this.processError="",this.processExitCode=0,this.processExited=!1,this.processStderr=!1,this.delay=1e4,this.done=!1,this.timeout=null,!t)throw new Error("toolPath must not be empty");this.options=e,this.toolPath=t,e.delay&&(this.delay=e.delay)}CheckComplete(){this.done||(this.processClosed?this._setResult():this.processExited&&(this.timeout=setTimeout(m.HandleTimeout,this.delay,this)))}_debug(e){this.emit("debug",e)}_setResult(){let e;this.processExited&&(this.processError?e=new Error(`There was an error when attempting to execute the process '${this.toolPath}'. This may indicate the process failed to start. Error: ${this.processError}`):0===this.processExitCode||this.options.ignoreReturnCode?this.processStderr&&this.options.failOnStdErr&&(e=new Error(`The process '${this.toolPath}' failed because one or more lines were written to the STDERR stream`)):e=new Error(`The process '${this.toolPath}' failed with exit code ${this.processExitCode}`)),this.timeout&&(clearTimeout(this.timeout),this.timeout=null),this.done=!0,this.emit("done",e,this.processExitCode)}static HandleTimeout(e){e.done||(!e.processClosed&&e.processExited&&e._debug(`The STDIO streams did not close within ${e.delay/1e3} seconds of the exit event from process '${e.toolPath}'. This may indicate a child process inherited the STDIO streams and has not yet exited.`),e._setResult())}}}),Uo=f(b(function(e,t){var r=y&&y.__awaiter||function(e,t,r,i){return new(r||(r=Promise))(function(n,s){function o(e){try{p(i.next(e))}catch(e){s(e)}}function a(e){try{p(i.throw(e))}catch(e){s(e)}}function p(e){var t;e.done?n(e.value):(t=e.value,t instanceof r?t:new r(function(e){e(t)})).then(o,a)}p((i=i.apply(e,t||[])).next())})},i=y&&y.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)Object.hasOwnProperty.call(e,r)&&(t[r]=e[r]);return t.default=e,t};Object.defineProperty(t,"__esModule",{value:!0});const n=i(Lo);t.exec=function(e,t,i){return r(this,void 0,void 0,function*(){const r=n.argStringToArray(e);if(0===r.length)throw new Error("Parameter 'commandLine' cannot be null or empty.");const s=r[0];return t=r.slice(1).concat(t||[]),new n.ToolRunner(s,t,i).exec()})}}));const Io=function(e,t,r,i,n=!1){try{let o;function s(e){return o?e:a.length?a[a.length-1].toString("utf-8"):""}let a=[];const p=function(s,o){try{var p=Promise.resolve(Uo.exec(e,[...t,...r?["--project",r]:[],n?"--debug":"--json"],{listeners:{stdout(e){a.push(e)}},env:Xn({},process.env,{FIREBASE_DEPLOY_AGENT:"action-hosting-deploy",GOOGLE_APPLICATION_CREDENTIALS:i})})).then(function(){})}catch(e){return o(e)}return p&&p.then?p.then(void 0,o):p}(0,function(s){if(console.log(Buffer.concat(a).toString("utf-8")),console.log(s.message),!1===n)return console.log("Retrying deploy with the --debug flag for better error output"),o=1,Io(e,t,r,i,!0);throw s});return Promise.resolve(p&&p.then?p.then(s):s(p))}catch(e){return Promise.reject(e)}};function Fo(e,t){try{var r=e()}catch(e){return t(e)}return r&&r.then?r.then(void 0,t):r}const $o=v.getInput("expires"),No=v.getInput("projectId"),Bo=v.getInput("firebaseServiceAccount",{required:!0}),Mo=v.getInput("channelId"),Ho="live"===Mo,zo=process.env.GITHUB_TOKEN||v.getInput("repoToken"),Wo=zo?new Yn.GitHub(zo):void 0,Jo=v.getInput("entryPoint");!function(){try{function e(){return function(e,n){try{var s=function(){if(v.startGroup("Verifying firebase.json exists"),"."!==Jo){console.log("Changing to directory: "+Jo);try{process.chdir(Jo)}catch(e){throw Error(`Error changing to directory ${Jo}: ${e}`)}}if(!r.existsSync("./firebase.json"))throw Error("firebase.json file not found. If your firebase.json file is not in the root of your repo, edit the entryPoint option of this GitHub action.");return console.log("firebase.json file found. Continuing deploy."),v.endGroup(),v.startGroup("Setting up CLI credentials"),Promise.resolve(function(e){try{const t=Ro.fileSync({postfix:".json"});return r.writeSync(t.fd,e),Promise.resolve(t.name)}catch(e){return Promise.reject(e)}}(Bo)).then(function(e){let r;function n(n){if(r)return n;const s=function(e,t){let r="";if(e)r=e;else if(t.payload.pull_request){const e=t.payload.pull_request.head.ref.substr(0,20);r=`pr${t.payload.pull_request.number}-${e}`}const i=r.replace(/[^a-zA-Z0-9_\-\.]/g,"_");return i!==r&&console.log(`ChannelId "${r}" contains unsupported characters. Using "${i}" instead.`),i}(Mo,Yn.context);return v.startGroup("Deploying to Firebase preview channel "+s),Promise.resolve(function(e,t){try{const{projectId:r,expires:i,channelId:n}=t;return Promise.resolve(Io("npx firebase-tools",["hosting:channel:deploy",n,...i?["--expires",i]:[]],r,e)).then(function(e){return JSON.parse(e)})}catch(e){return Promise.reject(e)}}(e,{projectId:No,expires:$o,channelId:s})).then(function(e){function r(){return Promise.resolve(i({details_url:o[0],conclusion:"success",output:{title:"Deploy preview succeeded",summary:a}})).then(function(){})}if(v.endGroup(),"error"===e.status)throw Error(e.error);const n=Object.values(e.result),s=n[0].expireTime,o=n.map(e=>e.url);v.setOutput("urls",o),v.setOutput("expire_time",s),v.setOutput("details_url",o[0]);const a=1===o.length?`[${o[0]}](${o[0]})`:o.map(e=>`- [${e}](${e})`).join("\n"),p=function(){if(zo&&t){var e;const t=null==(e=Yn.context.payload.pull_request)?void 0:e.head.sha.substring(0,7);return Promise.resolve(function(e,t,r){try{function i(){function r(){function t(){v.endGroup()}const r=function(){if(!o){const t=Fo(function(){return Promise.resolve(e.issues.createComment(s)).then(function(){})},function(e){console.log("Error creating comment: "+e.message)});if(t&&t.then)return t.then(function(){})}}();return r&&r.then?r.then(t):t()}const i=function(){if(o){const r=Fo(function(){return Promise.resolve(e.issues.updateComment(Xn({},t.repo,{comment_id:o,body:s.body}))).then(function(){})},function(){o=null});if(r&&r.then)return r.then(function(){})}}();return i&&i.then?i.then(r):r()}if(!e)return console.log("GitHub object not available. Skipping PR comment."),Promise.resolve();const n=Xn({},t.repo,{issue_number:t.issue.number}),s=Xn({},n,{body:r+"\n\n🔥 via [Firebase Hosting GitHub Action](https://github.com/marketplace/actions/deploy-to-firebase-hosting) 🌎"});let o;v.startGroup("Updating PR comment");const a=Fo(function(){return Promise.resolve(e.issues.listComments(n)).then(function(e){const t=e.data;for(let e=t.length;e--;){const r=t[e];if("Bot"===r.user.type&&/[\s\n]*🔥 via \[Firebase Hosting GitHub Action/.test(r.body))return void(o=r.id)}})},function(e){console.log("Error checking for previous comments: "+e.message)});return Promise.resolve(a&&a.then?a.then(i):i())}catch(e){return Promise.reject(e)}}(Wo,Yn.context,`\nVisit the preview URL for this PR (updated for commit ${t}):\n\n${a}\n\n(expires ${new Date(s).toUTCString()})`.trim())).then(function(){})}}();return p&&p.then?p.then(r):r()})}console.log("Created a temporary file with Application Default Credentials."),v.endGroup();const s=function(){if(Ho)return v.startGroup("Deploying to production site"),Promise.resolve(function(e,t){try{return Promise.resolve(Io("npx firebase-tools",["deploy","--only","hosting"],t,e)).then(function(e){return JSON.parse(e)})}catch(e){return Promise.reject(e)}}(e,No)).then(function(e){if("error"===e.status)throw Error(e.error);v.endGroup();const t=`https://${No}.web.app/`;return Promise.resolve(i({details_url:t,conclusion:"success",output:{title:"Production deploy succeeded",summary:`[${No}.web.app](${t})`}})).then(function(){r=1})})}();return s&&s.then?s.then(n):n(s)})}()}catch(e){return n(e)}return s&&s.then?s.then(void 0,n):s}(0,function(e){return v.setFailed(e.message),Promise.resolve(i({conclusion:"failure",output:{title:"Deploy preview failed",summary:"Error: "+e.message}})).then(function(){})})}const t=!!Yn.context.payload.pull_request;let i=e=>console.log(e);const n=function(){if(zo&&t)return Promise.resolve(function(e,t){try{var r;return Promise.resolve(e.checks.create(Xn({},t.repo,{name:"Deploy Preview",head_sha:null==(r=t.payload.pull_request)?void 0:r.head.sha,status:"in_progress"}))).then(function(r){return function(i){try{return Promise.resolve(e.checks.update(Xn({},t.repo,{check_run_id:r.data.id,completed_at:(new Date).toISOString(),status:"completed"},i))).then(function(){})}catch(e){return Promise.reject(e)}}})}catch(e){return Promise.reject(e)}}(Wo,Yn.context)).then(function(e){i=e})}();Promise.resolve(n&&n.then?n.then(e):e())}catch(e){return Promise.reject(e)}}(); +function e(e){return e&&"object"==typeof e&&"default"in e?e.default:e}var t=e(require("os")),r=require("fs"),i=e(r),n=e(require("path")),s=e(require("stream")),o=e(require("http")),a=e(require("url")),p=e(require("https")),u=e(require("zlib"));require("net");var c=e(require("tls")),d=e(require("events")),l=e(require("assert")),g=e(require("util")),m=e(require("crypto")),h=e(require("child_process")),y="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function f(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function b(e,t,r){return e(r={path:t,exports:{},require:function(e,t){return function(){throw new Error("Dynamic requires are not currently supported by @rollup/plugin-commonjs")}()}},r.exports),r.exports}var _=b(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.toCommandValue=function(e){return null==e?"":"string"==typeof e||e instanceof String?e:JSON.stringify(e)}}),q=b(function(e,r){var i=y&&y.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)Object.hasOwnProperty.call(e,r)&&(t[r]=e[r]);return t.default=e,t};Object.defineProperty(r,"__esModule",{value:!0});const n=i(t);function s(e,t,r){const i=new o(e,t,r);process.stdout.write(i.toString()+n.EOL)}r.issueCommand=s,r.issue=function(e,t=""){s(e,{},t)};class o{constructor(e,t,r){e||(e="missing.command"),this.command=e,this.properties=t,this.message=r}toString(){let e="::"+this.command;if(this.properties&&Object.keys(this.properties).length>0){e+=" ";let r=!0;for(const i in this.properties)if(this.properties.hasOwnProperty(i)){const n=this.properties[i];n&&(r?r=!1:e+=",",e+=`${i}=${t=n,_.toCommandValue(t).replace(/%/g,"%25").replace(/\r/g,"%0D").replace(/\n/g,"%0A").replace(/:/g,"%3A").replace(/,/g,"%2C")}`)}}var t;return e+="::"+function(e){return _.toCommandValue(e).replace(/%/g,"%25").replace(/\r/g,"%0D").replace(/\n/g,"%0A")}(this.message),e}}}),w=b(function(e,r){var n=y&&y.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)Object.hasOwnProperty.call(e,r)&&(t[r]=e[r]);return t.default=e,t};Object.defineProperty(r,"__esModule",{value:!0});const s=n(i),o=n(t);r.issueCommand=function(e,t){const r=process.env["GITHUB_"+e];if(!r)throw new Error("Unable to find environment variable for file command "+e);if(!s.existsSync(r))throw new Error("Missing file at path: "+r);s.appendFileSync(r,`${_.toCommandValue(t)}${o.EOL}`,{encoding:"utf8"})}}),v=b(function(e,r){var i=y&&y.__awaiter||function(e,t,r,i){return new(r||(r=Promise))(function(n,s){function o(e){try{p(i.next(e))}catch(e){s(e)}}function a(e){try{p(i.throw(e))}catch(e){s(e)}}function p(e){var t;e.done?n(e.value):(t=e.value,t instanceof r?t:new r(function(e){e(t)})).then(o,a)}p((i=i.apply(e,t||[])).next())})},s=y&&y.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)Object.hasOwnProperty.call(e,r)&&(t[r]=e[r]);return t.default=e,t};Object.defineProperty(r,"__esModule",{value:!0});const o=s(t),a=s(n);var p;function u(e){q.issue("error",e instanceof Error?e.toString():e)}function c(e){q.issue("group",e)}function d(){q.issue("endgroup")}!function(e){e[e.Success=0]="Success",e[e.Failure=1]="Failure"}(p=r.ExitCode||(r.ExitCode={})),r.exportVariable=function(e,t){const r=_.toCommandValue(t);if(process.env[e]=r,process.env.GITHUB_ENV){const t="_GitHubActionsFileCommandDelimeter_";w.issueCommand("ENV",`${e}<<${t}${o.EOL}${r}${o.EOL}${t}`)}else q.issueCommand("set-env",{name:e},r)},r.setSecret=function(e){q.issueCommand("add-mask",{},e)},r.addPath=function(e){process.env.GITHUB_PATH?w.issueCommand("PATH",e):q.issueCommand("add-path",{},e),process.env.PATH=`${e}${a.delimiter}${process.env.PATH}`},r.getInput=function(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()},r.setOutput=function(e,t){q.issueCommand("set-output",{name:e},t)},r.setCommandEcho=function(e){q.issue("echo",e?"on":"off")},r.setFailed=function(e){process.exitCode=p.Failure,u(e)},r.isDebug=function(){return"1"===process.env.RUNNER_DEBUG},r.debug=function(e){q.issueCommand("debug",{},e)},r.error=u,r.warning=function(e){q.issue("warning",e instanceof Error?e.toString():e)},r.info=function(e){process.stdout.write(e+o.EOL)},r.startGroup=c,r.endGroup=d,r.group=function(e,t){return i(this,void 0,void 0,function*(){let r;c(e);try{r=yield t()}finally{d()}return r})},r.saveState=function(e,t){q.issueCommand("save-state",{name:e},t)},r.getState=function(e){return process.env["STATE_"+e]||""}});function E(e){return"[object Object]"===Object.prototype.toString.call(e)}function T(e){var t,r;return!1!==E(e)&&(void 0===(t=e.constructor)||!1!==E(r=t.prototype)&&!1!==r.hasOwnProperty("isPrototypeOf"))}function k(){return"object"==typeof navigator&&"userAgent"in navigator?navigator.userAgent:"object"==typeof process&&"version"in process?`Node.js/${process.version.substr(1)} (${process.platform}; ${process.arch})`:""}function j(e,t,r){if("string"==typeof t){let[e,i]=t.split(" ");r=Object.assign(i?{method:e,url:i}:{url:e},r)}else r=Object.assign({},t);var i;r.headers=(i=r.headers)?Object.keys(i).reduce((e,t)=>(e[t.toLowerCase()]=i[t],e),{}):{};const n=function e(t,r){const i=Object.assign({},t);return Object.keys(r).forEach(n=>{T(r[n])?n in t?i[n]=e(t[n],r[n]):Object.assign(i,{[n]:r[n]}):Object.assign(i,{[n]:r[n]})}),i}(e||{},r);return 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/,"")),n}const O=/\{[^}]+\}/g;function P(e){return e.replace(/^\W+|\W+$/g,"").split(/,/)}function S(e,t){return Object.keys(e).filter(e=>!t.includes(e)).reduce((t,r)=>(t[r]=e[r],t),{})}function A(e){return e.split(/(%[0-9A-Fa-f]{2})/g).map(function(e){return/%[0-9A-Fa-f]/.test(e)||(e=encodeURI(e).replace(/%5B/g,"[").replace(/%5D/g,"]")),e}).join("")}function G(e){return encodeURIComponent(e).replace(/[!'()*]/g,function(e){return"%"+e.charCodeAt(0).toString(16).toUpperCase()})}function C(e,t,r){return t="+"===e||"#"===e?A(t):G(t),r?G(r)+"="+t:t}function R(e){return null!=e}function x(e){return";"===e||"&"===e||"?"===e}function D(e,t){var r=["+","#",".","/",";","?","&"];return e.replace(/\{([^\{\}]+)\}|([^\{\}]+)/g,function(e,i,n){if(i){let e="";const n=[];if(-1!==r.indexOf(i.charAt(0))&&(e=i.charAt(0),i=i.substr(1)),i.split(/,/g).forEach(function(r){var i=/([^:\*]*)(?::(\d+)|(\*))?/.exec(r);n.push(function(e,t,r,i){var n=e[r],s=[];if(R(n)&&""!==n)if("string"==typeof n||"number"==typeof n||"boolean"==typeof n)n=n.toString(),i&&"*"!==i&&(n=n.substring(0,parseInt(i,10))),s.push(C(t,n,x(t)?r:""));else if("*"===i)Array.isArray(n)?n.filter(R).forEach(function(e){s.push(C(t,e,x(t)?r:""))}):Object.keys(n).forEach(function(e){R(n[e])&&s.push(C(t,n[e],e))});else{const e=[];Array.isArray(n)?n.filter(R).forEach(function(r){e.push(C(t,r))}):Object.keys(n).forEach(function(r){R(n[r])&&(e.push(G(r)),e.push(C(t,n[r].toString())))}),x(t)?s.push(G(r)+"="+e.join(",")):0!==e.length&&s.push(e.join(","))}else";"===t?R(n)&&s.push(G(r)):""!==n||"&"!==t&&"?"!==t?""===n&&s.push(""):s.push(G(r)+"=");return s}(t,e,i[1],i[2]||i[3]))}),e&&"+"!==e){var s=",";return"?"===e?s="&":"#"!==e&&(s=e),(0!==n.length?e:"")+n.join(s)}return n.join(",")}return A(n)})}function L(e){let t,r=e.method.toUpperCase(),i=(e.url||"/").replace(/:([a-z]\w+)/g,"{+$1}"),n=Object.assign({},e.headers),s=S(e,["method","baseUrl","url","headers","request","mediaType"]);const o=function(e){const t=e.match(O);return t?t.map(P).reduce((e,t)=>e.concat(t),[]):[]}(i);var a;i=(a=i,{expand:D.bind(null,a)}).expand(s),/^http/.test(i)||(i=e.baseUrl+i);const p=S(s,Object.keys(e).filter(e=>o.includes(e)).concat("baseUrl"));if(!/application\/octet-stream/i.test(n.accept)&&(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(",")),e.mediaType.previews.length)){const t=n.accept.match(/[\w-]+(?=-preview)/g)||[];n.accept=t.concat(e.mediaType.previews).map(t=>`application/vnd.github.${t}-preview${e.mediaType.format?"."+e.mediaType.format:"+json"}`).join(",")}return["GET","HEAD"].includes(r)?i=function(e,t){const r=/\?/.test(e)?"&":"?",i=Object.keys(t);return 0===i.length?e:e+r+i.map(e=>"q"===e?"q="+t.q.split("+").map(encodeURIComponent).join("+"):`${e}=${encodeURIComponent(t[e])}`).join("&")}(i,p):"data"in p?t=p.data:Object.keys(p).length?t=p:n["content-length"]=0,n["content-type"]||void 0===t||(n["content-type"]="application/json; charset=utf-8"),["PATCH","PUT"].includes(r)&&void 0===t&&(t=""),Object.assign({method:r,url:i,headers:n},void 0!==t?{body:t}:null,e.request?{request:e.request}:null)}function U(e,t,r){return L(j(e,t,r))}const I=function e(t,r){const i=j(t,r),n=U.bind(null,i);return Object.assign(n,{DEFAULTS:i,defaults:e.bind(null,i),merge:j.bind(null,i),parse:L})}(null,{method:"GET",baseUrl:"https://api.github.com",headers:{accept:"application/vnd.github.v3+json","user-agent":"octokit-endpoint.js/6.0.6 "+k()},mediaType:{format:"",previews:[]}}),F=s.Readable,$=Symbol("buffer"),N=Symbol("type");class B{constructor(){this[N]="";const e=arguments[0],t=arguments[1],r=[];if(e){const t=e,i=Number(t.length);for(let e=0;e1&&void 0!==arguments[1]?arguments[1]:{},i=r.size;let n=void 0===i?0:i;var o=r.timeout;let a=void 0===o?0:o;null==e?e=null:Q(e)?e=Buffer.from(e.toString()):K(e)||Buffer.isBuffer(e)||("[object ArrayBuffer]"===Object.prototype.toString.call(e)?e=Buffer.from(e):ArrayBuffer.isView(e)?e=Buffer.from(e.buffer,e.byteOffset,e.byteLength):e instanceof s||(e=Buffer.from(String(e)))),this[z]={body:e,disturbed:!1,error:null},this.size=n,this.timeout=a,e instanceof s&&e.on("error",function(e){const r="AbortError"===e.name?e:new M(`Invalid response body while trying to fetch ${t.url}: ${e.message}`,"system",e);t[z].error=r})}function V(){var e=this;if(this[z].disturbed)return J.Promise.reject(new TypeError("body used already for: "+this.url));if(this[z].disturbed=!0,this[z].error)return J.Promise.reject(this[z].error);let t=this.body;if(null===t)return J.Promise.resolve(Buffer.alloc(0));if(K(t)&&(t=t.stream()),Buffer.isBuffer(t))return J.Promise.resolve(t);if(!(t instanceof s))return J.Promise.resolve(Buffer.alloc(0));let r=[],i=0,n=!1;return new J.Promise(function(s,o){let a;e.timeout&&(a=setTimeout(function(){n=!0,o(new M(`Response timeout while trying to fetch ${e.url} (over ${e.timeout}ms)`,"body-timeout"))},e.timeout)),t.on("error",function(t){"AbortError"===t.name?(n=!0,o(t)):o(new M(`Invalid response body while trying to fetch ${e.url}: ${t.message}`,"system",t))}),t.on("data",function(t){if(!n&&null!==t){if(e.size&&i+t.length>e.size)return n=!0,void o(new M(`content size at ${e.url} over limit: ${e.size}`,"max-size"));i+=t.length,r.push(t)}}),t.on("end",function(){if(!n){clearTimeout(a);try{s(Buffer.concat(r,i))}catch(t){o(new M(`Could not create Buffer from response body for ${e.url}: ${t.message}`,"system",t))}}})})}function Q(e){return"object"==typeof e&&"function"==typeof e.append&&"function"==typeof e.delete&&"function"==typeof e.get&&"function"==typeof e.getAll&&"function"==typeof e.has&&"function"==typeof e.set&&("URLSearchParams"===e.constructor.name||"[object URLSearchParams]"===Object.prototype.toString.call(e)||"function"==typeof e.sort)}function K(e){return"object"==typeof e&&"function"==typeof e.arrayBuffer&&"string"==typeof e.type&&"function"==typeof e.stream&&"function"==typeof e.constructor&&"string"==typeof e.constructor.name&&/^(Blob|File)$/.test(e.constructor.name)&&/^(Blob|File)$/.test(e[Symbol.toStringTag])}function Y(e){let t,r,i=e.body;if(e.bodyUsed)throw new Error("cannot clone body after it is used");return i instanceof s&&"function"!=typeof i.getBoundary&&(t=new W,r=new W,i.pipe(t),i.pipe(r),e[z].body=t,i=r),i}function X(e){return null===e?null:"string"==typeof e?"text/plain;charset=UTF-8":Q(e)?"application/x-www-form-urlencoded;charset=UTF-8":K(e)?e.type||null:Buffer.isBuffer(e)||"[object ArrayBuffer]"===Object.prototype.toString.call(e)||ArrayBuffer.isView(e)?null:"function"==typeof e.getBoundary?"multipart/form-data;boundary="+e.getBoundary():e instanceof s?null:"text/plain;charset=UTF-8"}function Z(e){const t=e.body;return null===t?0:K(t)?t.size:Buffer.isBuffer(t)?t.length:t&&"function"==typeof t.getLengthSync&&(t._lengthRetrievers&&0==t._lengthRetrievers.length||t.hasKnownLength&&t.hasKnownLength())?t.getLengthSync():null}J.prototype={get body(){return this[z].body},get bodyUsed(){return this[z].disturbed},arrayBuffer(){return V.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 V.call(this).then(function(t){return Object.assign(new B([],{type:e.toLowerCase()}),{[$]:t})})},json(){var e=this;return V.call(this).then(function(t){try{return JSON.parse(t.toString())}catch(t){return J.Promise.reject(new M(`invalid json response body at ${e.url} reason: ${t.message}`,"invalid-json"))}})},text(){return V.call(this).then(function(e){return e.toString()})},buffer(){return V.call(this)},textConverted(){var e=this;return V.call(this).then(function(t){return function(e,t){if("function"!=typeof H)throw new Error("The package `encoding` must be installed to use the textConverted() function");const r=t.get("content-type");let i,n,s="utf-8";return r&&(i=/charset=([^;]*)/i.exec(r)),n=e.slice(0,1024).toString(),!i&&n&&(i=/0&&void 0!==arguments[0]?arguments[0]:void 0;if(this[se]=Object.create(null),e instanceof oe){const t=e.raw(),r=Object.keys(t);for(const e of r)for(const r of t[e])this.append(e,r)}else if(null==e);else{if("object"!=typeof e)throw new TypeError("Provided initializer must be an object");{const t=e[Symbol.iterator];if(null!=t){if("function"!=typeof t)throw new TypeError("Header pairs must be iterable");const r=[];for(const t of e){if("object"!=typeof t||"function"!=typeof t[Symbol.iterator])throw new TypeError("Each header pair must be iterable");r.push(Array.from(t))}for(const e of r){if(2!==e.length)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))this.append(t,e[t])}}}get(e){re(e=""+e);const t=ne(this[se],e);return void 0===t?null:this[se][t].join(", ")}forEach(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:void 0,r=ae(this),i=0;for(;i1&&void 0!==arguments[1]?arguments[1]:"key+value";const r=Object.keys(e[se]).sort();return r.map("key"===t?function(e){return e.toLowerCase()}:"value"===t?function(t){return e[se][t].join(", ")}:function(t){return[t.toLowerCase(),e[se][t].join(", ")]})}oe.prototype.entries=oe.prototype[Symbol.iterator],Object.defineProperty(oe.prototype,Symbol.toStringTag,{value:"Headers",writable:!1,enumerable:!1,configurable:!0}),Object.defineProperties(oe.prototype,{get:{enumerable:!0},forEach:{enumerable:!0},set:{enumerable:!0},append:{enumerable:!0},has:{enumerable:!0},delete:{enumerable:!0},keys:{enumerable:!0},values:{enumerable:!0},entries:{enumerable:!0}});const pe=Symbol("internal");function ue(e,t){const r=Object.create(ce);return r[pe]={target:e,kind:t,index:0},r}const ce=Object.setPrototypeOf({next(){if(!this||Object.getPrototypeOf(this)!==ce)throw new TypeError("Value of `this` is not a HeadersIterator");var e=this[pe];const t=e.index,r=ae(e.target,e.kind);return t>=r.length?{value:void 0,done:!0}:(this[pe].index=t+1,{value:r[t],done:!1})}},Object.getPrototypeOf(Object.getPrototypeOf([][Symbol.iterator]())));function de(e){const t=Object.assign({__proto__:null},e[se]),r=ne(e[se],"Host");return void 0!==r&&(t[r]=t[r][0]),t}Object.defineProperty(ce,Symbol.toStringTag,{value:"HeadersIterator",writable:!1,enumerable:!1,configurable:!0});const le=Symbol("Response internals"),ge=o.STATUS_CODES;class me{constructor(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};J.call(this,e,t);const r=t.status||200,i=new oe(t.headers);if(null!=e&&!i.has("Content-Type")){const t=X(e);t&&i.append("Content-Type",t)}this[le]={url:t.url,status:r,statusText:t.statusText||ge[r],headers:i,counter:t.counter}}get url(){return this[le].url||""}get status(){return this[le].status}get ok(){return this[le].status>=200&&this[le].status<300}get redirected(){return this[le].counter>0}get statusText(){return this[le].statusText}get headers(){return this[le].headers}clone(){return new me(Y(this),{url:this.url,status:this.status,statusText:this.statusText,headers:this.headers,ok:this.ok,redirected:this.redirected})}}J.mixIn(me.prototype),Object.defineProperties(me.prototype,{url:{enumerable:!0},status:{enumerable:!0},ok:{enumerable:!0},redirected:{enumerable:!0},statusText:{enumerable:!0},headers:{enumerable:!0},clone:{enumerable:!0}}),Object.defineProperty(me.prototype,Symbol.toStringTag,{value:"Response",writable:!1,enumerable:!1,configurable:!0});const he=Symbol("Request internals"),ye=a.parse,fe=a.format,be="destroy"in s.Readable.prototype;function _e(e){return"object"==typeof e&&"object"==typeof e[he]}class qe{constructor(e){let t,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};_e(e)?t=ye(e.url):(t=ye(e&&e.href?e.href:""+e),e={});let i=r.method||e.method||"GET";if(i=i.toUpperCase(),(null!=r.body||_e(e)&&null!==e.body)&&("GET"===i||"HEAD"===i))throw new TypeError("Request with GET/HEAD method cannot have body");let n=null!=r.body?r.body:_e(e)&&null!==e.body?Y(e):null;J.call(this,n,{timeout:r.timeout||e.timeout||0,size:r.size||e.size||0});const s=new oe(r.headers||e.headers||{});if(null!=n&&!s.has("Content-Type")){const e=X(n);e&&s.append("Content-Type",e)}let o=_e(e)?e.signal:null;if("signal"in r&&(o=r.signal),null!=o&&!function(e){const t=e&&"object"==typeof e&&Object.getPrototypeOf(e);return!(!t||"AbortSignal"!==t.constructor.name)}(o))throw new TypeError("Expected signal to be an instanceof AbortSignal");this[he]={method:i,redirect:r.redirect||e.redirect||"follow",headers:s,parsedURL:t,signal:o},this.follow=void 0!==r.follow?r.follow:void 0!==e.follow?e.follow:20,this.compress=void 0!==r.compress?r.compress:void 0===e.compress||e.compress,this.counter=r.counter||e.counter||0,this.agent=r.agent||e.agent}get method(){return this[he].method}get url(){return fe(this[he].parsedURL)}get headers(){return this[he].headers}get redirect(){return this[he].redirect}get signal(){return this[he].signal}clone(){return new qe(this)}}function we(e){Error.call(this,e),this.type="aborted",this.message=e,Error.captureStackTrace(this,this.constructor)}J.mixIn(qe.prototype),Object.defineProperty(qe.prototype,Symbol.toStringTag,{value:"Request",writable:!1,enumerable:!1,configurable:!0}),Object.defineProperties(qe.prototype,{method:{enumerable:!0},url:{enumerable:!0},headers:{enumerable:!0},redirect:{enumerable:!0},clone:{enumerable:!0},signal:{enumerable:!0}}),(we.prototype=Object.create(Error.prototype)).constructor=we,we.prototype.name="AbortError";const ve=s.PassThrough,Ee=a.resolve;function Te(e,t){if(!Te.Promise)throw new Error("native promise missing, set fetch.Promise to your favorite alternative");return J.Promise=Te.Promise,new Te.Promise(function(r,i){const n=new qe(e,t),a=function(e){const t=e[he].parsedURL,r=new oe(e[he].headers);if(r.has("Accept")||r.set("Accept","*/*"),!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 s.Readable&&!be)throw new Error("Cancellation of streamed requests with AbortSignal is not supported in node < 8");let i=null;if(null==e.body&&/^(POST|PUT)$/i.test(e.method)&&(i="0"),null!=e.body){const t=Z(e);"number"==typeof t&&(i=String(t))}i&&r.set("Content-Length",i),r.has("User-Agent")||r.set("User-Agent","node-fetch/1.0 (+https://github.com/bitinn/node-fetch)"),e.compress&&!r.has("Accept-Encoding")&&r.set("Accept-Encoding","gzip,deflate");let n=e.agent;return"function"==typeof n&&(n=n(t)),r.has("Connection")||n||r.set("Connection","close"),Object.assign({},t,{method:e.method,headers:de(r),agent:n})}(n),c=("https:"===a.protocol?p:o).request,d=n.signal;let l=null;const g=function(){let e=new we("The user aborted a request.");i(e),n.body&&n.body instanceof s.Readable&&n.body.destroy(e),l&&l.body&&l.body.emit("error",e)};if(d&&d.aborted)return void g();const m=function(){g(),f()},h=c(a);let y;function f(){h.abort(),d&&d.removeEventListener("abort",m),clearTimeout(y)}d&&d.addEventListener("abort",m),n.timeout&&h.once("socket",function(e){y=setTimeout(function(){i(new M("network timeout at: "+n.url,"request-timeout")),f()},n.timeout)}),h.on("error",function(e){i(new M(`request to ${n.url} failed, reason: ${e.message}`,"system",e)),f()}),h.on("response",function(e){clearTimeout(y);const t=function(e){const t=new oe;for(const r of Object.keys(e))if(!ee.test(r))if(Array.isArray(e[r]))for(const i of e[r])te.test(i)||(void 0===t[se][r]?t[se][r]=[i]:t[se][r].push(i));else te.test(e[r])||(t[se][r]=[e[r]]);return t}(e.headers);if(Te.isRedirect(e.statusCode)){const s=t.get("Location"),o=null===s?null:Ee(n.url,s);switch(n.redirect){case"error":return i(new M("uri requested responds with a redirect, redirect mode is set to error: "+n.url,"no-redirect")),void f();case"manual":if(null!==o)try{t.set("Location",o)}catch(e){i(e)}break;case"follow":if(null===o)break;if(n.counter>=n.follow)return i(new M("maximum redirect reached at: "+n.url,"max-redirect")),void f();const s={headers:new oe(n.headers),follow:n.follow,counter:n.counter+1,agent:n.agent,compress:n.compress,method:n.method,body:n.body,signal:n.signal,timeout:n.timeout,size:n.size};return 303!==e.statusCode&&n.body&&null===Z(n)?(i(new M("Cannot follow redirect with body being a readable stream","unsupported-redirect")),void f()):(303!==e.statusCode&&(301!==e.statusCode&&302!==e.statusCode||"POST"!==n.method)||(s.method="GET",s.body=void 0,s.headers.delete("content-length")),r(Te(new qe(o,s))),void f())}}e.once("end",function(){d&&d.removeEventListener("abort",m)});let s=e.pipe(new ve);const o={url:n.url,status:e.statusCode,statusText:e.statusMessage,headers:t,size:n.size,timeout:n.timeout,counter:n.counter},a=t.get("Content-Encoding");if(!n.compress||"HEAD"===n.method||null===a||204===e.statusCode||304===e.statusCode)return l=new me(s,o),void r(l);if("gzip"==a||"x-gzip"==a)return s=s.pipe(u.createGunzip({flush:u.Z_SYNC_FLUSH,finishFlush:u.Z_SYNC_FLUSH})),l=new me(s,o),void r(l);if("deflate"!=a&&"x-deflate"!=a){if("br"==a&&"function"==typeof u.createBrotliDecompress)return s=s.pipe(u.createBrotliDecompress()),l=new me(s,o),void r(l);l=new me(s,o),r(l)}else e.pipe(new ve).once("data",function(e){s=s.pipe(8==(15&e[0])?u.createInflate():u.createInflateRaw()),l=new me(s,o),r(l)})}),function(e,t){const r=t.body;null===r?e.end():K(r)?r.stream().pipe(e):Buffer.isBuffer(r)?(e.write(r),e.end()):r.pipe(e)}(h,n)})}Te.isRedirect=function(e){return 301===e||302===e||303===e||307===e||308===e},Te.Promise=global.Promise;class ke extends Error{constructor(e){super(e),Error.captureStackTrace&&Error.captureStackTrace(this,this.constructor),this.name="Deprecation"}}var je={__proto__:null,Deprecation:ke},Oe=function e(t,r){if(t&&r)return e(t)(r);if("function"!=typeof t)throw new TypeError("need wrapper function");return Object.keys(t).forEach(function(e){i[e]=t[e]}),i;function i(){for(var e=new Array(arguments.length),r=0;rconsole.warn(e));class Re extends Error{constructor(e,t,r){super(e),Error.captureStackTrace&&Error.captureStackTrace(this,this.constructor),this.name="HttpError",this.status=t,Object.defineProperty(this,"code",{get:()=>(Ce(new ke("[@octokit/request-error] `error.code` is deprecated, use `error.status`.")),t)}),this.headers=r.headers||{};const i=Object.assign({},r.request);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}}function xe(e){(T(e.body)||Array.isArray(e.body))&&(e.body=JSON.stringify(e.body));let t,r,i={};return(e.request&&e.request.fetch||Te)(e.url,Object.assign({method:e.method,body:e.body,headers:e.headers,redirect:e.redirect},e.request)).then(n=>{r=n.url,t=n.status;for(const e of n.headers)i[e[0]]=e[1];if(204===t||205===t)return;if("HEAD"===e.method){if(t<400)return;throw new Re(n.statusText,t,{headers:i,request:e})}if(304===t)throw new Re("Not modified",t,{headers:i,request:e});if(t>=400)return n.text().then(r=>{const n=new Re(r,t,{headers:i,request:e});try{let e=JSON.parse(n.message);Object.assign(n,e),n.message=n.message+": "+e.errors.map(JSON.stringify).join(", ")}catch(e){}throw n});const s=n.headers.get("content-type");return/application\/json/.test(s)?n.json():!s||/^text\/|charset=utf-8$/.test(s)?n.text():function(e){return e.arrayBuffer()}(n)}).then(e=>({status:t,url:r,headers:i,data:e})).catch(t=>{if(t instanceof Re)throw t;throw new Re(t.message,500,{headers:i,request:e})})}const De=function e(t,r){const i=t.defaults(r);return Object.assign(function(t,r){const n=i.merge(t,r);if(!n.request||!n.request.hook)return xe(i.parse(n));const s=(e,t)=>xe(i.parse(i.merge(e,t)));return Object.assign(s,{endpoint:i,defaults:e.bind(null,i)}),n.request.hook(s,n)},{endpoint:i,defaults:e.bind(null,i)})}(I,{headers:{"user-agent":"octokit-request.js/5.4.9 "+k()}});var Le={__proto__:null,request:De};class Ue extends Error{constructor(e,t){super(t.data.errors[0].message),Object.assign(this,t.data),Object.assign(this,{headers:t.headers}),this.name="GraphqlError",this.request=e,Error.captureStackTrace&&Error.captureStackTrace(this,this.constructor)}}const Ie=["method","baseUrl","url","headers","request","query","mediaType"],Fe=/\/api\/v3\/?$/;function $e(e,t){const r=e.defaults(t);return Object.assign((e,t)=>function(e,t,r){if("string"==typeof t&&r&&"query"in r)return Promise.reject(new Error('[@octokit/graphql] "query" cannot be used as variable name'));const i="string"==typeof t?Object.assign({query:t},r):t,n=Object.keys(i).reduce((e,t)=>Ie.includes(t)?(e[t]=i[t],e):(e.variables||(e.variables={}),e.variables[t]=i[t],e),{}),s=i.baseUrl||e.endpoint.DEFAULTS.baseUrl;return Fe.test(s)&&(n.url=s.replace(Fe,"/api/graphql")),e(n).then(e=>{if(e.data.errors){const t={};for(const r of Object.keys(e.headers))t[r]=e.headers[r];throw new Ue(n,{headers:t,data:e.data})}return e.data.data})}(r,e,t),{defaults:$e.bind(null,r),endpoint:De.endpoint})}var Ne={__proto__:null,graphql:$e(De,{headers:{"user-agent":"octokit-graphql.js/4.5.6 "+k()},method:"POST",url:"/graphql"}),withCustomRequest:function(e){return $e(e,{method:"POST",url:"/graphql"})}};function Be(e){e.hook.wrap("request",(t,r)=>{e.log.debug("request",r);const i=Date.now(),n=e.request.endpoint.parse(r),s=n.url.replace(r.baseUrl,"");return t(r).then(t=>(e.log.info(`${n.method} ${s} - ${t.status} in ${Date.now()-i}ms`),t)).catch(t=>{throw e.log.info(`${n.method} ${s} - ${t.status} in ${Date.now()-i}ms`),t})})}Be.VERSION="1.0.0";var Me={__proto__:null,requestLog:Be},He={actions:{cancelWorkflowRun:{method:"POST",params:{owner:{required:!0,type:"string"},repo:{required:!0,type:"string"},run_id:{required:!0,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:!0,type:"string"},owner:{required:!0,type:"string"},repo:{required:!0,type:"string"}},url:"/repos/:owner/:repo/actions/secrets/:name"},createRegistrationToken:{method:"POST",params:{owner:{required:!0,type:"string"},repo:{required:!0,type:"string"}},url:"/repos/:owner/:repo/actions/runners/registration-token"},createRemoveToken:{method:"POST",params:{owner:{required:!0,type:"string"},repo:{required:!0,type:"string"}},url:"/repos/:owner/:repo/actions/runners/remove-token"},deleteArtifact:{method:"DELETE",params:{artifact_id:{required:!0,type:"integer"},owner:{required:!0,type:"string"},repo:{required:!0,type:"string"}},url:"/repos/:owner/:repo/actions/artifacts/:artifact_id"},deleteSecretFromRepo:{method:"DELETE",params:{name:{required:!0,type:"string"},owner:{required:!0,type:"string"},repo:{required:!0,type:"string"}},url:"/repos/:owner/:repo/actions/secrets/:name"},downloadArtifact:{method:"GET",params:{archive_format:{required:!0,type:"string"},artifact_id:{required:!0,type:"integer"},owner:{required:!0,type:"string"},repo:{required:!0,type:"string"}},url:"/repos/:owner/:repo/actions/artifacts/:artifact_id/:archive_format"},getArtifact:{method:"GET",params:{artifact_id:{required:!0,type:"integer"},owner:{required:!0,type:"string"},repo:{required:!0,type:"string"}},url:"/repos/:owner/:repo/actions/artifacts/:artifact_id"},getPublicKey:{method:"GET",params:{owner:{required:!0,type:"string"},repo:{required:!0,type:"string"}},url:"/repos/:owner/:repo/actions/secrets/public-key"},getSecret:{method:"GET",params:{name:{required:!0,type:"string"},owner:{required:!0,type:"string"},page:{type:"integer"},per_page:{type:"integer"},repo:{required:!0,type:"string"}},url:"/repos/:owner/:repo/actions/secrets/:name"},getSelfHostedRunner:{method:"GET",params:{owner:{required:!0,type:"string"},repo:{required:!0,type:"string"},runner_id:{required:!0,type:"integer"}},url:"/repos/:owner/:repo/actions/runners/:runner_id"},getWorkflow:{method:"GET",params:{owner:{required:!0,type:"string"},repo:{required:!0,type:"string"},workflow_id:{required:!0,type:"integer"}},url:"/repos/:owner/:repo/actions/workflows/:workflow_id"},getWorkflowJob:{method:"GET",params:{job_id:{required:!0,type:"integer"},owner:{required:!0,type:"string"},repo:{required:!0,type:"string"}},url:"/repos/:owner/:repo/actions/jobs/:job_id"},getWorkflowRun:{method:"GET",params:{owner:{required:!0,type:"string"},repo:{required:!0,type:"string"},run_id:{required:!0,type:"integer"}},url:"/repos/:owner/:repo/actions/runs/:run_id"},listDownloadsForSelfHostedRunnerApplication:{method:"GET",params:{owner:{required:!0,type:"string"},repo:{required:!0,type:"string"}},url:"/repos/:owner/:repo/actions/runners/downloads"},listJobsForWorkflowRun:{method:"GET",params:{owner:{required:!0,type:"string"},page:{type:"integer"},per_page:{type:"integer"},repo:{required:!0,type:"string"},run_id:{required:!0,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:!0,type:"string"},page:{type:"integer"},per_page:{type:"integer"},repo:{required:!0,type:"string"},status:{enum:["completed","status","conclusion"],type:"string"}},url:"/repos/:owner/:repo/actions/runs"},listRepoWorkflows:{method:"GET",params:{owner:{required:!0,type:"string"},page:{type:"integer"},per_page:{type:"integer"},repo:{required:!0,type:"string"}},url:"/repos/:owner/:repo/actions/workflows"},listSecretsForRepo:{method:"GET",params:{owner:{required:!0,type:"string"},page:{type:"integer"},per_page:{type:"integer"},repo:{required:!0,type:"string"}},url:"/repos/:owner/:repo/actions/secrets"},listSelfHostedRunnersForRepo:{method:"GET",params:{owner:{required:!0,type:"string"},page:{type:"integer"},per_page:{type:"integer"},repo:{required:!0,type:"string"}},url:"/repos/:owner/:repo/actions/runners"},listWorkflowJobLogs:{method:"GET",params:{job_id:{required:!0,type:"integer"},owner:{required:!0,type:"string"},page:{type:"integer"},per_page:{type:"integer"},repo:{required:!0,type:"string"}},url:"/repos/:owner/:repo/actions/jobs/:job_id/logs"},listWorkflowRunArtifacts:{method:"GET",params:{owner:{required:!0,type:"string"},page:{type:"integer"},per_page:{type:"integer"},repo:{required:!0,type:"string"},run_id:{required:!0,type:"integer"}},url:"/repos/:owner/:repo/actions/runs/:run_id/artifacts"},listWorkflowRunLogs:{method:"GET",params:{owner:{required:!0,type:"string"},page:{type:"integer"},per_page:{type:"integer"},repo:{required:!0,type:"string"},run_id:{required:!0,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:!0,type:"string"},page:{type:"integer"},per_page:{type:"integer"},repo:{required:!0,type:"string"},status:{enum:["completed","status","conclusion"],type:"string"},workflow_id:{required:!0,type:"integer"}},url:"/repos/:owner/:repo/actions/workflows/:workflow_id/runs"},reRunWorkflow:{method:"POST",params:{owner:{required:!0,type:"string"},repo:{required:!0,type:"string"},run_id:{required:!0,type:"integer"}},url:"/repos/:owner/:repo/actions/runs/:run_id/rerun"},removeSelfHostedRunner:{method:"DELETE",params:{owner:{required:!0,type:"string"},repo:{required:!0,type:"string"},runner_id:{required:!0,type:"integer"}},url:"/repos/:owner/:repo/actions/runners/:runner_id"}},activity:{checkStarringRepo:{method:"GET",params:{owner:{required:!0,type:"string"},repo:{required:!0,type:"string"}},url:"/user/starred/:owner/:repo"},deleteRepoSubscription:{method:"DELETE",params:{owner:{required:!0,type:"string"},repo:{required:!0,type:"string"}},url:"/repos/:owner/:repo/subscription"},deleteThreadSubscription:{method:"DELETE",params:{thread_id:{required:!0,type:"integer"}},url:"/notifications/threads/:thread_id/subscription"},getRepoSubscription:{method:"GET",params:{owner:{required:!0,type:"string"},repo:{required:!0,type:"string"}},url:"/repos/:owner/:repo/subscription"},getThread:{method:"GET",params:{thread_id:{required:!0,type:"integer"}},url:"/notifications/threads/:thread_id"},getThreadSubscription:{method:"GET",params:{thread_id:{required:!0,type:"integer"}},url:"/notifications/threads/:thread_id/subscription"},listEventsForOrg:{method:"GET",params:{org:{required:!0,type:"string"},page:{type:"integer"},per_page:{type:"integer"},username:{required:!0,type:"string"}},url:"/users/:username/events/orgs/:org"},listEventsForUser:{method:"GET",params:{page:{type:"integer"},per_page:{type:"integer"},username:{required:!0,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:!0,type:"string"},page:{type:"integer"},participating:{type:"boolean"},per_page:{type:"integer"},repo:{required:!0,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:!0,type:"string"},page:{type:"integer"},per_page:{type:"integer"}},url:"/orgs/:org/events"},listPublicEventsForRepoNetwork:{method:"GET",params:{owner:{required:!0,type:"string"},page:{type:"integer"},per_page:{type:"integer"},repo:{required:!0,type:"string"}},url:"/networks/:owner/:repo/events"},listPublicEventsForUser:{method:"GET",params:{page:{type:"integer"},per_page:{type:"integer"},username:{required:!0,type:"string"}},url:"/users/:username/events/public"},listReceivedEventsForUser:{method:"GET",params:{page:{type:"integer"},per_page:{type:"integer"},username:{required:!0,type:"string"}},url:"/users/:username/received_events"},listReceivedPublicEventsForUser:{method:"GET",params:{page:{type:"integer"},per_page:{type:"integer"},username:{required:!0,type:"string"}},url:"/users/:username/received_events/public"},listRepoEvents:{method:"GET",params:{owner:{required:!0,type:"string"},page:{type:"integer"},per_page:{type:"integer"},repo:{required:!0,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:!0,type:"string"}},url:"/users/:username/starred"},listReposWatchedByUser:{method:"GET",params:{page:{type:"integer"},per_page:{type:"integer"},username:{required:!0,type:"string"}},url:"/users/:username/subscriptions"},listStargazersForRepo:{method:"GET",params:{owner:{required:!0,type:"string"},page:{type:"integer"},per_page:{type:"integer"},repo:{required:!0,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:!0,type:"string"},page:{type:"integer"},per_page:{type:"integer"},repo:{required:!0,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:!0,type:"string"},repo:{required:!0,type:"string"}},url:"/repos/:owner/:repo/notifications"},markThreadAsRead:{method:"PATCH",params:{thread_id:{required:!0,type:"integer"}},url:"/notifications/threads/:thread_id"},setRepoSubscription:{method:"PUT",params:{ignored:{type:"boolean"},owner:{required:!0,type:"string"},repo:{required:!0,type:"string"},subscribed:{type:"boolean"}},url:"/repos/:owner/:repo/subscription"},setThreadSubscription:{method:"PUT",params:{ignored:{type:"boolean"},thread_id:{required:!0,type:"integer"}},url:"/notifications/threads/:thread_id/subscription"},starRepo:{method:"PUT",params:{owner:{required:!0,type:"string"},repo:{required:!0,type:"string"}},url:"/user/starred/:owner/:repo"},unstarRepo:{method:"DELETE",params:{owner:{required:!0,type:"string"},repo:{required:!0,type:"string"}},url:"/user/starred/:owner/:repo"}},apps:{addRepoToInstallation:{headers:{accept:"application/vnd.github.machine-man-preview+json"},method:"PUT",params:{installation_id:{required:!0,type:"integer"},repository_id:{required:!0,type:"integer"}},url:"/user/installations/:installation_id/repositories/:repository_id"},checkAccountIsAssociatedWithAny:{method:"GET",params:{account_id:{required:!0,type:"integer"}},url:"/marketplace_listing/accounts/:account_id"},checkAccountIsAssociatedWithAnyStubbed:{method:"GET",params:{account_id:{required:!0,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:!0,type:"string"},client_id:{required:!0,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:!0,type:"string"}},url:"/applications/:client_id/token"},createContentAttachment:{headers:{accept:"application/vnd.github.corsair-preview+json"},method:"POST",params:{body:{required:!0,type:"string"},content_reference_id:{required:!0,type:"integer"},title:{required:!0,type:"string"}},url:"/content_references/:content_reference_id/attachments"},createFromManifest:{headers:{accept:"application/vnd.github.fury-preview+json"},method:"POST",params:{code:{required:!0,type:"string"}},url:"/app-manifests/:code/conversions"},createInstallationToken:{headers:{accept:"application/vnd.github.machine-man-preview+json"},method:"POST",params:{installation_id:{required:!0,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:!0,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:!0,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:!0,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:!0,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:!0,type:"string"},repo:{required:!0,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:!0,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:!0,type:"string"}},url:"/apps/:app_slug"},getInstallation:{headers:{accept:"application/vnd.github.machine-man-preview+json"},method:"GET",params:{installation_id:{required:!0,type:"integer"}},url:"/app/installations/:installation_id"},getOrgInstallation:{headers:{accept:"application/vnd.github.machine-man-preview+json"},method:"GET",params:{org:{required:!0,type:"string"}},url:"/orgs/:org/installation"},getRepoInstallation:{headers:{accept:"application/vnd.github.machine-man-preview+json"},method:"GET",params:{owner:{required:!0,type:"string"},repo:{required:!0,type:"string"}},url:"/repos/:owner/:repo/installation"},getUserInstallation:{headers:{accept:"application/vnd.github.machine-man-preview+json"},method:"GET",params:{username:{required:!0,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:!0,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:!0,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:!0,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:!0,type:"integer"},repository_id:{required:!0,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:!0,type:"string"},client_id:{required:!0,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:!0,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:!0,type:"string"},client_id:{required:!0,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:!0,type:"string"},client_id:{required:!0,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:!0,type:"string"},"actions[].identifier":{required:!0,type:"string"},"actions[].label":{required:!0,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:!0,type:"string"},name:{required:!0,type:"string"},output:{type:"object"},"output.annotations":{type:"object[]"},"output.annotations[].annotation_level":{enum:["notice","warning","failure"],required:!0,type:"string"},"output.annotations[].end_column":{type:"integer"},"output.annotations[].end_line":{required:!0,type:"integer"},"output.annotations[].message":{required:!0,type:"string"},"output.annotations[].path":{required:!0,type:"string"},"output.annotations[].raw_details":{type:"string"},"output.annotations[].start_column":{type:"integer"},"output.annotations[].start_line":{required:!0,type:"integer"},"output.annotations[].title":{type:"string"},"output.images":{type:"object[]"},"output.images[].alt":{required:!0,type:"string"},"output.images[].caption":{type:"string"},"output.images[].image_url":{required:!0,type:"string"},"output.summary":{required:!0,type:"string"},"output.text":{type:"string"},"output.title":{required:!0,type:"string"},owner:{required:!0,type:"string"},repo:{required:!0,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:!0,type:"string"},owner:{required:!0,type:"string"},repo:{required:!0,type:"string"}},url:"/repos/:owner/:repo/check-suites"},get:{headers:{accept:"application/vnd.github.antiope-preview+json"},method:"GET",params:{check_run_id:{required:!0,type:"integer"},owner:{required:!0,type:"string"},repo:{required:!0,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:!0,type:"integer"},owner:{required:!0,type:"string"},repo:{required:!0,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:!0,type:"integer"},owner:{required:!0,type:"string"},page:{type:"integer"},per_page:{type:"integer"},repo:{required:!0,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:!0,type:"string"},page:{type:"integer"},per_page:{type:"integer"},ref:{required:!0,type:"string"},repo:{required:!0,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:!0,type:"integer"},filter:{enum:["latest","all"],type:"string"},owner:{required:!0,type:"string"},page:{type:"integer"},per_page:{type:"integer"},repo:{required:!0,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:!0,type:"string"},page:{type:"integer"},per_page:{type:"integer"},ref:{required:!0,type:"string"},repo:{required:!0,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:!0,type:"integer"},owner:{required:!0,type:"string"},repo:{required:!0,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:!0,type:"integer"},"auto_trigger_checks[].setting":{required:!0,type:"boolean"},owner:{required:!0,type:"string"},repo:{required:!0,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:!0,type:"string"},"actions[].identifier":{required:!0,type:"string"},"actions[].label":{required:!0,type:"string"},check_run_id:{required:!0,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:!0,type:"string"},"output.annotations[].end_column":{type:"integer"},"output.annotations[].end_line":{required:!0,type:"integer"},"output.annotations[].message":{required:!0,type:"string"},"output.annotations[].path":{required:!0,type:"string"},"output.annotations[].raw_details":{type:"string"},"output.annotations[].start_column":{type:"integer"},"output.annotations[].start_line":{required:!0,type:"integer"},"output.annotations[].title":{type:"string"},"output.images":{type:"object[]"},"output.images[].alt":{required:!0,type:"string"},"output.images[].caption":{type:"string"},"output.images[].image_url":{required:!0,type:"string"},"output.summary":{required:!0,type:"string"},"output.text":{type:"string"},"output.title":{type:"string"},owner:{required:!0,type:"string"},repo:{required:!0,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:!0,type:"string"}},url:"/codes_of_conduct/:key"},getForRepo:{headers:{accept:"application/vnd.github.scarlet-witch-preview+json"},method:"GET",params:{owner:{required:!0,type:"string"},repo:{required:!0,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:!0,type:"string"}},url:"/gists/:gist_id/star"},create:{method:"POST",params:{description:{type:"string"},files:{required:!0,type:"object"},"files.content":{type:"string"},public:{type:"boolean"}},url:"/gists"},createComment:{method:"POST",params:{body:{required:!0,type:"string"},gist_id:{required:!0,type:"string"}},url:"/gists/:gist_id/comments"},delete:{method:"DELETE",params:{gist_id:{required:!0,type:"string"}},url:"/gists/:gist_id"},deleteComment:{method:"DELETE",params:{comment_id:{required:!0,type:"integer"},gist_id:{required:!0,type:"string"}},url:"/gists/:gist_id/comments/:comment_id"},fork:{method:"POST",params:{gist_id:{required:!0,type:"string"}},url:"/gists/:gist_id/forks"},get:{method:"GET",params:{gist_id:{required:!0,type:"string"}},url:"/gists/:gist_id"},getComment:{method:"GET",params:{comment_id:{required:!0,type:"integer"},gist_id:{required:!0,type:"string"}},url:"/gists/:gist_id/comments/:comment_id"},getRevision:{method:"GET",params:{gist_id:{required:!0,type:"string"},sha:{required:!0,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:!0,type:"string"},page:{type:"integer"},per_page:{type:"integer"}},url:"/gists/:gist_id/comments"},listCommits:{method:"GET",params:{gist_id:{required:!0,type:"string"},page:{type:"integer"},per_page:{type:"integer"}},url:"/gists/:gist_id/commits"},listForks:{method:"GET",params:{gist_id:{required:!0,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:!0,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:!0,type:"string"}},url:"/gists/:gist_id/star"},unstar:{method:"DELETE",params:{gist_id:{required:!0,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:!0,type:"string"}},url:"/gists/:gist_id"},updateComment:{method:"PATCH",params:{body:{required:!0,type:"string"},comment_id:{required:!0,type:"integer"},gist_id:{required:!0,type:"string"}},url:"/gists/:gist_id/comments/:comment_id"}},git:{createBlob:{method:"POST",params:{content:{required:!0,type:"string"},encoding:{type:"string"},owner:{required:!0,type:"string"},repo:{required:!0,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:!0,type:"string"},owner:{required:!0,type:"string"},parents:{required:!0,type:"string[]"},repo:{required:!0,type:"string"},signature:{type:"string"},tree:{required:!0,type:"string"}},url:"/repos/:owner/:repo/git/commits"},createRef:{method:"POST",params:{owner:{required:!0,type:"string"},ref:{required:!0,type:"string"},repo:{required:!0,type:"string"},sha:{required:!0,type:"string"}},url:"/repos/:owner/:repo/git/refs"},createTag:{method:"POST",params:{message:{required:!0,type:"string"},object:{required:!0,type:"string"},owner:{required:!0,type:"string"},repo:{required:!0,type:"string"},tag:{required:!0,type:"string"},tagger:{type:"object"},"tagger.date":{type:"string"},"tagger.email":{type:"string"},"tagger.name":{type:"string"},type:{enum:["commit","tree","blob"],required:!0,type:"string"}},url:"/repos/:owner/:repo/git/tags"},createTree:{method:"POST",params:{base_tree:{type:"string"},owner:{required:!0,type:"string"},repo:{required:!0,type:"string"},tree:{required:!0,type:"object[]"},"tree[].content":{type:"string"},"tree[].mode":{enum:["100644","100755","040000","160000","120000"],type:"string"},"tree[].path":{type:"string"},"tree[].sha":{allowNull:!0,type:"string"},"tree[].type":{enum:["blob","tree","commit"],type:"string"}},url:"/repos/:owner/:repo/git/trees"},deleteRef:{method:"DELETE",params:{owner:{required:!0,type:"string"},ref:{required:!0,type:"string"},repo:{required:!0,type:"string"}},url:"/repos/:owner/:repo/git/refs/:ref"},getBlob:{method:"GET",params:{file_sha:{required:!0,type:"string"},owner:{required:!0,type:"string"},repo:{required:!0,type:"string"}},url:"/repos/:owner/:repo/git/blobs/:file_sha"},getCommit:{method:"GET",params:{commit_sha:{required:!0,type:"string"},owner:{required:!0,type:"string"},repo:{required:!0,type:"string"}},url:"/repos/:owner/:repo/git/commits/:commit_sha"},getRef:{method:"GET",params:{owner:{required:!0,type:"string"},ref:{required:!0,type:"string"},repo:{required:!0,type:"string"}},url:"/repos/:owner/:repo/git/ref/:ref"},getTag:{method:"GET",params:{owner:{required:!0,type:"string"},repo:{required:!0,type:"string"},tag_sha:{required:!0,type:"string"}},url:"/repos/:owner/:repo/git/tags/:tag_sha"},getTree:{method:"GET",params:{owner:{required:!0,type:"string"},recursive:{enum:["1"],type:"integer"},repo:{required:!0,type:"string"},tree_sha:{required:!0,type:"string"}},url:"/repos/:owner/:repo/git/trees/:tree_sha"},listMatchingRefs:{method:"GET",params:{owner:{required:!0,type:"string"},page:{type:"integer"},per_page:{type:"integer"},ref:{required:!0,type:"string"},repo:{required:!0,type:"string"}},url:"/repos/:owner/:repo/git/matching-refs/:ref"},listRefs:{method:"GET",params:{namespace:{type:"string"},owner:{required:!0,type:"string"},page:{type:"integer"},per_page:{type:"integer"},repo:{required:!0,type:"string"}},url:"/repos/:owner/:repo/git/refs/:namespace"},updateRef:{method:"PATCH",params:{force:{type:"boolean"},owner:{required:!0,type:"string"},ref:{required:!0,type:"string"},repo:{required:!0,type:"string"},sha:{required:!0,type:"string"}},url:"/repos/:owner/:repo/git/refs/:ref"}},gitignore:{getTemplate:{method:"GET",params:{name:{required:!0,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:!0,type:"string"},org:{required:!0,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:!0,type:"string"},owner:{required:!0,type:"string"},repo:{required:!0,type:"string"}},url:"/repos/:owner/:repo/interaction-limits"},getRestrictionsForOrg:{headers:{accept:"application/vnd.github.sombra-preview+json"},method:"GET",params:{org:{required:!0,type:"string"}},url:"/orgs/:org/interaction-limits"},getRestrictionsForRepo:{headers:{accept:"application/vnd.github.sombra-preview+json"},method:"GET",params:{owner:{required:!0,type:"string"},repo:{required:!0,type:"string"}},url:"/repos/:owner/:repo/interaction-limits"},removeRestrictionsForOrg:{headers:{accept:"application/vnd.github.sombra-preview+json"},method:"DELETE",params:{org:{required:!0,type:"string"}},url:"/orgs/:org/interaction-limits"},removeRestrictionsForRepo:{headers:{accept:"application/vnd.github.sombra-preview+json"},method:"DELETE",params:{owner:{required:!0,type:"string"},repo:{required:!0,type:"string"}},url:"/repos/:owner/:repo/interaction-limits"}},issues:{addAssignees:{method:"POST",params:{assignees:{type:"string[]"},issue_number:{required:!0,type:"integer"},number:{alias:"issue_number",deprecated:!0,type:"integer"},owner:{required:!0,type:"string"},repo:{required:!0,type:"string"}},url:"/repos/:owner/:repo/issues/:issue_number/assignees"},addLabels:{method:"POST",params:{issue_number:{required:!0,type:"integer"},labels:{required:!0,type:"string[]"},number:{alias:"issue_number",deprecated:!0,type:"integer"},owner:{required:!0,type:"string"},repo:{required:!0,type:"string"}},url:"/repos/:owner/:repo/issues/:issue_number/labels"},checkAssignee:{method:"GET",params:{assignee:{required:!0,type:"string"},owner:{required:!0,type:"string"},repo:{required:!0,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:!0,type:"string"},repo:{required:!0,type:"string"},title:{required:!0,type:"string"}},url:"/repos/:owner/:repo/issues"},createComment:{method:"POST",params:{body:{required:!0,type:"string"},issue_number:{required:!0,type:"integer"},number:{alias:"issue_number",deprecated:!0,type:"integer"},owner:{required:!0,type:"string"},repo:{required:!0,type:"string"}},url:"/repos/:owner/:repo/issues/:issue_number/comments"},createLabel:{method:"POST",params:{color:{required:!0,type:"string"},description:{type:"string"},name:{required:!0,type:"string"},owner:{required:!0,type:"string"},repo:{required:!0,type:"string"}},url:"/repos/:owner/:repo/labels"},createMilestone:{method:"POST",params:{description:{type:"string"},due_on:{type:"string"},owner:{required:!0,type:"string"},repo:{required:!0,type:"string"},state:{enum:["open","closed"],type:"string"},title:{required:!0,type:"string"}},url:"/repos/:owner/:repo/milestones"},deleteComment:{method:"DELETE",params:{comment_id:{required:!0,type:"integer"},owner:{required:!0,type:"string"},repo:{required:!0,type:"string"}},url:"/repos/:owner/:repo/issues/comments/:comment_id"},deleteLabel:{method:"DELETE",params:{name:{required:!0,type:"string"},owner:{required:!0,type:"string"},repo:{required:!0,type:"string"}},url:"/repos/:owner/:repo/labels/:name"},deleteMilestone:{method:"DELETE",params:{milestone_number:{required:!0,type:"integer"},number:{alias:"milestone_number",deprecated:!0,type:"integer"},owner:{required:!0,type:"string"},repo:{required:!0,type:"string"}},url:"/repos/:owner/:repo/milestones/:milestone_number"},get:{method:"GET",params:{issue_number:{required:!0,type:"integer"},number:{alias:"issue_number",deprecated:!0,type:"integer"},owner:{required:!0,type:"string"},repo:{required:!0,type:"string"}},url:"/repos/:owner/:repo/issues/:issue_number"},getComment:{method:"GET",params:{comment_id:{required:!0,type:"integer"},owner:{required:!0,type:"string"},repo:{required:!0,type:"string"}},url:"/repos/:owner/:repo/issues/comments/:comment_id"},getEvent:{method:"GET",params:{event_id:{required:!0,type:"integer"},owner:{required:!0,type:"string"},repo:{required:!0,type:"string"}},url:"/repos/:owner/:repo/issues/events/:event_id"},getLabel:{method:"GET",params:{name:{required:!0,type:"string"},owner:{required:!0,type:"string"},repo:{required:!0,type:"string"}},url:"/repos/:owner/:repo/labels/:name"},getMilestone:{method:"GET",params:{milestone_number:{required:!0,type:"integer"},number:{alias:"milestone_number",deprecated:!0,type:"integer"},owner:{required:!0,type:"string"},repo:{required:!0,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:!0,type:"string"},page:{type:"integer"},per_page:{type:"integer"},repo:{required:!0,type:"string"}},url:"/repos/:owner/:repo/assignees"},listComments:{method:"GET",params:{issue_number:{required:!0,type:"integer"},number:{alias:"issue_number",deprecated:!0,type:"integer"},owner:{required:!0,type:"string"},page:{type:"integer"},per_page:{type:"integer"},repo:{required:!0,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:!0,type:"string"},repo:{required:!0,type:"string"},since:{type:"string"},sort:{enum:["created","updated"],type:"string"}},url:"/repos/:owner/:repo/issues/comments"},listEvents:{method:"GET",params:{issue_number:{required:!0,type:"integer"},number:{alias:"issue_number",deprecated:!0,type:"integer"},owner:{required:!0,type:"string"},page:{type:"integer"},per_page:{type:"integer"},repo:{required:!0,type:"string"}},url:"/repos/:owner/:repo/issues/:issue_number/events"},listEventsForRepo:{method:"GET",params:{owner:{required:!0,type:"string"},page:{type:"integer"},per_page:{type:"integer"},repo:{required:!0,type:"string"}},url:"/repos/:owner/:repo/issues/events"},listEventsForTimeline:{headers:{accept:"application/vnd.github.mockingbird-preview+json"},method:"GET",params:{issue_number:{required:!0,type:"integer"},number:{alias:"issue_number",deprecated:!0,type:"integer"},owner:{required:!0,type:"string"},page:{type:"integer"},per_page:{type:"integer"},repo:{required:!0,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:!0,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:!0,type:"string"},page:{type:"integer"},per_page:{type:"integer"},repo:{required:!0,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:!0,type:"integer"},number:{alias:"milestone_number",deprecated:!0,type:"integer"},owner:{required:!0,type:"string"},page:{type:"integer"},per_page:{type:"integer"},repo:{required:!0,type:"string"}},url:"/repos/:owner/:repo/milestones/:milestone_number/labels"},listLabelsForRepo:{method:"GET",params:{owner:{required:!0,type:"string"},page:{type:"integer"},per_page:{type:"integer"},repo:{required:!0,type:"string"}},url:"/repos/:owner/:repo/labels"},listLabelsOnIssue:{method:"GET",params:{issue_number:{required:!0,type:"integer"},number:{alias:"issue_number",deprecated:!0,type:"integer"},owner:{required:!0,type:"string"},page:{type:"integer"},per_page:{type:"integer"},repo:{required:!0,type:"string"}},url:"/repos/:owner/:repo/issues/:issue_number/labels"},listMilestonesForRepo:{method:"GET",params:{direction:{enum:["asc","desc"],type:"string"},owner:{required:!0,type:"string"},page:{type:"integer"},per_page:{type:"integer"},repo:{required:!0,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:!0,type:"integer"},lock_reason:{enum:["off-topic","too heated","resolved","spam"],type:"string"},number:{alias:"issue_number",deprecated:!0,type:"integer"},owner:{required:!0,type:"string"},repo:{required:!0,type:"string"}},url:"/repos/:owner/:repo/issues/:issue_number/lock"},removeAssignees:{method:"DELETE",params:{assignees:{type:"string[]"},issue_number:{required:!0,type:"integer"},number:{alias:"issue_number",deprecated:!0,type:"integer"},owner:{required:!0,type:"string"},repo:{required:!0,type:"string"}},url:"/repos/:owner/:repo/issues/:issue_number/assignees"},removeLabel:{method:"DELETE",params:{issue_number:{required:!0,type:"integer"},name:{required:!0,type:"string"},number:{alias:"issue_number",deprecated:!0,type:"integer"},owner:{required:!0,type:"string"},repo:{required:!0,type:"string"}},url:"/repos/:owner/:repo/issues/:issue_number/labels/:name"},removeLabels:{method:"DELETE",params:{issue_number:{required:!0,type:"integer"},number:{alias:"issue_number",deprecated:!0,type:"integer"},owner:{required:!0,type:"string"},repo:{required:!0,type:"string"}},url:"/repos/:owner/:repo/issues/:issue_number/labels"},replaceLabels:{method:"PUT",params:{issue_number:{required:!0,type:"integer"},labels:{type:"string[]"},number:{alias:"issue_number",deprecated:!0,type:"integer"},owner:{required:!0,type:"string"},repo:{required:!0,type:"string"}},url:"/repos/:owner/:repo/issues/:issue_number/labels"},unlock:{method:"DELETE",params:{issue_number:{required:!0,type:"integer"},number:{alias:"issue_number",deprecated:!0,type:"integer"},owner:{required:!0,type:"string"},repo:{required:!0,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:!0,type:"integer"},labels:{type:"string[]"},milestone:{allowNull:!0,type:"integer"},number:{alias:"issue_number",deprecated:!0,type:"integer"},owner:{required:!0,type:"string"},repo:{required:!0,type:"string"},state:{enum:["open","closed"],type:"string"},title:{type:"string"}},url:"/repos/:owner/:repo/issues/:issue_number"},updateComment:{method:"PATCH",params:{body:{required:!0,type:"string"},comment_id:{required:!0,type:"integer"},owner:{required:!0,type:"string"},repo:{required:!0,type:"string"}},url:"/repos/:owner/:repo/issues/comments/:comment_id"},updateLabel:{method:"PATCH",params:{color:{type:"string"},current_name:{required:!0,type:"string"},description:{type:"string"},name:{type:"string"},owner:{required:!0,type:"string"},repo:{required:!0,type:"string"}},url:"/repos/:owner/:repo/labels/:current_name"},updateMilestone:{method:"PATCH",params:{description:{type:"string"},due_on:{type:"string"},milestone_number:{required:!0,type:"integer"},number:{alias:"milestone_number",deprecated:!0,type:"integer"},owner:{required:!0,type:"string"},repo:{required:!0,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:!0,type:"string"}},url:"/licenses/:license"},getForRepo:{method:"GET",params:{owner:{required:!0,type:"string"},repo:{required:!0,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:!0,type:"string"}},url:"/markdown"},renderRaw:{headers:{"content-type":"text/plain; charset=utf-8"},method:"POST",params:{data:{mapTo:"data",required:!0,type:"string"}},url:"/markdown/raw"}},meta:{get:{method:"GET",params:{},url:"/meta"}},migrations:{cancelImport:{method:"DELETE",params:{owner:{required:!0,type:"string"},repo:{required:!0,type:"string"}},url:"/repos/:owner/:repo/import"},deleteArchiveForAuthenticatedUser:{headers:{accept:"application/vnd.github.wyandotte-preview+json"},method:"DELETE",params:{migration_id:{required:!0,type:"integer"}},url:"/user/migrations/:migration_id/archive"},deleteArchiveForOrg:{headers:{accept:"application/vnd.github.wyandotte-preview+json"},method:"DELETE",params:{migration_id:{required:!0,type:"integer"},org:{required:!0,type:"string"}},url:"/orgs/:org/migrations/:migration_id/archive"},downloadArchiveForOrg:{headers:{accept:"application/vnd.github.wyandotte-preview+json"},method:"GET",params:{migration_id:{required:!0,type:"integer"},org:{required:!0,type:"string"}},url:"/orgs/:org/migrations/:migration_id/archive"},getArchiveForAuthenticatedUser:{headers:{accept:"application/vnd.github.wyandotte-preview+json"},method:"GET",params:{migration_id:{required:!0,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:!0,type:"integer"},org:{required:!0,type:"string"}},url:"/orgs/:org/migrations/:migration_id/archive"},getCommitAuthors:{method:"GET",params:{owner:{required:!0,type:"string"},repo:{required:!0,type:"string"},since:{type:"string"}},url:"/repos/:owner/:repo/import/authors"},getImportProgress:{method:"GET",params:{owner:{required:!0,type:"string"},repo:{required:!0,type:"string"}},url:"/repos/:owner/:repo/import"},getLargeFiles:{method:"GET",params:{owner:{required:!0,type:"string"},repo:{required:!0,type:"string"}},url:"/repos/:owner/:repo/import/large_files"},getStatusForAuthenticatedUser:{headers:{accept:"application/vnd.github.wyandotte-preview+json"},method:"GET",params:{migration_id:{required:!0,type:"integer"}},url:"/user/migrations/:migration_id"},getStatusForOrg:{headers:{accept:"application/vnd.github.wyandotte-preview+json"},method:"GET",params:{migration_id:{required:!0,type:"integer"},org:{required:!0,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:!0,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:!0,type:"integer"},org:{required:!0,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:!0,type:"integer"},page:{type:"integer"},per_page:{type:"integer"}},url:"/user/:migration_id/repositories"},mapCommitAuthor:{method:"PATCH",params:{author_id:{required:!0,type:"integer"},email:{type:"string"},name:{type:"string"},owner:{required:!0,type:"string"},repo:{required:!0,type:"string"}},url:"/repos/:owner/:repo/import/authors/:author_id"},setLfsPreference:{method:"PATCH",params:{owner:{required:!0,type:"string"},repo:{required:!0,type:"string"},use_lfs:{enum:["opt_in","opt_out"],required:!0,type:"string"}},url:"/repos/:owner/:repo/import/lfs"},startForAuthenticatedUser:{method:"POST",params:{exclude_attachments:{type:"boolean"},lock_repositories:{type:"boolean"},repositories:{required:!0,type:"string[]"}},url:"/user/migrations"},startForOrg:{method:"POST",params:{exclude_attachments:{type:"boolean"},lock_repositories:{type:"boolean"},org:{required:!0,type:"string"},repositories:{required:!0,type:"string[]"}},url:"/orgs/:org/migrations"},startImport:{method:"PUT",params:{owner:{required:!0,type:"string"},repo:{required:!0,type:"string"},tfvc_project:{type:"string"},vcs:{enum:["subversion","git","mercurial","tfvc"],type:"string"},vcs_password:{type:"string"},vcs_url:{required:!0,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:!0,type:"integer"},repo_name:{required:!0,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:!0,type:"integer"},org:{required:!0,type:"string"},repo_name:{required:!0,type:"string"}},url:"/orgs/:org/migrations/:migration_id/repos/:repo_name/lock"},updateImport:{method:"PATCH",params:{owner:{required:!0,type:"string"},repo:{required:!0,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:!0,type:"string"},client_id:{required:!0,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:!0,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:!0,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:!0,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:!0,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:!0,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:!0,type:"string"},client_secret:{required:!0,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:!0,type:"string"},client_secret:{required:!0,type:"string"},fingerprint:{required:!0,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:!0,type:"string"},client_secret:{required:!0,type:"string"},fingerprint:{required:!0,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:!0,type:"string"},client_id:{required:!0,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:!0,type:"string"},client_id:{required:!0,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:!0,type:"string"},client_id:{required:!0,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:!0,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:!0,type:"string"},role:{enum:["admin","member"],type:"string"},username:{required:!0,type:"string"}},url:"/orgs/:org/memberships/:username"},blockUser:{method:"PUT",params:{org:{required:!0,type:"string"},username:{required:!0,type:"string"}},url:"/orgs/:org/blocks/:username"},checkBlockedUser:{method:"GET",params:{org:{required:!0,type:"string"},username:{required:!0,type:"string"}},url:"/orgs/:org/blocks/:username"},checkMembership:{method:"GET",params:{org:{required:!0,type:"string"},username:{required:!0,type:"string"}},url:"/orgs/:org/members/:username"},checkPublicMembership:{method:"GET",params:{org:{required:!0,type:"string"},username:{required:!0,type:"string"}},url:"/orgs/:org/public_members/:username"},concealMembership:{method:"DELETE",params:{org:{required:!0,type:"string"},username:{required:!0,type:"string"}},url:"/orgs/:org/public_members/:username"},convertMemberToOutsideCollaborator:{method:"PUT",params:{org:{required:!0,type:"string"},username:{required:!0,type:"string"}},url:"/orgs/:org/outside_collaborators/:username"},createHook:{method:"POST",params:{active:{type:"boolean"},config:{required:!0,type:"object"},"config.content_type":{type:"string"},"config.insecure_ssl":{type:"string"},"config.secret":{type:"string"},"config.url":{required:!0,type:"string"},events:{type:"string[]"},name:{required:!0,type:"string"},org:{required:!0,type:"string"}},url:"/orgs/:org/hooks"},createInvitation:{method:"POST",params:{email:{type:"string"},invitee_id:{type:"integer"},org:{required:!0,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:!0,type:"integer"},org:{required:!0,type:"string"}},url:"/orgs/:org/hooks/:hook_id"},get:{method:"GET",params:{org:{required:!0,type:"string"}},url:"/orgs/:org"},getHook:{method:"GET",params:{hook_id:{required:!0,type:"integer"},org:{required:!0,type:"string"}},url:"/orgs/:org/hooks/:hook_id"},getMembership:{method:"GET",params:{org:{required:!0,type:"string"},username:{required:!0,type:"string"}},url:"/orgs/:org/memberships/:username"},getMembershipForAuthenticatedUser:{method:"GET",params:{org:{required:!0,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:!0,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:!0,type:"string"}},url:"/users/:username/orgs"},listHooks:{method:"GET",params:{org:{required:!0,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:!0,type:"string"},page:{type:"integer"},per_page:{type:"integer"}},url:"/orgs/:org/installations"},listInvitationTeams:{method:"GET",params:{invitation_id:{required:!0,type:"integer"},org:{required:!0,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:!0,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:!0,type:"string"},page:{type:"integer"},per_page:{type:"integer"}},url:"/orgs/:org/outside_collaborators"},listPendingInvitations:{method:"GET",params:{org:{required:!0,type:"string"},page:{type:"integer"},per_page:{type:"integer"}},url:"/orgs/:org/invitations"},listPublicMembers:{method:"GET",params:{org:{required:!0,type:"string"},page:{type:"integer"},per_page:{type:"integer"}},url:"/orgs/:org/public_members"},pingHook:{method:"POST",params:{hook_id:{required:!0,type:"integer"},org:{required:!0,type:"string"}},url:"/orgs/:org/hooks/:hook_id/pings"},publicizeMembership:{method:"PUT",params:{org:{required:!0,type:"string"},username:{required:!0,type:"string"}},url:"/orgs/:org/public_members/:username"},removeMember:{method:"DELETE",params:{org:{required:!0,type:"string"},username:{required:!0,type:"string"}},url:"/orgs/:org/members/:username"},removeMembership:{method:"DELETE",params:{org:{required:!0,type:"string"},username:{required:!0,type:"string"}},url:"/orgs/:org/memberships/:username"},removeOutsideCollaborator:{method:"DELETE",params:{org:{required:!0,type:"string"},username:{required:!0,type:"string"}},url:"/orgs/:org/outside_collaborators/:username"},unblockUser:{method:"DELETE",params:{org:{required:!0,type:"string"},username:{required:!0,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:!0,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:!0,type:"string"},events:{type:"string[]"},hook_id:{required:!0,type:"integer"},org:{required:!0,type:"string"}},url:"/orgs/:org/hooks/:hook_id"},updateMembership:{method:"PATCH",params:{org:{required:!0,type:"string"},state:{enum:["active"],required:!0,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:!0,type:"integer"},username:{required:!0,type:"string"}},url:"/projects/:project_id/collaborators/:username"},createCard:{headers:{accept:"application/vnd.github.inertia-preview+json"},method:"POST",params:{column_id:{required:!0,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:!0,type:"string"},project_id:{required:!0,type:"integer"}},url:"/projects/:project_id/columns"},createForAuthenticatedUser:{headers:{accept:"application/vnd.github.inertia-preview+json"},method:"POST",params:{body:{type:"string"},name:{required:!0,type:"string"}},url:"/user/projects"},createForOrg:{headers:{accept:"application/vnd.github.inertia-preview+json"},method:"POST",params:{body:{type:"string"},name:{required:!0,type:"string"},org:{required:!0,type:"string"}},url:"/orgs/:org/projects"},createForRepo:{headers:{accept:"application/vnd.github.inertia-preview+json"},method:"POST",params:{body:{type:"string"},name:{required:!0,type:"string"},owner:{required:!0,type:"string"},repo:{required:!0,type:"string"}},url:"/repos/:owner/:repo/projects"},delete:{headers:{accept:"application/vnd.github.inertia-preview+json"},method:"DELETE",params:{project_id:{required:!0,type:"integer"}},url:"/projects/:project_id"},deleteCard:{headers:{accept:"application/vnd.github.inertia-preview+json"},method:"DELETE",params:{card_id:{required:!0,type:"integer"}},url:"/projects/columns/cards/:card_id"},deleteColumn:{headers:{accept:"application/vnd.github.inertia-preview+json"},method:"DELETE",params:{column_id:{required:!0,type:"integer"}},url:"/projects/columns/:column_id"},get:{headers:{accept:"application/vnd.github.inertia-preview+json"},method:"GET",params:{project_id:{required:!0,type:"integer"}},url:"/projects/:project_id"},getCard:{headers:{accept:"application/vnd.github.inertia-preview+json"},method:"GET",params:{card_id:{required:!0,type:"integer"}},url:"/projects/columns/cards/:card_id"},getColumn:{headers:{accept:"application/vnd.github.inertia-preview+json"},method:"GET",params:{column_id:{required:!0,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:!0,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:!0,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:!0,type:"integer"}},url:"/projects/:project_id/columns"},listForOrg:{headers:{accept:"application/vnd.github.inertia-preview+json"},method:"GET",params:{org:{required:!0,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:!0,type:"string"},page:{type:"integer"},per_page:{type:"integer"},repo:{required:!0,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:!0,type:"string"}},url:"/users/:username/projects"},moveCard:{headers:{accept:"application/vnd.github.inertia-preview+json"},method:"POST",params:{card_id:{required:!0,type:"integer"},column_id:{type:"integer"},position:{required:!0,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:!0,type:"integer"},position:{required:!0,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:!0,type:"integer"},username:{required:!0,type:"string"}},url:"/projects/:project_id/collaborators/:username"},reviewUserPermissionLevel:{headers:{accept:"application/vnd.github.inertia-preview+json"},method:"GET",params:{project_id:{required:!0,type:"integer"},username:{required:!0,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:!0,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:!0,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:!0,type:"integer"},name:{required:!0,type:"string"}},url:"/projects/columns/:column_id"}},pulls:{checkIfMerged:{method:"GET",params:{number:{alias:"pull_number",deprecated:!0,type:"integer"},owner:{required:!0,type:"string"},pull_number:{required:!0,type:"integer"},repo:{required:!0,type:"string"}},url:"/repos/:owner/:repo/pulls/:pull_number/merge"},create:{method:"POST",params:{base:{required:!0,type:"string"},body:{type:"string"},draft:{type:"boolean"},head:{required:!0,type:"string"},maintainer_can_modify:{type:"boolean"},owner:{required:!0,type:"string"},repo:{required:!0,type:"string"},title:{required:!0,type:"string"}},url:"/repos/:owner/:repo/pulls"},createComment:{method:"POST",params:{body:{required:!0,type:"string"},commit_id:{required:!0,type:"string"},in_reply_to:{deprecated:!0,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:!0,type:"integer"},owner:{required:!0,type:"string"},path:{required:!0,type:"string"},position:{type:"integer"},pull_number:{required:!0,type:"integer"},repo:{required:!0,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:!0,type:"string"},commit_id:{required:!0,type:"string"},in_reply_to:{deprecated:!0,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:!0,type:"integer"},owner:{required:!0,type:"string"},path:{required:!0,type:"string"},position:{type:"integer"},pull_number:{required:!0,type:"integer"},repo:{required:!0,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:!0,type:"string"},draft:{type:"boolean"},head:{required:!0,type:"string"},issue:{required:!0,type:"integer"},maintainer_can_modify:{type:"boolean"},owner:{required:!0,type:"string"},repo:{required:!0,type:"string"}},url:"/repos/:owner/:repo/pulls"},createReview:{method:"POST",params:{body:{type:"string"},comments:{type:"object[]"},"comments[].body":{required:!0,type:"string"},"comments[].path":{required:!0,type:"string"},"comments[].position":{required:!0,type:"integer"},commit_id:{type:"string"},event:{enum:["APPROVE","REQUEST_CHANGES","COMMENT"],type:"string"},number:{alias:"pull_number",deprecated:!0,type:"integer"},owner:{required:!0,type:"string"},pull_number:{required:!0,type:"integer"},repo:{required:!0,type:"string"}},url:"/repos/:owner/:repo/pulls/:pull_number/reviews"},createReviewCommentReply:{method:"POST",params:{body:{required:!0,type:"string"},comment_id:{required:!0,type:"integer"},owner:{required:!0,type:"string"},pull_number:{required:!0,type:"integer"},repo:{required:!0,type:"string"}},url:"/repos/:owner/:repo/pulls/:pull_number/comments/:comment_id/replies"},createReviewRequest:{method:"POST",params:{number:{alias:"pull_number",deprecated:!0,type:"integer"},owner:{required:!0,type:"string"},pull_number:{required:!0,type:"integer"},repo:{required:!0,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:!0,type:"integer"},owner:{required:!0,type:"string"},repo:{required:!0,type:"string"}},url:"/repos/:owner/:repo/pulls/comments/:comment_id"},deletePendingReview:{method:"DELETE",params:{number:{alias:"pull_number",deprecated:!0,type:"integer"},owner:{required:!0,type:"string"},pull_number:{required:!0,type:"integer"},repo:{required:!0,type:"string"},review_id:{required:!0,type:"integer"}},url:"/repos/:owner/:repo/pulls/:pull_number/reviews/:review_id"},deleteReviewRequest:{method:"DELETE",params:{number:{alias:"pull_number",deprecated:!0,type:"integer"},owner:{required:!0,type:"string"},pull_number:{required:!0,type:"integer"},repo:{required:!0,type:"string"},reviewers:{type:"string[]"},team_reviewers:{type:"string[]"}},url:"/repos/:owner/:repo/pulls/:pull_number/requested_reviewers"},dismissReview:{method:"PUT",params:{message:{required:!0,type:"string"},number:{alias:"pull_number",deprecated:!0,type:"integer"},owner:{required:!0,type:"string"},pull_number:{required:!0,type:"integer"},repo:{required:!0,type:"string"},review_id:{required:!0,type:"integer"}},url:"/repos/:owner/:repo/pulls/:pull_number/reviews/:review_id/dismissals"},get:{method:"GET",params:{number:{alias:"pull_number",deprecated:!0,type:"integer"},owner:{required:!0,type:"string"},pull_number:{required:!0,type:"integer"},repo:{required:!0,type:"string"}},url:"/repos/:owner/:repo/pulls/:pull_number"},getComment:{method:"GET",params:{comment_id:{required:!0,type:"integer"},owner:{required:!0,type:"string"},repo:{required:!0,type:"string"}},url:"/repos/:owner/:repo/pulls/comments/:comment_id"},getCommentsForReview:{method:"GET",params:{number:{alias:"pull_number",deprecated:!0,type:"integer"},owner:{required:!0,type:"string"},page:{type:"integer"},per_page:{type:"integer"},pull_number:{required:!0,type:"integer"},repo:{required:!0,type:"string"},review_id:{required:!0,type:"integer"}},url:"/repos/:owner/:repo/pulls/:pull_number/reviews/:review_id/comments"},getReview:{method:"GET",params:{number:{alias:"pull_number",deprecated:!0,type:"integer"},owner:{required:!0,type:"string"},pull_number:{required:!0,type:"integer"},repo:{required:!0,type:"string"},review_id:{required:!0,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:!0,type:"string"},page:{type:"integer"},per_page:{type:"integer"},repo:{required:!0,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:!0,type:"integer"},owner:{required:!0,type:"string"},page:{type:"integer"},per_page:{type:"integer"},pull_number:{required:!0,type:"integer"},repo:{required:!0,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:!0,type:"string"},page:{type:"integer"},per_page:{type:"integer"},repo:{required:!0,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:!0,type:"integer"},owner:{required:!0,type:"string"},page:{type:"integer"},per_page:{type:"integer"},pull_number:{required:!0,type:"integer"},repo:{required:!0,type:"string"}},url:"/repos/:owner/:repo/pulls/:pull_number/commits"},listFiles:{method:"GET",params:{number:{alias:"pull_number",deprecated:!0,type:"integer"},owner:{required:!0,type:"string"},page:{type:"integer"},per_page:{type:"integer"},pull_number:{required:!0,type:"integer"},repo:{required:!0,type:"string"}},url:"/repos/:owner/:repo/pulls/:pull_number/files"},listReviewRequests:{method:"GET",params:{number:{alias:"pull_number",deprecated:!0,type:"integer"},owner:{required:!0,type:"string"},page:{type:"integer"},per_page:{type:"integer"},pull_number:{required:!0,type:"integer"},repo:{required:!0,type:"string"}},url:"/repos/:owner/:repo/pulls/:pull_number/requested_reviewers"},listReviews:{method:"GET",params:{number:{alias:"pull_number",deprecated:!0,type:"integer"},owner:{required:!0,type:"string"},page:{type:"integer"},per_page:{type:"integer"},pull_number:{required:!0,type:"integer"},repo:{required:!0,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:!0,type:"integer"},owner:{required:!0,type:"string"},pull_number:{required:!0,type:"integer"},repo:{required:!0,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:!0,type:"string"},number:{alias:"pull_number",deprecated:!0,type:"integer"},owner:{required:!0,type:"string"},pull_number:{required:!0,type:"integer"},repo:{required:!0,type:"string"},review_id:{required:!0,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:!0,type:"integer"},owner:{required:!0,type:"string"},pull_number:{required:!0,type:"integer"},repo:{required:!0,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:!0,type:"string"},pull_number:{required:!0,type:"integer"},repo:{required:!0,type:"string"}},url:"/repos/:owner/:repo/pulls/:pull_number/update-branch"},updateComment:{method:"PATCH",params:{body:{required:!0,type:"string"},comment_id:{required:!0,type:"integer"},owner:{required:!0,type:"string"},repo:{required:!0,type:"string"}},url:"/repos/:owner/:repo/pulls/comments/:comment_id"},updateReview:{method:"PUT",params:{body:{required:!0,type:"string"},number:{alias:"pull_number",deprecated:!0,type:"integer"},owner:{required:!0,type:"string"},pull_number:{required:!0,type:"integer"},repo:{required:!0,type:"string"},review_id:{required:!0,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:!0,type:"integer"},content:{enum:["+1","-1","laugh","confused","heart","hooray","rocket","eyes"],required:!0,type:"string"},owner:{required:!0,type:"string"},repo:{required:!0,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:!0,type:"string"},issue_number:{required:!0,type:"integer"},number:{alias:"issue_number",deprecated:!0,type:"integer"},owner:{required:!0,type:"string"},repo:{required:!0,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:!0,type:"integer"},content:{enum:["+1","-1","laugh","confused","heart","hooray","rocket","eyes"],required:!0,type:"string"},owner:{required:!0,type:"string"},repo:{required:!0,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:!0,type:"integer"},content:{enum:["+1","-1","laugh","confused","heart","hooray","rocket","eyes"],required:!0,type:"string"},owner:{required:!0,type:"string"},repo:{required:!0,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:!0,type:"string"},discussion_number:{required:!0,type:"integer"},team_id:{required:!0,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:!0,type:"integer"},content:{enum:["+1","-1","laugh","confused","heart","hooray","rocket","eyes"],required:!0,type:"string"},discussion_number:{required:!0,type:"integer"},team_id:{required:!0,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:!0,type:"integer"},content:{enum:["+1","-1","laugh","confused","heart","hooray","rocket","eyes"],required:!0,type:"string"},discussion_number:{required:!0,type:"integer"},org:{required:!0,type:"string"},team_slug:{required:!0,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:!0,type:"integer"},content:{enum:["+1","-1","laugh","confused","heart","hooray","rocket","eyes"],required:!0,type:"string"},discussion_number:{required:!0,type:"integer"},team_id:{required:!0,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:!0,type:"string"},discussion_number:{required:!0,type:"integer"},org:{required:!0,type:"string"},team_slug:{required:!0,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:!0,type:"string"},discussion_number:{required:!0,type:"integer"},team_id:{required:!0,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:!0,type:"integer"}},url:"/reactions/:reaction_id"},listForCommitComment:{headers:{accept:"application/vnd.github.squirrel-girl-preview+json"},method:"GET",params:{comment_id:{required:!0,type:"integer"},content:{enum:["+1","-1","laugh","confused","heart","hooray","rocket","eyes"],type:"string"},owner:{required:!0,type:"string"},page:{type:"integer"},per_page:{type:"integer"},repo:{required:!0,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:!0,type:"integer"},number:{alias:"issue_number",deprecated:!0,type:"integer"},owner:{required:!0,type:"string"},page:{type:"integer"},per_page:{type:"integer"},repo:{required:!0,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:!0,type:"integer"},content:{enum:["+1","-1","laugh","confused","heart","hooray","rocket","eyes"],type:"string"},owner:{required:!0,type:"string"},page:{type:"integer"},per_page:{type:"integer"},repo:{required:!0,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:!0,type:"integer"},content:{enum:["+1","-1","laugh","confused","heart","hooray","rocket","eyes"],type:"string"},owner:{required:!0,type:"string"},page:{type:"integer"},per_page:{type:"integer"},repo:{required:!0,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:!0,type:"integer"},page:{type:"integer"},per_page:{type:"integer"},team_id:{required:!0,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:!0,type:"integer"},content:{enum:["+1","-1","laugh","confused","heart","hooray","rocket","eyes"],type:"string"},discussion_number:{required:!0,type:"integer"},page:{type:"integer"},per_page:{type:"integer"},team_id:{required:!0,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:!0,type:"integer"},content:{enum:["+1","-1","laugh","confused","heart","hooray","rocket","eyes"],type:"string"},discussion_number:{required:!0,type:"integer"},org:{required:!0,type:"string"},page:{type:"integer"},per_page:{type:"integer"},team_slug:{required:!0,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:!0,type:"integer"},content:{enum:["+1","-1","laugh","confused","heart","hooray","rocket","eyes"],type:"string"},discussion_number:{required:!0,type:"integer"},page:{type:"integer"},per_page:{type:"integer"},team_id:{required:!0,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:!0,type:"integer"},org:{required:!0,type:"string"},page:{type:"integer"},per_page:{type:"integer"},team_slug:{required:!0,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:!0,type:"integer"},page:{type:"integer"},per_page:{type:"integer"},team_id:{required:!0,type:"integer"}},url:"/teams/:team_id/discussions/:discussion_number/reactions"}},repos:{acceptInvitation:{method:"PATCH",params:{invitation_id:{required:!0,type:"integer"}},url:"/user/repository_invitations/:invitation_id"},addCollaborator:{method:"PUT",params:{owner:{required:!0,type:"string"},permission:{enum:["pull","push","admin"],type:"string"},repo:{required:!0,type:"string"},username:{required:!0,type:"string"}},url:"/repos/:owner/:repo/collaborators/:username"},addDeployKey:{method:"POST",params:{key:{required:!0,type:"string"},owner:{required:!0,type:"string"},read_only:{type:"boolean"},repo:{required:!0,type:"string"},title:{type:"string"}},url:"/repos/:owner/:repo/keys"},addProtectedBranchAdminEnforcement:{method:"POST",params:{branch:{required:!0,type:"string"},owner:{required:!0,type:"string"},repo:{required:!0,type:"string"}},url:"/repos/:owner/:repo/branches/:branch/protection/enforce_admins"},addProtectedBranchAppRestrictions:{method:"POST",params:{apps:{mapTo:"data",required:!0,type:"string[]"},branch:{required:!0,type:"string"},owner:{required:!0,type:"string"},repo:{required:!0,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:!0,type:"string"},owner:{required:!0,type:"string"},repo:{required:!0,type:"string"}},url:"/repos/:owner/:repo/branches/:branch/protection/required_signatures"},addProtectedBranchRequiredStatusChecksContexts:{method:"POST",params:{branch:{required:!0,type:"string"},contexts:{mapTo:"data",required:!0,type:"string[]"},owner:{required:!0,type:"string"},repo:{required:!0,type:"string"}},url:"/repos/:owner/:repo/branches/:branch/protection/required_status_checks/contexts"},addProtectedBranchTeamRestrictions:{method:"POST",params:{branch:{required:!0,type:"string"},owner:{required:!0,type:"string"},repo:{required:!0,type:"string"},teams:{mapTo:"data",required:!0,type:"string[]"}},url:"/repos/:owner/:repo/branches/:branch/protection/restrictions/teams"},addProtectedBranchUserRestrictions:{method:"POST",params:{branch:{required:!0,type:"string"},owner:{required:!0,type:"string"},repo:{required:!0,type:"string"},users:{mapTo:"data",required:!0,type:"string[]"}},url:"/repos/:owner/:repo/branches/:branch/protection/restrictions/users"},checkCollaborator:{method:"GET",params:{owner:{required:!0,type:"string"},repo:{required:!0,type:"string"},username:{required:!0,type:"string"}},url:"/repos/:owner/:repo/collaborators/:username"},checkVulnerabilityAlerts:{headers:{accept:"application/vnd.github.dorian-preview+json"},method:"GET",params:{owner:{required:!0,type:"string"},repo:{required:!0,type:"string"}},url:"/repos/:owner/:repo/vulnerability-alerts"},compareCommits:{method:"GET",params:{base:{required:!0,type:"string"},head:{required:!0,type:"string"},owner:{required:!0,type:"string"},repo:{required:!0,type:"string"}},url:"/repos/:owner/:repo/compare/:base...:head"},createCommitComment:{method:"POST",params:{body:{required:!0,type:"string"},commit_sha:{required:!0,type:"string"},line:{type:"integer"},owner:{required:!0,type:"string"},path:{type:"string"},position:{type:"integer"},repo:{required:!0,type:"string"},sha:{alias:"commit_sha",deprecated:!0,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:!0,type:"string"},payload:{type:"string"},production_environment:{type:"boolean"},ref:{required:!0,type:"string"},repo:{required:!0,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:!0,type:"integer"},description:{type:"string"},environment:{enum:["production","staging","qa"],type:"string"},environment_url:{type:"string"},log_url:{type:"string"},owner:{required:!0,type:"string"},repo:{required:!0,type:"string"},state:{enum:["error","failure","inactive","in_progress","queued","pending","success"],required:!0,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:!0,type:"string"},repo:{required:!0,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:!0,type:"string"},"author.name":{required:!0,type:"string"},branch:{type:"string"},committer:{type:"object"},"committer.email":{required:!0,type:"string"},"committer.name":{required:!0,type:"string"},content:{required:!0,type:"string"},message:{required:!0,type:"string"},owner:{required:!0,type:"string"},path:{required:!0,type:"string"},repo:{required:!0,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:!0,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:!0,type:"string"},repo:{required:!0,type:"string"}},url:"/repos/:owner/:repo/forks"},createHook:{method:"POST",params:{active:{type:"boolean"},config:{required:!0,type:"object"},"config.content_type":{type:"string"},"config.insecure_ssl":{type:"string"},"config.secret":{type:"string"},"config.url":{required:!0,type:"string"},events:{type:"string[]"},name:{type:"string"},owner:{required:!0,type:"string"},repo:{required:!0,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:!0,type:"string"},org:{required:!0,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:!0,type:"string"},"author.name":{required:!0,type:"string"},branch:{type:"string"},committer:{type:"object"},"committer.email":{required:!0,type:"string"},"committer.name":{required:!0,type:"string"},content:{required:!0,type:"string"},message:{required:!0,type:"string"},owner:{required:!0,type:"string"},path:{required:!0,type:"string"},repo:{required:!0,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:!0,type:"string"},prerelease:{type:"boolean"},repo:{required:!0,type:"string"},tag_name:{required:!0,type:"string"},target_commitish:{type:"string"}},url:"/repos/:owner/:repo/releases"},createStatus:{method:"POST",params:{context:{type:"string"},description:{type:"string"},owner:{required:!0,type:"string"},repo:{required:!0,type:"string"},sha:{required:!0,type:"string"},state:{enum:["error","failure","pending","success"],required:!0,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:!0,type:"string"},owner:{type:"string"},private:{type:"boolean"},template_owner:{required:!0,type:"string"},template_repo:{required:!0,type:"string"}},url:"/repos/:template_owner/:template_repo/generate"},declineInvitation:{method:"DELETE",params:{invitation_id:{required:!0,type:"integer"}},url:"/user/repository_invitations/:invitation_id"},delete:{method:"DELETE",params:{owner:{required:!0,type:"string"},repo:{required:!0,type:"string"}},url:"/repos/:owner/:repo"},deleteCommitComment:{method:"DELETE",params:{comment_id:{required:!0,type:"integer"},owner:{required:!0,type:"string"},repo:{required:!0,type:"string"}},url:"/repos/:owner/:repo/comments/:comment_id"},deleteDownload:{method:"DELETE",params:{download_id:{required:!0,type:"integer"},owner:{required:!0,type:"string"},repo:{required:!0,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:!0,type:"string"},owner:{required:!0,type:"string"},path:{required:!0,type:"string"},repo:{required:!0,type:"string"},sha:{required:!0,type:"string"}},url:"/repos/:owner/:repo/contents/:path"},deleteHook:{method:"DELETE",params:{hook_id:{required:!0,type:"integer"},owner:{required:!0,type:"string"},repo:{required:!0,type:"string"}},url:"/repos/:owner/:repo/hooks/:hook_id"},deleteInvitation:{method:"DELETE",params:{invitation_id:{required:!0,type:"integer"},owner:{required:!0,type:"string"},repo:{required:!0,type:"string"}},url:"/repos/:owner/:repo/invitations/:invitation_id"},deleteRelease:{method:"DELETE",params:{owner:{required:!0,type:"string"},release_id:{required:!0,type:"integer"},repo:{required:!0,type:"string"}},url:"/repos/:owner/:repo/releases/:release_id"},deleteReleaseAsset:{method:"DELETE",params:{asset_id:{required:!0,type:"integer"},owner:{required:!0,type:"string"},repo:{required:!0,type:"string"}},url:"/repos/:owner/:repo/releases/assets/:asset_id"},disableAutomatedSecurityFixes:{headers:{accept:"application/vnd.github.london-preview+json"},method:"DELETE",params:{owner:{required:!0,type:"string"},repo:{required:!0,type:"string"}},url:"/repos/:owner/:repo/automated-security-fixes"},disablePagesSite:{headers:{accept:"application/vnd.github.switcheroo-preview+json"},method:"DELETE",params:{owner:{required:!0,type:"string"},repo:{required:!0,type:"string"}},url:"/repos/:owner/:repo/pages"},disableVulnerabilityAlerts:{headers:{accept:"application/vnd.github.dorian-preview+json"},method:"DELETE",params:{owner:{required:!0,type:"string"},repo:{required:!0,type:"string"}},url:"/repos/:owner/:repo/vulnerability-alerts"},enableAutomatedSecurityFixes:{headers:{accept:"application/vnd.github.london-preview+json"},method:"PUT",params:{owner:{required:!0,type:"string"},repo:{required:!0,type:"string"}},url:"/repos/:owner/:repo/automated-security-fixes"},enablePagesSite:{headers:{accept:"application/vnd.github.switcheroo-preview+json"},method:"POST",params:{owner:{required:!0,type:"string"},repo:{required:!0,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:!0,type:"string"},repo:{required:!0,type:"string"}},url:"/repos/:owner/:repo/vulnerability-alerts"},get:{method:"GET",params:{owner:{required:!0,type:"string"},repo:{required:!0,type:"string"}},url:"/repos/:owner/:repo"},getAppsWithAccessToProtectedBranch:{method:"GET",params:{branch:{required:!0,type:"string"},owner:{required:!0,type:"string"},repo:{required:!0,type:"string"}},url:"/repos/:owner/:repo/branches/:branch/protection/restrictions/apps"},getArchiveLink:{method:"GET",params:{archive_format:{required:!0,type:"string"},owner:{required:!0,type:"string"},ref:{required:!0,type:"string"},repo:{required:!0,type:"string"}},url:"/repos/:owner/:repo/:archive_format/:ref"},getBranch:{method:"GET",params:{branch:{required:!0,type:"string"},owner:{required:!0,type:"string"},repo:{required:!0,type:"string"}},url:"/repos/:owner/:repo/branches/:branch"},getBranchProtection:{method:"GET",params:{branch:{required:!0,type:"string"},owner:{required:!0,type:"string"},repo:{required:!0,type:"string"}},url:"/repos/:owner/:repo/branches/:branch/protection"},getClones:{method:"GET",params:{owner:{required:!0,type:"string"},per:{enum:["day","week"],type:"string"},repo:{required:!0,type:"string"}},url:"/repos/:owner/:repo/traffic/clones"},getCodeFrequencyStats:{method:"GET",params:{owner:{required:!0,type:"string"},repo:{required:!0,type:"string"}},url:"/repos/:owner/:repo/stats/code_frequency"},getCollaboratorPermissionLevel:{method:"GET",params:{owner:{required:!0,type:"string"},repo:{required:!0,type:"string"},username:{required:!0,type:"string"}},url:"/repos/:owner/:repo/collaborators/:username/permission"},getCombinedStatusForRef:{method:"GET",params:{owner:{required:!0,type:"string"},ref:{required:!0,type:"string"},repo:{required:!0,type:"string"}},url:"/repos/:owner/:repo/commits/:ref/status"},getCommit:{method:"GET",params:{commit_sha:{alias:"ref",deprecated:!0,type:"string"},owner:{required:!0,type:"string"},ref:{required:!0,type:"string"},repo:{required:!0,type:"string"},sha:{alias:"ref",deprecated:!0,type:"string"}},url:"/repos/:owner/:repo/commits/:ref"},getCommitActivityStats:{method:"GET",params:{owner:{required:!0,type:"string"},repo:{required:!0,type:"string"}},url:"/repos/:owner/:repo/stats/commit_activity"},getCommitComment:{method:"GET",params:{comment_id:{required:!0,type:"integer"},owner:{required:!0,type:"string"},repo:{required:!0,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:!0,type:"string"},ref:{required:!0,type:"string"},repo:{required:!0,type:"string"}},url:"/repos/:owner/:repo/commits/:ref"},getContents:{method:"GET",params:{owner:{required:!0,type:"string"},path:{required:!0,type:"string"},ref:{type:"string"},repo:{required:!0,type:"string"}},url:"/repos/:owner/:repo/contents/:path"},getContributorsStats:{method:"GET",params:{owner:{required:!0,type:"string"},repo:{required:!0,type:"string"}},url:"/repos/:owner/:repo/stats/contributors"},getDeployKey:{method:"GET",params:{key_id:{required:!0,type:"integer"},owner:{required:!0,type:"string"},repo:{required:!0,type:"string"}},url:"/repos/:owner/:repo/keys/:key_id"},getDeployment:{method:"GET",params:{deployment_id:{required:!0,type:"integer"},owner:{required:!0,type:"string"},repo:{required:!0,type:"string"}},url:"/repos/:owner/:repo/deployments/:deployment_id"},getDeploymentStatus:{method:"GET",params:{deployment_id:{required:!0,type:"integer"},owner:{required:!0,type:"string"},repo:{required:!0,type:"string"},status_id:{required:!0,type:"integer"}},url:"/repos/:owner/:repo/deployments/:deployment_id/statuses/:status_id"},getDownload:{method:"GET",params:{download_id:{required:!0,type:"integer"},owner:{required:!0,type:"string"},repo:{required:!0,type:"string"}},url:"/repos/:owner/:repo/downloads/:download_id"},getHook:{method:"GET",params:{hook_id:{required:!0,type:"integer"},owner:{required:!0,type:"string"},repo:{required:!0,type:"string"}},url:"/repos/:owner/:repo/hooks/:hook_id"},getLatestPagesBuild:{method:"GET",params:{owner:{required:!0,type:"string"},repo:{required:!0,type:"string"}},url:"/repos/:owner/:repo/pages/builds/latest"},getLatestRelease:{method:"GET",params:{owner:{required:!0,type:"string"},repo:{required:!0,type:"string"}},url:"/repos/:owner/:repo/releases/latest"},getPages:{method:"GET",params:{owner:{required:!0,type:"string"},repo:{required:!0,type:"string"}},url:"/repos/:owner/:repo/pages"},getPagesBuild:{method:"GET",params:{build_id:{required:!0,type:"integer"},owner:{required:!0,type:"string"},repo:{required:!0,type:"string"}},url:"/repos/:owner/:repo/pages/builds/:build_id"},getParticipationStats:{method:"GET",params:{owner:{required:!0,type:"string"},repo:{required:!0,type:"string"}},url:"/repos/:owner/:repo/stats/participation"},getProtectedBranchAdminEnforcement:{method:"GET",params:{branch:{required:!0,type:"string"},owner:{required:!0,type:"string"},repo:{required:!0,type:"string"}},url:"/repos/:owner/:repo/branches/:branch/protection/enforce_admins"},getProtectedBranchPullRequestReviewEnforcement:{method:"GET",params:{branch:{required:!0,type:"string"},owner:{required:!0,type:"string"},repo:{required:!0,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:!0,type:"string"},owner:{required:!0,type:"string"},repo:{required:!0,type:"string"}},url:"/repos/:owner/:repo/branches/:branch/protection/required_signatures"},getProtectedBranchRequiredStatusChecks:{method:"GET",params:{branch:{required:!0,type:"string"},owner:{required:!0,type:"string"},repo:{required:!0,type:"string"}},url:"/repos/:owner/:repo/branches/:branch/protection/required_status_checks"},getProtectedBranchRestrictions:{method:"GET",params:{branch:{required:!0,type:"string"},owner:{required:!0,type:"string"},repo:{required:!0,type:"string"}},url:"/repos/:owner/:repo/branches/:branch/protection/restrictions"},getPunchCardStats:{method:"GET",params:{owner:{required:!0,type:"string"},repo:{required:!0,type:"string"}},url:"/repos/:owner/:repo/stats/punch_card"},getReadme:{method:"GET",params:{owner:{required:!0,type:"string"},ref:{type:"string"},repo:{required:!0,type:"string"}},url:"/repos/:owner/:repo/readme"},getRelease:{method:"GET",params:{owner:{required:!0,type:"string"},release_id:{required:!0,type:"integer"},repo:{required:!0,type:"string"}},url:"/repos/:owner/:repo/releases/:release_id"},getReleaseAsset:{method:"GET",params:{asset_id:{required:!0,type:"integer"},owner:{required:!0,type:"string"},repo:{required:!0,type:"string"}},url:"/repos/:owner/:repo/releases/assets/:asset_id"},getReleaseByTag:{method:"GET",params:{owner:{required:!0,type:"string"},repo:{required:!0,type:"string"},tag:{required:!0,type:"string"}},url:"/repos/:owner/:repo/releases/tags/:tag"},getTeamsWithAccessToProtectedBranch:{method:"GET",params:{branch:{required:!0,type:"string"},owner:{required:!0,type:"string"},repo:{required:!0,type:"string"}},url:"/repos/:owner/:repo/branches/:branch/protection/restrictions/teams"},getTopPaths:{method:"GET",params:{owner:{required:!0,type:"string"},repo:{required:!0,type:"string"}},url:"/repos/:owner/:repo/traffic/popular/paths"},getTopReferrers:{method:"GET",params:{owner:{required:!0,type:"string"},repo:{required:!0,type:"string"}},url:"/repos/:owner/:repo/traffic/popular/referrers"},getUsersWithAccessToProtectedBranch:{method:"GET",params:{branch:{required:!0,type:"string"},owner:{required:!0,type:"string"},repo:{required:!0,type:"string"}},url:"/repos/:owner/:repo/branches/:branch/protection/restrictions/users"},getViews:{method:"GET",params:{owner:{required:!0,type:"string"},per:{enum:["day","week"],type:"string"},repo:{required:!0,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:!0,type:"string"},owner:{required:!0,type:"string"},repo:{required:!0,type:"string"}},url:"/repos/:owner/:repo/branches/:branch/protection/restrictions/apps"},listAssetsForRelease:{method:"GET",params:{owner:{required:!0,type:"string"},page:{type:"integer"},per_page:{type:"integer"},release_id:{required:!0,type:"integer"},repo:{required:!0,type:"string"}},url:"/repos/:owner/:repo/releases/:release_id/assets"},listBranches:{method:"GET",params:{owner:{required:!0,type:"string"},page:{type:"integer"},per_page:{type:"integer"},protected:{type:"boolean"},repo:{required:!0,type:"string"}},url:"/repos/:owner/:repo/branches"},listBranchesForHeadCommit:{headers:{accept:"application/vnd.github.groot-preview+json"},method:"GET",params:{commit_sha:{required:!0,type:"string"},owner:{required:!0,type:"string"},repo:{required:!0,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:!0,type:"string"},page:{type:"integer"},per_page:{type:"integer"},repo:{required:!0,type:"string"}},url:"/repos/:owner/:repo/collaborators"},listCommentsForCommit:{method:"GET",params:{commit_sha:{required:!0,type:"string"},owner:{required:!0,type:"string"},page:{type:"integer"},per_page:{type:"integer"},ref:{alias:"commit_sha",deprecated:!0,type:"string"},repo:{required:!0,type:"string"}},url:"/repos/:owner/:repo/commits/:commit_sha/comments"},listCommitComments:{method:"GET",params:{owner:{required:!0,type:"string"},page:{type:"integer"},per_page:{type:"integer"},repo:{required:!0,type:"string"}},url:"/repos/:owner/:repo/comments"},listCommits:{method:"GET",params:{author:{type:"string"},owner:{required:!0,type:"string"},page:{type:"integer"},path:{type:"string"},per_page:{type:"integer"},repo:{required:!0,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:!0,type:"string"},page:{type:"integer"},per_page:{type:"integer"},repo:{required:!0,type:"string"}},url:"/repos/:owner/:repo/contributors"},listDeployKeys:{method:"GET",params:{owner:{required:!0,type:"string"},page:{type:"integer"},per_page:{type:"integer"},repo:{required:!0,type:"string"}},url:"/repos/:owner/:repo/keys"},listDeploymentStatuses:{method:"GET",params:{deployment_id:{required:!0,type:"integer"},owner:{required:!0,type:"string"},page:{type:"integer"},per_page:{type:"integer"},repo:{required:!0,type:"string"}},url:"/repos/:owner/:repo/deployments/:deployment_id/statuses"},listDeployments:{method:"GET",params:{environment:{type:"string"},owner:{required:!0,type:"string"},page:{type:"integer"},per_page:{type:"integer"},ref:{type:"string"},repo:{required:!0,type:"string"},sha:{type:"string"},task:{type:"string"}},url:"/repos/:owner/:repo/deployments"},listDownloads:{method:"GET",params:{owner:{required:!0,type:"string"},page:{type:"integer"},per_page:{type:"integer"},repo:{required:!0,type:"string"}},url:"/repos/:owner/:repo/downloads"},listForOrg:{method:"GET",params:{direction:{enum:["asc","desc"],type:"string"},org:{required:!0,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:!0,type:"string"}},url:"/users/:username/repos"},listForks:{method:"GET",params:{owner:{required:!0,type:"string"},page:{type:"integer"},per_page:{type:"integer"},repo:{required:!0,type:"string"},sort:{enum:["newest","oldest","stargazers"],type:"string"}},url:"/repos/:owner/:repo/forks"},listHooks:{method:"GET",params:{owner:{required:!0,type:"string"},page:{type:"integer"},per_page:{type:"integer"},repo:{required:!0,type:"string"}},url:"/repos/:owner/:repo/hooks"},listInvitations:{method:"GET",params:{owner:{required:!0,type:"string"},page:{type:"integer"},per_page:{type:"integer"},repo:{required:!0,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:!0,type:"string"},repo:{required:!0,type:"string"}},url:"/repos/:owner/:repo/languages"},listPagesBuilds:{method:"GET",params:{owner:{required:!0,type:"string"},page:{type:"integer"},per_page:{type:"integer"},repo:{required:!0,type:"string"}},url:"/repos/:owner/:repo/pages/builds"},listProtectedBranchRequiredStatusChecksContexts:{method:"GET",params:{branch:{required:!0,type:"string"},owner:{required:!0,type:"string"},repo:{required:!0,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:!0,type:"string"},owner:{required:!0,type:"string"},repo:{required:!0,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:!0,type:"string"},owner:{required:!0,type:"string"},repo:{required:!0,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:!0,type:"string"},owner:{required:!0,type:"string"},page:{type:"integer"},per_page:{type:"integer"},repo:{required:!0,type:"string"}},url:"/repos/:owner/:repo/commits/:commit_sha/pulls"},listReleases:{method:"GET",params:{owner:{required:!0,type:"string"},page:{type:"integer"},per_page:{type:"integer"},repo:{required:!0,type:"string"}},url:"/repos/:owner/:repo/releases"},listStatusesForRef:{method:"GET",params:{owner:{required:!0,type:"string"},page:{type:"integer"},per_page:{type:"integer"},ref:{required:!0,type:"string"},repo:{required:!0,type:"string"}},url:"/repos/:owner/:repo/commits/:ref/statuses"},listTags:{method:"GET",params:{owner:{required:!0,type:"string"},page:{type:"integer"},per_page:{type:"integer"},repo:{required:!0,type:"string"}},url:"/repos/:owner/:repo/tags"},listTeams:{method:"GET",params:{owner:{required:!0,type:"string"},page:{type:"integer"},per_page:{type:"integer"},repo:{required:!0,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:!0,type:"string"},owner:{required:!0,type:"string"},repo:{required:!0,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:!0,type:"string"},repo:{required:!0,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:!0,type:"string"},owner:{required:!0,type:"string"},repo:{required:!0,type:"string"}},url:"/repos/:owner/:repo/branches/:branch/protection/restrictions/users"},merge:{method:"POST",params:{base:{required:!0,type:"string"},commit_message:{type:"string"},head:{required:!0,type:"string"},owner:{required:!0,type:"string"},repo:{required:!0,type:"string"}},url:"/repos/:owner/:repo/merges"},pingHook:{method:"POST",params:{hook_id:{required:!0,type:"integer"},owner:{required:!0,type:"string"},repo:{required:!0,type:"string"}},url:"/repos/:owner/:repo/hooks/:hook_id/pings"},removeBranchProtection:{method:"DELETE",params:{branch:{required:!0,type:"string"},owner:{required:!0,type:"string"},repo:{required:!0,type:"string"}},url:"/repos/:owner/:repo/branches/:branch/protection"},removeCollaborator:{method:"DELETE",params:{owner:{required:!0,type:"string"},repo:{required:!0,type:"string"},username:{required:!0,type:"string"}},url:"/repos/:owner/:repo/collaborators/:username"},removeDeployKey:{method:"DELETE",params:{key_id:{required:!0,type:"integer"},owner:{required:!0,type:"string"},repo:{required:!0,type:"string"}},url:"/repos/:owner/:repo/keys/:key_id"},removeProtectedBranchAdminEnforcement:{method:"DELETE",params:{branch:{required:!0,type:"string"},owner:{required:!0,type:"string"},repo:{required:!0,type:"string"}},url:"/repos/:owner/:repo/branches/:branch/protection/enforce_admins"},removeProtectedBranchAppRestrictions:{method:"DELETE",params:{apps:{mapTo:"data",required:!0,type:"string[]"},branch:{required:!0,type:"string"},owner:{required:!0,type:"string"},repo:{required:!0,type:"string"}},url:"/repos/:owner/:repo/branches/:branch/protection/restrictions/apps"},removeProtectedBranchPullRequestReviewEnforcement:{method:"DELETE",params:{branch:{required:!0,type:"string"},owner:{required:!0,type:"string"},repo:{required:!0,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:!0,type:"string"},owner:{required:!0,type:"string"},repo:{required:!0,type:"string"}},url:"/repos/:owner/:repo/branches/:branch/protection/required_signatures"},removeProtectedBranchRequiredStatusChecks:{method:"DELETE",params:{branch:{required:!0,type:"string"},owner:{required:!0,type:"string"},repo:{required:!0,type:"string"}},url:"/repos/:owner/:repo/branches/:branch/protection/required_status_checks"},removeProtectedBranchRequiredStatusChecksContexts:{method:"DELETE",params:{branch:{required:!0,type:"string"},contexts:{mapTo:"data",required:!0,type:"string[]"},owner:{required:!0,type:"string"},repo:{required:!0,type:"string"}},url:"/repos/:owner/:repo/branches/:branch/protection/required_status_checks/contexts"},removeProtectedBranchRestrictions:{method:"DELETE",params:{branch:{required:!0,type:"string"},owner:{required:!0,type:"string"},repo:{required:!0,type:"string"}},url:"/repos/:owner/:repo/branches/:branch/protection/restrictions"},removeProtectedBranchTeamRestrictions:{method:"DELETE",params:{branch:{required:!0,type:"string"},owner:{required:!0,type:"string"},repo:{required:!0,type:"string"},teams:{mapTo:"data",required:!0,type:"string[]"}},url:"/repos/:owner/:repo/branches/:branch/protection/restrictions/teams"},removeProtectedBranchUserRestrictions:{method:"DELETE",params:{branch:{required:!0,type:"string"},owner:{required:!0,type:"string"},repo:{required:!0,type:"string"},users:{mapTo:"data",required:!0,type:"string[]"}},url:"/repos/:owner/:repo/branches/:branch/protection/restrictions/users"},replaceProtectedBranchAppRestrictions:{method:"PUT",params:{apps:{mapTo:"data",required:!0,type:"string[]"},branch:{required:!0,type:"string"},owner:{required:!0,type:"string"},repo:{required:!0,type:"string"}},url:"/repos/:owner/:repo/branches/:branch/protection/restrictions/apps"},replaceProtectedBranchRequiredStatusChecksContexts:{method:"PUT",params:{branch:{required:!0,type:"string"},contexts:{mapTo:"data",required:!0,type:"string[]"},owner:{required:!0,type:"string"},repo:{required:!0,type:"string"}},url:"/repos/:owner/:repo/branches/:branch/protection/required_status_checks/contexts"},replaceProtectedBranchTeamRestrictions:{method:"PUT",params:{branch:{required:!0,type:"string"},owner:{required:!0,type:"string"},repo:{required:!0,type:"string"},teams:{mapTo:"data",required:!0,type:"string[]"}},url:"/repos/:owner/:repo/branches/:branch/protection/restrictions/teams"},replaceProtectedBranchUserRestrictions:{method:"PUT",params:{branch:{required:!0,type:"string"},owner:{required:!0,type:"string"},repo:{required:!0,type:"string"},users:{mapTo:"data",required:!0,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:!0,type:"string[]"},owner:{required:!0,type:"string"},repo:{required:!0,type:"string"}},url:"/repos/:owner/:repo/topics"},requestPageBuild:{method:"POST",params:{owner:{required:!0,type:"string"},repo:{required:!0,type:"string"}},url:"/repos/:owner/:repo/pages/builds"},retrieveCommunityProfileMetrics:{method:"GET",params:{owner:{required:!0,type:"string"},repo:{required:!0,type:"string"}},url:"/repos/:owner/:repo/community/profile"},testPushHook:{method:"POST",params:{hook_id:{required:!0,type:"integer"},owner:{required:!0,type:"string"},repo:{required:!0,type:"string"}},url:"/repos/:owner/:repo/hooks/:hook_id/tests"},transfer:{method:"POST",params:{new_owner:{type:"string"},owner:{required:!0,type:"string"},repo:{required:!0,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:!0,type:"string"},private:{type:"boolean"},repo:{required:!0,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:!0,type:"boolean"},branch:{required:!0,type:"string"},enforce_admins:{allowNull:!0,required:!0,type:"boolean"},owner:{required:!0,type:"string"},repo:{required:!0,type:"string"},required_linear_history:{type:"boolean"},required_pull_request_reviews:{allowNull:!0,required:!0,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:!0,required:!0,type:"object"},"required_status_checks.contexts":{required:!0,type:"string[]"},"required_status_checks.strict":{required:!0,type:"boolean"},restrictions:{allowNull:!0,required:!0,type:"object"},"restrictions.apps":{type:"string[]"},"restrictions.teams":{required:!0,type:"string[]"},"restrictions.users":{required:!0,type:"string[]"}},url:"/repos/:owner/:repo/branches/:branch/protection"},updateCommitComment:{method:"PATCH",params:{body:{required:!0,type:"string"},comment_id:{required:!0,type:"integer"},owner:{required:!0,type:"string"},repo:{required:!0,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:!0,type:"string"},"author.name":{required:!0,type:"string"},branch:{type:"string"},committer:{type:"object"},"committer.email":{required:!0,type:"string"},"committer.name":{required:!0,type:"string"},content:{required:!0,type:"string"},message:{required:!0,type:"string"},owner:{required:!0,type:"string"},path:{required:!0,type:"string"},repo:{required:!0,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:!0,type:"string"},events:{type:"string[]"},hook_id:{required:!0,type:"integer"},owner:{required:!0,type:"string"},remove_events:{type:"string[]"},repo:{required:!0,type:"string"}},url:"/repos/:owner/:repo/hooks/:hook_id"},updateInformationAboutPagesSite:{method:"PUT",params:{cname:{type:"string"},owner:{required:!0,type:"string"},repo:{required:!0,type:"string"},source:{enum:['"gh-pages"','"master"','"master /docs"'],type:"string"}},url:"/repos/:owner/:repo/pages"},updateInvitation:{method:"PATCH",params:{invitation_id:{required:!0,type:"integer"},owner:{required:!0,type:"string"},permissions:{enum:["read","write","admin"],type:"string"},repo:{required:!0,type:"string"}},url:"/repos/:owner/:repo/invitations/:invitation_id"},updateProtectedBranchPullRequestReviewEnforcement:{method:"PATCH",params:{branch:{required:!0,type:"string"},dismiss_stale_reviews:{type:"boolean"},dismissal_restrictions:{type:"object"},"dismissal_restrictions.teams":{type:"string[]"},"dismissal_restrictions.users":{type:"string[]"},owner:{required:!0,type:"string"},repo:{required:!0,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:!0,type:"string"},contexts:{type:"string[]"},owner:{required:!0,type:"string"},repo:{required:!0,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:!0,type:"string"},prerelease:{type:"boolean"},release_id:{required:!0,type:"integer"},repo:{required:!0,type:"string"},tag_name:{type:"string"},target_commitish:{type:"string"}},url:"/repos/:owner/:repo/releases/:release_id"},updateReleaseAsset:{method:"PATCH",params:{asset_id:{required:!0,type:"integer"},label:{type:"string"},name:{type:"string"},owner:{required:!0,type:"string"},repo:{required:!0,type:"string"}},url:"/repos/:owner/:repo/releases/assets/:asset_id"},uploadReleaseAsset:{method:"POST",params:{data:{mapTo:"data",required:!0,type:"string | object"},file:{alias:"data",deprecated:!0,type:"string | object"},headers:{required:!0,type:"object"},"headers.content-length":{required:!0,type:"integer"},"headers.content-type":{required:!0,type:"string"},label:{type:"string"},name:{required:!0,type:"string"},url:{required:!0,type:"string"}},url:":url"}},search:{code:{method:"GET",params:{order:{enum:["desc","asc"],type:"string"},page:{type:"integer"},per_page:{type:"integer"},q:{required:!0,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:!0,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:!0,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:!0,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:!0,type:"string"},repository_id:{required:!0,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:!0,type:"string"},sort:{enum:["stars","forks","help-wanted-issues","updated"],type:"string"}},url:"/search/repositories"},topics:{method:"GET",params:{q:{required:!0,type:"string"}},url:"/search/topics"},users:{method:"GET",params:{order:{enum:["desc","asc"],type:"string"},page:{type:"integer"},per_page:{type:"integer"},q:{required:!0,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:!0,type:"integer"},username:{required:!0,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:!0,type:"integer"},username:{required:!0,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:!0,type:"integer"},username:{required:!0,type:"string"}},url:"/teams/:team_id/memberships/:username"},addOrUpdateMembershipInOrg:{method:"PUT",params:{org:{required:!0,type:"string"},role:{enum:["member","maintainer"],type:"string"},team_slug:{required:!0,type:"string"},username:{required:!0,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:!0,type:"integer"},username:{required:!0,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:!0,type:"integer"},team_id:{required:!0,type:"integer"}},url:"/teams/:team_id/projects/:project_id"},addOrUpdateProjectInOrg:{headers:{accept:"application/vnd.github.inertia-preview+json"},method:"PUT",params:{org:{required:!0,type:"string"},permission:{enum:["read","write","admin"],type:"string"},project_id:{required:!0,type:"integer"},team_slug:{required:!0,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:!0,type:"integer"},team_id:{required:!0,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:!0,type:"string"},permission:{enum:["pull","push","admin"],type:"string"},repo:{required:!0,type:"string"},team_id:{required:!0,type:"integer"}},url:"/teams/:team_id/repos/:owner/:repo"},addOrUpdateRepoInOrg:{method:"PUT",params:{org:{required:!0,type:"string"},owner:{required:!0,type:"string"},permission:{enum:["pull","push","admin"],type:"string"},repo:{required:!0,type:"string"},team_slug:{required:!0,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:!0,type:"string"},permission:{enum:["pull","push","admin"],type:"string"},repo:{required:!0,type:"string"},team_id:{required:!0,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:!0,type:"string"},repo:{required:!0,type:"string"},team_id:{required:!0,type:"integer"}},url:"/teams/:team_id/repos/:owner/:repo"},checkManagesRepoInOrg:{method:"GET",params:{org:{required:!0,type:"string"},owner:{required:!0,type:"string"},repo:{required:!0,type:"string"},team_slug:{required:!0,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:!0,type:"string"},repo:{required:!0,type:"string"},team_id:{required:!0,type:"integer"}},url:"/teams/:team_id/repos/:owner/:repo"},create:{method:"POST",params:{description:{type:"string"},maintainers:{type:"string[]"},name:{required:!0,type:"string"},org:{required:!0,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:!0,type:"string"},private:{type:"boolean"},team_id:{required:!0,type:"integer"},title:{required:!0,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:!0,type:"string"},discussion_number:{required:!0,type:"integer"},team_id:{required:!0,type:"integer"}},url:"/teams/:team_id/discussions/:discussion_number/comments"},createDiscussionCommentInOrg:{method:"POST",params:{body:{required:!0,type:"string"},discussion_number:{required:!0,type:"integer"},org:{required:!0,type:"string"},team_slug:{required:!0,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:!0,type:"string"},discussion_number:{required:!0,type:"integer"},team_id:{required:!0,type:"integer"}},url:"/teams/:team_id/discussions/:discussion_number/comments"},createDiscussionInOrg:{method:"POST",params:{body:{required:!0,type:"string"},org:{required:!0,type:"string"},private:{type:"boolean"},team_slug:{required:!0,type:"string"},title:{required:!0,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:!0,type:"string"},private:{type:"boolean"},team_id:{required:!0,type:"integer"},title:{required:!0,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:!0,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:!0,type:"integer"},team_id:{required:!0,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:!0,type:"integer"},discussion_number:{required:!0,type:"integer"},team_id:{required:!0,type:"integer"}},url:"/teams/:team_id/discussions/:discussion_number/comments/:comment_number"},deleteDiscussionCommentInOrg:{method:"DELETE",params:{comment_number:{required:!0,type:"integer"},discussion_number:{required:!0,type:"integer"},org:{required:!0,type:"string"},team_slug:{required:!0,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:!0,type:"integer"},discussion_number:{required:!0,type:"integer"},team_id:{required:!0,type:"integer"}},url:"/teams/:team_id/discussions/:discussion_number/comments/:comment_number"},deleteDiscussionInOrg:{method:"DELETE",params:{discussion_number:{required:!0,type:"integer"},org:{required:!0,type:"string"},team_slug:{required:!0,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:!0,type:"integer"},team_id:{required:!0,type:"integer"}},url:"/teams/:team_id/discussions/:discussion_number"},deleteInOrg:{method:"DELETE",params:{org:{required:!0,type:"string"},team_slug:{required:!0,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:!0,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:!0,type:"integer"}},url:"/teams/:team_id"},getByName:{method:"GET",params:{org:{required:!0,type:"string"},team_slug:{required:!0,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:!0,type:"integer"},team_id:{required:!0,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:!0,type:"integer"},discussion_number:{required:!0,type:"integer"},team_id:{required:!0,type:"integer"}},url:"/teams/:team_id/discussions/:discussion_number/comments/:comment_number"},getDiscussionCommentInOrg:{method:"GET",params:{comment_number:{required:!0,type:"integer"},discussion_number:{required:!0,type:"integer"},org:{required:!0,type:"string"},team_slug:{required:!0,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:!0,type:"integer"},discussion_number:{required:!0,type:"integer"},team_id:{required:!0,type:"integer"}},url:"/teams/:team_id/discussions/:discussion_number/comments/:comment_number"},getDiscussionInOrg:{method:"GET",params:{discussion_number:{required:!0,type:"integer"},org:{required:!0,type:"string"},team_slug:{required:!0,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:!0,type:"integer"},team_id:{required:!0,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:!0,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:!0,type:"integer"},username:{required:!0,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:!0,type:"integer"},username:{required:!0,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:!0,type:"integer"},username:{required:!0,type:"string"}},url:"/teams/:team_id/memberships/:username"},getMembershipInOrg:{method:"GET",params:{org:{required:!0,type:"string"},team_slug:{required:!0,type:"string"},username:{required:!0,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:!0,type:"integer"},username:{required:!0,type:"string"}},url:"/teams/:team_id/memberships/:username"},list:{method:"GET",params:{org:{required:!0,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:!0,type:"integer"}},url:"/teams/:team_id/teams"},listChildInOrg:{method:"GET",params:{org:{required:!0,type:"string"},page:{type:"integer"},per_page:{type:"integer"},team_slug:{required:!0,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:!0,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:!0,type:"integer"},page:{type:"integer"},per_page:{type:"integer"},team_id:{required:!0,type:"integer"}},url:"/teams/:team_id/discussions/:discussion_number/comments"},listDiscussionCommentsInOrg:{method:"GET",params:{direction:{enum:["asc","desc"],type:"string"},discussion_number:{required:!0,type:"integer"},org:{required:!0,type:"string"},page:{type:"integer"},per_page:{type:"integer"},team_slug:{required:!0,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:!0,type:"integer"},page:{type:"integer"},per_page:{type:"integer"},team_id:{required:!0,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:!0,type:"integer"}},url:"/teams/:team_id/discussions"},listDiscussionsInOrg:{method:"GET",params:{direction:{enum:["asc","desc"],type:"string"},org:{required:!0,type:"string"},page:{type:"integer"},per_page:{type:"integer"},team_slug:{required:!0,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:!0,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:!0,type:"integer"}},url:"/teams/:team_id/members"},listMembersInOrg:{method:"GET",params:{org:{required:!0,type:"string"},page:{type:"integer"},per_page:{type:"integer"},role:{enum:["member","maintainer","all"],type:"string"},team_slug:{required:!0,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:!0,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:!0,type:"integer"}},url:"/teams/:team_id/invitations"},listPendingInvitationsInOrg:{method:"GET",params:{org:{required:!0,type:"string"},page:{type:"integer"},per_page:{type:"integer"},team_slug:{required:!0,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:!0,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:!0,type:"integer"}},url:"/teams/:team_id/projects"},listProjectsInOrg:{headers:{accept:"application/vnd.github.inertia-preview+json"},method:"GET",params:{org:{required:!0,type:"string"},page:{type:"integer"},per_page:{type:"integer"},team_slug:{required:!0,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:!0,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:!0,type:"integer"}},url:"/teams/:team_id/repos"},listReposInOrg:{method:"GET",params:{org:{required:!0,type:"string"},page:{type:"integer"},per_page:{type:"integer"},team_slug:{required:!0,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:!0,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:!0,type:"integer"},username:{required:!0,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:!0,type:"integer"},username:{required:!0,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:!0,type:"integer"},username:{required:!0,type:"string"}},url:"/teams/:team_id/memberships/:username"},removeMembershipInOrg:{method:"DELETE",params:{org:{required:!0,type:"string"},team_slug:{required:!0,type:"string"},username:{required:!0,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:!0,type:"integer"},username:{required:!0,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:!0,type:"integer"},team_id:{required:!0,type:"integer"}},url:"/teams/:team_id/projects/:project_id"},removeProjectInOrg:{method:"DELETE",params:{org:{required:!0,type:"string"},project_id:{required:!0,type:"integer"},team_slug:{required:!0,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:!0,type:"integer"},team_id:{required:!0,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:!0,type:"string"},repo:{required:!0,type:"string"},team_id:{required:!0,type:"integer"}},url:"/teams/:team_id/repos/:owner/:repo"},removeRepoInOrg:{method:"DELETE",params:{org:{required:!0,type:"string"},owner:{required:!0,type:"string"},repo:{required:!0,type:"string"},team_slug:{required:!0,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:!0,type:"string"},repo:{required:!0,type:"string"},team_id:{required:!0,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:!0,type:"integer"},team_id:{required:!0,type:"integer"}},url:"/teams/:team_id/projects/:project_id"},reviewProjectInOrg:{headers:{accept:"application/vnd.github.inertia-preview+json"},method:"GET",params:{org:{required:!0,type:"string"},project_id:{required:!0,type:"integer"},team_slug:{required:!0,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:!0,type:"integer"},team_id:{required:!0,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:!0,type:"string"},parent_team_id:{type:"integer"},permission:{enum:["pull","push","admin"],type:"string"},privacy:{enum:["secret","closed"],type:"string"},team_id:{required:!0,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:!0,type:"integer"},team_id:{required:!0,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:!0,type:"string"},comment_number:{required:!0,type:"integer"},discussion_number:{required:!0,type:"integer"},team_id:{required:!0,type:"integer"}},url:"/teams/:team_id/discussions/:discussion_number/comments/:comment_number"},updateDiscussionCommentInOrg:{method:"PATCH",params:{body:{required:!0,type:"string"},comment_number:{required:!0,type:"integer"},discussion_number:{required:!0,type:"integer"},org:{required:!0,type:"string"},team_slug:{required:!0,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:!0,type:"string"},comment_number:{required:!0,type:"integer"},discussion_number:{required:!0,type:"integer"},team_id:{required:!0,type:"integer"}},url:"/teams/:team_id/discussions/:discussion_number/comments/:comment_number"},updateDiscussionInOrg:{method:"PATCH",params:{body:{type:"string"},discussion_number:{required:!0,type:"integer"},org:{required:!0,type:"string"},team_slug:{required:!0,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:!0,type:"integer"},team_id:{required:!0,type:"integer"},title:{type:"string"}},url:"/teams/:team_id/discussions/:discussion_number"},updateInOrg:{method:"PATCH",params:{description:{type:"string"},name:{required:!0,type:"string"},org:{required:!0,type:"string"},parent_team_id:{type:"integer"},permission:{enum:["pull","push","admin"],type:"string"},privacy:{enum:["secret","closed"],type:"string"},team_slug:{required:!0,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:!0,type:"string"},parent_team_id:{type:"integer"},permission:{enum:["pull","push","admin"],type:"string"},privacy:{enum:["secret","closed"],type:"string"},team_id:{required:!0,type:"integer"}},url:"/teams/:team_id"}},users:{addEmails:{method:"POST",params:{emails:{required:!0,type:"string[]"}},url:"/user/emails"},block:{method:"PUT",params:{username:{required:!0,type:"string"}},url:"/user/blocks/:username"},checkBlocked:{method:"GET",params:{username:{required:!0,type:"string"}},url:"/user/blocks/:username"},checkFollowing:{method:"GET",params:{username:{required:!0,type:"string"}},url:"/user/following/:username"},checkFollowingForUser:{method:"GET",params:{target_user:{required:!0,type:"string"},username:{required:!0,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:!0,type:"string[]"}},url:"/user/emails"},deleteGpgKey:{method:"DELETE",params:{gpg_key_id:{required:!0,type:"integer"}},url:"/user/gpg_keys/:gpg_key_id"},deletePublicKey:{method:"DELETE",params:{key_id:{required:!0,type:"integer"}},url:"/user/keys/:key_id"},follow:{method:"PUT",params:{username:{required:!0,type:"string"}},url:"/user/following/:username"},getAuthenticated:{method:"GET",params:{},url:"/user"},getByUsername:{method:"GET",params:{username:{required:!0,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:!0,type:"string"}},url:"/users/:username/hovercard"},getGpgKey:{method:"GET",params:{gpg_key_id:{required:!0,type:"integer"}},url:"/user/gpg_keys/:gpg_key_id"},getPublicKey:{method:"GET",params:{key_id:{required:!0,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:!0,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:!0,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:!0,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:!0,type:"string"}},url:"/users/:username/keys"},togglePrimaryEmailVisibility:{method:"PATCH",params:{email:{required:!0,type:"string"},visibility:{required:!0,type:"string"}},url:"/user/email/visibility"},unblock:{method:"DELETE",params:{username:{required:!0,type:"string"}},url:"/user/blocks/:username"},unfollow:{method:"DELETE",params:{username:{required:!0,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"}}};function ze(e,t){Object.keys(t).forEach(r=>{e[r]||(e[r]={}),Object.keys(t[r]).forEach(i=>{const n=t[r][i],s=["method","url","headers"].reduce((e,t)=>(void 0!==n[t]&&(e[t]=n[t]),e),{});s.request={validate:n.params};let o=e.request.defaults(s);if(Object.keys(n.params||{}).find(e=>n.params[e].deprecated)){const t=We.bind(null,e,n);o=t(e.request.defaults(s),`.${r}.${i}()`),o.endpoint=t(o.endpoint,`.${r}.${i}.endpoint()`),o.endpoint.merge=t(o.endpoint.merge,`.${r}.${i}.endpoint.merge()`)}e[r][i]=n.deprecated?Object.assign(function(){return e.log.warn(new ke("[@octokit/rest] "+n.deprecated)),e[r][i]=o,o.apply(null,arguments)},o):o})})}function We(e,t,r,i){const n=n=>(n=Object.assign({},n),Object.keys(n).forEach(r=>{if(t.params[r]&&t.params[r].deprecated){const s=t.params[r].alias;e.log.warn(new ke(`[@octokit/rest] "${r}" parameter is deprecated for "${i}". Use "${s}" instead`)),s in n||(n[s]=n[r]),delete n[r]}}),r(n));return Object.keys(r).forEach(e=>{n[e]=r[e]}),n}function Je(e){return e.registerEndpoints=ze.bind(null,e),ze(e,He),[["gitdata","git"],["authorization","oauthAuthorizations"],["pullRequests","pulls"]].forEach(([t,r])=>{Object.defineProperty(e,t,{get:()=>(e.log.warn(new ke(`[@octokit/plugin-rest-endpoint-methods] "octokit.${t}.*" methods are deprecated, use "octokit.${r}.*" instead`)),e[r])})}),{}}Je.VERSION="2.4.0";var Ve={__proto__:null,restEndpointMethods:Je},Qe=function e(t,r,i,n){if("function"!=typeof i)throw new Error("method for before hook must be a function");return n||(n={}),Array.isArray(r)?r.reverse().reduce(function(r,i){return e.bind(null,t,i,r,n)},i)():Promise.resolve().then(function(){return t.registry[r]?t.registry[r].reduce(function(e,t){return t.hook.bind(null,e,n)},i)():i(n)})},Ke=function(e,t,r,i){var n=i;e.registry[r]||(e.registry[r]=[]),"before"===t&&(i=function(e,t){return Promise.resolve().then(n.bind(null,t)).then(e.bind(null,t))}),"after"===t&&(i=function(e,t){var r;return Promise.resolve().then(e.bind(null,t)).then(function(e){return n(r=e,t)}).then(function(){return r})}),"error"===t&&(i=function(e,t){return Promise.resolve().then(e.bind(null,t)).catch(function(e){return n(e,t)})}),e.registry[r].push({hook:i,orig:n})},Ye=function(e,t,r){if(e.registry[t]){var i=e.registry[t].map(function(e){return e.orig}).indexOf(r);-1!==i&&e.registry[t].splice(i,1)}},Xe=Function.bind,Ze=Xe.bind(Xe);function et(e,t,r){var i=Ze(Ye,null).apply(null,r?[t,r]:[t]);e.api={remove:i},e.remove=i,["before","error","after","wrap"].forEach(function(i){var n=r?[t,i,r]:[t,i];e[i]=e.api[i]=Ze(Ke,null).apply(null,n)})}function tt(){var e={registry:{}},t=Qe.bind(null,e);return et(t,e),t}var rt=!1;function it(){return rt||(console.warn('[before-after-hook]: "Hook()" repurposing warning, use "Hook.Collection()". Read more: https://git.io/upgrade-before-after-hook-to-1.4'),rt=!0),tt()}it.Singular=function(){var e={registry:{}},t=Qe.bind(null,e,"h");return et(t,e,"h"),t}.bind(),it.Collection=tt.bind();var nt=it,st=it.Singular,ot=it.Collection;nt.Hook=it,nt.Singular=st,nt.Collection=ot;var at,pt={__proto__:null,getUserAgent:function(){try{return navigator.userAgent}catch(e){return""}}},ut="@octokit/rest",ct={access:"public"},dt="GitHub REST API client for Node.js",lt=["octokit","github","rest","api-client"],gt="Gregor Martynus (https://github.com/gr2m)",mt=[{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"}],ht="https://github.com/octokit/rest.js",yt={"@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"},ft={"@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:"^4.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:"^6.0.0",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"},bt={coverage:"nyc report --reporter=html && open coverage/index.html",lint:"prettier --check '{lib,plugins,scripts,test}/**/*.{js,json,ts}' 'docs/*.{js,json}' 'docs/src/**/*' index.js README.md package.json","lint:fix":"prettier --write '{lib,plugins,scripts,test}/**/*.{js,json,ts}' 'docs/*.{js,json}' 'docs/src/**/*' index.js README.md package.json",pretest:"npm run -s lint",test:'nyc mocha test/mocha-node-setup.js "test/*/**/*-test.js"',"test:browser":"cypress run --browser chrome",build:"npm-run-all build:*","build:ts":"npm run -s update-endpoints:typescript","prebuild:browser":"mkdirp dist/","build:browser":"npm-run-all build:browser:*","build:browser:development":"webpack --mode development --entry . --output-library=Octokit --output=./dist/octokit-rest.js --profile --json > dist/bundle-stats.json","build:browser:production":"webpack --mode production --entry . --plugin=compression-webpack-plugin --output-library=Octokit --output-path=./dist --output-filename=octokit-rest.min.js --devtool source-map","generate-bundle-report":"webpack-bundle-analyzer dist/bundle-stats.json --mode=static --no-open --report dist/bundle-report.html","update-endpoints":"npm-run-all update-endpoints:*","update-endpoints:fetch-json":"node scripts/update-endpoints/fetch-json","update-endpoints:typescript":"node scripts/update-endpoints/typescript","prevalidate:ts":"npm run -s build:ts","validate:ts":"tsc --target es6 --noImplicitAny index.d.ts","postvalidate:ts":"tsc --noEmit --target es6 test/typescript-validate.ts","start-fixtures-server":"octokit-fixtures-server"},_t=["index.js","index.d.ts","lib","plugins"],qt={ignore:["test"]},wt={publish:["@semantic-release/npm",{path:"@semantic-release/github",assets:["dist/*","!dist/*.map.gz"]}]},vt=[{path:"./dist/octokit-rest.min.js.gz",maxSize:"33 kB"}],Et="https://registry.npmjs.org/@octokit/rest/-/rest-16.43.2.tgz",Tt="sha512-ngDBevLbBTFfrHZeiS7SAMAZ6ssuVmXuya+F/7RaVvlysgGa1JKJkKWY+jV6TCJYcW0OALfJ7nTIGXcBXzycfQ==",kt="@octokit/rest@16.43.2",jt=(at={__proto__:null,name:ut,version:"16.43.2",publishConfig:ct,description:dt,keywords:lt,author:gt,contributors:mt,repository:ht,dependencies:yt,devDependencies:ft,types:"index.d.ts",scripts:bt,license:"MIT",files:_t,nyc:qt,release:wt,bundlesize:vt,_resolved:Et,_integrity:Tt,_from:kt,default:{name:ut,version:"16.43.2",publishConfig:ct,description:dt,keywords:lt,author:gt,contributors:mt,repository:ht,dependencies:yt,devDependencies:ft,types:"index.d.ts",scripts:bt,license:"MIT",files:_t,nyc:qt,release:wt,bundlesize:vt,_resolved:Et,_integrity:Tt,_from:kt}})&&at.default||at,Ot=function(e,t,r){e.headers&&(e.headers=Object.keys(e.headers).reduce((t,r)=>(t[r.toLowerCase()]=e.headers[r],t),{}));const i={headers:e.headers||{},request:e.request||{},mediaType:{previews:[],format:""}};e.baseUrl&&(i.baseUrl=e.baseUrl),e.userAgent&&(i.headers["user-agent"]=e.userAgent),e.previews&&(i.mediaType.previews=e.previews),e.timeZone&&(i.headers["time-zone"]=e.timeZone),e.timeout&&(At(t,new Pt("[@octokit/rest] new Octokit({timeout}) is deprecated. Use {request: {timeout}} instead. See https://github.com/octokit/request.js#request")),i.request.timeout=e.timeout),e.agent&&(Gt(t,new Pt("[@octokit/rest] new Octokit({agent}) is deprecated. Use {request: {agent}} instead. See https://github.com/octokit/request.js#request")),i.request.agent=e.agent),e.headers&&Ct(t,new Pt("[@octokit/rest] new Octokit({headers}) is deprecated. Use {userAgent, previews} instead. See https://github.com/octokit/request.js#request"));const n=i.headers["user-agent"],s=`octokit.js/${jt.version} ${St()}`;return i.headers["user-agent"]=[n,s].filter(Boolean).join(" "),i.request.hook=r.bind(null,"request"),i};const{Deprecation:Pt}=je,{getUserAgent:St}=pt,At=Pe((e,t)=>e.warn(t)),Gt=Pe((e,t)=>e.warn(t)),Ct=Pe((e,t)=>e.warn(t));var Rt=function(e,t){t=t||{};const r=new nt.Collection,i=Object.assign({debug:()=>{},info:()=>{},warn:console.warn,error:console.error},t&&t.log),n={hook:r,log:i,request:xt.defaults(Ot(t,i,r))};return e.forEach(e=>e(n,t)),n};const{request:xt}=Le;var Dt=function(e,t){return Lt(e.includes(t)?e:e.concat(t))},Lt=function(e){const t=Rt.bind(null,e||[]);return t.plugin=Dt.bind(null,e||[]),t},Ut=Lt();async function It(e){const t=3===e.split(/\./).length?"app":/^v\d+\./.test(e)?"installation":"oauth";return{type:"token",token:e,tokenType:t}}async function Ft(e,t,r,i){const n=t.endpoint.merge(r,i);return n.headers.authorization=function(e){return 3===e.split(/\./).length?"bearer "+e:"token "+e}(e),t(n)}var $t={__proto__:null,createTokenAuth:function(e){if(!e)throw new Error("[@octokit/auth-token] No token passed to createTokenAuth");if("string"!=typeof e)throw new Error("[@octokit/auth-token] Token passed to createTokenAuth is not a string");return e=e.replace(/^(token|bearer) +/i,""),Object.assign(It.bind(null,e),{hook:Ft.bind(null,e)})}},Nt=function(e){return new Buffer(e).toString("base64")},Bt=function(e){if(/^(basic|bearer|token) /i.test(e))return e;try{if(Mt.test(Buffer.from(e,"base64").toString("binary")))return"basic "+e}catch(e){}return 3===e.split(/\./).length?"bearer "+e:"token "+e};const Mt=/^[\w-]+:/;var Ht=function(e,t){if("string"!=typeof e.auth){if(e.auth.username){const r=Nt(`${e.auth.username}:${e.auth.password}`);return t.headers.authorization="Basic "+r,void(e.otp&&(t.headers["x-github-otp"]=e.otp))}if(e.auth.clientId){if(/\/applications\/:?[\w_]+\/tokens\/:?[\w_]+($|\?)/.test(t.url)){const r=Nt(`${e.auth.clientId}:${e.auth.clientSecret}`);return void(t.headers.authorization="Basic "+r)}return t.url+=-1===t.url.indexOf("?")?"?":"&",void(t.url+=`client_id=${e.auth.clientId}&client_secret=${e.auth.clientSecret}`)}return Promise.resolve().then(()=>e.auth()).then(e=>{t.headers.authorization=Bt(e)})}t.headers.authorization=Bt(e.auth)};const zt=Pe(e=>console.warn(e));class Wt extends Error{constructor(e,t,r){super(e),Error.captureStackTrace&&Error.captureStackTrace(this,this.constructor),this.name="HttpError",this.status=t,Object.defineProperty(this,"code",{get:()=>(zt(new ke("[@octokit/request-error] `error.code` is deprecated, use `error.status`.")),t)}),this.headers=r.headers||{};const i=Object.assign({},r.request);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}}var Jt={__proto__:null,RequestError:Wt},Vt=function(e,t,r){if(!t.headers)throw t;const i=/required/.test(t.headers["x-github-otp"]||"");if(401!==t.status||!i)throw t;if(401===t.status&&i&&t.request&&t.request.headers["x-github-otp"]){if(!e.otp)throw new Qt("Invalid one-time password for two-factor authentication",401,{headers:t.headers,request:r});delete e.otp}if("function"!=typeof e.auth.on2fa)throw new Qt("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(()=>e.auth.on2fa()).then(t=>{const i=Object.assign(r,{headers:Object.assign(r.headers,{"x-github-otp":t})});return e.octokit.request(i).then(r=>(e.otp=t,r))})};const{RequestError:Qt}=Jt,{createTokenAuth:Kt}=$t,{Deprecation:Yt}=je,Xt=Pe((e,t)=>e.warn(t)),Zt=Pe((e,t)=>e.warn(t));var er=function(e,t){if(rr(e.octokit.log,new tr('[@octokit/rest] octokit.authenticate() is deprecated. Use "auth" constructor option instead.')),t){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}else e.auth=!1};const{Deprecation:tr}=je,rr=Pe((e,t)=>e.warn(t));var ir=/^\[object .+?Constructor\]$/,nr="object"==typeof self&&self&&self.Object===Object&&self,sr="object"==typeof y&&y&&y.Object===Object&&y||nr||Function("return this")();function or(e,t){return!(!e||!e.length)&&function(e,t,r){if(t!=t)return function(e,t,r,i){for(var n=e.length,s=-1;++s-1}function ar(e){return e!=e}function pr(e,t){return e.has(t)}function ur(e){var t=-1,r=Array(e.size);return e.forEach(function(e){r[++t]=e}),r}var cr,dr=Array.prototype,lr=Function.prototype,gr=Object.prototype,mr=sr["__core-js_shared__"],hr=(cr=/[^.]+$/.exec(mr&&mr.keys&&mr.keys.IE_PROTO||""))?"Symbol(src)_1."+cr:"",yr=lr.toString,fr=gr.hasOwnProperty,br=gr.toString,_r=RegExp("^"+yr.call(fr).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),qr=dr.splice,wr=Gr(sr,"Map"),vr=Gr(sr,"Set"),Er=Gr(Object,"create");function Tr(e){var t=-1,r=e?e.length:0;for(this.clear();++t-1},kr.prototype.set=function(e,t){var r=this.__data__,i=Pr(r,e);return i<0?r.push([e,t]):r[i][1]=t,this},jr.prototype.clear=function(){this.__data__={hash:new Tr,map:new(wr||kr),string:new Tr}},jr.prototype.delete=function(e){return Ar(this,e).delete(e)},jr.prototype.get=function(e){return Ar(this,e).get(e)},jr.prototype.has=function(e){return Ar(this,e).has(e)},jr.prototype.set=function(e,t){return Ar(this,e).set(e,t),this},Or.prototype.add=Or.prototype.push=function(e){return this.__data__.set(e,"__lodash_hash_undefined__"),this},Or.prototype.has=function(e){return this.__data__.has(e)};var Sr=vr&&1/ur(new vr([,-0]))[1]==1/0?function(e){return new vr(e)}:function(){};function Ar(e,t){var r,i,n=e.__data__;return("string"==(i=typeof(r=t))||"number"==i||"symbol"==i||"boolean"==i?"__proto__"!==r:null===r)?n["string"==typeof t?"string":"hash"]:n.map}function Gr(e,t){var r=function(e,t){return null==e?void 0:e[t]}(e,t);return function(e){return!(!Cr(e)||(t=e,hr&&hr in t))&&(function(e){var t=Cr(e)?br.call(e):"";return"[object Function]"==t||"[object GeneratorFunction]"==t}(e)||function(e){var t=!1;if(null!=e&&"function"!=typeof e.toString)try{t=!!(e+"")}catch(e){}return t}(e)?_r:ir).test(function(e){if(null!=e){try{return yr.call(e)}catch(e){}try{return e+""}catch(e){}}return""}(e));var t}(r)?r:void 0}function Cr(e){var t=typeof e;return!!e&&("object"==t||"function"==t)}var Rr=function(e,t){if(!e.auth.type)return;if("basic"===e.auth.type){const r=Nt(`${e.auth.username}:${e.auth.password}`);return void(t.headers.authorization="Basic "+r)}if("token"===e.auth.type)return void(t.headers.authorization="token "+e.auth.token);if("app"===e.auth.type){t.headers.authorization="Bearer "+e.auth.token;const i=t.headers.accept.split(",").concat("application/vnd.github.machine-man-preview+json");return void(t.headers.accept=(r=i,r&&r.length?function(e,t,r){var i=-1,n=or,s=e.length,o=!0,a=[],p=a;if(s>=200){var u=Sr(e);if(u)return ur(u);o=!1,n=pr,p=new Or}else p=a;e:for(;++ie.auth.on2fa()).then(t=>{const i=Object.assign(r,{headers:Object.assign({"x-github-otp":t},r.headers)});return e.octokit.request(i)})};const{RequestError:Dr}=Jt,{Deprecation:Lr}=je,Ur=Pe((e,t)=>e.warn(t)),Ir=[/^\/search\//,/^\/repos\/[^/]+\/[^/]+\/commits\/[^/]+\/(check-runs|check-suites)([^/]|$)/,/^\/installation\/repositories([^/]|$)/,/^\/user\/installations([^/]|$)/,/^\/repos\/[^/]+\/[^/]+\/actions\/secrets([^/]|$)/,/^\/repos\/[^/]+\/[^/]+\/actions\/workflows(\/[^/]+\/runs)?([^/]|$)/,/^\/repos\/[^/]+\/[^/]+\/actions\/runs(\/[^/]+\/(artifacts|jobs))?([^/]|$)/];function Fr(e,t,r){const i=e.request.endpoint(t,r),n=i.method,s=i.headers;let o=i.url;return{[Symbol.asyncIterator]:()=>({next:()=>o?e.request({method:n,url:o,headers:s}).then(t=>(function(e,t,r){const i=t.replace(e.request.endpoint.DEFAULTS.baseUrl,"");if(!Ir.find(e=>e.test(i)))return;const n=r.data.incomplete_results,s=r.data.repository_selection,o=r.data.total_count;delete r.data.incomplete_results,delete r.data.repository_selection,delete r.data.total_count;const a=Object.keys(r.data)[0],p=r.data[a];r.data=p,void 0!==n&&(r.data.incomplete_results=n),void 0!==s&&(r.data.repository_selection=s),r.data.total_count=o,Object.defineProperty(r.data,a,{get:()=>(e.log.warn(`[@octokit/paginate-rest] "response.data.${a}" is deprecated for "GET ${i}". Get the results directly from "response.data"`),Array.from(p))})}(e,o,t),o=((t.headers.link||"").match(/<([^>]+)>;\s*rel="next"/)||[])[1],{value:t})):Promise.resolve({done:!0})})}}function $r(e,t,r,i){return"function"==typeof r&&(i=r,r=void 0),function e(t,r,i,n){return i.next().then(s=>{if(s.done)return r;let o=!1;return r=r.concat(n?n(s.value,function(){o=!0}):s.value.data),o?r:e(t,r,i,n)})}(e,[],Fr(e,t,r)[Symbol.asyncIterator](),i)}function Nr(e){return{paginate:Object.assign($r.bind(null,e),{iterator:Fr.bind(null,e)})}}Nr.VERSION="1.1.2";var Br={__proto__:null,paginateRest:Nr};const{paginateRest:Mr}=Br;var Hr=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,zr=/^\w*$/,Wr=/^\./,Jr=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,Vr=/\\(\\)?/g,Qr=/^\[object .+?Constructor\]$/,Kr="object"==typeof self&&self&&self.Object===Object&&self,Yr="object"==typeof y&&y&&y.Object===Object&&y||Kr||Function("return this")(),Xr=Array.prototype,Zr=Function.prototype,ei=Object.prototype,ti=Yr["__core-js_shared__"],ri=function(){var e=/[^.]+$/.exec(ti&&ti.keys&&ti.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}(),ii=Zr.toString,ni=ei.hasOwnProperty,si=ei.toString,oi=RegExp("^"+ii.call(ni).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),ai=Yr.Symbol,pi=Xr.splice,ui=bi(Yr,"Map"),ci=bi(Object,"create"),di=ai?ai.prototype:void 0,li=di?di.toString:void 0;function gi(e){var t=-1,r=e?e.length:0;for(this.clear();++t-1},mi.prototype.set=function(e,t){var r=this.__data__,i=yi(r,e);return i<0?r.push([e,t]):r[i][1]=t,this},hi.prototype.clear=function(){this.__data__={hash:new gi,map:new(ui||mi),string:new gi}},hi.prototype.delete=function(e){return fi(this,e).delete(e)},hi.prototype.get=function(e){return fi(this,e).get(e)},hi.prototype.has=function(e){return fi(this,e).has(e)},hi.prototype.set=function(e,t){return fi(this,e).set(e,t),this};var _i=wi(function(e){var t;e=null==(t=e)?"":function(e){if("string"==typeof e)return e;if(Ti(e))return li?li.call(e):"";var t=e+"";return"0"==t&&1/e==-1/0?"-0":t}(t);var r=[];return Wr.test(e)&&r.push(""),e.replace(Jr,function(e,t,i,n){r.push(i?n.replace(Vr,"$1"):t||e)}),r});function qi(e){if("string"==typeof e||Ti(e))return e;var t=e+"";return"0"==t&&1/e==-1/0?"-0":t}function wi(e,t){if("function"!=typeof e||t&&"function"!=typeof t)throw new TypeError("Expected a function");var r=function(){var i=arguments,n=t?t.apply(this,i):i[0],s=r.cache;if(s.has(n))return s.get(n);var o=e.apply(this,i);return r.cache=s.set(n,o),o};return r.cache=new(wi.Cache||hi),r}wi.Cache=hi;var vi=Array.isArray;function Ei(e){var t=typeof e;return!!e&&("object"==t||"function"==t)}function Ti(e){return"symbol"==typeof e||function(e){return!!e&&"object"==typeof e}(e)&&"[object Symbol]"==si.call(e)}var ki=function(e,t,r){var i=null==e?void 0:function(e,t){for(var r,i=0,n=(t=function(e,t){if(vi(e))return!1;var r=typeof e;return!("number"!=r&&"symbol"!=r&&"boolean"!=r&&null!=e&&!Ti(e))||zr.test(e)||!Hr.test(e)||null!=t&&e in Object(t)}(t,e)?[t]:vi(r=t)?r:_i(r)).length;null!=e&&i-1&&e%1==0&&e-1},Yi.prototype.set=function(e,t){var r=this.__data__,i=en(r,e);return i<0?r.push([e,t]):r[i][1]=t,this},Xi.prototype.clear=function(){this.__data__={hash:new Ki,map:new(Wi||Yi),string:new Ki}},Xi.prototype.delete=function(e){return tn(this,e).delete(e)},Xi.prototype.get=function(e){return tn(this,e).get(e)},Xi.prototype.has=function(e){return tn(this,e).has(e)},Xi.prototype.set=function(e,t){return tn(this,e).set(e,t),this};var sn=an(function(e){var t;e=null==(t=e)?"":function(e){if("string"==typeof e)return e;if(dn(e))return Qi?Qi.call(e):"";var t=e+"";return"0"==t&&1/e==-1/0?"-0":t}(t);var r=[];return Pi.test(e)&&r.push(""),e.replace(Si,function(e,t,i,n){r.push(i?n.replace(Ai,"$1"):t||e)}),r});function on(e){if("string"==typeof e||dn(e))return e;var t=e+"";return"0"==t&&1/e==-1/0?"-0":t}function an(e,t){if("function"!=typeof e||t&&"function"!=typeof t)throw new TypeError("Expected a function");var r=function(){var i=arguments,n=t?t.apply(this,i):i[0],s=r.cache;if(s.has(n))return s.get(n);var o=e.apply(this,i);return r.cache=s.set(n,o),o};return r.cache=new(an.Cache||Xi),r}function pn(e,t){return e===t||e!=e&&t!=t}an.Cache=Xi;var un=Array.isArray;function cn(e){var t=typeof e;return!!e&&("object"==t||"function"==t)}function dn(e){return"symbol"==typeof e||function(e){return!!e&&"object"==typeof e}(e)&&"[object Symbol]"==Bi.call(e)}var ln=function(e,t){if(!t.request.validate)return;const{validate:r}=t.request;return Object.keys(r).forEach(e=>{const i=ki(r,e),n=i.type;let s,o,a=!0,p=!1;/\./.test(e)&&(s=e.replace(/\.[^.]+$/,""),p="[]"===s.slice(-2),p&&(s=s.slice(0,-2)),o=ki(t,s),a="headers"===s||"object"==typeof o&&null!==o),(p?(ki(t,s)||[]).map(t=>t[e.split(/\./).pop()]):[ki(t,e)]).forEach((r,s)=>{const o=void 0!==r,u=null===r,c=p?e.replace(/\[\]/,`[${s}]`):e;if((i.required||o)&&a&&(!i.allowNull||!u)){if(!i.allowNull&&u)throw new gn(`'${c}' cannot be null`,400,{request:t});if(i.required&&!o)throw new gn(`Empty value for parameter '${c}': ${JSON.stringify(r)}`,400,{request:t});if("integer"===n){const e=r;if(r=parseInt(r,10),isNaN(r))throw new gn(`Invalid value for parameter '${c}': ${JSON.stringify(e)} is NaN`,400,{request:t})}if(i.enum&&-1===i.enum.indexOf(String(r)))throw new gn(`Invalid value for parameter '${c}': ${JSON.stringify(r)}`,400,{request:t});if(i.validation&&!new RegExp(i.validation).test(r))throw new gn(`Invalid value for parameter '${c}': ${JSON.stringify(r)}`,400,{request:t});if("object"===n&&"string"==typeof r)try{r=JSON.parse(r)}catch(e){throw new gn(`JSON parse error of value for parameter '${c}': ${JSON.stringify(r)}`,400,{request:t})}!function(e,t,r){null==e||function(e,t,r,i){if(!cn(e))return e;for(var n=-1,s=(t=function(e,t){if(un(e))return!1;var r=typeof e;return!("number"!=r&&"symbol"!=r&&"boolean"!=r&&null!=e&&!dn(e))||Oi.test(e)||!ji.test(e)||null!=t&&e in Object(t)}(t,e)?[t]:function(e){return un(e)?e:sn(e)}(t)).length,o=s-1,a=e;null!=a&&++n]*)>;\s*rel="([\w]*)"/g,(e,r,i)=>{t[i]=r}),t},fn=class extends Error{constructor(e,t,r){super(e),Error.captureStackTrace&&Error.captureStackTrace(this,this.constructor),this.name="HttpError",this.code=t,this.headers=r}},bn=function(e,t,r,i){mn(`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 n=yn(t)[r];if(!n){const e=new fn(`No ${r} page found`,404);return Promise.reject(e)}const s={url:n,headers:_n(t,i)};return e.request(s)};function _n(e,t){const r=e.headers&&e.headers["x-github-media-type"];return!r||t&&t.accept||((t=t||{}).accept="application/vnd."+r.replace("; param=",".").replace("; format=","+")),t}var qn=function(e,t,r){return bn(e,t,"first",r)},wn=function(e,t,r){return bn(e,t,"last",r)},vn=function(e,t,r){return bn(e,t,"next",r)},En=function(e,t,r){return bn(e,t,"prev",r)},Tn=function(e){return mn("octokit.hasFirstPage() – You can use octokit.paginate or async iterators instead: https://github.com/octokit/rest.js#pagination."),yn(e).first},kn=function(e){return mn("octokit.hasLastPage() – You can use octokit.paginate or async iterators instead: https://github.com/octokit/rest.js#pagination."),yn(e).last},jn=function(e){return mn("octokit.hasNextPage() – You can use octokit.paginate or async iterators instead: https://github.com/octokit/rest.js#pagination."),yn(e).next},On=function(e){return mn("octokit.hasPreviousPage() – You can use octokit.paginate or async iterators instead: https://github.com/octokit/rest.js#pagination."),yn(e).prev};const{requestLog:Pn}=Me,{restEndpointMethods:Sn}=Ve,An=Ut.plugin([function(e,t){if(t.authStrategy){const r=t.authStrategy(t.auth);return e.hook.wrap("request",r.hook),void(e.auth=r)}if(!t.auth)return void(e.auth=()=>Promise.resolve({type:"unauthenticated"}));const r="string"==typeof t.auth&&/^basic/.test(Bt(t.auth));if("string"==typeof t.auth&&!r){const r=Kt(t.auth);return e.hook.wrap("request",r.hook),void(e.auth=r)}const[i,n]=r?[Xt,'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)']:[Zt,'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)'];i(e.log,new Yt("[@octokit/rest] "+n)),e.auth=()=>Promise.resolve({type:"deprecated",message:n}),function(e){if("string"!=typeof e&&"function"!=typeof e&&!(e.username&&e.password||e.clientId&&e.clientSecret))throw new Error('Invalid "auth" option: '+JSON.stringify(e))}(t.auth);const s={octokit:e,auth:t.auth};e.hook.before("request",Ht.bind(null,s)),e.hook.error("request",Vt.bind(null,s))},function(e,t){if(t.auth)return void(e.authenticate=()=>{Ur(e.log,new Lr('[@octokit/rest] octokit.authenticate() is deprecated and has no effect when "auth" option is set on Octokit constructor'))});const r={octokit:e,auth:!1};e.authenticate=er.bind(null,r),e.hook.before("request",Rr.bind(null,r)),e.hook.error("request",xr.bind(null,r))},Pn,function(e){Object.assign(e,Mr(e))},Sn,function(e){e.hook.before("request",ln.bind(null,e))},function(e){e.getFirstPage=qn.bind(null,e),e.getLastPage=wn.bind(null,e),e.getNextPage=vn.bind(null,e),e.getPreviousPage=En.bind(null,e),e.hasFirstPage=Tn,e.hasLastPage=kn,e.hasNextPage=jn,e.hasPreviousPage=On}]),Gn=Object.assign(function(e){return(e&&e.log&&e.log.warn?e.log.warn:console.warn)('[@octokit/rest] `const Octokit = require("@octokit/rest")` is deprecated. Use `const { Octokit } = require("@octokit/rest")` instead'),new An(e)},{Octokit:An});Object.keys(An).forEach(e=>{An.hasOwnProperty(e)&&(Gn[e]=An[e])});var Cn,Rn=Gn,xn=b(function(e,r){Object.defineProperty(r,"__esModule",{value:!0}),r.Context=class{constructor(){if(this.payload={},process.env.GITHUB_EVENT_PATH)if(i.existsSync(process.env.GITHUB_EVENT_PATH))this.payload=JSON.parse(i.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${t.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'")}}}),Dn=b(function(e,t){function r(e){if(!e.hostname)return!1;let t,r=process.env.no_proxy||process.env.NO_PROXY||"";if(!r)return!1;e.port?t=Number(e.port):"http:"===e.protocol?t=80:"https:"===e.protocol&&(t=443);let i=[e.hostname.toUpperCase()];"number"==typeof t&&i.push(`${i[0]}:${t}`);for(let e of r.split(",").map(e=>e.trim().toUpperCase()).filter(e=>e))if(i.some(t=>t===e))return!0;return!1}Object.defineProperty(t,"__esModule",{value:!0}),t.getProxyUrl=function(e){let t,i,n="https:"===e.protocol;return r(e)||(i=n?process.env.https_proxy||process.env.HTTPS_PROXY:process.env.http_proxy||process.env.HTTP_PROXY,i&&(t=a.parse(i))),t},t.checkBypass=r});function Ln(e){var t=this;t.options=e||{},t.proxyOptions=t.options.proxy||{},t.maxSockets=t.options.maxSockets||o.Agent.defaultMaxSockets,t.requests=[],t.sockets=[],t.on("free",function(e,r,i,n){for(var s=In(r,i,n),o=0,a=t.requests.length;o=this.maxSockets?n.requests.push(s):n.createSocket(s,function(t){function r(){n.emit("free",t,s)}function i(e){n.removeSocket(t),t.removeListener("free",r),t.removeListener("close",i),t.removeListener("agentRemove",i)}t.on("free",r),t.on("close",i),t.on("agentRemove",i),e.onSocket(t)})},Ln.prototype.createSocket=function(e,t){var r=this,i={};r.sockets.push(i);var n=Fn({},r.proxyOptions,{method:"CONNECT",path:e.host+":"+e.port,agent:!1,headers:{host:e.host+":"+e.port}});e.localAddress&&(n.localAddress=e.localAddress),n.proxyAuth&&(n.headers=n.headers||{},n.headers["Proxy-Authorization"]="Basic "+new Buffer(n.proxyAuth).toString("base64")),Cn("making CONNECT request");var s=r.request(n);function o(n,o,a){var p;return s.removeAllListeners(),o.removeAllListeners(),200!==n.statusCode?(Cn("tunneling socket could not be established, statusCode=%d",n.statusCode),o.destroy(),(p=new Error("tunneling socket could not be established, statusCode="+n.statusCode)).code="ECONNRESET",e.request.emit("error",p),void r.removeSocket(i)):a.length>0?(Cn("got illegal response body from proxy"),o.destroy(),(p=new Error("got illegal response body from proxy")).code="ECONNRESET",e.request.emit("error",p),void r.removeSocket(i)):(Cn("tunneling connection has established"),r.sockets[r.sockets.indexOf(i)]=o,t(o))}s.useChunkedEncodingByDefault=!1,s.once("response",function(e){e.upgrade=!0}),s.once("upgrade",function(e,t,r){process.nextTick(function(){o(e,t,r)})}),s.once("connect",o),s.once("error",function(t){s.removeAllListeners(),Cn("tunneling socket could not be established, cause=%s\n",t.message,t.stack);var n=new Error("tunneling socket could not be established, cause="+t.message);n.code="ECONNRESET",e.request.emit("error",n),r.removeSocket(i)}),s.end()},Ln.prototype.removeSocket=function(e){var t=this.sockets.indexOf(e);if(-1!==t){this.sockets.splice(t,1);var r=this.requests.shift();r&&this.createSocket(r,function(e){r.request.onSocket(e)})}};var $n={httpOverHttp:function(e){var t=new Ln(e);return t.request=o.request,t},httpsOverHttp:function(e){var t=new Ln(e);return t.request=o.request,t.createSocket=Un,t.defaultPort=443,t},httpOverHttps:function(e){var t=new Ln(e);return t.request=p.request,t},httpsOverHttps:function(e){var t=new Ln(e);return t.request=p.request,t.createSocket=Un,t.defaultPort=443,t},debug:Cn=process.env.NODE_DEBUG&&/\btunnel\b/.test(process.env.NODE_DEBUG)?function(){var e=Array.prototype.slice.call(arguments);"string"==typeof e[0]?e[0]="TUNNEL: "+e[0]:e.unshift("TUNNEL:"),console.error.apply(console,e)}:function(){}},Nn=b(function(e,t){let r;var i,n,s;Object.defineProperty(t,"__esModule",{value:!0}),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.TooManyRequests=429]="TooManyRequests",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"}(i=t.HttpCodes||(t.HttpCodes={})),function(e){e.Accept="accept",e.ContentType="content-type"}(n=t.Headers||(t.Headers={})),function(e){e.ApplicationJson="application/json"}(s=t.MediaTypes||(t.MediaTypes={})),t.getProxyUrl=function(e){let t=Dn.getProxyUrl(a.parse(e));return t?t.href:""};const u=[i.MovedPermanently,i.ResourceMoved,i.SeeOther,i.TemporaryRedirect,i.PermanentRedirect],c=[i.BadGateway,i.ServiceUnavailable,i.GatewayTimeout],d=["OPTIONS","GET","DELETE","HEAD"];class l{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=l,t.isHttps=function(e){return"https:"===a.parse(e).protocol};class g{constructor(e,t,r){this._ignoreSslError=!1,this._allowRedirects=!0,this._allowRedirectDowngrade=!1,this._maxRedirects=50,this._allowRetries=!1,this._maxRetries=1,this._keepAlive=!1,this._disposed=!1,this.userAgent=e,this.handlers=t||[],this.requestOptions=r,r&&(null!=r.ignoreSslError&&(this._ignoreSslError=r.ignoreSslError),this._socketTimeout=r.socketTimeout,null!=r.allowRedirects&&(this._allowRedirects=r.allowRedirects),null!=r.allowRedirectDowngrade&&(this._allowRedirectDowngrade=r.allowRedirectDowngrade),null!=r.maxRedirects&&(this._maxRedirects=Math.max(r.maxRedirects,0)),null!=r.keepAlive&&(this._keepAlive=r.keepAlive),null!=r.allowRetries&&(this._allowRetries=r.allowRetries),null!=r.maxRetries&&(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,i){return this.request(e,t,r,i)}async getJson(e,t={}){t[n.Accept]=this._getExistingOrDefaultHeader(t,n.Accept,s.ApplicationJson);let r=await this.get(e,t);return this._processResponse(r,this.requestOptions)}async postJson(e,t,r={}){let i=JSON.stringify(t,null,2);r[n.Accept]=this._getExistingOrDefaultHeader(r,n.Accept,s.ApplicationJson),r[n.ContentType]=this._getExistingOrDefaultHeader(r,n.ContentType,s.ApplicationJson);let o=await this.post(e,i,r);return this._processResponse(o,this.requestOptions)}async putJson(e,t,r={}){let i=JSON.stringify(t,null,2);r[n.Accept]=this._getExistingOrDefaultHeader(r,n.Accept,s.ApplicationJson),r[n.ContentType]=this._getExistingOrDefaultHeader(r,n.ContentType,s.ApplicationJson);let o=await this.put(e,i,r);return this._processResponse(o,this.requestOptions)}async patchJson(e,t,r={}){let i=JSON.stringify(t,null,2);r[n.Accept]=this._getExistingOrDefaultHeader(r,n.Accept,s.ApplicationJson),r[n.ContentType]=this._getExistingOrDefaultHeader(r,n.ContentType,s.ApplicationJson);let o=await this.patch(e,i,r);return this._processResponse(o,this.requestOptions)}async request(e,t,r,n){if(this._disposed)throw new Error("Client has already been disposed.");let s,o=a.parse(t),p=this._prepareRequest(e,o,n),l=this._allowRetries&&-1!=d.indexOf(e)?this._maxRetries+1:1,g=0;for(;g0;){const i=s.message.headers.location;if(!i)break;let u=a.parse(i);if("https:"==o.protocol&&o.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.");if(await s.readBody(),u.hostname!==o.hostname)for(let e in n)"authorization"===e.toLowerCase()&&delete n[e];p=this._prepareRequest(e,u,n),s=await this.requestRaw(p,r),t--}if(-1==c.indexOf(s.message.statusCode))return s;g+=1,g{this.requestRawWithCallback(e,t,function(e,t){e&&i(e),r(t)})})}requestRawWithCallback(e,t,r){let i;"string"==typeof t&&(e.options.headers["Content-Length"]=Buffer.byteLength(t,"utf8"));let n=!1,s=(e,t)=>{n||(n=!0,r(e,t))},o=e.httpModule.request(e.options,e=>{let t=new l(e);s(null,t)});o.on("socket",e=>{i=e}),o.setTimeout(this._socketTimeout||18e4,()=>{i&&i.end(),s(new Error("Request timeout: "+e.options.path),null)}),o.on("error",function(e){s(e,null)}),t&&"string"==typeof t&&o.write(t,"utf8"),t&&"string"!=typeof t?(t.on("close",function(){o.end()}),t.pipe(o)):o.end()}getAgent(e){let t=a.parse(e);return this._getAgent(t)}_prepareRequest(e,t,r){const i={};i.parsedUrl=t;const n="https:"===i.parsedUrl.protocol;i.httpModule=n?p:o;const s=n?443:80;return i.options={},i.options.host=i.parsedUrl.hostname,i.options.port=i.parsedUrl.port?parseInt(i.parsedUrl.port):s,i.options.path=(i.parsedUrl.pathname||"")+(i.parsedUrl.search||""),i.options.method=e,i.options.headers=this._mergeHeaders(r),null!=this.userAgent&&(i.options.headers["user-agent"]=this.userAgent),i.options.agent=this._getAgent(i.parsedUrl),this.handlers&&this.handlers.forEach(e=>{e.prepareRequest(i.options)}),i}_mergeHeaders(e){const t=e=>Object.keys(e).reduce((t,r)=>(t[r.toLowerCase()]=e[r],t),{});return this.requestOptions&&this.requestOptions.headers?Object.assign({},t(this.requestOptions.headers),t(e)):t(e||{})}_getExistingOrDefaultHeader(e,t,r){let i;var n;return this.requestOptions&&this.requestOptions.headers&&(i=(n=this.requestOptions.headers,Object.keys(n).reduce((e,t)=>(e[t.toLowerCase()]=n[t],e),{}))[t]),e[t]||i||r}_getAgent(e){let t,i=Dn.getProxyUrl(e),n=i&&i.hostname;if(this._keepAlive&&n&&(t=this._proxyAgent),this._keepAlive&&!n&&(t=this._agent),t)return t;const s="https:"===e.protocol;let a=100;if(this.requestOptions&&(a=this.requestOptions.maxSockets||o.globalAgent.maxSockets),n){let e;r||(r=$n);const n="https:"===i.protocol;e=s?n?r.httpsOverHttps:r.httpsOverHttp:n?r.httpOverHttps:r.httpOverHttp,t=e({maxSockets:a,keepAlive:this._keepAlive,proxy:{proxyAuth:i.auth,host:i.hostname,port:i.port}}),this._proxyAgent=t}if(this._keepAlive&&!t){const e={keepAlive:this._keepAlive,maxSockets:a};t=s?new p.Agent(e):new o.Agent(e),this._agent=t}return t||(t=s?p.globalAgent:o.globalAgent),s&&this._ignoreSslError&&(t.options=Object.assign(t.options||{},{rejectUnauthorized:!1})),t}_performExponentialBackoff(e){e=Math.min(10,e);const t=5*Math.pow(2,e);return new Promise(e=>setTimeout(()=>e(),t))}static dateTimeDeserializer(e,t){if("string"==typeof t){let e=new Date(t);if(!isNaN(e.valueOf()))return e}return t}async _processResponse(e,t){return new Promise(async(r,n)=>{const s=e.message.statusCode,o={statusCode:s,result:null,headers:{}};let a,p;s==i.NotFound&&r(o);try{p=await e.readBody(),p&&p.length>0&&(a=t&&t.deserializeDates?JSON.parse(p,g.dateTimeDeserializer):JSON.parse(p),o.result=a),o.headers=e.message.headers}catch(e){}if(s>299){let e;e=a&&a.message?a.message:p&&p.length>0?p:"Failed request: ("+s+")";let t=new Error(e);t.statusCode=s,o.result&&(t.result=o.result),n(t)}else r(o)})}}t.HttpClient=g}),Bn=b(function(e,t){var r=y&&y.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)Object.hasOwnProperty.call(e,r)&&(t[r]=e[r]);return t.default=e,t};Object.defineProperty(t,"__esModule",{value:!0});const i=r(xn),n=r(Nn);Rn.Octokit.prototype=new Rn.Octokit,t.context=new i.Context;class s extends Rn.Octokit{constructor(e,t){super(s.getOctokitOptions(s.disambiguate(e,t))),this.graphql=s.getGraphQL(s.disambiguate(e,t))}static disambiguate(e,t){return["string"==typeof e?e:"","object"==typeof e?e:t||{}]}static getOctokitOptions(e){const t=e[0],r=Object.assign({},e[1]);r.baseUrl=r.baseUrl||this.getApiBaseUrl();const i=s.getAuthString(t,r);i&&(r.auth=i);const n=s.getProxyAgent(r.baseUrl,r);return n&&(r.request=r.request?Object.assign({},r.request):{},r.request.agent=n),r}static getGraphQL(e){const t={};t.baseUrl=this.getGraphQLBaseUrl();const r=e[1],i=this.getAuthString(e[0],r);i&&(t.headers={authorization:i});const n=s.getProxyAgent(t.baseUrl,r);return n&&(t.request={agent:n}),Ne.graphql.defaults(t)}static getAuthString(e,t){if(!e&&!t.auth)throw new Error("Parameter token or opts.auth is required");if(e&&t.auth)throw new Error("Parameters token and opts.auth may not both be specified");return"string"==typeof t.auth?t.auth:"token "+e}static getProxyAgent(e,t){var r;if(!(null===(r=t.request)||void 0===r?void 0:r.agent)&&n.getProxyUrl(e))return(new n.HttpClient).getAgent(e)}static getApiBaseUrl(){return process.env.GITHUB_API_URL||"https://api.github.com"}static getGraphQLBaseUrl(){let e=process.env.GITHUB_GRAPHQL_URL||"https://api.github.com/graphql";return e.endsWith("/")&&(e=e.substr(0,e.length-1)),e.toUpperCase().endsWith("/GRAPHQL")&&(e=e.substr(0,e.length-"/graphql".length)),e}}t.GitHub=s});function Mn(){return(Mn=Object.assign||function(e){for(var t=1;t=e.length)return t&&(t[u]=e),r(null,e);Wn.lastIndex=s;var n=Wn.exec(e);return p=o,o+=n[0],s=Wn.lastIndex,d[a=p+n[1]]||t&&t[a]===a?process.nextTick(g):t&&Object.prototype.hasOwnProperty.call(t,a)?y(t[a]):i.lstat(a,m)}function m(e,n){if(e)return r(e);if(!n.isSymbolicLink())return d[a]=!0,t&&(t[a]=a),process.nextTick(g);if(!Hn){var s=n.dev.toString(32)+":"+n.ino.toString(32);if(c.hasOwnProperty(s))return h(null,c[s],a)}i.stat(a,function(e){if(e)return r(e);i.readlink(a,function(e,t){Hn||(c[s]=t),h(e,t)})})}function h(e,i,s){if(e)return r(e);var o=n.resolve(p,i);t&&(t[s]=o),y(o)}function y(t){e=n.resolve(t,e.slice(s)),l()}l()}(e,t,r):r(s,o)})}function ts(e,t){if(Xn)return Kn(e,t);try{return Kn(e,t)}catch(r){if(Zn(r))return function(e,t){if(e=n.resolve(e),t&&Object.prototype.hasOwnProperty.call(t,e))return t[e];var r,s,o,a,p=e,u={},c={};function d(){var t=Jn.exec(e);r=t[0].length,s=t[0],o=t[0],a="",Hn&&!c[o]&&(i.lstatSync(o),c[o]=!0)}for(d();r=0&&u>0){for(i=[],s=r.length;c>=0&&!a;)c==p?(i.push(c),p=r.indexOf(e,c+1)):1==i.length?a=[i.pop(),u]:((n=i.pop())=0?p:u;i.length&&(a=[s,o])}return a}ns.range=os;var as="\0SLASH"+Math.random()+"\0",ps="\0OPEN"+Math.random()+"\0",us="\0CLOSE"+Math.random()+"\0",cs="\0COMMA"+Math.random()+"\0",ds="\0PERIOD"+Math.random()+"\0";function ls(e){return parseInt(e,10)==e?parseInt(e,10):e.charCodeAt(0)}function gs(e){return e.split(as).join("\\").split(ps).join("{").split(us).join("}").split(cs).join(",").split(ds).join(".")}function ms(e){return"{"+e+"}"}function hs(e){return/^-?0\d/.test(e)}function ys(e,t){return e<=t}function fs(e,t){return e>=t}var bs=ks;ks.Minimatch=js;var _s={sep:"/"};try{_s=n}catch(e){}var qs=ks.GLOBSTAR=js.GLOBSTAR={},ws={"!":{open:"(?:(?!(?:",close:"))[^/]*?)"},"?":{open:"(?:",close:")?"},"+":{open:"(?:",close:")+"},"*":{open:"(?:",close:")*"},"@":{open:"(?:",close:")"}},vs="().*{}+?[]^$\\!".split("").reduce(function(e,t){return e[t]=!0,e},{}),Es=/\/+/;function Ts(e,t){e=e||{},t=t||{};var r={};return Object.keys(t).forEach(function(e){r[e]=t[e]}),Object.keys(e).forEach(function(t){r[t]=e[t]}),r}function ks(e,t,r){if("string"!=typeof t)throw new TypeError("glob pattern string required");return r||(r={}),!(!r.nocomment&&"#"===t.charAt(0))&&(""===t.trim()?""===e:new js(t,r).match(e))}function js(e,t){if(!(this instanceof js))return new js(e,t);if("string"!=typeof e)throw new TypeError("glob pattern string required");t||(t={}),e=e.trim(),"/"!==_s.sep&&(e=e.split(_s.sep).join("/")),this.options=t,this.set=[],this.pattern=e,this.regexp=null,this.negate=!1,this.comment=!1,this.empty=!1,this.make()}function Os(e,t){if(t||(t=this instanceof js?this.options:{}),void 0===(e=void 0===e?this.pattern:e))throw new TypeError("undefined pattern");return t.nobrace||!e.match(/\{.*\}/)?[e]:(r=e)?("{}"===r.substr(0,2)&&(r="\\{\\}"+r.substr(2)),function e(t,r){var i=[],n=is("{","}",t);if(!n||/\$$/.test(n.pre))return[t];var s,o=/^-?\d+\.\.-?\d+(?:\.\.-?\d+)?$/.test(n.body),a=/^[a-zA-Z]\.\.[a-zA-Z](?:\.\.-?\d+)?$/.test(n.body),p=o||a,u=n.body.indexOf(",")>=0;if(!p&&!u)return n.post.match(/,.*\}/)?e(t=n.pre+"{"+n.body+us+n.post):[t];if(p)s=n.body.split(/\.\./);else if(1===(s=function e(t){if(!t)return[""];var r=[],i=is("{","}",t);if(!i)return t.split(",");var n=i.body,s=i.post,o=i.pre.split(",");o[o.length-1]+="{"+n+"}";var a=e(s);return s.length&&(o[o.length-1]+=a.shift(),o.push.apply(o,a)),r.push.apply(r,o),r}(n.body)).length&&1===(s=e(s[0],!1).map(ms)).length)return(l=n.post.length?e(n.post,!1):[""]).map(function(e){return n.pre+s[0]+e});var c,d=n.pre,l=n.post.length?e(n.post,!1):[""];if(p){var g=ls(s[0]),m=ls(s[1]),h=Math.max(s[0].length,s[1].length),y=3==s.length?Math.abs(ls(s[2])):1,f=ys;m0){var v=new Array(w+1).join("0");q=_<0?"-"+v+q.slice(1):v+q}}c.push(q)}}else c=function(t,r){for(var i=[],n=0;n65536)throw new TypeError("pattern is too long");var r=this.options;if(!r.noglobstar&&"**"===e)return qs;if(""===e)return"";var i,n="",s=!!r.nocase,o=!1,a=[],p=[],u=!1,c=-1,d=-1,l="."===e.charAt(0)?"":r.dot?"(?!(?:^|\\/)\\.{1,2}(?:$|\\/))":"(?!\\.)",g=this;function m(){if(i){switch(i){case"*":n+="[^/]*?",s=!0;break;case"?":n+="[^/]",s=!0;break;default:n+="\\"+i}g.debug("clearStateChar %j %j",i,n),i=!1}}for(var h,y=0,f=e.length;y-1;T--){var k=p[T],j=n.slice(0,k.reStart),O=n.slice(k.reStart,k.reEnd-8),P=n.slice(k.reEnd-8,k.reEnd),S=n.slice(k.reEnd);P+=S;var A=j.split("(").length-1,G=S;for(y=0;y=0&&!(i=e[n]);n--);for(n=0;n>> no match, partial?",e,d,t,l),d!==o))}if("string"==typeof u?(p=i.nocase?c.toLowerCase()===u.toLowerCase():c===u,this.debug("string match",u,c,p)):(p=c.match(u),this.debug("pattern match",u,c,p)),!p)return!1}if(n===o&&s===a)return!0;if(n===o)return r;if(s===a)return n===o-1&&""===e[n];throw new Error("wtf?")};var Ss=b(function(e){e.exports="function"==typeof Object.create?function(e,t){t&&(e.super_=t,e.prototype=Object.create(t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}))}:function(e,t){if(t){e.super_=t;var r=function(){};r.prototype=t.prototype,e.prototype=new r,e.prototype.constructor=e}}}),As=b(function(e){try{if("function"!=typeof g.inherits)throw"";e.exports=g.inherits}catch(t){e.exports=Ss}});function Gs(e){return"/"===e.charAt(0)}function Cs(e){var t=/^([a-zA-Z]:|[\\\/]{2}[^\\\/]+[\\\/]+[^\\\/]+)?([\\\/])?([\s\S]*?)$/.exec(e),r=t[1]||"",i=Boolean(r&&":"!==r.charAt(1));return Boolean(t[2]||i)}var Rs="win32"===process.platform?Cs:Gs,xs=Cs;function Ds(e,t){return Object.prototype.hasOwnProperty.call(e,t)}Rs.posix=Gs,Rs.win32=xs;var Ls=bs.Minimatch;function Us(e,t){return e.toLowerCase().localeCompare(t.toLowerCase())}function Is(e,t){return e.localeCompare(t)}function Fs(e){var t=null;if("/**"===e.slice(-3)){var r=e.replace(/(\/\*\*)+$/,"");t=new Ls(r,{dot:!0})}return{matcher:new Ls(e,{dot:!0}),gmatcher:t}}function $s(e,t){var r=t;return r="/"===t.charAt(0)?n.join(e.root,t):Rs(t)||""===t?t:e.changedCwd?n.resolve(e.cwd,t):n.resolve(t),"win32"===process.platform&&(r=r.replace(/\\/g,"/")),r}function Ns(e,t){return!!e.ignore.length&&e.ignore.some(function(e){return e.matcher.match(t)||!(!e.gmatcher||!e.gmatcher.match(t))})}var Bs={alphasort:Is,alphasorti:Us,setopts:function(e,t,r){if(r||(r={}),r.matchBase&&-1===t.indexOf("/")){if(r.noglobstar)throw new Error("base matching requires globstar");t="**/"+t}e.silent=!!r.silent,e.pattern=t,e.strict=!1!==r.strict,e.realpath=!!r.realpath,e.realpathCache=r.realpathCache||Object.create(null),e.follow=!!r.follow,e.dot=!!r.dot,e.mark=!!r.mark,e.nodir=!!r.nodir,e.nodir&&(e.mark=!0),e.sync=!!r.sync,e.nounique=!!r.nounique,e.nonull=!!r.nonull,e.nosort=!!r.nosort,e.nocase=!!r.nocase,e.stat=!!r.stat,e.noprocess=!!r.noprocess,e.absolute=!!r.absolute,e.maxLength=r.maxLength||Infinity,e.cache=r.cache||Object.create(null),e.statCache=r.statCache||Object.create(null),e.symlinks=r.symlinks||Object.create(null),function(e,t){e.ignore=t.ignore||[],Array.isArray(e.ignore)||(e.ignore=[e.ignore]),e.ignore.length&&(e.ignore=e.ignore.map(Fs))}(e,r),e.changedCwd=!1;var i=process.cwd();Ds(r,"cwd")?(e.cwd=n.resolve(r.cwd),e.changedCwd=e.cwd!==i):e.cwd=i,e.root=r.root||n.resolve(e.cwd,"/"),e.root=n.resolve(e.root),"win32"===process.platform&&(e.root=e.root.replace(/\\/g,"/")),e.cwdAbs=Rs(e.cwd)?e.cwd:$s(e,e.cwd),"win32"===process.platform&&(e.cwdAbs=e.cwdAbs.replace(/\\/g,"/")),e.nomount=!!r.nomount,r.nonegate=!0,r.nocomment=!0,e.minimatch=new Ls(t,r),e.options=e.minimatch.options},ownProp:Ds,makeAbs:$s,finish:function(e){for(var t=e.nounique,r=t?[]:Object.create(null),i=0,n=e.matches.length;ithis.maxLength)return!1;if(!this.stat&&zs(this.cache,t)){var n=this.cache[t];if(Array.isArray(n)&&(n="DIR"),!r||"DIR"===n)return n;if(r&&"FILE"===n)return!1}var s=this.statCache[t];if(!s){var o;try{o=i.lstatSync(t)}catch(e){if(e&&("ENOENT"===e.code||"ENOTDIR"===e.code))return this.statCache[t]=!1,!1}if(o&&o.isSymbolicLink())try{s=i.statSync(t)}catch(e){s=o}else s=o}return this.statCache[t]=s,n=!0,s&&(n=s.isDirectory()?"DIR":"FILE"),this.cache[t]=this.cache[t]||n,(!r||"FILE"!==n)&&n},Qs.prototype._mark=function(e){return Bs.mark(this,e)},Qs.prototype._makeAbs=function(e){return Bs.makeAbs(this,e)};var Ks=Object.create(null),Ys=Oe(function(e,t){return Ks[e]?(Ks[e].push(t),null):(Ks[e]=[t],function(e){return Pe(function t(){var r=Ks[e],i=r.length,n=Xs(arguments);try{for(var s=0;si?(r.splice(0,i),process.nextTick(function(){t.apply(null,n)})):delete Ks[e]}})}(e))});function Xs(e){for(var t=e.length,r=[],i=0;i1)return!0;for(var n=0;nthis.maxLength)return t();if(!this.stat&&ro(this.cache,r)){var s=this.cache[r];if(Array.isArray(s)&&(s="DIR"),!n||"DIR"===s)return t(null,s);if(n&&"FILE"===s)return t()}var o=this.statCache[r];if(void 0!==o){if(!1===o)return t(null,o);var a=o.isDirectory()?"DIR":"FILE";return n&&"FILE"===a?t():t(null,a,o)}var p=this,u=Ys("stat\0"+r,function(n,s){if(s&&s.isSymbolicLink())return i.stat(r,function(i,n){i?p._stat2(e,r,null,s,t):p._stat2(e,r,i,n,t)});p._stat2(e,r,n,s,t)});u&&i.lstat(r,u)},ao.prototype._stat2=function(e,t,r,i,n){if(r&&("ENOENT"===r.code||"ENOTDIR"===r.code))return this.statCache[t]=!1,n();var s="/"===e.slice(-1);if(this.statCache[t]=i,"/"===t.slice(-1)&&i&&!i.isDirectory())return n(null,!1,i);var o=!0;return i&&(o=i.isDirectory()?"DIR":"FILE"),this.cache[t]=this.cache[t]||o,s&&"FILE"===o?n():n(null,o,i)};let po=void 0;try{po=Zs}catch(e){}const uo={nosort:!0,silent:!0};let co=0;const lo="win32"===process.platform,go=e=>{if(["unlink","chmod","stat","lstat","rmdir","readdir"].forEach(t=>{e[t]=e[t]||i[t],e[t+="Sync"]=e[t]||i[t]}),e.maxBusyTries=e.maxBusyTries||3,e.emfileWait=e.emfileWait||1e3,!1===e.glob&&(e.disableGlob=!0),!0!==e.disableGlob&&void 0===po)throw Error("glob dependency not found, set `options.disableGlob = true` if intentional");e.disableGlob=e.disableGlob||!1,e.glob=e.glob||uo},mo=(e,t,r)=>{"function"==typeof t&&(r=t,t={}),l(e,"rimraf: missing path"),l.equal(typeof e,"string","rimraf: path should be a string"),l.equal(typeof r,"function","rimraf: callback function required"),l(t,"rimraf: invalid options argument provided"),l.equal(typeof t,"object","rimraf: options should be object"),go(t);let i=0,n=null,s=0;const o=(e,o)=>e?r(e):(s=o.length,0===s?r():void o.forEach(e=>{const o=a=>{if(a){if(("EBUSY"===a.code||"ENOTEMPTY"===a.code||"EPERM"===a.code)&&iho(e,t,o),100*i);if("EMFILE"===a.code&&coho(e,t,o),co++);"ENOENT"===a.code&&(a=null)}co=0,(e=>{n=n||e,0==--s&&r(n)})(a)};ho(e,t,o)}));if(t.disableGlob||!po.hasMagic(e))return o(null,[e]);t.lstat(e,(r,i)=>{if(!r)return o(null,[e]);po(e,t.glob,o)})},ho=(e,t,r)=>{l(e),l(t),l("function"==typeof r),t.lstat(e,(i,n)=>i&&"ENOENT"===i.code?r(null):(i&&"EPERM"===i.code&&lo&&yo(e,t,i,r),n&&n.isDirectory()?bo(e,t,i,r):void t.unlink(e,i=>{if(i){if("ENOENT"===i.code)return r(null);if("EPERM"===i.code)return lo?yo(e,t,i,r):bo(e,t,i,r);if("EISDIR"===i.code)return bo(e,t,i,r)}return r(i)})))},yo=(e,t,r,i)=>{l(e),l(t),l("function"==typeof i),t.chmod(e,438,n=>{n?i("ENOENT"===n.code?null:r):t.stat(e,(n,s)=>{n?i("ENOENT"===n.code?null:r):s.isDirectory()?bo(e,t,r,i):t.unlink(e,i)})})},fo=(e,t,r)=>{l(e),l(t);try{t.chmodSync(e,438)}catch(e){if("ENOENT"===e.code)return;throw r}let i;try{i=t.statSync(e)}catch(e){if("ENOENT"===e.code)return;throw r}i.isDirectory()?wo(e,t,r):t.unlinkSync(e)},bo=(e,t,r,i)=>{l(e),l(t),l("function"==typeof i),t.rmdir(e,n=>{!n||"ENOTEMPTY"!==n.code&&"EEXIST"!==n.code&&"EPERM"!==n.code?i(n&&"ENOTDIR"===n.code?r:n):_o(e,t,i)})},_o=(e,t,r)=>{l(e),l(t),l("function"==typeof r),t.readdir(e,(i,s)=>{if(i)return r(i);let o,a=s.length;if(0===a)return t.rmdir(e,r);s.forEach(i=>{mo(n.join(e,i),t,i=>{if(!o)return i?r(o=i):void(0==--a&&t.rmdir(e,r))})})})},qo=(e,t)=>{let r;if(go(t=t||{}),l(e,"rimraf: missing path"),l.equal(typeof e,"string","rimraf: path should be a string"),l(t,"rimraf: missing options"),l.equal(typeof t,"object","rimraf: options should be object"),t.disableGlob||!po.hasMagic(e))r=[e];else try{t.lstatSync(e),r=[e]}catch(i){r=po.sync(e,t.glob)}if(r.length)for(let e=0;e{l(e),l(t);try{t.rmdirSync(e)}catch(i){if("ENOENT"===i.code)return;if("ENOTDIR"===i.code)throw r;"ENOTEMPTY"!==i.code&&"EEXIST"!==i.code&&"EPERM"!==i.code||vo(e,t)}},vo=(e,t)=>{l(e),l(t),t.readdirSync(e).forEach(r=>qo(n.join(e,r),t));const r=lo?100:1;let i=0;for(;;){let n=!0;try{const s=t.rmdirSync(e,t);return n=!1,s}finally{if(++i0?e():s(new Error("Could not get a unique tmp filename, max tries reached "+t));s(null,t)})}catch(e){s(e)}}()}function f(e){const t=j(e)[0];P(t);let r=t.tries;do{const e=O(t);try{i.statSync(e)}catch(t){return e}}while(r-- >0);throw new Error("Could not get a unique tmp filename, max tries reached")}function b(e,t){const r=function(e){if(e&&!C(e))return t(e);t()};0<=e[0]?i.close(e[0],function(){i.unlink(e[1],r)}):i.unlink(e[1],r)}function _(e){let t=null;try{0<=e[0]&&i.closeSync(e[0])}catch(e){if(!R(e,-u,"EBADF")&&!C(e))throw e}finally{try{i.unlinkSync(e[1])}catch(e){C(e)||(t=e)}}if(null!==t)throw t}function q(e,t,r,i){const n=v(_,[t,e],i),s=v(b,[t,e],i,n);return r.keep||d.unshift(n),i?n:s}function w(e,t,r){const n=t.unsafeCleanup?Eo:i.rmdir.bind(i),s=v(t.unsafeCleanup?g:l,e,r),o=v(n,e,r,s);return t.keep||d.unshift(s),r?s:o}function v(e,t,r,i){let n=!1;return function s(o){if(!n){const a=d.indexOf(i||s);return a>=0&&d.splice(a,1),n=!0,r||e===l||e===g?e(t):e(t,o||function(){})}}}function E(e){let t=[],r=null;try{r=m.randomBytes(e)}catch(t){r=m.pseudoRandomBytes(e)}for(var i=0;i0||(8&e.mode)>0&&e.gid===process.getgid()||(64&e.mode)>0&&e.uid===process.getuid()}Object.defineProperty(t,"__esModule",{value:!0}),t.chmod=(r=i.promises).chmod,t.copyFile=r.copyFile,t.lstat=r.lstat,t.mkdir=r.mkdir,t.readdir=r.readdir,t.readlink=r.readlink,t.rename=r.rename,t.rmdir=r.rmdir,t.stat=r.stat,t.symlink=r.symlink,t.unlink=r.unlink,t.IS_WINDOWS="win32"===process.platform,t.exists=function(e){return s(this,void 0,void 0,function*(){try{yield t.stat(e)}catch(e){if("ENOENT"===e.code)return!1;throw e}return!0})},t.isDirectory=function(e,r=!1){return s(this,void 0,void 0,function*(){return(r?yield t.stat(e):yield t.lstat(e)).isDirectory()})},t.isRooted=function(e){if(!(e=function(e){return e=e||"",t.IS_WINDOWS?(e=e.replace(/\//g,"\\")).replace(/\\\\+/g,"\\"):e.replace(/\/\/+/g,"/")}(e)))throw new Error('isRooted() parameter "p" cannot be empty');return t.IS_WINDOWS?e.startsWith("\\")||/^[A-Z]:/i.test(e):e.startsWith("/")},t.mkdirP=function e(r,i=1e3,o=1){return s(this,void 0,void 0,function*(){if(l.ok(r,"a path argument must be provided"),r=n.resolve(r),o>=i)return t.mkdir(r);try{return void(yield t.mkdir(r))}catch(s){switch(s.code){case"ENOENT":return yield e(n.dirname(r),i,o+1),void(yield t.mkdir(r));default:{let e;try{e=yield t.stat(r)}catch(e){throw s}if(!e.isDirectory())throw s}}}})},t.tryGetExecutablePath=function(e,r){return s(this,void 0,void 0,function*(){let i=void 0;try{i=yield t.stat(e)}catch(t){"ENOENT"!==t.code&&console.log(`Unexpected error attempting to determine if executable file exists '${e}': ${t}`)}if(i&&i.isFile())if(t.IS_WINDOWS){const t=n.extname(e).toUpperCase();if(r.some(e=>e.toUpperCase()===t))return e}else if(o(i))return e;const s=e;for(const a of r){e=s+a,i=void 0;try{i=yield t.stat(e)}catch(t){"ENOENT"!==t.code&&console.log(`Unexpected error attempting to determine if executable file exists '${e}': ${t}`)}if(i&&i.isFile()){if(t.IS_WINDOWS){try{const r=n.dirname(e),i=n.basename(e).toUpperCase();for(const s of yield t.readdir(r))if(i===s.toUpperCase()){e=n.join(r,s);break}}catch(t){console.log(`Unexpected error attempting to determine the actual case of the file '${e}': ${t}`)}return e}if(o(i))return e}}return""})}}),jo=b(function(e,t){var r=y&&y.__awaiter||function(e,t,r,i){return new(r||(r=Promise))(function(n,s){function o(e){try{p(i.next(e))}catch(e){s(e)}}function a(e){try{p(i.throw(e))}catch(e){s(e)}}function p(e){var t;e.done?n(e.value):(t=e.value,t instanceof r?t:new r(function(e){e(t)})).then(o,a)}p((i=i.apply(e,t||[])).next())})};Object.defineProperty(t,"__esModule",{value:!0});const i=g.promisify(h.exec);function s(e){return r(this,void 0,void 0,function*(){if(ko.IS_WINDOWS){try{(yield ko.isDirectory(e,!0))?yield i(`rd /s /q "${e}"`):yield i(`del /f /a "${e}"`)}catch(e){if("ENOENT"!==e.code)throw e}try{yield ko.unlink(e)}catch(e){if("ENOENT"!==e.code)throw e}}else{let t=!1;try{t=yield ko.isDirectory(e)}catch(e){if("ENOENT"!==e.code)throw e;return}t?yield i(`rm -rf "${e}"`):yield ko.unlink(e)}})}function o(e){return r(this,void 0,void 0,function*(){yield ko.mkdirP(e)})}function a(e,t,i){return r(this,void 0,void 0,function*(){if((yield ko.lstat(e)).isSymbolicLink()){try{yield ko.lstat(t),yield ko.unlink(t)}catch(e){"EPERM"===e.code&&(yield ko.chmod(t,"0666"),yield ko.unlink(t))}const r=yield ko.readlink(e);yield ko.symlink(r,t,ko.IS_WINDOWS?"junction":null)}else(yield ko.exists(t))&&!i||(yield ko.copyFile(e,t))})}t.cp=function(e,t,i={}){return r(this,void 0,void 0,function*(){const{force:s,recursive:p}=function(e){return{force:null==e.force||e.force,recursive:Boolean(e.recursive)}}(i),u=(yield ko.exists(t))?yield ko.stat(t):null;if(u&&u.isFile()&&!s)return;const c=u&&u.isDirectory()?n.join(t,n.basename(e)):t;if(!(yield ko.exists(e)))throw new Error("no such file or directory: "+e);if((yield ko.stat(e)).isDirectory()){if(!p)throw new Error(`Failed to copy. ${e} is a directory, but tried to copy without recursive flag.`);yield function e(t,i,n,s){return r(this,void 0,void 0,function*(){if(n>=255)return;n++,yield o(i);const r=yield ko.readdir(t);for(const o of r){const r=`${t}/${o}`,p=`${i}/${o}`;(yield ko.lstat(r)).isDirectory()?yield e(r,p,n,s):yield a(r,p,s)}yield ko.chmod(i,(yield ko.stat(t)).mode)})}(e,c,0,s)}else{if(""===n.relative(e,c))throw new Error(`'${c}' and '${e}' are the same file`);yield a(e,c,s)}})},t.mv=function(e,t,i={}){return r(this,void 0,void 0,function*(){if(yield ko.exists(t)){let r=!0;if((yield ko.isDirectory(t))&&(t=n.join(t,n.basename(e)),r=yield ko.exists(t)),r){if(null!=i.force&&!i.force)throw new Error("Destination already exists");yield s(t)}}yield o(n.dirname(t)),yield ko.rename(e,t)})},t.rmRF=s,t.mkdirP=o,t.which=function e(t,i){return r(this,void 0,void 0,function*(){if(!t)throw new Error("parameter 'tool' is required");if(i&&!(yield e(t,!1)))throw ko.IS_WINDOWS?new Error(`Unable to locate executable file: ${t}. Please verify either the file path exists or the file can be found within a directory specified by the PATH environment variable. Also verify the file has a valid extension for an executable file.`):new Error(`Unable to locate executable file: ${t}. Please verify either the file path exists or the file can be found within a directory specified by the PATH environment variable. Also check the file mode to verify the file is executable.`);try{const e=[];if(ko.IS_WINDOWS&&process.env.PATHEXT)for(const t of process.env.PATHEXT.split(n.delimiter))t&&e.push(t);if(ko.isRooted(t))return(yield ko.tryGetExecutablePath(t,e))||"";if(t.includes("/")||ko.IS_WINDOWS&&t.includes("\\"))return"";const r=[];if(process.env.PATH)for(const e of process.env.PATH.split(n.delimiter))e&&r.push(e);for(const i of r){const r=yield ko.tryGetExecutablePath(i+n.sep+t,e);if(r)return r}return""}catch(e){throw new Error("which failed with message "+e.message)}})}}),Oo=b(function(e,r){var i=y&&y.__awaiter||function(e,t,r,i){return new(r||(r=Promise))(function(n,s){function o(e){try{p(i.next(e))}catch(e){s(e)}}function a(e){try{p(i.throw(e))}catch(e){s(e)}}function p(e){var t;e.done?n(e.value):(t=e.value,t instanceof r?t:new r(function(e){e(t)})).then(o,a)}p((i=i.apply(e,t||[])).next())})},s=y&&y.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)Object.hasOwnProperty.call(e,r)&&(t[r]=e[r]);return t.default=e,t};Object.defineProperty(r,"__esModule",{value:!0});const o=s(t),a=s(d),p=s(h),u=s(n),c=s(jo),l=s(ko),g="win32"===process.platform;r.ToolRunner=class extends a.EventEmitter{constructor(e,t,r){if(super(),!e)throw new Error("Parameter 'toolPath' cannot be null or empty.");this.toolPath=e,this.args=t||[],this.options=r||{}}_debug(e){this.options.listeners&&this.options.listeners.debug&&this.options.listeners.debug(e)}_getCommandString(e,t){const r=this._getSpawnFileName(),i=this._getSpawnArgs(e);let n=t?"":"[command]";if(g)if(this._isCmdFile()){n+=r;for(const e of i)n+=" "+e}else if(e.windowsVerbatimArguments){n+=`"${r}"`;for(const e of i)n+=" "+e}else{n+=this._windowsQuoteCmdArg(r);for(const e of i)n+=" "+this._windowsQuoteCmdArg(e)}else{n+=r;for(const e of i)n+=" "+e}return n}_processLineBuffer(e,t,r){try{let i=t+e.toString(),n=i.indexOf(o.EOL);for(;n>-1;)r(i.substring(0,n)),i=i.substring(n+o.EOL.length),n=i.indexOf(o.EOL);t=i}catch(e){this._debug("error processing line. Failed with error "+e)}}_getSpawnFileName(){return g&&this._isCmdFile()?process.env.COMSPEC||"cmd.exe":this.toolPath}_getSpawnArgs(e){if(g&&this._isCmdFile()){let t='/D /S /C "'+this._windowsQuoteCmdArg(this.toolPath);for(const r of this.args)t+=" ",t+=e.windowsVerbatimArguments?r:this._windowsQuoteCmdArg(r);return t+='"',[t]}return this.args}_endsWith(e,t){return e.endsWith(t)}_isCmdFile(){const e=this.toolPath.toUpperCase();return this._endsWith(e,".CMD")||this._endsWith(e,".BAT")}_windowsQuoteCmdArg(e){if(!this._isCmdFile())return this._uvQuoteCmdArg(e);if(!e)return'""';const t=[" ","\t","&","(",")","[","]","{","}","^","=",";","!","'","+",",","`","~","|","<",">",'"'];let r=!1;for(const i of e)if(t.some(e=>e===i)){r=!0;break}if(!r)return e;let i='"',n=!0;for(let t=e.length;t>0;t--)i+=e[t-1],n&&"\\"===e[t-1]?i+="\\":'"'===e[t-1]?(n=!0,i+='"'):n=!1;return i+='"',i.split("").reverse().join("")}_uvQuoteCmdArg(e){if(!e)return'""';if(!e.includes(" ")&&!e.includes("\t")&&!e.includes('"'))return e;if(!e.includes('"')&&!e.includes("\\"))return`"${e}"`;let t='"',r=!0;for(let i=e.length;i>0;i--)t+=e[i-1],r&&"\\"===e[i-1]?t+="\\":'"'===e[i-1]?(r=!0,t+="\\"):r=!1;return t+='"',t.split("").reverse().join("")}_cloneExecOptions(e){const t={cwd:(e=e||{}).cwd||process.cwd(),env:e.env||process.env,silent:e.silent||!1,windowsVerbatimArguments:e.windowsVerbatimArguments||!1,failOnStdErr:e.failOnStdErr||!1,ignoreReturnCode:e.ignoreReturnCode||!1,delay:e.delay||1e4};return t.outStream=e.outStream||process.stdout,t.errStream=e.errStream||process.stderr,t}_getSpawnOptions(e,t){const r={};return r.cwd=(e=e||{}).cwd,r.env=e.env,r.windowsVerbatimArguments=e.windowsVerbatimArguments||this._isCmdFile(),e.windowsVerbatimArguments&&(r.argv0=`"${t}"`),r}exec(){return i(this,void 0,void 0,function*(){return!l.isRooted(this.toolPath)&&(this.toolPath.includes("/")||g&&this.toolPath.includes("\\"))&&(this.toolPath=u.resolve(process.cwd(),this.options.cwd||process.cwd(),this.toolPath)),this.toolPath=yield c.which(this.toolPath,!0),new Promise((e,t)=>{this._debug("exec tool: "+this.toolPath),this._debug("arguments:");for(const e of this.args)this._debug(" "+e);const r=this._cloneExecOptions(this.options);!r.silent&&r.outStream&&r.outStream.write(this._getCommandString(r)+o.EOL);const i=new m(r,this.toolPath);i.on("debug",e=>{this._debug(e)});const n=this._getSpawnFileName(),s=p.spawn(n,this._getSpawnArgs(r),this._getSpawnOptions(this.options,n));if(s.stdout&&s.stdout.on("data",e=>{this.options.listeners&&this.options.listeners.stdout&&this.options.listeners.stdout(e),!r.silent&&r.outStream&&r.outStream.write(e),this._processLineBuffer(e,"",e=>{this.options.listeners&&this.options.listeners.stdline&&this.options.listeners.stdline(e)})}),s.stderr&&s.stderr.on("data",e=>{i.processStderr=!0,this.options.listeners&&this.options.listeners.stderr&&this.options.listeners.stderr(e),!r.silent&&r.errStream&&r.outStream&&(r.failOnStdErr?r.errStream:r.outStream).write(e),this._processLineBuffer(e,"",e=>{this.options.listeners&&this.options.listeners.errline&&this.options.listeners.errline(e)})}),s.on("error",e=>{i.processError=e.message,i.processExited=!0,i.processClosed=!0,i.CheckComplete()}),s.on("exit",e=>{i.processExitCode=e,i.processExited=!0,this._debug(`Exit code ${e} received from tool '${this.toolPath}'`),i.CheckComplete()}),s.on("close",e=>{i.processExitCode=e,i.processExited=!0,i.processClosed=!0,this._debug(`STDIO streams have closed for tool '${this.toolPath}'`),i.CheckComplete()}),i.on("done",(r,i)=>{"".length>0&&this.emit("stdline",""),"".length>0&&this.emit("errline",""),s.removeAllListeners(),r?t(r):e(i)}),this.options.input){if(!s.stdin)throw new Error("child process missing stdin");s.stdin.end(this.options.input)}})})}},r.argStringToArray=function(e){const t=[];let r=!1,i=!1,n="";function s(e){i&&'"'!==e&&(n+="\\"),n+=e,i=!1}for(let o=0;o0&&(t.push(n),n=""):i?s(a):r=!r}return n.length>0&&t.push(n.trim()),t};class m extends a.EventEmitter{constructor(e,t){if(super(),this.processClosed=!1,this.processError="",this.processExitCode=0,this.processExited=!1,this.processStderr=!1,this.delay=1e4,this.done=!1,this.timeout=null,!t)throw new Error("toolPath must not be empty");this.options=e,this.toolPath=t,e.delay&&(this.delay=e.delay)}CheckComplete(){this.done||(this.processClosed?this._setResult():this.processExited&&(this.timeout=setTimeout(m.HandleTimeout,this.delay,this)))}_debug(e){this.emit("debug",e)}_setResult(){let e;this.processExited&&(this.processError?e=new Error(`There was an error when attempting to execute the process '${this.toolPath}'. This may indicate the process failed to start. Error: ${this.processError}`):0===this.processExitCode||this.options.ignoreReturnCode?this.processStderr&&this.options.failOnStdErr&&(e=new Error(`The process '${this.toolPath}' failed because one or more lines were written to the STDERR stream`)):e=new Error(`The process '${this.toolPath}' failed with exit code ${this.processExitCode}`)),this.timeout&&(clearTimeout(this.timeout),this.timeout=null),this.done=!0,this.emit("done",e,this.processExitCode)}static HandleTimeout(e){e.done||(!e.processClosed&&e.processExited&&e._debug(`The STDIO streams did not close within ${e.delay/1e3} seconds of the exit event from process '${e.toolPath}'. This may indicate a child process inherited the STDIO streams and has not yet exited.`),e._setResult())}}}),Po=f(b(function(e,t){var r=y&&y.__awaiter||function(e,t,r,i){return new(r||(r=Promise))(function(n,s){function o(e){try{p(i.next(e))}catch(e){s(e)}}function a(e){try{p(i.throw(e))}catch(e){s(e)}}function p(e){var t;e.done?n(e.value):(t=e.value,t instanceof r?t:new r(function(e){e(t)})).then(o,a)}p((i=i.apply(e,t||[])).next())})},i=y&&y.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)Object.hasOwnProperty.call(e,r)&&(t[r]=e[r]);return t.default=e,t};Object.defineProperty(t,"__esModule",{value:!0});const n=i(Oo);t.exec=function(e,t,i){return r(this,void 0,void 0,function*(){const r=n.argStringToArray(e);if(0===r.length)throw new Error("Parameter 'commandLine' cannot be null or empty.");const s=r[0];return t=r.slice(1).concat(t||[]),new n.ToolRunner(s,t,i).exec()})}}));const So=function(e,t,r,i,n=!1){try{let o;function s(e){return o?e:a.length?a[a.length-1].toString("utf-8"):""}let a=[];const p=function(s,o){try{var p=Promise.resolve(Po.exec(e,[...t,...r?["--project",r]:[],n?"--debug":"--json"],{listeners:{stdout(e){a.push(e)}},env:Mn({},process.env,{FIREBASE_DEPLOY_AGENT:"action-hosting-deploy",GOOGLE_APPLICATION_CREDENTIALS:i})})).then(function(){})}catch(e){return o(e)}return p&&p.then?p.then(void 0,o):p}(0,function(s){if(console.log(Buffer.concat(a).toString("utf-8")),console.log(s.message),!1===n)return console.log("Retrying deploy with the --debug flag for better error output"),o=1,So(e,t,r,i,!0);throw s});return Promise.resolve(p&&p.then?p.then(s):s(p))}catch(e){return Promise.reject(e)}};function Ao(e,t){try{var r=e()}catch(e){return t(e)}return r&&r.then?r.then(void 0,t):r}const Go=v.getInput("expires"),Co=v.getInput("projectId"),Ro=v.getInput("firebaseServiceAccount",{required:!0}),xo=v.getInput("channelId"),Do="live"===xo,Lo=process.env.GITHUB_TOKEN||v.getInput("repoToken"),Uo=Lo?new Bn.GitHub(Lo):void 0,Io=v.getInput("entryPoint"),Fo=v.getInput("target");!function(){try{function e(){return function(e,n){try{var s=function(){if(v.startGroup("Verifying firebase.json exists"),"."!==Io){console.log("Changing to directory: "+Io);try{process.chdir(Io)}catch(e){throw Error(`Error changing to directory ${Io}: ${e}`)}}if(!r.existsSync("./firebase.json"))throw Error("firebase.json file not found. If your firebase.json file is not in the root of your repo, edit the entryPoint option of this GitHub action.");return console.log("firebase.json file found. Continuing deploy."),v.endGroup(),v.startGroup("Setting up CLI credentials"),Promise.resolve(function(e){try{const t=To.fileSync({postfix:".json"});return r.writeSync(t.fd,e),Promise.resolve(t.name)}catch(e){return Promise.reject(e)}}(Ro)).then(function(e){let r;function n(n){if(r)return n;const s=function(e,t){let r="";if(e)r=e;else if(t.payload.pull_request){const e=t.payload.pull_request.head.ref.substr(0,20);r=`pr${t.payload.pull_request.number}-${e}`}const i=r.replace(/[^a-zA-Z0-9_\-\.]/g,"_");return i!==r&&console.log(`ChannelId "${r}" contains unsupported characters. Using "${i}" instead.`),i}(xo,Bn.context);return v.startGroup("Deploying to Firebase preview channel "+s),Promise.resolve(function(e,t){try{const{projectId:r,expires:i,channelId:n,target:s}=t;return Promise.resolve(So("npx firebase-tools",["hosting:channel:deploy",n,...s?["--only",s]:[],...i?["--expires",i]:[]],r,e)).then(function(e){return JSON.parse(e)})}catch(e){return Promise.reject(e)}}(e,{projectId:Co,expires:Go,channelId:s,target:Fo})).then(function(e){function r(){return Promise.resolve(i({details_url:o[0],conclusion:"success",output:{title:"Deploy preview succeeded",summary:a}})).then(function(){})}if(v.endGroup(),"error"===e.status)throw Error(e.error);const n=Object.values(e.result),s=n[0].expireTime,o=n.map(e=>e.url);v.setOutput("urls",o),v.setOutput("expire_time",s),v.setOutput("details_url",o[0]);const a=1===o.length?`[${o[0]}](${o[0]})`:o.map(e=>`- [${e}](${e})`).join("\n"),p=function(){if(Lo&&t){var e;const t=null==(e=Bn.context.payload.pull_request)?void 0:e.head.sha.substring(0,7);return Promise.resolve(function(e,t,r){try{function i(){function r(){function t(){v.endGroup()}const r=function(){if(!o){const t=Ao(function(){return Promise.resolve(e.issues.createComment(s)).then(function(){})},function(e){console.log("Error creating comment: "+e.message)});if(t&&t.then)return t.then(function(){})}}();return r&&r.then?r.then(t):t()}const i=function(){if(o){const r=Ao(function(){return Promise.resolve(e.issues.updateComment(Mn({},t.repo,{comment_id:o,body:s.body}))).then(function(){})},function(){o=null});if(r&&r.then)return r.then(function(){})}}();return i&&i.then?i.then(r):r()}if(!e)return console.log("GitHub object not available. Skipping PR comment."),Promise.resolve();const n=Mn({},t.repo,{issue_number:t.issue.number}),s=Mn({},n,{body:r+"\n\n🔥 via [Firebase Hosting GitHub Action](https://github.com/marketplace/actions/deploy-to-firebase-hosting) 🌎"});let o;v.startGroup("Updating PR comment");const a=Ao(function(){return Promise.resolve(e.issues.listComments(n)).then(function(e){const t=e.data;for(let e=t.length;e--;){const r=t[e];if("Bot"===r.user.type&&/[\s\n]*🔥 via \[Firebase Hosting GitHub Action/.test(r.body))return void(o=r.id)}})},function(e){console.log("Error checking for previous comments: "+e.message)});return Promise.resolve(a&&a.then?a.then(i):i())}catch(e){return Promise.reject(e)}}(Uo,Bn.context,`\nVisit the preview URL for this PR (updated for commit ${t}):\n\n${a}\n\n(expires ${new Date(s).toUTCString()})`.trim())).then(function(){})}}();return p&&p.then?p.then(r):r()})}console.log("Created a temporary file with Application Default Credentials."),v.endGroup();const s=function(){if(Do)return v.startGroup("Deploying to production site"),Promise.resolve(function(e,t){try{const{projectId:r,target:i}=t;return Promise.resolve(So("npx firebase-tools",["deploy","--only","hosting"+(i?":"+i:"")],r,e)).then(function(e){return JSON.parse(e)})}catch(e){return Promise.reject(e)}}(e,{projectId:Co,target:Fo})).then(function(e){if("error"===e.status)throw Error(e.error);v.endGroup();const t=`https://${Co}.web.app/`;return Promise.resolve(i({details_url:t,conclusion:"success",output:{title:"Production deploy succeeded",summary:`[${Co}.web.app](${t})`}})).then(function(){r=1})})}();return s&&s.then?s.then(n):n(s)})}()}catch(e){return n(e)}return s&&s.then?s.then(void 0,n):s}(0,function(e){return v.setFailed(e.message),Promise.resolve(i({conclusion:"failure",output:{title:"Deploy preview failed",summary:"Error: "+e.message}})).then(function(){})})}const t=!!Bn.context.payload.pull_request;let i=e=>console.log(e);const n=function(){if(Lo&&t)return Promise.resolve(function(e,t){try{var r;return Promise.resolve(e.checks.create(Mn({},t.repo,{name:"Deploy Preview",head_sha:null==(r=t.payload.pull_request)?void 0:r.head.sha,status:"in_progress"}))).then(function(r){return function(i){try{return Promise.resolve(e.checks.update(Mn({},t.repo,{check_run_id:r.data.id,completed_at:(new Date).toISOString(),status:"completed"},i))).then(function(){})}catch(e){return Promise.reject(e)}}})}catch(e){return Promise.reject(e)}}(Uo,Bn.context)).then(function(e){i=e})}();Promise.resolve(n&&n.then?n.then(e):e())}catch(e){return Promise.reject(e)}}(); diff --git a/src/deploy.ts b/src/deploy.ts index b47242a9..374b4051 100644 --- a/src/deploy.ts +++ b/src/deploy.ts @@ -44,6 +44,12 @@ export type DeployConfig = { projectId: string; expires: string; channelId: string; + target: string; +}; + +export type productionDeployConfig = { + projectId: string; + target?: string; }; async function execWithCredentials( @@ -97,13 +103,14 @@ async function execWithCredentials( } export async function deploy(gacFilename: string, deployConfig: DeployConfig) { - const { projectId, expires, channelId } = deployConfig; + const { projectId, expires, channelId, target } = deployConfig; const deploymentText = await execWithCredentials( "npx firebase-tools", [ "hosting:channel:deploy", channelId, + ...(target ? ["--only", target] : []), ...(expires ? ["--expires", expires] : []), ], projectId, @@ -117,10 +124,15 @@ export async function deploy(gacFilename: string, deployConfig: DeployConfig) { return deploymentResult; } -export async function deployProductionSite(gacFilename, projectId) { +export async function deployProductionSite( + gacFilename, + productionDeployConfig: productionDeployConfig +) { + const { projectId, target } = productionDeployConfig; + const deploymentText = await execWithCredentials( "npx firebase-tools", - ["deploy", "--only", "hosting"], + ["deploy", "--only", `hosting${target ? ":" + target : ""}`], projectId, gacFilename ); diff --git a/src/index.ts b/src/index.ts index b062e76b..8d9001e5 100644 --- a/src/index.ts +++ b/src/index.ts @@ -40,6 +40,7 @@ const isProductionDeploy = configuredChannelId === "live"; const token = process.env.GITHUB_TOKEN || getInput("repoToken"); const github = token ? new GitHub(token) : undefined; const entryPoint = getInput("entryPoint"); +const target = getInput("target"); async function run() { const isPullRequest = !!context.payload.pull_request; @@ -79,7 +80,10 @@ async function run() { if (isProductionDeploy) { startGroup("Deploying to production site"); - const deployment = await deployProductionSite(gacFilename, projectId); + const deployment = await deployProductionSite(gacFilename, { + projectId, + target, + }); if (deployment.status === "error") { throw Error((deployment as ErrorResult).error); } @@ -104,6 +108,7 @@ async function run() { projectId, expires, channelId, + target, }); endGroup();