diff --git a/.github/workflows/deploy-preview.yml b/.github/workflows/deploy-preview.yml index 53700366..10b9d6a9 100644 --- a/.github/workflows/deploy-preview.yml +++ b/.github/workflows/deploy-preview.yml @@ -28,5 +28,6 @@ jobs: firebaseServiceAccount: "${{ secrets.FIREBASE_SERVICE_ACCOUNT }}" expires: 30d projectId: action-hosting-deploy-demo + entryPoint: "./demo" env: FIREBASE_CLI_PREVIEWS: hostingchannels diff --git a/.github/workflows/deploy-production.yml b/.github/workflows/deploy-production.yml index e54f8cec..1ea195e8 100644 --- a/.github/workflows/deploy-production.yml +++ b/.github/workflows/deploy-production.yml @@ -18,5 +18,6 @@ jobs: expires: 30d channelId: live projectId: action-hosting-deploy-demo + entryPoint: "./demo" env: FIREBASE_CLI_PREVIEWS: hostingchannels diff --git a/README.md b/README.md index d43bd46b..e10f09b8 100644 --- a/README.md +++ b/README.md @@ -105,6 +105,10 @@ unless you know you want to deploy a certain branch to a long-lived channel (for example, you may want to deploy every commit from your `next` branch to a `preprod` channel) +### `entryPoint` _{string}_ + +The location of your [`firebase.json`](https://firebase.google.com/docs/cli#the_firebasejson_file) file. Defaults to `.` (the root of your repo). + --- This GitHub Action is not an officially supported Google product diff --git a/action.yml b/action.yml index bea388a0..a818cc2a 100644 --- a/action.yml +++ b/action.yml @@ -42,3 +42,9 @@ inputs: "The preview channel id to deploy to. If you leave this blank, an channel id will be auto-generated per branch or PR" required: false + entryPoint: + description: + "The location of your firebase.json file, relative to the root of your + directory" + default: "." + required: false diff --git a/bin/action.min.js b/bin/action.min.js index 7584cda3..9cc74702 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=e(require("path")),i=e(require("stream")),n=e(require("http")),s=e(require("url")),o=e(require("https")),a=e(require("zlib")),p=require("fs"),u=e(p);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,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,a(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 a(e).replace(/%/g,"%25").replace(/\r/g,"%0D").replace(/\n/g,"%0A")}(this.message),e}}function a(e){return null==e?"":"string"==typeof e||e instanceof String?e:JSON.stringify(e)}r.toCommandValue=a}),q=b(function(e,i){var n=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(i,"__esModule",{value:!0});const o=s(t),a=s(r);var p;function u(e){_.issue("error",e instanceof Error?e.toString():e)}function c(e){_.issue("group",e)}function d(){_.issue("endgroup")}!function(e){e[e.Success=0]="Success",e[e.Failure=1]="Failure"}(p=i.ExitCode||(i.ExitCode={})),i.exportVariable=function(e,t){const r=_.toCommandValue(t);process.env[e]=r,_.issueCommand("set-env",{name:e},r)},i.setSecret=function(e){_.issueCommand("add-mask",{},e)},i.addPath=function(e){_.issueCommand("add-path",{},e),process.env.PATH=`${e}${a.delimiter}${process.env.PATH}`},i.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()},i.setOutput=function(e,t){_.issueCommand("set-output",{name:e},t)},i.setCommandEcho=function(e){_.issue("echo",e?"on":"off")},i.setFailed=function(e){process.exitCode=p.Failure,u(e)},i.isDebug=function(){return"1"===process.env.RUNNER_DEBUG},i.debug=function(e){_.issueCommand("debug",{},e)},i.error=u,i.warning=function(e){_.issue("warning",e instanceof Error?e.toString():e)},i.info=function(e){process.stdout.write(e+o.EOL)},i.startGroup=c,i.endGroup=d,i.group=function(e,t){return n(this,void 0,void 0,function*(){let r;c(e);try{r=yield t()}finally{d()}return r})},i.saveState=function(e,t){_.issueCommand("save-state",{name:e},t)},i.getState=function(e){return process.env["STATE_"+e]||""}});function w(e){return"[object Object]"===Object.prototype.toString.call(e)}function v(e){var t,r;return!1!==w(e)&&(void 0===(t=e.constructor)||!1!==w(r=t.prototype)&&!1!==r.hasOwnProperty("isPrototypeOf"))}function E(){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 T(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=>{v(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 k=/\{[^}]+\}/g;function j(e){return e.replace(/^\W+|\W+$/g,"").split(/,/)}function O(e,t){return Object.keys(e).filter(e=>!t.includes(e)).reduce((t,r)=>(t[r]=e[r],t),{})}function P(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 S(e){return encodeURIComponent(e).replace(/[!'()*]/g,function(e){return"%"+e.charCodeAt(0).toString(16).toUpperCase()})}function A(e,t,r){return t="+"===e||"#"===e?P(t):S(t),r?S(r)+"="+t:t}function G(e){return null!=e}function C(e){return";"===e||"&"===e||"?"===e}function R(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(G(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(A(t,n,C(t)?r:""));else if("*"===i)Array.isArray(n)?n.filter(G).forEach(function(e){s.push(A(t,e,C(t)?r:""))}):Object.keys(n).forEach(function(e){G(n[e])&&s.push(A(t,n[e],e))});else{const e=[];Array.isArray(n)?n.filter(G).forEach(function(r){e.push(A(t,r))}):Object.keys(n).forEach(function(r){G(n[r])&&(e.push(S(r)),e.push(A(t,n[r].toString())))}),C(t)?s.push(S(r)+"="+e.join(",")):0!==e.length&&s.push(e.join(","))}else";"===t?G(n)&&s.push(S(r)):""!==n||"&"!==t&&"?"!==t?""===n&&s.push(""):s.push(S(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 P(n)})}function x(e){let t,r=e.method.toUpperCase(),i=(e.url||"/").replace(/:([a-z]\w+)/g,"{+$1}"),n=Object.assign({},e.headers),s=O(e,["method","baseUrl","url","headers","request","mediaType"]);const o=function(e){const t=e.match(k);return t?t.map(j).reduce((e,t)=>e.concat(t),[]):[]}(i);var a;i=(a=i,{expand:R.bind(null,a)}).expand(s),/^http/.test(i)||(i=e.baseUrl+i);const p=O(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 D(e,t,r){return x(T(e,t,r))}const L=function e(t,r){const i=T(t,r),n=D.bind(null,i);return Object.assign(n,{DEFAULTS:i,defaults:e.bind(null,i),merge:T.bind(null,i),parse:x})}(null,{method:"GET",baseUrl:"https://api.github.com",headers:{accept:"application/vnd.github.v3+json","user-agent":"octokit-endpoint.js/6.0.5 "+E()},mediaType:{format:"",previews:[]}}),U=i.Readable,I=Symbol("buffer"),F=Symbol("type");class N{constructor(){this[F]="";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]:{},n=r.size;let s=void 0===n?0:n;var o=r.timeout;let a=void 0===o?0:o;null==e?e=null:J(e)?e=Buffer.from(e.toString()):V(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 i||(e=Buffer.from(String(e)))),this[M]={body:e,disturbed:!1,error:null},this.size=s,this.timeout=a,e instanceof i&&e.on("error",function(e){const r="AbortError"===e.name?e:new $(`Invalid response body while trying to fetch ${t.url}: ${e.message}`,"system",e);t[M].error=r})}function W(){var e=this;if(this[M].disturbed)return H.Promise.reject(new TypeError("body used already for: "+this.url));if(this[M].disturbed=!0,this[M].error)return H.Promise.reject(this[M].error);let t=this.body;if(null===t)return H.Promise.resolve(Buffer.alloc(0));if(V(t)&&(t=t.stream()),Buffer.isBuffer(t))return H.Promise.resolve(t);if(!(t instanceof i))return H.Promise.resolve(Buffer.alloc(0));let r=[],n=0,s=!1;return new H.Promise(function(i,o){let a;e.timeout&&(a=setTimeout(function(){s=!0,o(new $(`Response timeout while trying to fetch ${e.url} (over ${e.timeout}ms)`,"body-timeout"))},e.timeout)),t.on("error",function(t){"AbortError"===t.name?(s=!0,o(t)):o(new $(`Invalid response body while trying to fetch ${e.url}: ${t.message}`,"system",t))}),t.on("data",function(t){if(!s&&null!==t){if(e.size&&n+t.length>e.size)return s=!0,void o(new $(`content size at ${e.url} over limit: ${e.size}`,"max-size"));n+=t.length,r.push(t)}}),t.on("end",function(){if(!s){clearTimeout(a);try{i(Buffer.concat(r,n))}catch(t){o(new $(`Could not create Buffer from response body for ${e.url}: ${t.message}`,"system",t))}}})})}function J(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 V(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 Q(e){let t,r,n=e.body;if(e.bodyUsed)throw new Error("cannot clone body after it is used");return n instanceof i&&"function"!=typeof n.getBoundary&&(t=new z,r=new z,n.pipe(t),n.pipe(r),e[M].body=t,n=r),n}function K(e){return null===e?null:"string"==typeof e?"text/plain;charset=UTF-8":J(e)?"application/x-www-form-urlencoded;charset=UTF-8":V(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 i?null:"text/plain;charset=UTF-8"}function Y(e){const t=e.body;return null===t?0:V(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}H.prototype={get body(){return this[M].body},get bodyUsed(){return this[M].disturbed},arrayBuffer(){return W.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 W.call(this).then(function(t){return Object.assign(new N([],{type:e.toLowerCase()}),{[I]:t})})},json(){var e=this;return W.call(this).then(function(t){try{return JSON.parse(t.toString())}catch(t){return H.Promise.reject(new $(`invalid json response body at ${e.url} reason: ${t.message}`,"invalid-json"))}})},text(){return W.call(this).then(function(e){return e.toString()})},buffer(){return W.call(this)},textConverted(){var e=this;return W.call(this).then(function(t){return function(e,t){if("function"!=typeof B)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[ie]=Object.create(null),e instanceof ne){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){ee(e=""+e);const t=re(this[ie],e);return void 0===t?null:this[ie][t].join(", ")}forEach(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:void 0,r=se(this),i=0;for(;i1&&void 0!==arguments[1]?arguments[1]:"key+value";const r=Object.keys(e[ie]).sort();return r.map("key"===t?function(e){return e.toLowerCase()}:"value"===t?function(t){return e[ie][t].join(", ")}:function(t){return[t.toLowerCase(),e[ie][t].join(", ")]})}ne.prototype.entries=ne.prototype[Symbol.iterator],Object.defineProperty(ne.prototype,Symbol.toStringTag,{value:"Headers",writable:!1,enumerable:!1,configurable:!0}),Object.defineProperties(ne.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 oe=Symbol("internal");function ae(e,t){const r=Object.create(pe);return r[oe]={target:e,kind:t,index:0},r}const pe=Object.setPrototypeOf({next(){if(!this||Object.getPrototypeOf(this)!==pe)throw new TypeError("Value of `this` is not a HeadersIterator");var e=this[oe];const t=e.index,r=se(e.target,e.kind);return t>=r.length?{value:void 0,done:!0}:(this[oe].index=t+1,{value:r[t],done:!1})}},Object.getPrototypeOf(Object.getPrototypeOf([][Symbol.iterator]())));function ue(e){const t=Object.assign({__proto__:null},e[ie]),r=re(e[ie],"Host");return void 0!==r&&(t[r]=t[r][0]),t}Object.defineProperty(pe,Symbol.toStringTag,{value:"HeadersIterator",writable:!1,enumerable:!1,configurable:!0});const ce=Symbol("Response internals"),de=n.STATUS_CODES;class le{constructor(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};H.call(this,e,t);const r=t.status||200,i=new ne(t.headers);if(null!=e&&!i.has("Content-Type")){const t=K(e);t&&i.append("Content-Type",t)}this[ce]={url:t.url,status:r,statusText:t.statusText||de[r],headers:i,counter:t.counter}}get url(){return this[ce].url||""}get status(){return this[ce].status}get ok(){return this[ce].status>=200&&this[ce].status<300}get redirected(){return this[ce].counter>0}get statusText(){return this[ce].statusText}get headers(){return this[ce].headers}clone(){return new le(Q(this),{url:this.url,status:this.status,statusText:this.statusText,headers:this.headers,ok:this.ok,redirected:this.redirected})}}H.mixIn(le.prototype),Object.defineProperties(le.prototype,{url:{enumerable:!0},status:{enumerable:!0},ok:{enumerable:!0},redirected:{enumerable:!0},statusText:{enumerable:!0},headers:{enumerable:!0},clone:{enumerable:!0}}),Object.defineProperty(le.prototype,Symbol.toStringTag,{value:"Response",writable:!1,enumerable:!1,configurable:!0});const ge=Symbol("Request internals"),me=s.parse,he=s.format,ye="destroy"in i.Readable.prototype;function fe(e){return"object"==typeof e&&"object"==typeof e[ge]}class be{constructor(e){let t,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};fe(e)?t=me(e.url):(t=me(e&&e.href?e.href:""+e),e={});let i=r.method||e.method||"GET";if(i=i.toUpperCase(),(null!=r.body||fe(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:fe(e)&&null!==e.body?Q(e):null;H.call(this,n,{timeout:r.timeout||e.timeout||0,size:r.size||e.size||0});const s=new ne(r.headers||e.headers||{});if(null!=n&&!s.has("Content-Type")){const e=K(n);e&&s.append("Content-Type",e)}let o=fe(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[ge]={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[ge].method}get url(){return he(this[ge].parsedURL)}get headers(){return this[ge].headers}get redirect(){return this[ge].redirect}get signal(){return this[ge].signal}clone(){return new be(this)}}function _e(e){Error.call(this,e),this.type="aborted",this.message=e,Error.captureStackTrace(this,this.constructor)}H.mixIn(be.prototype),Object.defineProperty(be.prototype,Symbol.toStringTag,{value:"Request",writable:!1,enumerable:!1,configurable:!0}),Object.defineProperties(be.prototype,{method:{enumerable:!0},url:{enumerable:!0},headers:{enumerable:!0},redirect:{enumerable:!0},clone:{enumerable:!0},signal:{enumerable:!0}}),(_e.prototype=Object.create(Error.prototype)).constructor=_e,_e.prototype.name="AbortError";const qe=i.PassThrough,we=s.resolve;function ve(e,t){if(!ve.Promise)throw new Error("native promise missing, set fetch.Promise to your favorite alternative");return H.Promise=ve.Promise,new ve.Promise(function(r,s){const p=new be(e,t),u=function(e){const t=e[ge].parsedURL,r=new ne(e[ge].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 i.Readable&&!ye)throw new Error("Cancellation of streamed requests with AbortSignal is not supported in node < 8");let n=null;if(null==e.body&&/^(POST|PUT)$/i.test(e.method)&&(n="0"),null!=e.body){const t=Y(e);"number"==typeof t&&(n=String(t))}n&&r.set("Content-Length",n),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 s=e.agent;return"function"==typeof s&&(s=s(t)),r.has("Connection")||s||r.set("Connection","close"),Object.assign({},t,{method:e.method,headers:ue(r),agent:s})}(p),c=("https:"===u.protocol?o:n).request,d=p.signal;let l=null;const g=function(){let e=new _e("The user aborted a request.");s(e),p.body&&p.body instanceof i.Readable&&p.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(u);let y;function f(){h.abort(),d&&d.removeEventListener("abort",m),clearTimeout(y)}d&&d.addEventListener("abort",m),p.timeout&&h.once("socket",function(e){y=setTimeout(function(){s(new $("network timeout at: "+p.url,"request-timeout")),f()},p.timeout)}),h.on("error",function(e){s(new $(`request to ${p.url} failed, reason: ${e.message}`,"system",e)),f()}),h.on("response",function(e){clearTimeout(y);const t=function(e){const t=new ne;for(const r of Object.keys(e))if(!X.test(r))if(Array.isArray(e[r]))for(const i of e[r])Z.test(i)||(void 0===t[ie][r]?t[ie][r]=[i]:t[ie][r].push(i));else Z.test(e[r])||(t[ie][r]=[e[r]]);return t}(e.headers);if(ve.isRedirect(e.statusCode)){const i=t.get("Location"),n=null===i?null:we(p.url,i);switch(p.redirect){case"error":return s(new $("uri requested responds with a redirect, redirect mode is set to error: "+p.url,"no-redirect")),void f();case"manual":if(null!==n)try{t.set("Location",n)}catch(e){s(e)}break;case"follow":if(null===n)break;if(p.counter>=p.follow)return s(new $("maximum redirect reached at: "+p.url,"max-redirect")),void f();const i={headers:new ne(p.headers),follow:p.follow,counter:p.counter+1,agent:p.agent,compress:p.compress,method:p.method,body:p.body,signal:p.signal,timeout:p.timeout,size:p.size};return 303!==e.statusCode&&p.body&&null===Y(p)?(s(new $("Cannot follow redirect with body being a readable stream","unsupported-redirect")),void f()):(303!==e.statusCode&&(301!==e.statusCode&&302!==e.statusCode||"POST"!==p.method)||(i.method="GET",i.body=void 0,i.headers.delete("content-length")),r(ve(new be(n,i))),void f())}}e.once("end",function(){d&&d.removeEventListener("abort",m)});let i=e.pipe(new qe);const n={url:p.url,status:e.statusCode,statusText:e.statusMessage,headers:t,size:p.size,timeout:p.timeout,counter:p.counter},o=t.get("Content-Encoding");if(!p.compress||"HEAD"===p.method||null===o||204===e.statusCode||304===e.statusCode)return l=new le(i,n),void r(l);if("gzip"==o||"x-gzip"==o)return i=i.pipe(a.createGunzip({flush:a.Z_SYNC_FLUSH,finishFlush:a.Z_SYNC_FLUSH})),l=new le(i,n),void r(l);if("deflate"!=o&&"x-deflate"!=o){if("br"==o&&"function"==typeof a.createBrotliDecompress)return i=i.pipe(a.createBrotliDecompress()),l=new le(i,n),void r(l);l=new le(i,n),r(l)}else e.pipe(new qe).once("data",function(e){i=i.pipe(8==(15&e[0])?a.createInflate():a.createInflateRaw()),l=new le(i,n),r(l)})}),function(e,t){const r=t.body;null===r?e.end():V(r)?r.stream().pipe(e):Buffer.isBuffer(r)?(e.write(r),e.end()):r.pipe(e)}(h,p)})}ve.isRedirect=function(e){return 301===e||302===e||303===e||307===e||308===e},ve.Promise=global.Promise;class Ee extends Error{constructor(e){super(e),Error.captureStackTrace&&Error.captureStackTrace(this,this.constructor),this.name="Deprecation"}}var Te={__proto__:null,Deprecation:Ee},ke=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 Ge 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:()=>(Ae(new Ee("[@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 Ce(e){(v(e.body)||Array.isArray(e.body))&&(e.body=JSON.stringify(e.body));let t,r,i={};return(e.request&&e.request.fetch||ve)(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 Ge(n.statusText,t,{headers:i,request:e})}if(304===t)throw new Ge("Not modified",t,{headers:i,request:e});if(t>=400)return n.text().then(r=>{const n=new Ge(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 Ge)throw t;throw new Ge(t.message,500,{headers:i,request:e})})}const Re=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 Ce(i.parse(n));const s=(e,t)=>Ce(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)})}(L,{headers:{"user-agent":"octokit-request.js/5.4.7 "+E()}});var xe={__proto__:null,request:Re};class De 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 Le=["method","baseUrl","url","headers","request","query","mediaType"],Ue=/\/api\/v3\/?$/;function Ie(e,t){const r=e.defaults(t);return Object.assign((e,t)=>function(e,t,r){r=r="string"==typeof t?Object.assign({query:t},r):t;const i=Object.keys(r).reduce((e,t)=>Le.includes(t)?(e[t]=r[t],e):(e.variables||(e.variables={}),e.variables[t]=r[t],e),{}),n=r.baseUrl||e.endpoint.DEFAULTS.baseUrl;return Ue.test(n)&&(i.url=n.replace(Ue,"/api/graphql")),e(i).then(e=>{if(e.data.errors){const t={};for(const r of Object.keys(e.headers))t[r]=e.headers[r];throw new De(i,{headers:t,data:e.data})}return e.data.data})}(r,e,t),{defaults:Ie.bind(null,r),endpoint:Re.endpoint})}var Fe={__proto__:null,graphql:Ie(Re,{headers:{"user-agent":"octokit-graphql.js/4.5.5 "+E()},method:"POST",url:"/graphql"}),withCustomRequest:function(e){return Ie(e,{method:"POST",url:"/graphql"})}};function Ne(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})})}Ne.VERSION="1.0.0";var $e={__proto__:null,requestLog:Ne},Be={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 Me(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=ze.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 Ee("[@octokit/rest] "+n.deprecated)),e[r][i]=o,o.apply(null,arguments)},o):o})})}function ze(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 Ee(`[@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 He(e){return e.registerEndpoints=Me.bind(null,e),Me(e,Be),[["gitdata","git"],["authorization","oauthAuthorizations"],["pullRequests","pulls"]].forEach(([t,r])=>{Object.defineProperty(e,t,{get:()=>(e.log.warn(new Ee(`[@octokit/plugin-rest-endpoint-methods] "octokit.${t}.*" methods are deprecated, use "octokit.${r}.*" instead`)),e[r])})}),{}}He.VERSION="2.4.0";var We={__proto__:null,restEndpointMethods:He},Je=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)})},Ve=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})},Qe=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)}},Ke=Function.bind,Ye=Ke.bind(Ke);function Xe(e,t,r){var i=Ye(Qe,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]=Ye(Ve,null).apply(null,n)})}function Ze(){var e={registry:{}},t=Je.bind(null,e);return Xe(t,e),t}var et=!1;function tt(){return et||(console.warn('[before-after-hook]: "Hook()" repurposing warning, use "Hook.Collection()". Read more: https://git.io/upgrade-before-after-hook-to-1.4'),et=!0),Ze()}tt.Singular=function(){var e={registry:{}},t=Je.bind(null,e,"h");return Xe(t,e,"h"),t}.bind(),tt.Collection=Ze.bind();var rt=tt,it=tt.Singular,nt=tt.Collection;rt.Hook=tt,rt.Singular=it,rt.Collection=nt;var st,ot={__proto__:null,getUserAgent:function(){try{return navigator.userAgent}catch(e){return""}}},at="@octokit/rest@^16.43.1",pt="@octokit/rest@16.43.2",ut="sha512-ngDBevLbBTFfrHZeiS7SAMAZ6ssuVmXuya+F/7RaVvlysgGa1JKJkKWY+jV6TCJYcW0OALfJ7nTIGXcBXzycfQ==",ct={"@types/node":"14.6.4",deprecation:"2.3.1",once:"1.4.0","os-name":"3.1.0"},dt={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"},lt=["/@actions/github"],gt="https://registry.npmjs.org/@octokit/rest/-/rest-16.43.2.tgz",mt="c53426f1e1d1044dee967023e3279c50993dd91b",ht="@octokit/rest@^16.43.1",yt="/Users/jhuleatt/git/action-hosting-deploy/node_modules/@actions/github",ft={name:"Gregor Martynus",url:"https://github.com/gr2m"},bt={url:"https://github.com/octokit/rest.js/issues"},_t=[{path:"./dist/octokit-rest.min.js.gz",maxSize:"33 kB"}],qt=[{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"}],wt={"@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"},vt="GitHub REST API client for Node.js",Et={"@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"},Tt=["index.js","index.d.ts","lib","plugins"],kt="https://github.com/octokit/rest.js#readme",jt=["octokit","github","rest","api-client"],Ot="@octokit/rest",Pt={ignore:["test"]},St={access:"public"},At={publish:["@semantic-release/npm",{path:"@semantic-release/github",assets:["dist/*","!dist/*.map.gz"]}]},Gt={type:"git",url:"git+https://github.com/octokit/rest.js.git"},Ct={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"},Rt=(st={__proto__:null,_from:at,_id:pt,_inBundle:!1,_integrity:ut,_location:"/@octokit/rest",_phantomChildren:ct,_requested:dt,_requiredBy:lt,_resolved:gt,_shasum:mt,_spec:ht,_where:yt,author:ft,bugs:bt,bundleDependencies:!1,bundlesize:_t,contributors:qt,dependencies:wt,deprecated:!1,description:vt,devDependencies:Et,files:Tt,homepage:kt,keywords:jt,license:"MIT",name:Ot,nyc:Pt,publishConfig:St,release:At,repository:Gt,scripts:Ct,types:"index.d.ts",version:"16.43.2",default:{_from:at,_id:pt,_inBundle:!1,_integrity:ut,_location:"/@octokit/rest",_phantomChildren:ct,_requested:dt,_requiredBy:lt,_resolved:gt,_shasum:mt,_spec:ht,_where:yt,author:ft,bugs:bt,bundleDependencies:!1,bundlesize:_t,contributors:qt,dependencies:wt,deprecated:!1,description:vt,devDependencies:Et,files:Tt,homepage:kt,keywords:jt,license:"MIT",name:Ot,nyc:Pt,publishConfig:St,release:At,repository:Gt,scripts:Ct,types:"index.d.ts",version:"16.43.2"}})&&st.default||st,xt=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&&(Ut(t,new Dt("[@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&&(It(t,new Dt("[@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&&Ft(t,new Dt("[@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/${Rt.version} ${Lt()}`;return i.headers["user-agent"]=[n,s].filter(Boolean).join(" "),i.request.hook=r.bind(null,"request"),i};const{Deprecation:Dt}=Te,{getUserAgent:Lt}=ot,Ut=je((e,t)=>e.warn(t)),It=je((e,t)=>e.warn(t)),Ft=je((e,t)=>e.warn(t));var Nt=function(e,t){t=t||{};const r=new rt.Collection,i=Object.assign({debug:()=>{},info:()=>{},warn:console.warn,error:console.error},t&&t.log),n={hook:r,log:i,request:$t.defaults(xt(t,i,r))};return e.forEach(e=>e(n,t)),n};const{request:$t}=xe;var Bt=function(e,t){return Mt(e.includes(t)?e:e.concat(t))},Mt=function(e){const t=Nt.bind(null,e||[]);return t.plugin=Bt.bind(null,e||[]),t},zt=Mt();async function Ht(e){const t=3===e.split(/\./).length?"app":/^v\d+\./.test(e)?"installation":"oauth";return{type:"token",token:e,tokenType:t}}async function Wt(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 Jt={__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(Ht.bind(null,e),{hook:Wt.bind(null,e)})}},Vt=function(e){return new Buffer(e).toString("base64")},Qt=function(e){if(/^(basic|bearer|token) /i.test(e))return e;try{if(Kt.test(Buffer.from(e,"base64").toString("binary")))return"basic "+e}catch(e){}return 3===e.split(/\./).length?"bearer "+e:"token "+e};const Kt=/^[\w-]+:/;var Yt=function(e,t){if("string"!=typeof e.auth){if(e.auth.username){const r=Vt(`${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=Vt(`${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=Qt(e)})}t.headers.authorization=Qt(e.auth)};const Xt=je(e=>console.warn(e));class Zt 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:()=>(Xt(new Ee("[@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 er={__proto__:null,RequestError:Zt},tr=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 rr("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 rr("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:rr}=er,{createTokenAuth:ir}=Jt,{Deprecation:nr}=Te,sr=je((e,t)=>e.warn(t)),or=je((e,t)=>e.warn(t));var ar=function(e,t){if(ur(e.octokit.log,new pr('[@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:pr}=Te,ur=je((e,t)=>e.warn(t));var cr=/^\[object .+?Constructor\]$/,dr="object"==typeof self&&self&&self.Object===Object&&self,lr="object"==typeof y&&y&&y.Object===Object&&y||dr||Function("return this")();function gr(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 mr(e){return e!=e}function hr(e,t){return e.has(t)}function yr(e){var t=-1,r=Array(e.size);return e.forEach(function(e){r[++t]=e}),r}var fr,br=Array.prototype,_r=Function.prototype,qr=Object.prototype,wr=lr["__core-js_shared__"],vr=(fr=/[^.]+$/.exec(wr&&wr.keys&&wr.keys.IE_PROTO||""))?"Symbol(src)_1."+fr:"",Er=_r.toString,Tr=qr.hasOwnProperty,kr=qr.toString,jr=RegExp("^"+Er.call(Tr).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),Or=br.splice,Pr=Ir(lr,"Map"),Sr=Ir(lr,"Set"),Ar=Ir(Object,"create");function Gr(e){var t=-1,r=e?e.length:0;for(this.clear();++t-1},Cr.prototype.set=function(e,t){var r=this.__data__,i=Dr(r,e);return i<0?r.push([e,t]):r[i][1]=t,this},Rr.prototype.clear=function(){this.__data__={hash:new Gr,map:new(Pr||Cr),string:new Gr}},Rr.prototype.delete=function(e){return Ur(this,e).delete(e)},Rr.prototype.get=function(e){return Ur(this,e).get(e)},Rr.prototype.has=function(e){return Ur(this,e).has(e)},Rr.prototype.set=function(e,t){return Ur(this,e).set(e,t),this},xr.prototype.add=xr.prototype.push=function(e){return this.__data__.set(e,"__lodash_hash_undefined__"),this},xr.prototype.has=function(e){return this.__data__.has(e)};var Lr=Sr&&1/yr(new Sr([,-0]))[1]==1/0?function(e){return new Sr(e)}:function(){};function Ur(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 Ir(e,t){var r=function(e,t){return null==e?void 0:e[t]}(e,t);return function(e){return!(!Fr(e)||(t=e,vr&&vr in t))&&(function(e){var t=Fr(e)?kr.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)?jr:cr).test(function(e){if(null!=e){try{return Er.call(e)}catch(e){}try{return e+""}catch(e){}}return""}(e));var t}(r)?r:void 0}function Fr(e){var t=typeof e;return!!e&&("object"==t||"function"==t)}var Nr=function(e,t){if(!e.auth.type)return;if("basic"===e.auth.type){const r=Vt(`${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=gr,s=e.length,o=!0,a=[],p=a;if(s>=200){var u=Lr(e);if(u)return yr(u);o=!1,n=hr,p=new xr}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:Br}=er,{Deprecation:Mr}=Te,zr=je((e,t)=>e.warn(t)),Hr=[/^\/search\//,/^\/repos\/[^/]+\/[^/]+\/commits\/[^/]+\/(check-runs|check-suites)([^/]|$)/,/^\/installation\/repositories([^/]|$)/,/^\/user\/installations([^/]|$)/,/^\/repos\/[^/]+\/[^/]+\/actions\/secrets([^/]|$)/,/^\/repos\/[^/]+\/[^/]+\/actions\/workflows(\/[^/]+\/runs)?([^/]|$)/,/^\/repos\/[^/]+\/[^/]+\/actions\/runs(\/[^/]+\/(artifacts|jobs))?([^/]|$)/];function Wr(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(!Hr.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 Jr(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,[],Wr(e,t,r)[Symbol.asyncIterator](),i)}function Vr(e){return{paginate:Object.assign(Jr.bind(null,e),{iterator:Wr.bind(null,e)})}}Vr.VERSION="1.1.2";var Qr={__proto__:null,paginateRest:Vr};const{paginateRest:Kr}=Qr;var Yr=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,Xr=/^\w*$/,Zr=/^\./,ei=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,ti=/\\(\\)?/g,ri=/^\[object .+?Constructor\]$/,ii="object"==typeof self&&self&&self.Object===Object&&self,ni="object"==typeof y&&y&&y.Object===Object&&y||ii||Function("return this")(),si=Array.prototype,oi=Function.prototype,ai=Object.prototype,pi=ni["__core-js_shared__"],ui=function(){var e=/[^.]+$/.exec(pi&&pi.keys&&pi.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}(),ci=oi.toString,di=ai.hasOwnProperty,li=ai.toString,gi=RegExp("^"+ci.call(di).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),mi=ni.Symbol,hi=si.splice,yi=ki(ni,"Map"),fi=ki(Object,"create"),bi=mi?mi.prototype:void 0,_i=bi?bi.toString:void 0;function qi(e){var t=-1,r=e?e.length:0;for(this.clear();++t-1},wi.prototype.set=function(e,t){var r=this.__data__,i=Ei(r,e);return i<0?r.push([e,t]):r[i][1]=t,this},vi.prototype.clear=function(){this.__data__={hash:new qi,map:new(yi||wi),string:new qi}},vi.prototype.delete=function(e){return Ti(this,e).delete(e)},vi.prototype.get=function(e){return Ti(this,e).get(e)},vi.prototype.has=function(e){return Ti(this,e).has(e)},vi.prototype.set=function(e,t){return Ti(this,e).set(e,t),this};var ji=Pi(function(e){var t;e=null==(t=e)?"":function(e){if("string"==typeof e)return e;if(Gi(e))return _i?_i.call(e):"";var t=e+"";return"0"==t&&1/e==-1/0?"-0":t}(t);var r=[];return Zr.test(e)&&r.push(""),e.replace(ei,function(e,t,i,n){r.push(i?n.replace(ti,"$1"):t||e)}),r});function Oi(e){if("string"==typeof e||Gi(e))return e;var t=e+"";return"0"==t&&1/e==-1/0?"-0":t}function Pi(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(Pi.Cache||vi),r}Pi.Cache=vi;var Si=Array.isArray;function Ai(e){var t=typeof e;return!!e&&("object"==t||"function"==t)}function Gi(e){return"symbol"==typeof e||function(e){return!!e&&"object"==typeof e}(e)&&"[object Symbol]"==li.call(e)}var Ci=function(e,t,r){var i=null==e?void 0:function(e,t){for(var r,i=0,n=(t=function(e,t){if(Si(e))return!1;var r=typeof e;return!("number"!=r&&"symbol"!=r&&"boolean"!=r&&null!=e&&!Gi(e))||Xr.test(e)||!Yr.test(e)||null!=t&&e in Object(t)}(t,e)?[t]:Si(r=t)?r:ji(r)).length;null!=e&&i-1&&e%1==0&&e-1},sn.prototype.set=function(e,t){var r=this.__data__,i=pn(r,e);return i<0?r.push([e,t]):r[i][1]=t,this},on.prototype.clear=function(){this.__data__={hash:new nn,map:new(Zi||sn),string:new nn}},on.prototype.delete=function(e){return un(this,e).delete(e)},on.prototype.get=function(e){return un(this,e).get(e)},on.prototype.has=function(e){return un(this,e).has(e)},on.prototype.set=function(e,t){return un(this,e).set(e,t),this};var ln=mn(function(e){var t;e=null==(t=e)?"":function(e){if("string"==typeof e)return e;if(bn(e))return rn?rn.call(e):"";var t=e+"";return"0"==t&&1/e==-1/0?"-0":t}(t);var r=[];return Di.test(e)&&r.push(""),e.replace(Li,function(e,t,i,n){r.push(i?n.replace(Ui,"$1"):t||e)}),r});function gn(e){if("string"==typeof e||bn(e))return e;var t=e+"";return"0"==t&&1/e==-1/0?"-0":t}function mn(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(mn.Cache||on),r}function hn(e,t){return e===t||e!=e&&t!=t}mn.Cache=on;var yn=Array.isArray;function fn(e){var t=typeof e;return!!e&&("object"==t||"function"==t)}function bn(e){return"symbol"==typeof e||function(e){return!!e&&"object"==typeof e}(e)&&"[object Symbol]"==Qi.call(e)}var _n=function(e,t){if(!t.request.validate)return;const{validate:r}=t.request;return Object.keys(r).forEach(e=>{const i=Ci(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=Ci(t,s),a="headers"===s||"object"==typeof o&&null!==o),(p?(Ci(t,s)||[]).map(t=>t[e.split(/\./).pop()]):[Ci(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 qn(`'${c}' cannot be null`,400,{request:t});if(i.required&&!o)throw new qn(`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 qn(`Invalid value for parameter '${c}': ${JSON.stringify(e)} is NaN`,400,{request:t})}if(i.enum&&-1===i.enum.indexOf(String(r)))throw new qn(`Invalid value for parameter '${c}': ${JSON.stringify(r)}`,400,{request:t});if(i.validation&&!new RegExp(i.validation).test(r))throw new qn(`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 qn(`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(!fn(e))return e;for(var n=-1,s=(t=function(e,t){if(yn(e))return!1;var r=typeof e;return!("number"!=r&&"symbol"!=r&&"boolean"!=r&&null!=e&&!bn(e))||xi.test(e)||!Ri.test(e)||null!=t&&e in Object(t)}(t,e)?[t]:function(e){return yn(e)?e:ln(e)}(t)).length,o=s-1,a=e;null!=a&&++n]*)>;\s*rel="([\w]*)"/g,(e,r,i)=>{t[i]=r}),t},Tn=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}},kn=function(e,t,r,i){wn(`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=En(t)[r];if(!n){const e=new Tn(`No ${r} page found`,404);return Promise.reject(e)}const s={url:n,headers:jn(t,i)};return e.request(s)};function jn(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 On=function(e,t,r){return kn(e,t,"first",r)},Pn=function(e,t,r){return kn(e,t,"last",r)},Sn=function(e,t,r){return kn(e,t,"next",r)},An=function(e,t,r){return kn(e,t,"prev",r)},Gn=function(e){return wn("octokit.hasFirstPage() – You can use octokit.paginate or async iterators instead: https://github.com/octokit/rest.js#pagination."),En(e).first},Cn=function(e){return wn("octokit.hasLastPage() – You can use octokit.paginate or async iterators instead: https://github.com/octokit/rest.js#pagination."),En(e).last},Rn=function(e){return wn("octokit.hasNextPage() – You can use octokit.paginate or async iterators instead: https://github.com/octokit/rest.js#pagination."),En(e).next},xn=function(e){return wn("octokit.hasPreviousPage() – You can use octokit.paginate or async iterators instead: https://github.com/octokit/rest.js#pagination."),En(e).prev};const{requestLog:Dn}=$e,{restEndpointMethods:Ln}=We,Un=zt.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(Qt(t.auth));if("string"==typeof t.auth&&!r){const r=ir(t.auth);return e.hook.wrap("request",r.hook),void(e.auth=r)}const[i,n]=r?[sr,'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)']:[or,'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 nr("[@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",Yt.bind(null,s)),e.hook.error("request",tr.bind(null,s))},function(e,t){if(t.auth)return void(e.authenticate=()=>{zr(e.log,new Mr('[@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=ar.bind(null,r),e.hook.before("request",Nr.bind(null,r)),e.hook.error("request",$r.bind(null,r))},Dn,function(e){Object.assign(e,Kr(e))},Ln,function(e){e.hook.before("request",_n.bind(null,e))},function(e){e.getFirstPage=On.bind(null,e),e.getLastPage=Pn.bind(null,e),e.getNextPage=Sn.bind(null,e),e.getPreviousPage=An.bind(null,e),e.hasFirstPage=Gn,e.hasLastPage=Cn,e.hasNextPage=Rn,e.hasPreviousPage=xn}]),In=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 Un(e)},{Octokit:Un});Object.keys(Un).forEach(e=>{Un.hasOwnProperty(e)&&(In[e]=Un[e])});var Fn,Nn=In,$n=b(function(e,r){Object.defineProperty(r,"__esModule",{value:!0}),r.Context=class{constructor(){if(this.payload={},process.env.GITHUB_EVENT_PATH)if(u.existsSync(process.env.GITHUB_EVENT_PATH))this.payload=JSON.parse(u.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'")}}}),Bn=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=s.parse(i))),t},t.checkBypass=r});function Mn(e){var t=this;t.options=e||{},t.proxyOptions=t.options.proxy||{},t.maxSockets=t.options.maxSockets||n.Agent.defaultMaxSockets,t.requests=[],t.sockets=[],t.on("free",function(e,r,i,n){for(var s=Hn(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)})},Mn.prototype.createSocket=function(e,t){var r=this,i={};r.sockets.push(i);var n=Wn({},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")),Fn("making CONNECT request");var s=r.request(n);function o(n,o,a){var p;return s.removeAllListeners(),o.removeAllListeners(),200!==n.statusCode?(Fn("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?(Fn("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)):(Fn("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(),Fn("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()},Mn.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 Jn={httpOverHttp:function(e){var t=new Mn(e);return t.request=n.request,t},httpsOverHttp:function(e){var t=new Mn(e);return t.request=n.request,t.createSocket=zn,t.defaultPort=443,t},httpOverHttps:function(e){var t=new Mn(e);return t.request=o.request,t},httpsOverHttps:function(e){var t=new Mn(e);return t.request=o.request,t.createSocket=zn,t.defaultPort=443,t},debug:Fn=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(){}},Vn=b(function(e,t){let r;var i,a,p;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"}(a=t.Headers||(t.Headers={})),function(e){e.ApplicationJson="application/json"}(p=t.MediaTypes||(t.MediaTypes={})),t.getProxyUrl=function(e){let t=Bn.getProxyUrl(s.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:"===s.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[a.Accept]=this._getExistingOrDefaultHeader(t,a.Accept,p.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[a.Accept]=this._getExistingOrDefaultHeader(r,a.Accept,p.ApplicationJson),r[a.ContentType]=this._getExistingOrDefaultHeader(r,a.ContentType,p.ApplicationJson);let n=await this.post(e,i,r);return this._processResponse(n,this.requestOptions)}async putJson(e,t,r={}){let i=JSON.stringify(t,null,2);r[a.Accept]=this._getExistingOrDefaultHeader(r,a.Accept,p.ApplicationJson),r[a.ContentType]=this._getExistingOrDefaultHeader(r,a.ContentType,p.ApplicationJson);let n=await this.put(e,i,r);return this._processResponse(n,this.requestOptions)}async patchJson(e,t,r={}){let i=JSON.stringify(t,null,2);r[a.Accept]=this._getExistingOrDefaultHeader(r,a.Accept,p.ApplicationJson),r[a.ContentType]=this._getExistingOrDefaultHeader(r,a.ContentType,p.ApplicationJson);let n=await this.patch(e,i,r);return this._processResponse(n,this.requestOptions)}async request(e,t,r,n){if(this._disposed)throw new Error("Client has already been disposed.");let o,a=s.parse(t),p=this._prepareRequest(e,a,n),l=this._allowRetries&&-1!=d.indexOf(e)?this._maxRetries+1:1,g=0;for(;g0;){const i=o.message.headers.location;if(!i)break;let u=s.parse(i);if("https:"==a.protocol&&a.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 o.readBody(),u.hostname!==a.hostname)for(let e in n)"authorization"===e.toLowerCase()&&delete n[e];p=this._prepareRequest(e,u,n),o=await this.requestRaw(p,r),t--}if(-1==c.indexOf(o.message.statusCode))return o;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=s.parse(e);return this._getAgent(t)}_prepareRequest(e,t,r){const i={};i.parsedUrl=t;const s="https:"===i.parsedUrl.protocol;i.httpModule=s?o:n;const a=s?443:80;return i.options={},i.options.host=i.parsedUrl.hostname,i.options.port=i.parsedUrl.port?parseInt(i.parsedUrl.port):a,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=Bn.getProxyUrl(e),s=i&&i.hostname;if(this._keepAlive&&s&&(t=this._proxyAgent),this._keepAlive&&!s&&(t=this._agent),t)return t;const a="https:"===e.protocol;let p=100;if(this.requestOptions&&(p=this.requestOptions.maxSockets||n.globalAgent.maxSockets),s){let e;r||(r=Jn);const n="https:"===i.protocol;e=a?n?r.httpsOverHttps:r.httpsOverHttp:n?r.httpOverHttps:r.httpOverHttp,t=e({maxSockets:p,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:p};t=a?new o.Agent(e):new n.Agent(e),this._agent=t}return t||(t=a?o.globalAgent:n.globalAgent),a&&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}),Qn=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($n),n=r(Vn);Nn.Octokit.prototype=new Nn.Octokit,t.context=new i.Context;class s extends Nn.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}),Fe.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}),Kn="win32"===process.platform,Yn=process.env.NODE_DEBUG&&/fs/.test(process.env.NODE_DEBUG);if(Kn)var Xn=/(.*?)(?:[\/\\]+|$)/g;else Xn=/(.*?)(?:[\/]+|$)/g;if(Kn)var Zn=/^(?:[a-zA-Z]:|[\\\/]{2}[^\\\/]+[\\\/][^\\\/]+)?[\\\/]*/;else Zn=/^[\/]*/;var es=os;os.realpath=os,os.sync=as,os.realpathSync=as,os.monkeypatch=function(){u.realpath=os,u.realpathSync=as},os.unmonkeypatch=function(){u.realpath=ts,u.realpathSync=rs};var ts=u.realpath,rs=u.realpathSync,is=process.version,ns=/^v[0-5]\./.test(is);function ss(e){return e&&"realpath"===e.syscall&&("ELOOP"===e.code||"ENOMEM"===e.code||"ENAMETOOLONG"===e.code)}function os(e,t,i){if(ns)return ts(e,t,i);"function"==typeof t&&(i=t,t=null),ts(e,t,function(n,s){ss(n)?function(e,t,i){if("function"!=typeof i&&(i=function(e){return"function"==typeof e?e:function(){var e;if(Yn){var t=new Error;e=function(e){e&&(t.message=e.message,r(e=t))}}else e=r;return e;function r(e){if(e){if(process.throwDeprecation)throw e;if(!process.noDeprecation){var t="fs: missing callback "+(e.stack||e.message);process.traceDeprecation?console.trace(t):console.error(t)}}}}()}(t),t=null),e=r.resolve(e),t&&Object.prototype.hasOwnProperty.call(t,e))return process.nextTick(i.bind(null,null,t[e]));var n,s,o,a,p=e,c={},d={};function l(){var t=Zn.exec(e);n=t[0].length,s=t[0],o=t[0],a="",Kn&&!d[o]?u.lstat(o,function(e){if(e)return i(e);d[o]=!0,g()}):process.nextTick(g)}function g(){if(n>=e.length)return t&&(t[p]=e),i(null,e);Xn.lastIndex=n;var r=Xn.exec(e);return a=s,s+=r[0],n=Xn.lastIndex,d[o=a+r[1]]||t&&t[o]===o?process.nextTick(g):t&&Object.prototype.hasOwnProperty.call(t,o)?y(t[o]):u.lstat(o,m)}function m(e,r){if(e)return i(e);if(!r.isSymbolicLink())return d[o]=!0,t&&(t[o]=o),process.nextTick(g);if(!Kn){var n=r.dev.toString(32)+":"+r.ino.toString(32);if(c.hasOwnProperty(n))return h(null,c[n],o)}u.stat(o,function(e){if(e)return i(e);u.readlink(o,function(e,t){Kn||(c[n]=t),h(e,t)})})}function h(e,n,s){if(e)return i(e);var o=r.resolve(a,n);t&&(t[s]=o),y(o)}function y(t){e=r.resolve(t,e.slice(n)),l()}l()}(e,t,i):i(n,s)})}function as(e,t){if(ns)return rs(e,t);try{return rs(e,t)}catch(i){if(ss(i))return function(e,t){if(e=r.resolve(e),t&&Object.prototype.hasOwnProperty.call(t,e))return t[e];var i,n,s,o,a=e,p={},c={};function d(){var t=Zn.exec(e);i=t[0].length,n=t[0],s=t[0],o="",Kn&&!c[s]&&(u.lstatSync(s),c[s]=!0)}for(d();i=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}cs.range=ls;var gs="\0SLASH"+Math.random()+"\0",ms="\0OPEN"+Math.random()+"\0",hs="\0CLOSE"+Math.random()+"\0",ys="\0COMMA"+Math.random()+"\0",fs="\0PERIOD"+Math.random()+"\0";function bs(e){return parseInt(e,10)==e?parseInt(e,10):e.charCodeAt(0)}function _s(e){return e.split(gs).join("\\").split(ms).join("{").split(hs).join("}").split(ys).join(",").split(fs).join(".")}function qs(e){return"{"+e+"}"}function ws(e){return/^-?0\d/.test(e)}function vs(e,t){return e<=t}function Es(e,t){return e>=t}var Ts=Gs;Gs.Minimatch=Cs;var ks={sep:"/"};try{ks=r}catch(e){}var js=Gs.GLOBSTAR=Cs.GLOBSTAR={},Os={"!":{open:"(?:(?!(?:",close:"))[^/]*?)"},"?":{open:"(?:",close:")?"},"+":{open:"(?:",close:")+"},"*":{open:"(?:",close:")*"},"@":{open:"(?:",close:")"}},Ps="().*{}+?[]^$\\!".split("").reduce(function(e,t){return e[t]=!0,e},{}),Ss=/\/+/;function As(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 Gs(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 Cs(t,r).match(e))}function Cs(e,t){if(!(this instanceof Cs))return new Cs(e,t);if("string"!=typeof e)throw new TypeError("glob pattern string required");t||(t={}),e=e.trim(),"/"!==ks.sep&&(e=e.split(ks.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 Rs(e,t){if(t||(t=this instanceof Cs?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=us("{","}",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+hs+n.post):[t];if(p)s=n.body.split(/\.\./);else if(1===(s=function e(t){if(!t)return[""];var r=[],i=us("{","}",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(qs)).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=bs(s[0]),m=bs(s[1]),h=Math.max(s[0].length,s[1].length),y=3==s.length?Math.abs(bs(s[2])):1,f=vs;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 js;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 Ds=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}}}),Ls=b(function(e){try{if("function"!=typeof g.inherits)throw"";e.exports=g.inherits}catch(t){e.exports=Ds}});function Us(e){return"/"===e.charAt(0)}function Is(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 Fs="win32"===process.platform?Is:Us,Ns=Is;function $s(e,t){return Object.prototype.hasOwnProperty.call(e,t)}Fs.posix=Us,Fs.win32=Ns;var Bs=Ts.Minimatch;function Ms(e,t){return e.toLowerCase().localeCompare(t.toLowerCase())}function zs(e,t){return e.localeCompare(t)}function Hs(e){var t=null;if("/**"===e.slice(-3)){var r=e.replace(/(\/\*\*)+$/,"");t=new Bs(r,{dot:!0})}return{matcher:new Bs(e,{dot:!0}),gmatcher:t}}function Ws(e,t){var i=t;return i="/"===t.charAt(0)?r.join(e.root,t):Fs(t)||""===t?t:e.changedCwd?r.resolve(e.cwd,t):r.resolve(t),"win32"===process.platform&&(i=i.replace(/\\/g,"/")),i}function Js(e,t){return!!e.ignore.length&&e.ignore.some(function(e){return e.matcher.match(t)||!(!e.gmatcher||!e.gmatcher.match(t))})}var Vs={alphasort:zs,alphasorti:Ms,setopts:function(e,t,i){if(i||(i={}),i.matchBase&&-1===t.indexOf("/")){if(i.noglobstar)throw new Error("base matching requires globstar");t="**/"+t}e.silent=!!i.silent,e.pattern=t,e.strict=!1!==i.strict,e.realpath=!!i.realpath,e.realpathCache=i.realpathCache||Object.create(null),e.follow=!!i.follow,e.dot=!!i.dot,e.mark=!!i.mark,e.nodir=!!i.nodir,e.nodir&&(e.mark=!0),e.sync=!!i.sync,e.nounique=!!i.nounique,e.nonull=!!i.nonull,e.nosort=!!i.nosort,e.nocase=!!i.nocase,e.stat=!!i.stat,e.noprocess=!!i.noprocess,e.absolute=!!i.absolute,e.maxLength=i.maxLength||Infinity,e.cache=i.cache||Object.create(null),e.statCache=i.statCache||Object.create(null),e.symlinks=i.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(Hs))}(e,i),e.changedCwd=!1;var n=process.cwd();$s(i,"cwd")?(e.cwd=r.resolve(i.cwd),e.changedCwd=e.cwd!==n):e.cwd=n,e.root=i.root||r.resolve(e.cwd,"/"),e.root=r.resolve(e.root),"win32"===process.platform&&(e.root=e.root.replace(/\\/g,"/")),e.cwdAbs=Fs(e.cwd)?e.cwd:Ws(e,e.cwd),"win32"===process.platform&&(e.cwdAbs=e.cwdAbs.replace(/\\/g,"/")),e.nomount=!!i.nomount,i.nonegate=!0,i.nocomment=!0,e.minimatch=new Bs(t,i),e.options=e.minimatch.options},ownProp:$s,makeAbs:Ws,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&&Ys(this.cache,t)){var i=this.cache[t];if(Array.isArray(i)&&(i="DIR"),!r||"DIR"===i)return i;if(r&&"FILE"===i)return!1}var n=this.statCache[t];if(!n){var s;try{s=u.lstatSync(t)}catch(e){if(e&&("ENOENT"===e.code||"ENOTDIR"===e.code))return this.statCache[t]=!1,!1}if(s&&s.isSymbolicLink())try{n=u.statSync(t)}catch(e){n=s}else n=s}return this.statCache[t]=n,i=!0,n&&(i=n.isDirectory()?"DIR":"FILE"),this.cache[t]=this.cache[t]||i,(!r||"FILE"!==i)&&i},to.prototype._mark=function(e){return Vs.mark(this,e)},to.prototype._makeAbs=function(e){return Vs.makeAbs(this,e)};var ro=Object.create(null),io=ke(function(e,t){return ro[e]?(ro[e].push(t),null):(ro[e]=[t],function(e){return je(function t(){var r=ro[e],i=r.length,n=no(arguments);try{for(var s=0;si?(r.splice(0,i),process.nextTick(function(){t.apply(null,n)})):delete ro[e]}})}(e))});function no(e){for(var t=e.length,r=[],i=0;i1)return!0;for(var n=0;nthis.maxLength)return t();if(!this.stat&&po(this.cache,r)){var n=this.cache[r];if(Array.isArray(n)&&(n="DIR"),!i||"DIR"===n)return t(null,n);if(i&&"FILE"===n)return t()}var s=this.statCache[r];if(void 0!==s){if(!1===s)return t(null,s);var o=s.isDirectory()?"DIR":"FILE";return i&&"FILE"===o?t():t(null,o,s)}var a=this,p=io("stat\0"+r,function(i,n){if(n&&n.isSymbolicLink())return u.stat(r,function(i,s){i?a._stat2(e,r,null,n,t):a._stat2(e,r,i,s,t)});a._stat2(e,r,i,n,t)});p&&u.lstat(r,p)},mo.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 ho=void 0;try{ho=so}catch(e){}const yo={nosort:!0,silent:!0};let fo=0;const bo="win32"===process.platform,_o=e=>{if(["unlink","chmod","stat","lstat","rmdir","readdir"].forEach(t=>{e[t]=e[t]||u[t],e[t+="Sync"]=e[t]||u[t]}),e.maxBusyTries=e.maxBusyTries||3,e.emfileWait=e.emfileWait||1e3,!1===e.glob&&(e.disableGlob=!0),!0!==e.disableGlob&&void 0===ho)throw Error("glob dependency not found, set `options.disableGlob = true` if intentional");e.disableGlob=e.disableGlob||!1,e.glob=e.glob||yo},qo=(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"),_o(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)&&iwo(e,t,o),100*i);if("EMFILE"===a.code&&fowo(e,t,o),fo++);"ENOENT"===a.code&&(a=null)}fo=0,(e=>{n=n||e,0==--s&&r(n)})(a)};wo(e,t,o)}));if(t.disableGlob||!ho.hasMagic(e))return o(null,[e]);t.lstat(e,(r,i)=>{if(!r)return o(null,[e]);ho(e,t.glob,o)})},wo=(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&&bo&&vo(e,t,i,r),n&&n.isDirectory()?To(e,t,i,r):void t.unlink(e,i=>{if(i){if("ENOENT"===i.code)return r(null);if("EPERM"===i.code)return bo?vo(e,t,i,r):To(e,t,i,r);if("EISDIR"===i.code)return To(e,t,i,r)}return r(i)})))},vo=(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()?To(e,t,r,i):t.unlink(e,i)})})},Eo=(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()?Oo(e,t,r):t.unlinkSync(e)},To=(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):ko(e,t,i)})},ko=(e,t,i)=>{l(e),l(t),l("function"==typeof i),t.readdir(e,(n,s)=>{if(n)return i(n);let o,a=s.length;if(0===a)return t.rmdir(e,i);s.forEach(n=>{qo(r.join(e,n),t,r=>{if(!o)return r?i(o=r):void(0==--a&&t.rmdir(e,i))})})})},jo=(e,t)=>{let r;if(_o(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||!ho.hasMagic(e))r=[e];else try{t.lstatSync(e),r=[e]}catch(i){r=ho.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||Po(e,t)}},Po=(e,t)=>{l(e),l(t),t.readdirSync(e).forEach(i=>jo(r.join(e,i),t));const i=bo?100:1;let n=0;for(;;){let r=!0;try{const s=t.rmdirSync(e,t);return r=!1,s}finally{if(++n0?e():n(new Error("Could not get a unique tmp filename, max tries reached "+t));n(null,t)})}catch(e){n(e)}}()}function f(e){const t=j(e)[0];P(t);let r=t.tries;do{const e=O(t);try{u.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]?u.close(e[0],function(){u.unlink(e[1],r)}):u.unlink(e[1],r)}function _(e){let t=null;try{0<=e[0]&&u.closeSync(e[0])}catch(e){if(!R(e,-p,"EBADF")&&!C(e))throw e}finally{try{u.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 i=t.unsafeCleanup?So:u.rmdir.bind(u),n=v(t.unsafeCleanup?g:l,e,r),s=v(i,e,r,n);return t.keep||d.unshift(n),r?n:s}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=(i=u.promises).chmod,t.copyFile=i.copyFile,t.lstat=i.lstat,t.mkdir=i.mkdir,t.readdir=i.readdir,t.readlink=i.readlink,t.rename=i.rename,t.rmdir=i.rmdir,t.stat=i.stat,t.symlink=i.symlink,t.unlink=i.unlink,t.IS_WINDOWS="win32"===process.platform,t.exists=function(e){return n(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 n(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(i,s=1e3,o=1){return n(this,void 0,void 0,function*(){if(l.ok(i,"a path argument must be provided"),i=r.resolve(i),o>=s)return t.mkdir(i);try{return void(yield t.mkdir(i))}catch(n){switch(n.code){case"ENOENT":return yield e(r.dirname(i),s,o+1),void(yield t.mkdir(i));default:{let e;try{e=yield t.stat(i)}catch(e){throw n}if(!e.isDirectory())throw n}}}})},t.tryGetExecutablePath=function(e,i){return n(this,void 0,void 0,function*(){let n=void 0;try{n=yield t.stat(e)}catch(t){"ENOENT"!==t.code&&console.log(`Unexpected error attempting to determine if executable file exists '${e}': ${t}`)}if(n&&n.isFile())if(t.IS_WINDOWS){const t=r.extname(e).toUpperCase();if(i.some(e=>e.toUpperCase()===t))return e}else if(s(n))return e;const o=e;for(const a of i){e=o+a,n=void 0;try{n=yield t.stat(e)}catch(t){"ENOENT"!==t.code&&console.log(`Unexpected error attempting to determine if executable file exists '${e}': ${t}`)}if(n&&n.isFile()){if(t.IS_WINDOWS){try{const i=r.dirname(e),n=r.basename(e).toUpperCase();for(const s of yield t.readdir(i))if(n===s.toUpperCase()){e=r.join(i,s);break}}catch(t){console.log(`Unexpected error attempting to determine the actual case of the file '${e}': ${t}`)}return e}if(s(n))return e}}return""})}}),Ro=b(function(e,t){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())})};Object.defineProperty(t,"__esModule",{value:!0});const n=g.promisify(h.exec);function s(e){return i(this,void 0,void 0,function*(){if(Co.IS_WINDOWS){try{(yield Co.isDirectory(e,!0))?yield n(`rd /s /q "${e}"`):yield n(`del /f /a "${e}"`)}catch(e){if("ENOENT"!==e.code)throw e}try{yield Co.unlink(e)}catch(e){if("ENOENT"!==e.code)throw e}}else{let t=!1;try{t=yield Co.isDirectory(e)}catch(e){if("ENOENT"!==e.code)throw e;return}t?yield n(`rm -rf "${e}"`):yield Co.unlink(e)}})}function o(e){return i(this,void 0,void 0,function*(){yield Co.mkdirP(e)})}function a(e,t,r){return i(this,void 0,void 0,function*(){if((yield Co.lstat(e)).isSymbolicLink()){try{yield Co.lstat(t),yield Co.unlink(t)}catch(e){"EPERM"===e.code&&(yield Co.chmod(t,"0666"),yield Co.unlink(t))}const r=yield Co.readlink(e);yield Co.symlink(r,t,Co.IS_WINDOWS?"junction":null)}else(yield Co.exists(t))&&!r||(yield Co.copyFile(e,t))})}t.cp=function(e,t,n={}){return i(this,void 0,void 0,function*(){const{force:s,recursive:p}=function(e){return{force:null==e.force||e.force,recursive:Boolean(e.recursive)}}(n),u=(yield Co.exists(t))?yield Co.stat(t):null;if(u&&u.isFile()&&!s)return;const c=u&&u.isDirectory()?r.join(t,r.basename(e)):t;if(!(yield Co.exists(e)))throw new Error("no such file or directory: "+e);if((yield Co.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,r,n,s){return i(this,void 0,void 0,function*(){if(n>=255)return;n++,yield o(r);const i=yield Co.readdir(t);for(const o of i){const i=`${t}/${o}`,p=`${r}/${o}`;(yield Co.lstat(i)).isDirectory()?yield e(i,p,n,s):yield a(i,p,s)}yield Co.chmod(r,(yield Co.stat(t)).mode)})}(e,c,0,s)}else{if(""===r.relative(e,c))throw new Error(`'${c}' and '${e}' are the same file`);yield a(e,c,s)}})},t.mv=function(e,t,n={}){return i(this,void 0,void 0,function*(){if(yield Co.exists(t)){let i=!0;if((yield Co.isDirectory(t))&&(t=r.join(t,r.basename(e)),i=yield Co.exists(t)),i){if(null!=n.force&&!n.force)throw new Error("Destination already exists");yield s(t)}}yield o(r.dirname(t)),yield Co.rename(e,t)})},t.rmRF=s,t.mkdirP=o,t.which=function e(t,n){return i(this,void 0,void 0,function*(){if(!t)throw new Error("parameter 'tool' is required");if(n&&!(yield e(t,!1)))throw Co.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(Co.IS_WINDOWS&&process.env.PATHEXT)for(const t of process.env.PATHEXT.split(r.delimiter))t&&e.push(t);if(Co.isRooted(t))return(yield Co.tryGetExecutablePath(t,e))||"";if(t.includes("/")||Co.IS_WINDOWS&&t.includes("\\"))return"";const i=[];if(process.env.PATH)for(const e of process.env.PATH.split(r.delimiter))e&&i.push(e);for(const n of i){const i=yield Co.tryGetExecutablePath(n+r.sep+t,e);if(i)return i}return""}catch(e){throw new Error("which failed with message "+e.message)}})}}),xo=b(function(e,i){var n=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(i,"__esModule",{value:!0});const o=s(t),a=s(d),p=s(h),u=s(r),c=s(Ro),l=s(Co),g="win32"===process.platform;i.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 n(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)}})})}},i.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())}}}),Do=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(xo);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 Lo=function(e,t,r,i,n=!1){try{let o;function s(e){return o?e:Buffer.concat(a).toString("utf-8")}let a=[];const p=function(s,o){try{var p=Promise.resolve(Do.exec(e,[...t,...r?["--project",r]:[],n?"--debug":"--json"],{listeners:{stdout(e){a.push(e)}},env:Go({},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,Lo(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 Uo(e,t){try{var r=e()}catch(e){return t(e)}return r&&r.then?r.then(void 0,t):r}const Io=q.getInput("expires"),Fo=q.getInput("projectId"),No=q.getInput("firebaseServiceAccount",{required:!0}),$o=q.getInput("channelId"),Bo="live"===$o,Mo=process.env.GITHUB_TOKEN||q.getInput("repoToken"),zo=Mo?new Qn.GitHub(Mo):void 0;!function(){try{function e(){return function(e,i){try{var n=(q.startGroup("Setting up Firebase"),Promise.resolve(function(){try{return Promise.resolve(Do.exec("npm",["install","--no-save","--no-package-lock","firebase-tools"])).then(function(){const e="./node_modules/.bin/firebase";return Promise.resolve(Do.exec(e,["--version"])).then(function(){return e})})}catch(e){return Promise.reject(e)}}()).then(function(e){return q.endGroup(),q.startGroup("Setting up CLI credentials"),Promise.resolve(function(e){try{const t=Ao.fileSync({postfix:".json"});return p.writeSync(t.fd,e),Promise.resolve(t.name)}catch(e){return Promise.reject(e)}}(No)).then(function(i){let n;function s(s){if(n)return s;const o=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}($o,Qn.context);return q.startGroup("Deploying to Firebase preview channel "+o),Promise.resolve(function(e,t,r){try{const{projectId:i,channelId:n}=r;return Promise.resolve(Lo(e,["hosting:channel:deploy",n],i,t)).then(function(e){return JSON.parse(e)})}catch(e){return Promise.reject(e)}}(e,i,{projectId:Fo,expires:Io,channelId:o})).then(function(e){function i(){return Promise.resolve(r({details_url:o[0],conclusion:"success",output:{title:"Deploy preview succeeded",summary:a}})).then(function(){})}if(q.endGroup(),"error"===e.status)throw Error(e.error);const n=Object.values(e.result),s=n[0].expireTime,o=n.map(e=>e.url);q.setOutput("urls",o),q.setOutput("expire_time",s),q.setOutput("details_url",o[0]);const a=1===o.length?`[${o[0]}](${o[0]})`:o.map(e=>`- [${e}](${e})`).join("\n"),p=function(){var e;if(Mo&&t)return Promise.resolve(function(e,t,r){try{function i(){function r(){function t(){q.endGroup()}const r=function(){if(!o){const t=Uo(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=Uo(function(){return Promise.resolve(e.issues.updateComment(Go({},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=Go({},t.repo,{issue_number:t.issue.number}),s=Go({},n,{body:r+"\n\nfirebase-hosting-preview-action"});let o;q.startGroup("Updating PR comment");const a=Uo(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]*firebase-hosting-preview-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)}}(zo,Qn.context,`\nDeploy preview for ${null==(e=Qn.context.payload.pull_request)?void 0:e.head.sha.substring(0,7)}:\n\n${a}\n\n(expires ${new Date(s).toUTCString()})`.trim())).then(function(){})}();return p&&p.then?p.then(i):i()})}q.endGroup();const o=function(){if(Bo)return q.startGroup("Deploying to production site"),Promise.resolve(function(e,t,r){try{return Promise.resolve(Lo(e,["deploy","--only","hosting"],r,t)).then(function(e){return JSON.parse(e)})}catch(e){return Promise.reject(e)}}(e,i,Fo)).then(function(e){if("error"===e.status)throw Error(e.error);q.endGroup();const t=`https://${Fo}.web.app/`;return Promise.resolve(r({details_url:t,conclusion:"success",output:{title:"Production deploy succeeded",summary:`[${Fo}.web.app](${t})`}})).then(function(){n=1})})}();return o&&o.then?o.then(s):s(o)})}))}catch(e){return i(e)}return n&&n.then?n.then(void 0,i):n}(0,function(e){return q.setFailed(e.message),Promise.resolve(r({conclusion:"failure",output:{title:"Deploy preview failed",summary:"Error: "+e.message}})).then(function(){})})}const t=!!Qn.context.payload.pull_request;let r=e=>console.log(e);const i=function(){if(Mo&&t)return Promise.resolve(function(e,t){try{var r;return Promise.resolve(e.checks.create(Go({},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(Go({},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)}}(zo,Qn.context)).then(function(e){r=e})}();Promise.resolve(i&&i.then?i.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=e(require("path")),i=e(require("stream")),n=e(require("http")),s=e(require("url")),o=e(require("https")),a=e(require("zlib")),p=require("fs"),u=e(p);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,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,a(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 a(e).replace(/%/g,"%25").replace(/\r/g,"%0D").replace(/\n/g,"%0A")}(this.message),e}}function a(e){return null==e?"":"string"==typeof e||e instanceof String?e:JSON.stringify(e)}r.toCommandValue=a}),q=b(function(e,i){var n=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(i,"__esModule",{value:!0});const o=s(t),a=s(r);var p;function u(e){_.issue("error",e instanceof Error?e.toString():e)}function c(e){_.issue("group",e)}function d(){_.issue("endgroup")}!function(e){e[e.Success=0]="Success",e[e.Failure=1]="Failure"}(p=i.ExitCode||(i.ExitCode={})),i.exportVariable=function(e,t){const r=_.toCommandValue(t);process.env[e]=r,_.issueCommand("set-env",{name:e},r)},i.setSecret=function(e){_.issueCommand("add-mask",{},e)},i.addPath=function(e){_.issueCommand("add-path",{},e),process.env.PATH=`${e}${a.delimiter}${process.env.PATH}`},i.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()},i.setOutput=function(e,t){_.issueCommand("set-output",{name:e},t)},i.setCommandEcho=function(e){_.issue("echo",e?"on":"off")},i.setFailed=function(e){process.exitCode=p.Failure,u(e)},i.isDebug=function(){return"1"===process.env.RUNNER_DEBUG},i.debug=function(e){_.issueCommand("debug",{},e)},i.error=u,i.warning=function(e){_.issue("warning",e instanceof Error?e.toString():e)},i.info=function(e){process.stdout.write(e+o.EOL)},i.startGroup=c,i.endGroup=d,i.group=function(e,t){return n(this,void 0,void 0,function*(){let r;c(e);try{r=yield t()}finally{d()}return r})},i.saveState=function(e,t){_.issueCommand("save-state",{name:e},t)},i.getState=function(e){return process.env["STATE_"+e]||""}});function w(e){return"[object Object]"===Object.prototype.toString.call(e)}function v(e){var t,r;return!1!==w(e)&&(void 0===(t=e.constructor)||!1!==w(r=t.prototype)&&!1!==r.hasOwnProperty("isPrototypeOf"))}function E(){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 T(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=>{v(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 k=/\{[^}]+\}/g;function j(e){return e.replace(/^\W+|\W+$/g,"").split(/,/)}function O(e,t){return Object.keys(e).filter(e=>!t.includes(e)).reduce((t,r)=>(t[r]=e[r],t),{})}function P(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 S(e){return encodeURIComponent(e).replace(/[!'()*]/g,function(e){return"%"+e.charCodeAt(0).toString(16).toUpperCase()})}function A(e,t,r){return t="+"===e||"#"===e?P(t):S(t),r?S(r)+"="+t:t}function G(e){return null!=e}function C(e){return";"===e||"&"===e||"?"===e}function R(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(G(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(A(t,n,C(t)?r:""));else if("*"===i)Array.isArray(n)?n.filter(G).forEach(function(e){s.push(A(t,e,C(t)?r:""))}):Object.keys(n).forEach(function(e){G(n[e])&&s.push(A(t,n[e],e))});else{const e=[];Array.isArray(n)?n.filter(G).forEach(function(r){e.push(A(t,r))}):Object.keys(n).forEach(function(r){G(n[r])&&(e.push(S(r)),e.push(A(t,n[r].toString())))}),C(t)?s.push(S(r)+"="+e.join(",")):0!==e.length&&s.push(e.join(","))}else";"===t?G(n)&&s.push(S(r)):""!==n||"&"!==t&&"?"!==t?""===n&&s.push(""):s.push(S(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 P(n)})}function x(e){let t,r=e.method.toUpperCase(),i=(e.url||"/").replace(/:([a-z]\w+)/g,"{+$1}"),n=Object.assign({},e.headers),s=O(e,["method","baseUrl","url","headers","request","mediaType"]);const o=function(e){const t=e.match(k);return t?t.map(j).reduce((e,t)=>e.concat(t),[]):[]}(i);var a;i=(a=i,{expand:R.bind(null,a)}).expand(s),/^http/.test(i)||(i=e.baseUrl+i);const p=O(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 D(e,t,r){return x(T(e,t,r))}const L=function e(t,r){const i=T(t,r),n=D.bind(null,i);return Object.assign(n,{DEFAULTS:i,defaults:e.bind(null,i),merge:T.bind(null,i),parse:x})}(null,{method:"GET",baseUrl:"https://api.github.com",headers:{accept:"application/vnd.github.v3+json","user-agent":"octokit-endpoint.js/6.0.5 "+E()},mediaType:{format:"",previews:[]}}),U=i.Readable,I=Symbol("buffer"),F=Symbol("type");class N{constructor(){this[F]="";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]:{},n=r.size;let s=void 0===n?0:n;var o=r.timeout;let a=void 0===o?0:o;null==e?e=null:J(e)?e=Buffer.from(e.toString()):V(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 i||(e=Buffer.from(String(e)))),this[M]={body:e,disturbed:!1,error:null},this.size=s,this.timeout=a,e instanceof i&&e.on("error",function(e){const r="AbortError"===e.name?e:new $(`Invalid response body while trying to fetch ${t.url}: ${e.message}`,"system",e);t[M].error=r})}function W(){var e=this;if(this[M].disturbed)return H.Promise.reject(new TypeError("body used already for: "+this.url));if(this[M].disturbed=!0,this[M].error)return H.Promise.reject(this[M].error);let t=this.body;if(null===t)return H.Promise.resolve(Buffer.alloc(0));if(V(t)&&(t=t.stream()),Buffer.isBuffer(t))return H.Promise.resolve(t);if(!(t instanceof i))return H.Promise.resolve(Buffer.alloc(0));let r=[],n=0,s=!1;return new H.Promise(function(i,o){let a;e.timeout&&(a=setTimeout(function(){s=!0,o(new $(`Response timeout while trying to fetch ${e.url} (over ${e.timeout}ms)`,"body-timeout"))},e.timeout)),t.on("error",function(t){"AbortError"===t.name?(s=!0,o(t)):o(new $(`Invalid response body while trying to fetch ${e.url}: ${t.message}`,"system",t))}),t.on("data",function(t){if(!s&&null!==t){if(e.size&&n+t.length>e.size)return s=!0,void o(new $(`content size at ${e.url} over limit: ${e.size}`,"max-size"));n+=t.length,r.push(t)}}),t.on("end",function(){if(!s){clearTimeout(a);try{i(Buffer.concat(r,n))}catch(t){o(new $(`Could not create Buffer from response body for ${e.url}: ${t.message}`,"system",t))}}})})}function J(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 V(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 Q(e){let t,r,n=e.body;if(e.bodyUsed)throw new Error("cannot clone body after it is used");return n instanceof i&&"function"!=typeof n.getBoundary&&(t=new z,r=new z,n.pipe(t),n.pipe(r),e[M].body=t,n=r),n}function K(e){return null===e?null:"string"==typeof e?"text/plain;charset=UTF-8":J(e)?"application/x-www-form-urlencoded;charset=UTF-8":V(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 i?null:"text/plain;charset=UTF-8"}function Y(e){const t=e.body;return null===t?0:V(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}H.prototype={get body(){return this[M].body},get bodyUsed(){return this[M].disturbed},arrayBuffer(){return W.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 W.call(this).then(function(t){return Object.assign(new N([],{type:e.toLowerCase()}),{[I]:t})})},json(){var e=this;return W.call(this).then(function(t){try{return JSON.parse(t.toString())}catch(t){return H.Promise.reject(new $(`invalid json response body at ${e.url} reason: ${t.message}`,"invalid-json"))}})},text(){return W.call(this).then(function(e){return e.toString()})},buffer(){return W.call(this)},textConverted(){var e=this;return W.call(this).then(function(t){return function(e,t){if("function"!=typeof B)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[ie]=Object.create(null),e instanceof ne){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){ee(e=""+e);const t=re(this[ie],e);return void 0===t?null:this[ie][t].join(", ")}forEach(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:void 0,r=se(this),i=0;for(;i1&&void 0!==arguments[1]?arguments[1]:"key+value";const r=Object.keys(e[ie]).sort();return r.map("key"===t?function(e){return e.toLowerCase()}:"value"===t?function(t){return e[ie][t].join(", ")}:function(t){return[t.toLowerCase(),e[ie][t].join(", ")]})}ne.prototype.entries=ne.prototype[Symbol.iterator],Object.defineProperty(ne.prototype,Symbol.toStringTag,{value:"Headers",writable:!1,enumerable:!1,configurable:!0}),Object.defineProperties(ne.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 oe=Symbol("internal");function ae(e,t){const r=Object.create(pe);return r[oe]={target:e,kind:t,index:0},r}const pe=Object.setPrototypeOf({next(){if(!this||Object.getPrototypeOf(this)!==pe)throw new TypeError("Value of `this` is not a HeadersIterator");var e=this[oe];const t=e.index,r=se(e.target,e.kind);return t>=r.length?{value:void 0,done:!0}:(this[oe].index=t+1,{value:r[t],done:!1})}},Object.getPrototypeOf(Object.getPrototypeOf([][Symbol.iterator]())));function ue(e){const t=Object.assign({__proto__:null},e[ie]),r=re(e[ie],"Host");return void 0!==r&&(t[r]=t[r][0]),t}Object.defineProperty(pe,Symbol.toStringTag,{value:"HeadersIterator",writable:!1,enumerable:!1,configurable:!0});const ce=Symbol("Response internals"),de=n.STATUS_CODES;class le{constructor(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};H.call(this,e,t);const r=t.status||200,i=new ne(t.headers);if(null!=e&&!i.has("Content-Type")){const t=K(e);t&&i.append("Content-Type",t)}this[ce]={url:t.url,status:r,statusText:t.statusText||de[r],headers:i,counter:t.counter}}get url(){return this[ce].url||""}get status(){return this[ce].status}get ok(){return this[ce].status>=200&&this[ce].status<300}get redirected(){return this[ce].counter>0}get statusText(){return this[ce].statusText}get headers(){return this[ce].headers}clone(){return new le(Q(this),{url:this.url,status:this.status,statusText:this.statusText,headers:this.headers,ok:this.ok,redirected:this.redirected})}}H.mixIn(le.prototype),Object.defineProperties(le.prototype,{url:{enumerable:!0},status:{enumerable:!0},ok:{enumerable:!0},redirected:{enumerable:!0},statusText:{enumerable:!0},headers:{enumerable:!0},clone:{enumerable:!0}}),Object.defineProperty(le.prototype,Symbol.toStringTag,{value:"Response",writable:!1,enumerable:!1,configurable:!0});const ge=Symbol("Request internals"),me=s.parse,he=s.format,ye="destroy"in i.Readable.prototype;function fe(e){return"object"==typeof e&&"object"==typeof e[ge]}class be{constructor(e){let t,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};fe(e)?t=me(e.url):(t=me(e&&e.href?e.href:""+e),e={});let i=r.method||e.method||"GET";if(i=i.toUpperCase(),(null!=r.body||fe(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:fe(e)&&null!==e.body?Q(e):null;H.call(this,n,{timeout:r.timeout||e.timeout||0,size:r.size||e.size||0});const s=new ne(r.headers||e.headers||{});if(null!=n&&!s.has("Content-Type")){const e=K(n);e&&s.append("Content-Type",e)}let o=fe(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[ge]={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[ge].method}get url(){return he(this[ge].parsedURL)}get headers(){return this[ge].headers}get redirect(){return this[ge].redirect}get signal(){return this[ge].signal}clone(){return new be(this)}}function _e(e){Error.call(this,e),this.type="aborted",this.message=e,Error.captureStackTrace(this,this.constructor)}H.mixIn(be.prototype),Object.defineProperty(be.prototype,Symbol.toStringTag,{value:"Request",writable:!1,enumerable:!1,configurable:!0}),Object.defineProperties(be.prototype,{method:{enumerable:!0},url:{enumerable:!0},headers:{enumerable:!0},redirect:{enumerable:!0},clone:{enumerable:!0},signal:{enumerable:!0}}),(_e.prototype=Object.create(Error.prototype)).constructor=_e,_e.prototype.name="AbortError";const qe=i.PassThrough,we=s.resolve;function ve(e,t){if(!ve.Promise)throw new Error("native promise missing, set fetch.Promise to your favorite alternative");return H.Promise=ve.Promise,new ve.Promise(function(r,s){const p=new be(e,t),u=function(e){const t=e[ge].parsedURL,r=new ne(e[ge].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 i.Readable&&!ye)throw new Error("Cancellation of streamed requests with AbortSignal is not supported in node < 8");let n=null;if(null==e.body&&/^(POST|PUT)$/i.test(e.method)&&(n="0"),null!=e.body){const t=Y(e);"number"==typeof t&&(n=String(t))}n&&r.set("Content-Length",n),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 s=e.agent;return"function"==typeof s&&(s=s(t)),r.has("Connection")||s||r.set("Connection","close"),Object.assign({},t,{method:e.method,headers:ue(r),agent:s})}(p),c=("https:"===u.protocol?o:n).request,d=p.signal;let l=null;const g=function(){let e=new _e("The user aborted a request.");s(e),p.body&&p.body instanceof i.Readable&&p.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(u);let y;function f(){h.abort(),d&&d.removeEventListener("abort",m),clearTimeout(y)}d&&d.addEventListener("abort",m),p.timeout&&h.once("socket",function(e){y=setTimeout(function(){s(new $("network timeout at: "+p.url,"request-timeout")),f()},p.timeout)}),h.on("error",function(e){s(new $(`request to ${p.url} failed, reason: ${e.message}`,"system",e)),f()}),h.on("response",function(e){clearTimeout(y);const t=function(e){const t=new ne;for(const r of Object.keys(e))if(!X.test(r))if(Array.isArray(e[r]))for(const i of e[r])Z.test(i)||(void 0===t[ie][r]?t[ie][r]=[i]:t[ie][r].push(i));else Z.test(e[r])||(t[ie][r]=[e[r]]);return t}(e.headers);if(ve.isRedirect(e.statusCode)){const i=t.get("Location"),n=null===i?null:we(p.url,i);switch(p.redirect){case"error":return s(new $("uri requested responds with a redirect, redirect mode is set to error: "+p.url,"no-redirect")),void f();case"manual":if(null!==n)try{t.set("Location",n)}catch(e){s(e)}break;case"follow":if(null===n)break;if(p.counter>=p.follow)return s(new $("maximum redirect reached at: "+p.url,"max-redirect")),void f();const i={headers:new ne(p.headers),follow:p.follow,counter:p.counter+1,agent:p.agent,compress:p.compress,method:p.method,body:p.body,signal:p.signal,timeout:p.timeout,size:p.size};return 303!==e.statusCode&&p.body&&null===Y(p)?(s(new $("Cannot follow redirect with body being a readable stream","unsupported-redirect")),void f()):(303!==e.statusCode&&(301!==e.statusCode&&302!==e.statusCode||"POST"!==p.method)||(i.method="GET",i.body=void 0,i.headers.delete("content-length")),r(ve(new be(n,i))),void f())}}e.once("end",function(){d&&d.removeEventListener("abort",m)});let i=e.pipe(new qe);const n={url:p.url,status:e.statusCode,statusText:e.statusMessage,headers:t,size:p.size,timeout:p.timeout,counter:p.counter},o=t.get("Content-Encoding");if(!p.compress||"HEAD"===p.method||null===o||204===e.statusCode||304===e.statusCode)return l=new le(i,n),void r(l);if("gzip"==o||"x-gzip"==o)return i=i.pipe(a.createGunzip({flush:a.Z_SYNC_FLUSH,finishFlush:a.Z_SYNC_FLUSH})),l=new le(i,n),void r(l);if("deflate"!=o&&"x-deflate"!=o){if("br"==o&&"function"==typeof a.createBrotliDecompress)return i=i.pipe(a.createBrotliDecompress()),l=new le(i,n),void r(l);l=new le(i,n),r(l)}else e.pipe(new qe).once("data",function(e){i=i.pipe(8==(15&e[0])?a.createInflate():a.createInflateRaw()),l=new le(i,n),r(l)})}),function(e,t){const r=t.body;null===r?e.end():V(r)?r.stream().pipe(e):Buffer.isBuffer(r)?(e.write(r),e.end()):r.pipe(e)}(h,p)})}ve.isRedirect=function(e){return 301===e||302===e||303===e||307===e||308===e},ve.Promise=global.Promise;class Ee extends Error{constructor(e){super(e),Error.captureStackTrace&&Error.captureStackTrace(this,this.constructor),this.name="Deprecation"}}var Te={__proto__:null,Deprecation:Ee},ke=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 Ge 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:()=>(Ae(new Ee("[@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 Ce(e){(v(e.body)||Array.isArray(e.body))&&(e.body=JSON.stringify(e.body));let t,r,i={};return(e.request&&e.request.fetch||ve)(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 Ge(n.statusText,t,{headers:i,request:e})}if(304===t)throw new Ge("Not modified",t,{headers:i,request:e});if(t>=400)return n.text().then(r=>{const n=new Ge(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 Ge)throw t;throw new Ge(t.message,500,{headers:i,request:e})})}const Re=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 Ce(i.parse(n));const s=(e,t)=>Ce(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)})}(L,{headers:{"user-agent":"octokit-request.js/5.4.7 "+E()}});var xe={__proto__:null,request:Re};class De 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 Le=["method","baseUrl","url","headers","request","query","mediaType"],Ue=/\/api\/v3\/?$/;function Ie(e,t){const r=e.defaults(t);return Object.assign((e,t)=>function(e,t,r){r=r="string"==typeof t?Object.assign({query:t},r):t;const i=Object.keys(r).reduce((e,t)=>Le.includes(t)?(e[t]=r[t],e):(e.variables||(e.variables={}),e.variables[t]=r[t],e),{}),n=r.baseUrl||e.endpoint.DEFAULTS.baseUrl;return Ue.test(n)&&(i.url=n.replace(Ue,"/api/graphql")),e(i).then(e=>{if(e.data.errors){const t={};for(const r of Object.keys(e.headers))t[r]=e.headers[r];throw new De(i,{headers:t,data:e.data})}return e.data.data})}(r,e,t),{defaults:Ie.bind(null,r),endpoint:Re.endpoint})}var Fe={__proto__:null,graphql:Ie(Re,{headers:{"user-agent":"octokit-graphql.js/4.5.5 "+E()},method:"POST",url:"/graphql"}),withCustomRequest:function(e){return Ie(e,{method:"POST",url:"/graphql"})}};function Ne(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})})}Ne.VERSION="1.0.0";var $e={__proto__:null,requestLog:Ne},Be={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 Me(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=ze.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 Ee("[@octokit/rest] "+n.deprecated)),e[r][i]=o,o.apply(null,arguments)},o):o})})}function ze(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 Ee(`[@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 He(e){return e.registerEndpoints=Me.bind(null,e),Me(e,Be),[["gitdata","git"],["authorization","oauthAuthorizations"],["pullRequests","pulls"]].forEach(([t,r])=>{Object.defineProperty(e,t,{get:()=>(e.log.warn(new Ee(`[@octokit/plugin-rest-endpoint-methods] "octokit.${t}.*" methods are deprecated, use "octokit.${r}.*" instead`)),e[r])})}),{}}He.VERSION="2.4.0";var We={__proto__:null,restEndpointMethods:He},Je=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)})},Ve=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})},Qe=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)}},Ke=Function.bind,Ye=Ke.bind(Ke);function Xe(e,t,r){var i=Ye(Qe,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]=Ye(Ve,null).apply(null,n)})}function Ze(){var e={registry:{}},t=Je.bind(null,e);return Xe(t,e),t}var et=!1;function tt(){return et||(console.warn('[before-after-hook]: "Hook()" repurposing warning, use "Hook.Collection()". Read more: https://git.io/upgrade-before-after-hook-to-1.4'),et=!0),Ze()}tt.Singular=function(){var e={registry:{}},t=Je.bind(null,e,"h");return Xe(t,e,"h"),t}.bind(),tt.Collection=Ze.bind();var rt=tt,it=tt.Singular,nt=tt.Collection;rt.Hook=tt,rt.Singular=it,rt.Collection=nt;var st,ot={__proto__:null,getUserAgent:function(){try{return navigator.userAgent}catch(e){return""}}},at="@octokit/rest@^16.43.1",pt="@octokit/rest@16.43.2",ut="sha512-ngDBevLbBTFfrHZeiS7SAMAZ6ssuVmXuya+F/7RaVvlysgGa1JKJkKWY+jV6TCJYcW0OALfJ7nTIGXcBXzycfQ==",ct={"@types/node":"14.6.4",deprecation:"2.3.1",once:"1.4.0","os-name":"3.1.0"},dt={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"},lt=["/@actions/github"],gt="https://registry.npmjs.org/@octokit/rest/-/rest-16.43.2.tgz",mt="c53426f1e1d1044dee967023e3279c50993dd91b",ht="@octokit/rest@^16.43.1",yt="/Users/jhuleatt/git/action-hosting-deploy/node_modules/@actions/github",ft={name:"Gregor Martynus",url:"https://github.com/gr2m"},bt={url:"https://github.com/octokit/rest.js/issues"},_t=[{path:"./dist/octokit-rest.min.js.gz",maxSize:"33 kB"}],qt=[{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"}],wt={"@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"},vt="GitHub REST API client for Node.js",Et={"@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"},Tt=["index.js","index.d.ts","lib","plugins"],kt="https://github.com/octokit/rest.js#readme",jt=["octokit","github","rest","api-client"],Ot="@octokit/rest",Pt={ignore:["test"]},St={access:"public"},At={publish:["@semantic-release/npm",{path:"@semantic-release/github",assets:["dist/*","!dist/*.map.gz"]}]},Gt={type:"git",url:"git+https://github.com/octokit/rest.js.git"},Ct={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"},Rt=(st={__proto__:null,_from:at,_id:pt,_inBundle:!1,_integrity:ut,_location:"/@octokit/rest",_phantomChildren:ct,_requested:dt,_requiredBy:lt,_resolved:gt,_shasum:mt,_spec:ht,_where:yt,author:ft,bugs:bt,bundleDependencies:!1,bundlesize:_t,contributors:qt,dependencies:wt,deprecated:!1,description:vt,devDependencies:Et,files:Tt,homepage:kt,keywords:jt,license:"MIT",name:Ot,nyc:Pt,publishConfig:St,release:At,repository:Gt,scripts:Ct,types:"index.d.ts",version:"16.43.2",default:{_from:at,_id:pt,_inBundle:!1,_integrity:ut,_location:"/@octokit/rest",_phantomChildren:ct,_requested:dt,_requiredBy:lt,_resolved:gt,_shasum:mt,_spec:ht,_where:yt,author:ft,bugs:bt,bundleDependencies:!1,bundlesize:_t,contributors:qt,dependencies:wt,deprecated:!1,description:vt,devDependencies:Et,files:Tt,homepage:kt,keywords:jt,license:"MIT",name:Ot,nyc:Pt,publishConfig:St,release:At,repository:Gt,scripts:Ct,types:"index.d.ts",version:"16.43.2"}})&&st.default||st,xt=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&&(Ut(t,new Dt("[@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&&(It(t,new Dt("[@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&&Ft(t,new Dt("[@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/${Rt.version} ${Lt()}`;return i.headers["user-agent"]=[n,s].filter(Boolean).join(" "),i.request.hook=r.bind(null,"request"),i};const{Deprecation:Dt}=Te,{getUserAgent:Lt}=ot,Ut=je((e,t)=>e.warn(t)),It=je((e,t)=>e.warn(t)),Ft=je((e,t)=>e.warn(t));var Nt=function(e,t){t=t||{};const r=new rt.Collection,i=Object.assign({debug:()=>{},info:()=>{},warn:console.warn,error:console.error},t&&t.log),n={hook:r,log:i,request:$t.defaults(xt(t,i,r))};return e.forEach(e=>e(n,t)),n};const{request:$t}=xe;var Bt=function(e,t){return Mt(e.includes(t)?e:e.concat(t))},Mt=function(e){const t=Nt.bind(null,e||[]);return t.plugin=Bt.bind(null,e||[]),t},zt=Mt();async function Ht(e){const t=3===e.split(/\./).length?"app":/^v\d+\./.test(e)?"installation":"oauth";return{type:"token",token:e,tokenType:t}}async function Wt(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 Jt={__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(Ht.bind(null,e),{hook:Wt.bind(null,e)})}},Vt=function(e){return new Buffer(e).toString("base64")},Qt=function(e){if(/^(basic|bearer|token) /i.test(e))return e;try{if(Kt.test(Buffer.from(e,"base64").toString("binary")))return"basic "+e}catch(e){}return 3===e.split(/\./).length?"bearer "+e:"token "+e};const Kt=/^[\w-]+:/;var Yt=function(e,t){if("string"!=typeof e.auth){if(e.auth.username){const r=Vt(`${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=Vt(`${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=Qt(e)})}t.headers.authorization=Qt(e.auth)};const Xt=je(e=>console.warn(e));class Zt 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:()=>(Xt(new Ee("[@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 er={__proto__:null,RequestError:Zt},tr=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 rr("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 rr("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:rr}=er,{createTokenAuth:ir}=Jt,{Deprecation:nr}=Te,sr=je((e,t)=>e.warn(t)),or=je((e,t)=>e.warn(t));var ar=function(e,t){if(ur(e.octokit.log,new pr('[@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:pr}=Te,ur=je((e,t)=>e.warn(t));var cr=/^\[object .+?Constructor\]$/,dr="object"==typeof self&&self&&self.Object===Object&&self,lr="object"==typeof y&&y&&y.Object===Object&&y||dr||Function("return this")();function gr(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 mr(e){return e!=e}function hr(e,t){return e.has(t)}function yr(e){var t=-1,r=Array(e.size);return e.forEach(function(e){r[++t]=e}),r}var fr,br=Array.prototype,_r=Function.prototype,qr=Object.prototype,wr=lr["__core-js_shared__"],vr=(fr=/[^.]+$/.exec(wr&&wr.keys&&wr.keys.IE_PROTO||""))?"Symbol(src)_1."+fr:"",Er=_r.toString,Tr=qr.hasOwnProperty,kr=qr.toString,jr=RegExp("^"+Er.call(Tr).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),Or=br.splice,Pr=Ir(lr,"Map"),Sr=Ir(lr,"Set"),Ar=Ir(Object,"create");function Gr(e){var t=-1,r=e?e.length:0;for(this.clear();++t-1},Cr.prototype.set=function(e,t){var r=this.__data__,i=Dr(r,e);return i<0?r.push([e,t]):r[i][1]=t,this},Rr.prototype.clear=function(){this.__data__={hash:new Gr,map:new(Pr||Cr),string:new Gr}},Rr.prototype.delete=function(e){return Ur(this,e).delete(e)},Rr.prototype.get=function(e){return Ur(this,e).get(e)},Rr.prototype.has=function(e){return Ur(this,e).has(e)},Rr.prototype.set=function(e,t){return Ur(this,e).set(e,t),this},xr.prototype.add=xr.prototype.push=function(e){return this.__data__.set(e,"__lodash_hash_undefined__"),this},xr.prototype.has=function(e){return this.__data__.has(e)};var Lr=Sr&&1/yr(new Sr([,-0]))[1]==1/0?function(e){return new Sr(e)}:function(){};function Ur(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 Ir(e,t){var r=function(e,t){return null==e?void 0:e[t]}(e,t);return function(e){return!(!Fr(e)||(t=e,vr&&vr in t))&&(function(e){var t=Fr(e)?kr.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)?jr:cr).test(function(e){if(null!=e){try{return Er.call(e)}catch(e){}try{return e+""}catch(e){}}return""}(e));var t}(r)?r:void 0}function Fr(e){var t=typeof e;return!!e&&("object"==t||"function"==t)}var Nr=function(e,t){if(!e.auth.type)return;if("basic"===e.auth.type){const r=Vt(`${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=gr,s=e.length,o=!0,a=[],p=a;if(s>=200){var u=Lr(e);if(u)return yr(u);o=!1,n=hr,p=new xr}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:Br}=er,{Deprecation:Mr}=Te,zr=je((e,t)=>e.warn(t)),Hr=[/^\/search\//,/^\/repos\/[^/]+\/[^/]+\/commits\/[^/]+\/(check-runs|check-suites)([^/]|$)/,/^\/installation\/repositories([^/]|$)/,/^\/user\/installations([^/]|$)/,/^\/repos\/[^/]+\/[^/]+\/actions\/secrets([^/]|$)/,/^\/repos\/[^/]+\/[^/]+\/actions\/workflows(\/[^/]+\/runs)?([^/]|$)/,/^\/repos\/[^/]+\/[^/]+\/actions\/runs(\/[^/]+\/(artifacts|jobs))?([^/]|$)/];function Wr(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(!Hr.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 Jr(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,[],Wr(e,t,r)[Symbol.asyncIterator](),i)}function Vr(e){return{paginate:Object.assign(Jr.bind(null,e),{iterator:Wr.bind(null,e)})}}Vr.VERSION="1.1.2";var Qr={__proto__:null,paginateRest:Vr};const{paginateRest:Kr}=Qr;var Yr=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,Xr=/^\w*$/,Zr=/^\./,ei=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,ti=/\\(\\)?/g,ri=/^\[object .+?Constructor\]$/,ii="object"==typeof self&&self&&self.Object===Object&&self,ni="object"==typeof y&&y&&y.Object===Object&&y||ii||Function("return this")(),si=Array.prototype,oi=Function.prototype,ai=Object.prototype,pi=ni["__core-js_shared__"],ui=function(){var e=/[^.]+$/.exec(pi&&pi.keys&&pi.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}(),ci=oi.toString,di=ai.hasOwnProperty,li=ai.toString,gi=RegExp("^"+ci.call(di).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),mi=ni.Symbol,hi=si.splice,yi=ki(ni,"Map"),fi=ki(Object,"create"),bi=mi?mi.prototype:void 0,_i=bi?bi.toString:void 0;function qi(e){var t=-1,r=e?e.length:0;for(this.clear();++t-1},wi.prototype.set=function(e,t){var r=this.__data__,i=Ei(r,e);return i<0?r.push([e,t]):r[i][1]=t,this},vi.prototype.clear=function(){this.__data__={hash:new qi,map:new(yi||wi),string:new qi}},vi.prototype.delete=function(e){return Ti(this,e).delete(e)},vi.prototype.get=function(e){return Ti(this,e).get(e)},vi.prototype.has=function(e){return Ti(this,e).has(e)},vi.prototype.set=function(e,t){return Ti(this,e).set(e,t),this};var ji=Pi(function(e){var t;e=null==(t=e)?"":function(e){if("string"==typeof e)return e;if(Gi(e))return _i?_i.call(e):"";var t=e+"";return"0"==t&&1/e==-1/0?"-0":t}(t);var r=[];return Zr.test(e)&&r.push(""),e.replace(ei,function(e,t,i,n){r.push(i?n.replace(ti,"$1"):t||e)}),r});function Oi(e){if("string"==typeof e||Gi(e))return e;var t=e+"";return"0"==t&&1/e==-1/0?"-0":t}function Pi(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(Pi.Cache||vi),r}Pi.Cache=vi;var Si=Array.isArray;function Ai(e){var t=typeof e;return!!e&&("object"==t||"function"==t)}function Gi(e){return"symbol"==typeof e||function(e){return!!e&&"object"==typeof e}(e)&&"[object Symbol]"==li.call(e)}var Ci=function(e,t,r){var i=null==e?void 0:function(e,t){for(var r,i=0,n=(t=function(e,t){if(Si(e))return!1;var r=typeof e;return!("number"!=r&&"symbol"!=r&&"boolean"!=r&&null!=e&&!Gi(e))||Xr.test(e)||!Yr.test(e)||null!=t&&e in Object(t)}(t,e)?[t]:Si(r=t)?r:ji(r)).length;null!=e&&i-1&&e%1==0&&e-1},sn.prototype.set=function(e,t){var r=this.__data__,i=pn(r,e);return i<0?r.push([e,t]):r[i][1]=t,this},on.prototype.clear=function(){this.__data__={hash:new nn,map:new(Zi||sn),string:new nn}},on.prototype.delete=function(e){return un(this,e).delete(e)},on.prototype.get=function(e){return un(this,e).get(e)},on.prototype.has=function(e){return un(this,e).has(e)},on.prototype.set=function(e,t){return un(this,e).set(e,t),this};var ln=mn(function(e){var t;e=null==(t=e)?"":function(e){if("string"==typeof e)return e;if(bn(e))return rn?rn.call(e):"";var t=e+"";return"0"==t&&1/e==-1/0?"-0":t}(t);var r=[];return Di.test(e)&&r.push(""),e.replace(Li,function(e,t,i,n){r.push(i?n.replace(Ui,"$1"):t||e)}),r});function gn(e){if("string"==typeof e||bn(e))return e;var t=e+"";return"0"==t&&1/e==-1/0?"-0":t}function mn(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(mn.Cache||on),r}function hn(e,t){return e===t||e!=e&&t!=t}mn.Cache=on;var yn=Array.isArray;function fn(e){var t=typeof e;return!!e&&("object"==t||"function"==t)}function bn(e){return"symbol"==typeof e||function(e){return!!e&&"object"==typeof e}(e)&&"[object Symbol]"==Qi.call(e)}var _n=function(e,t){if(!t.request.validate)return;const{validate:r}=t.request;return Object.keys(r).forEach(e=>{const i=Ci(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=Ci(t,s),a="headers"===s||"object"==typeof o&&null!==o),(p?(Ci(t,s)||[]).map(t=>t[e.split(/\./).pop()]):[Ci(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 qn(`'${c}' cannot be null`,400,{request:t});if(i.required&&!o)throw new qn(`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 qn(`Invalid value for parameter '${c}': ${JSON.stringify(e)} is NaN`,400,{request:t})}if(i.enum&&-1===i.enum.indexOf(String(r)))throw new qn(`Invalid value for parameter '${c}': ${JSON.stringify(r)}`,400,{request:t});if(i.validation&&!new RegExp(i.validation).test(r))throw new qn(`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 qn(`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(!fn(e))return e;for(var n=-1,s=(t=function(e,t){if(yn(e))return!1;var r=typeof e;return!("number"!=r&&"symbol"!=r&&"boolean"!=r&&null!=e&&!bn(e))||xi.test(e)||!Ri.test(e)||null!=t&&e in Object(t)}(t,e)?[t]:function(e){return yn(e)?e:ln(e)}(t)).length,o=s-1,a=e;null!=a&&++n]*)>;\s*rel="([\w]*)"/g,(e,r,i)=>{t[i]=r}),t},Tn=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}},kn=function(e,t,r,i){wn(`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=En(t)[r];if(!n){const e=new Tn(`No ${r} page found`,404);return Promise.reject(e)}const s={url:n,headers:jn(t,i)};return e.request(s)};function jn(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 On=function(e,t,r){return kn(e,t,"first",r)},Pn=function(e,t,r){return kn(e,t,"last",r)},Sn=function(e,t,r){return kn(e,t,"next",r)},An=function(e,t,r){return kn(e,t,"prev",r)},Gn=function(e){return wn("octokit.hasFirstPage() – You can use octokit.paginate or async iterators instead: https://github.com/octokit/rest.js#pagination."),En(e).first},Cn=function(e){return wn("octokit.hasLastPage() – You can use octokit.paginate or async iterators instead: https://github.com/octokit/rest.js#pagination."),En(e).last},Rn=function(e){return wn("octokit.hasNextPage() – You can use octokit.paginate or async iterators instead: https://github.com/octokit/rest.js#pagination."),En(e).next},xn=function(e){return wn("octokit.hasPreviousPage() – You can use octokit.paginate or async iterators instead: https://github.com/octokit/rest.js#pagination."),En(e).prev};const{requestLog:Dn}=$e,{restEndpointMethods:Ln}=We,Un=zt.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(Qt(t.auth));if("string"==typeof t.auth&&!r){const r=ir(t.auth);return e.hook.wrap("request",r.hook),void(e.auth=r)}const[i,n]=r?[sr,'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)']:[or,'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 nr("[@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",Yt.bind(null,s)),e.hook.error("request",tr.bind(null,s))},function(e,t){if(t.auth)return void(e.authenticate=()=>{zr(e.log,new Mr('[@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=ar.bind(null,r),e.hook.before("request",Nr.bind(null,r)),e.hook.error("request",$r.bind(null,r))},Dn,function(e){Object.assign(e,Kr(e))},Ln,function(e){e.hook.before("request",_n.bind(null,e))},function(e){e.getFirstPage=On.bind(null,e),e.getLastPage=Pn.bind(null,e),e.getNextPage=Sn.bind(null,e),e.getPreviousPage=An.bind(null,e),e.hasFirstPage=Gn,e.hasLastPage=Cn,e.hasNextPage=Rn,e.hasPreviousPage=xn}]),In=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 Un(e)},{Octokit:Un});Object.keys(Un).forEach(e=>{Un.hasOwnProperty(e)&&(In[e]=Un[e])});var Fn,Nn=In,$n=b(function(e,r){Object.defineProperty(r,"__esModule",{value:!0}),r.Context=class{constructor(){if(this.payload={},process.env.GITHUB_EVENT_PATH)if(u.existsSync(process.env.GITHUB_EVENT_PATH))this.payload=JSON.parse(u.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'")}}}),Bn=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=s.parse(i))),t},t.checkBypass=r});function Mn(e){var t=this;t.options=e||{},t.proxyOptions=t.options.proxy||{},t.maxSockets=t.options.maxSockets||n.Agent.defaultMaxSockets,t.requests=[],t.sockets=[],t.on("free",function(e,r,i,n){for(var s=Hn(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)})},Mn.prototype.createSocket=function(e,t){var r=this,i={};r.sockets.push(i);var n=Wn({},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")),Fn("making CONNECT request");var s=r.request(n);function o(n,o,a){var p;return s.removeAllListeners(),o.removeAllListeners(),200!==n.statusCode?(Fn("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?(Fn("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)):(Fn("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(),Fn("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()},Mn.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 Jn={httpOverHttp:function(e){var t=new Mn(e);return t.request=n.request,t},httpsOverHttp:function(e){var t=new Mn(e);return t.request=n.request,t.createSocket=zn,t.defaultPort=443,t},httpOverHttps:function(e){var t=new Mn(e);return t.request=o.request,t},httpsOverHttps:function(e){var t=new Mn(e);return t.request=o.request,t.createSocket=zn,t.defaultPort=443,t},debug:Fn=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(){}},Vn=b(function(e,t){let r;var i,a,p;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"}(a=t.Headers||(t.Headers={})),function(e){e.ApplicationJson="application/json"}(p=t.MediaTypes||(t.MediaTypes={})),t.getProxyUrl=function(e){let t=Bn.getProxyUrl(s.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:"===s.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[a.Accept]=this._getExistingOrDefaultHeader(t,a.Accept,p.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[a.Accept]=this._getExistingOrDefaultHeader(r,a.Accept,p.ApplicationJson),r[a.ContentType]=this._getExistingOrDefaultHeader(r,a.ContentType,p.ApplicationJson);let n=await this.post(e,i,r);return this._processResponse(n,this.requestOptions)}async putJson(e,t,r={}){let i=JSON.stringify(t,null,2);r[a.Accept]=this._getExistingOrDefaultHeader(r,a.Accept,p.ApplicationJson),r[a.ContentType]=this._getExistingOrDefaultHeader(r,a.ContentType,p.ApplicationJson);let n=await this.put(e,i,r);return this._processResponse(n,this.requestOptions)}async patchJson(e,t,r={}){let i=JSON.stringify(t,null,2);r[a.Accept]=this._getExistingOrDefaultHeader(r,a.Accept,p.ApplicationJson),r[a.ContentType]=this._getExistingOrDefaultHeader(r,a.ContentType,p.ApplicationJson);let n=await this.patch(e,i,r);return this._processResponse(n,this.requestOptions)}async request(e,t,r,n){if(this._disposed)throw new Error("Client has already been disposed.");let o,a=s.parse(t),p=this._prepareRequest(e,a,n),l=this._allowRetries&&-1!=d.indexOf(e)?this._maxRetries+1:1,g=0;for(;g0;){const i=o.message.headers.location;if(!i)break;let u=s.parse(i);if("https:"==a.protocol&&a.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 o.readBody(),u.hostname!==a.hostname)for(let e in n)"authorization"===e.toLowerCase()&&delete n[e];p=this._prepareRequest(e,u,n),o=await this.requestRaw(p,r),t--}if(-1==c.indexOf(o.message.statusCode))return o;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=s.parse(e);return this._getAgent(t)}_prepareRequest(e,t,r){const i={};i.parsedUrl=t;const s="https:"===i.parsedUrl.protocol;i.httpModule=s?o:n;const a=s?443:80;return i.options={},i.options.host=i.parsedUrl.hostname,i.options.port=i.parsedUrl.port?parseInt(i.parsedUrl.port):a,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=Bn.getProxyUrl(e),s=i&&i.hostname;if(this._keepAlive&&s&&(t=this._proxyAgent),this._keepAlive&&!s&&(t=this._agent),t)return t;const a="https:"===e.protocol;let p=100;if(this.requestOptions&&(p=this.requestOptions.maxSockets||n.globalAgent.maxSockets),s){let e;r||(r=Jn);const n="https:"===i.protocol;e=a?n?r.httpsOverHttps:r.httpsOverHttp:n?r.httpOverHttps:r.httpOverHttp,t=e({maxSockets:p,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:p};t=a?new o.Agent(e):new n.Agent(e),this._agent=t}return t||(t=a?o.globalAgent:n.globalAgent),a&&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}),Qn=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($n),n=r(Vn);Nn.Octokit.prototype=new Nn.Octokit,t.context=new i.Context;class s extends Nn.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}),Fe.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 Kn(){return(Kn=Object.assign||function(e){for(var t=1;t=e.length)return t&&(t[p]=e),i(null,e);Zn.lastIndex=n;var r=Zn.exec(e);return a=s,s+=r[0],n=Zn.lastIndex,d[o=a+r[1]]||t&&t[o]===o?process.nextTick(g):t&&Object.prototype.hasOwnProperty.call(t,o)?y(t[o]):u.lstat(o,m)}function m(e,r){if(e)return i(e);if(!r.isSymbolicLink())return d[o]=!0,t&&(t[o]=o),process.nextTick(g);if(!Yn){var n=r.dev.toString(32)+":"+r.ino.toString(32);if(c.hasOwnProperty(n))return h(null,c[n],o)}u.stat(o,function(e){if(e)return i(e);u.readlink(o,function(e,t){Yn||(c[n]=t),h(e,t)})})}function h(e,n,s){if(e)return i(e);var o=r.resolve(a,n);t&&(t[s]=o),y(o)}function y(t){e=r.resolve(t,e.slice(n)),l()}l()}(e,t,i):i(n,s)})}function ps(e,t){if(ss)return is(e,t);try{return is(e,t)}catch(i){if(os(i))return function(e,t){if(e=r.resolve(e),t&&Object.prototype.hasOwnProperty.call(t,e))return t[e];var i,n,s,o,a=e,p={},c={};function d(){var t=es.exec(e);i=t[0].length,n=t[0],s=t[0],o="",Yn&&!c[s]&&(u.lstatSync(s),c[s]=!0)}for(d();i=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}ds.range=gs;var ms="\0SLASH"+Math.random()+"\0",hs="\0OPEN"+Math.random()+"\0",ys="\0CLOSE"+Math.random()+"\0",fs="\0COMMA"+Math.random()+"\0",bs="\0PERIOD"+Math.random()+"\0";function _s(e){return parseInt(e,10)==e?parseInt(e,10):e.charCodeAt(0)}function qs(e){return e.split(ms).join("\\").split(hs).join("{").split(ys).join("}").split(fs).join(",").split(bs).join(".")}function ws(e){return"{"+e+"}"}function vs(e){return/^-?0\d/.test(e)}function Es(e,t){return e<=t}function Ts(e,t){return e>=t}var ks=Cs;Cs.Minimatch=Rs;var js={sep:"/"};try{js=r}catch(e){}var Os=Cs.GLOBSTAR=Rs.GLOBSTAR={},Ps={"!":{open:"(?:(?!(?:",close:"))[^/]*?)"},"?":{open:"(?:",close:")?"},"+":{open:"(?:",close:")+"},"*":{open:"(?:",close:")*"},"@":{open:"(?:",close:")"}},Ss="().*{}+?[]^$\\!".split("").reduce(function(e,t){return e[t]=!0,e},{}),As=/\/+/;function Gs(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 Cs(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 Rs(t,r).match(e))}function Rs(e,t){if(!(this instanceof Rs))return new Rs(e,t);if("string"!=typeof e)throw new TypeError("glob pattern string required");t||(t={}),e=e.trim(),"/"!==js.sep&&(e=e.split(js.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 xs(e,t){if(t||(t=this instanceof Rs?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=cs("{","}",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+ys+n.post):[t];if(p)s=n.body.split(/\.\./);else if(1===(s=function e(t){if(!t)return[""];var r=[],i=cs("{","}",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(ws)).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=_s(s[0]),m=_s(s[1]),h=Math.max(s[0].length,s[1].length),y=3==s.length?Math.abs(_s(s[2])):1,f=Es;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 Os;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 Ls=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}}}),Us=b(function(e){try{if("function"!=typeof g.inherits)throw"";e.exports=g.inherits}catch(t){e.exports=Ls}});function Is(e){return"/"===e.charAt(0)}function Fs(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 Ns="win32"===process.platform?Fs:Is,$s=Fs;function Bs(e,t){return Object.prototype.hasOwnProperty.call(e,t)}Ns.posix=Is,Ns.win32=$s;var Ms=ks.Minimatch;function zs(e,t){return e.toLowerCase().localeCompare(t.toLowerCase())}function Hs(e,t){return e.localeCompare(t)}function Ws(e){var t=null;if("/**"===e.slice(-3)){var r=e.replace(/(\/\*\*)+$/,"");t=new Ms(r,{dot:!0})}return{matcher:new Ms(e,{dot:!0}),gmatcher:t}}function Js(e,t){var i=t;return i="/"===t.charAt(0)?r.join(e.root,t):Ns(t)||""===t?t:e.changedCwd?r.resolve(e.cwd,t):r.resolve(t),"win32"===process.platform&&(i=i.replace(/\\/g,"/")),i}function Vs(e,t){return!!e.ignore.length&&e.ignore.some(function(e){return e.matcher.match(t)||!(!e.gmatcher||!e.gmatcher.match(t))})}var Qs={alphasort:Hs,alphasorti:zs,setopts:function(e,t,i){if(i||(i={}),i.matchBase&&-1===t.indexOf("/")){if(i.noglobstar)throw new Error("base matching requires globstar");t="**/"+t}e.silent=!!i.silent,e.pattern=t,e.strict=!1!==i.strict,e.realpath=!!i.realpath,e.realpathCache=i.realpathCache||Object.create(null),e.follow=!!i.follow,e.dot=!!i.dot,e.mark=!!i.mark,e.nodir=!!i.nodir,e.nodir&&(e.mark=!0),e.sync=!!i.sync,e.nounique=!!i.nounique,e.nonull=!!i.nonull,e.nosort=!!i.nosort,e.nocase=!!i.nocase,e.stat=!!i.stat,e.noprocess=!!i.noprocess,e.absolute=!!i.absolute,e.maxLength=i.maxLength||Infinity,e.cache=i.cache||Object.create(null),e.statCache=i.statCache||Object.create(null),e.symlinks=i.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(Ws))}(e,i),e.changedCwd=!1;var n=process.cwd();Bs(i,"cwd")?(e.cwd=r.resolve(i.cwd),e.changedCwd=e.cwd!==n):e.cwd=n,e.root=i.root||r.resolve(e.cwd,"/"),e.root=r.resolve(e.root),"win32"===process.platform&&(e.root=e.root.replace(/\\/g,"/")),e.cwdAbs=Ns(e.cwd)?e.cwd:Js(e,e.cwd),"win32"===process.platform&&(e.cwdAbs=e.cwdAbs.replace(/\\/g,"/")),e.nomount=!!i.nomount,i.nonegate=!0,i.nocomment=!0,e.minimatch=new Ms(t,i),e.options=e.minimatch.options},ownProp:Bs,makeAbs:Js,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&&Xs(this.cache,t)){var i=this.cache[t];if(Array.isArray(i)&&(i="DIR"),!r||"DIR"===i)return i;if(r&&"FILE"===i)return!1}var n=this.statCache[t];if(!n){var s;try{s=u.lstatSync(t)}catch(e){if(e&&("ENOENT"===e.code||"ENOTDIR"===e.code))return this.statCache[t]=!1,!1}if(s&&s.isSymbolicLink())try{n=u.statSync(t)}catch(e){n=s}else n=s}return this.statCache[t]=n,i=!0,n&&(i=n.isDirectory()?"DIR":"FILE"),this.cache[t]=this.cache[t]||i,(!r||"FILE"!==i)&&i},ro.prototype._mark=function(e){return Qs.mark(this,e)},ro.prototype._makeAbs=function(e){return Qs.makeAbs(this,e)};var io=Object.create(null),no=ke(function(e,t){return io[e]?(io[e].push(t),null):(io[e]=[t],function(e){return je(function t(){var r=io[e],i=r.length,n=so(arguments);try{for(var s=0;si?(r.splice(0,i),process.nextTick(function(){t.apply(null,n)})):delete io[e]}})}(e))});function so(e){for(var t=e.length,r=[],i=0;i1)return!0;for(var n=0;nthis.maxLength)return t();if(!this.stat&&uo(this.cache,r)){var n=this.cache[r];if(Array.isArray(n)&&(n="DIR"),!i||"DIR"===n)return t(null,n);if(i&&"FILE"===n)return t()}var s=this.statCache[r];if(void 0!==s){if(!1===s)return t(null,s);var o=s.isDirectory()?"DIR":"FILE";return i&&"FILE"===o?t():t(null,o,s)}var a=this,p=no("stat\0"+r,function(i,n){if(n&&n.isSymbolicLink())return u.stat(r,function(i,s){i?a._stat2(e,r,null,n,t):a._stat2(e,r,i,s,t)});a._stat2(e,r,i,n,t)});p&&u.lstat(r,p)},ho.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 yo=void 0;try{yo=oo}catch(e){}const fo={nosort:!0,silent:!0};let bo=0;const _o="win32"===process.platform,qo=e=>{if(["unlink","chmod","stat","lstat","rmdir","readdir"].forEach(t=>{e[t]=e[t]||u[t],e[t+="Sync"]=e[t]||u[t]}),e.maxBusyTries=e.maxBusyTries||3,e.emfileWait=e.emfileWait||1e3,!1===e.glob&&(e.disableGlob=!0),!0!==e.disableGlob&&void 0===yo)throw Error("glob dependency not found, set `options.disableGlob = true` if intentional");e.disableGlob=e.disableGlob||!1,e.glob=e.glob||fo},wo=(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"),qo(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)&&ivo(e,t,o),100*i);if("EMFILE"===a.code&&bovo(e,t,o),bo++);"ENOENT"===a.code&&(a=null)}bo=0,(e=>{n=n||e,0==--s&&r(n)})(a)};vo(e,t,o)}));if(t.disableGlob||!yo.hasMagic(e))return o(null,[e]);t.lstat(e,(r,i)=>{if(!r)return o(null,[e]);yo(e,t.glob,o)})},vo=(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&&_o&&Eo(e,t,i,r),n&&n.isDirectory()?ko(e,t,i,r):void t.unlink(e,i=>{if(i){if("ENOENT"===i.code)return r(null);if("EPERM"===i.code)return _o?Eo(e,t,i,r):ko(e,t,i,r);if("EISDIR"===i.code)return ko(e,t,i,r)}return r(i)})))},Eo=(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()?ko(e,t,r,i):t.unlink(e,i)})})},To=(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()?Po(e,t,r):t.unlinkSync(e)},ko=(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):jo(e,t,i)})},jo=(e,t,i)=>{l(e),l(t),l("function"==typeof i),t.readdir(e,(n,s)=>{if(n)return i(n);let o,a=s.length;if(0===a)return t.rmdir(e,i);s.forEach(n=>{wo(r.join(e,n),t,r=>{if(!o)return r?i(o=r):void(0==--a&&t.rmdir(e,i))})})})},Oo=(e,t)=>{let r;if(qo(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||!yo.hasMagic(e))r=[e];else try{t.lstatSync(e),r=[e]}catch(i){r=yo.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||So(e,t)}},So=(e,t)=>{l(e),l(t),t.readdirSync(e).forEach(i=>Oo(r.join(e,i),t));const i=_o?100:1;let n=0;for(;;){let r=!0;try{const s=t.rmdirSync(e,t);return r=!1,s}finally{if(++n0?e():n(new Error("Could not get a unique tmp filename, max tries reached "+t));n(null,t)})}catch(e){n(e)}}()}function f(e){const t=j(e)[0];P(t);let r=t.tries;do{const e=O(t);try{u.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]?u.close(e[0],function(){u.unlink(e[1],r)}):u.unlink(e[1],r)}function _(e){let t=null;try{0<=e[0]&&u.closeSync(e[0])}catch(e){if(!R(e,-p,"EBADF")&&!C(e))throw e}finally{try{u.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 i=t.unsafeCleanup?Ao:u.rmdir.bind(u),n=v(t.unsafeCleanup?g:l,e,r),s=v(i,e,r,n);return t.keep||d.unshift(n),r?n:s}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=(i=u.promises).chmod,t.copyFile=i.copyFile,t.lstat=i.lstat,t.mkdir=i.mkdir,t.readdir=i.readdir,t.readlink=i.readlink,t.rename=i.rename,t.rmdir=i.rmdir,t.stat=i.stat,t.symlink=i.symlink,t.unlink=i.unlink,t.IS_WINDOWS="win32"===process.platform,t.exists=function(e){return n(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 n(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(i,s=1e3,o=1){return n(this,void 0,void 0,function*(){if(l.ok(i,"a path argument must be provided"),i=r.resolve(i),o>=s)return t.mkdir(i);try{return void(yield t.mkdir(i))}catch(n){switch(n.code){case"ENOENT":return yield e(r.dirname(i),s,o+1),void(yield t.mkdir(i));default:{let e;try{e=yield t.stat(i)}catch(e){throw n}if(!e.isDirectory())throw n}}}})},t.tryGetExecutablePath=function(e,i){return n(this,void 0,void 0,function*(){let n=void 0;try{n=yield t.stat(e)}catch(t){"ENOENT"!==t.code&&console.log(`Unexpected error attempting to determine if executable file exists '${e}': ${t}`)}if(n&&n.isFile())if(t.IS_WINDOWS){const t=r.extname(e).toUpperCase();if(i.some(e=>e.toUpperCase()===t))return e}else if(s(n))return e;const o=e;for(const a of i){e=o+a,n=void 0;try{n=yield t.stat(e)}catch(t){"ENOENT"!==t.code&&console.log(`Unexpected error attempting to determine if executable file exists '${e}': ${t}`)}if(n&&n.isFile()){if(t.IS_WINDOWS){try{const i=r.dirname(e),n=r.basename(e).toUpperCase();for(const s of yield t.readdir(i))if(n===s.toUpperCase()){e=r.join(i,s);break}}catch(t){console.log(`Unexpected error attempting to determine the actual case of the file '${e}': ${t}`)}return e}if(s(n))return e}}return""})}}),Ro=b(function(e,t){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())})};Object.defineProperty(t,"__esModule",{value:!0});const n=g.promisify(h.exec);function s(e){return i(this,void 0,void 0,function*(){if(Co.IS_WINDOWS){try{(yield Co.isDirectory(e,!0))?yield n(`rd /s /q "${e}"`):yield n(`del /f /a "${e}"`)}catch(e){if("ENOENT"!==e.code)throw e}try{yield Co.unlink(e)}catch(e){if("ENOENT"!==e.code)throw e}}else{let t=!1;try{t=yield Co.isDirectory(e)}catch(e){if("ENOENT"!==e.code)throw e;return}t?yield n(`rm -rf "${e}"`):yield Co.unlink(e)}})}function o(e){return i(this,void 0,void 0,function*(){yield Co.mkdirP(e)})}function a(e,t,r){return i(this,void 0,void 0,function*(){if((yield Co.lstat(e)).isSymbolicLink()){try{yield Co.lstat(t),yield Co.unlink(t)}catch(e){"EPERM"===e.code&&(yield Co.chmod(t,"0666"),yield Co.unlink(t))}const r=yield Co.readlink(e);yield Co.symlink(r,t,Co.IS_WINDOWS?"junction":null)}else(yield Co.exists(t))&&!r||(yield Co.copyFile(e,t))})}t.cp=function(e,t,n={}){return i(this,void 0,void 0,function*(){const{force:s,recursive:p}=function(e){return{force:null==e.force||e.force,recursive:Boolean(e.recursive)}}(n),u=(yield Co.exists(t))?yield Co.stat(t):null;if(u&&u.isFile()&&!s)return;const c=u&&u.isDirectory()?r.join(t,r.basename(e)):t;if(!(yield Co.exists(e)))throw new Error("no such file or directory: "+e);if((yield Co.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,r,n,s){return i(this,void 0,void 0,function*(){if(n>=255)return;n++,yield o(r);const i=yield Co.readdir(t);for(const o of i){const i=`${t}/${o}`,p=`${r}/${o}`;(yield Co.lstat(i)).isDirectory()?yield e(i,p,n,s):yield a(i,p,s)}yield Co.chmod(r,(yield Co.stat(t)).mode)})}(e,c,0,s)}else{if(""===r.relative(e,c))throw new Error(`'${c}' and '${e}' are the same file`);yield a(e,c,s)}})},t.mv=function(e,t,n={}){return i(this,void 0,void 0,function*(){if(yield Co.exists(t)){let i=!0;if((yield Co.isDirectory(t))&&(t=r.join(t,r.basename(e)),i=yield Co.exists(t)),i){if(null!=n.force&&!n.force)throw new Error("Destination already exists");yield s(t)}}yield o(r.dirname(t)),yield Co.rename(e,t)})},t.rmRF=s,t.mkdirP=o,t.which=function e(t,n){return i(this,void 0,void 0,function*(){if(!t)throw new Error("parameter 'tool' is required");if(n&&!(yield e(t,!1)))throw Co.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(Co.IS_WINDOWS&&process.env.PATHEXT)for(const t of process.env.PATHEXT.split(r.delimiter))t&&e.push(t);if(Co.isRooted(t))return(yield Co.tryGetExecutablePath(t,e))||"";if(t.includes("/")||Co.IS_WINDOWS&&t.includes("\\"))return"";const i=[];if(process.env.PATH)for(const e of process.env.PATH.split(r.delimiter))e&&i.push(e);for(const n of i){const i=yield Co.tryGetExecutablePath(n+r.sep+t,e);if(i)return i}return""}catch(e){throw new Error("which failed with message "+e.message)}})}}),xo=b(function(e,i){var n=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(i,"__esModule",{value:!0});const o=s(t),a=s(d),p=s(h),u=s(r),c=s(Ro),l=s(Co),g="win32"===process.platform;i.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 n(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)}})})}},i.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())}}}),Do=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(xo);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 Lo=function(e,t,r,i,n=!1){try{let o;function s(e){return o?e:Buffer.concat(a).toString("utf-8")}let a=[];const p=function(s,o){try{var p=Promise.resolve(Do.exec(e,[...t,...r?["--project",r]:[],n?"--debug":"--json"],{listeners:{stdout(e){a.push(e)}},env:Kn({},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,Lo(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 Uo(e,t){try{var r=e()}catch(e){return t(e)}return r&&r.then?r.then(void 0,t):r}const Io=q.getInput("expires"),Fo=q.getInput("projectId"),No=q.getInput("firebaseServiceAccount",{required:!0}),$o=q.getInput("channelId"),Bo="live"===$o,Mo=process.env.GITHUB_TOKEN||q.getInput("repoToken"),zo=Mo?new Qn.GitHub(Mo):void 0,Ho=q.getInput("entryPoint");!function(){try{function e(){return function(e,i){try{var n=function(){if(q.startGroup("Verifying firebase.json exists"),"."!==Ho){console.log("Changing to directory: "+Ho);try{process.chdir(Ho)}catch(e){throw Error(`Error changing to directory ${Ho}: ${e}`)}}if(!p.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."),q.endGroup(),q.startGroup("Setting up CLI credentials"),Promise.resolve(function(e){try{const t=Go.fileSync({postfix:".json"});return p.writeSync(t.fd,e),Promise.resolve(t.name)}catch(e){return Promise.reject(e)}}(No)).then(function(e){let i;function n(n){if(i)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}($o,Qn.context);return q.startGroup("Deploying to Firebase preview channel "+s),Promise.resolve(function(e,t){try{const{projectId:r,channelId:i}=t;return Promise.resolve(Lo("npx firebase-tools",["hosting:channel:deploy",i],r,e)).then(function(e){return JSON.parse(e)})}catch(e){return Promise.reject(e)}}(e,{projectId:Fo,expires:Io,channelId:s})).then(function(e){function i(){return Promise.resolve(r({details_url:o[0],conclusion:"success",output:{title:"Deploy preview succeeded",summary:a}})).then(function(){})}if(q.endGroup(),"error"===e.status)throw Error(e.error);const n=Object.values(e.result),s=n[0].expireTime,o=n.map(e=>e.url);q.setOutput("urls",o),q.setOutput("expire_time",s),q.setOutput("details_url",o[0]);const a=1===o.length?`[${o[0]}](${o[0]})`:o.map(e=>`- [${e}](${e})`).join("\n"),p=function(){var e;if(Mo&&t)return Promise.resolve(function(e,t,r){try{function i(){function r(){function t(){q.endGroup()}const r=function(){if(!o){const t=Uo(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=Uo(function(){return Promise.resolve(e.issues.updateComment(Kn({},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=Kn({},t.repo,{issue_number:t.issue.number}),s=Kn({},n,{body:r+"\n\nfirebase-hosting-preview-action"});let o;q.startGroup("Updating PR comment");const a=Uo(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]*firebase-hosting-preview-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)}}(zo,Qn.context,`\nDeploy preview for ${null==(e=Qn.context.payload.pull_request)?void 0:e.head.sha.substring(0,7)}:\n\n${a}\n\n(expires ${new Date(s).toUTCString()})`.trim())).then(function(){})}();return p&&p.then?p.then(i):i()})}console.log("Created a temporary file with Application Default Credentials."),q.endGroup();const s=function(){if(Bo)return q.startGroup("Deploying to production site"),Promise.resolve(function(e,t){try{return Promise.resolve(Lo("npx firebase-tools",["deploy","--only","hosting"],t,e)).then(function(e){return JSON.parse(e)})}catch(e){return Promise.reject(e)}}(e,Fo)).then(function(e){if("error"===e.status)throw Error(e.error);q.endGroup();const t=`https://${Fo}.web.app/`;return Promise.resolve(r({details_url:t,conclusion:"success",output:{title:"Production deploy succeeded",summary:`[${Fo}.web.app](${t})`}})).then(function(){i=1})})}();return s&&s.then?s.then(n):n(s)})}()}catch(e){return i(e)}return n&&n.then?n.then(void 0,i):n}(0,function(e){return q.setFailed(e.message),Promise.resolve(r({conclusion:"failure",output:{title:"Deploy preview failed",summary:"Error: "+e.message}})).then(function(){})})}const t=!!Qn.context.payload.pull_request;let r=e=>console.log(e);const i=function(){if(Mo&&t)return Promise.resolve(function(e,t){try{var r;return Promise.resolve(e.checks.create(Kn({},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(Kn({},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)}}(zo,Qn.context)).then(function(e){r=e})}();Promise.resolve(i&&i.then?i.then(e):e())}catch(e){return Promise.reject(e)}}(); diff --git a/firebase.json b/demo/firebase.json similarity index 78% rename from firebase.json rename to demo/firebase.json index ba7815f2..a3d8ef76 100644 --- a/firebase.json +++ b/demo/firebase.json @@ -1,6 +1,6 @@ { "hosting": { - "public": "demo", + "public": "public", "ignore": ["firebase.json", "**/.*", "**/node_modules/**"] } } diff --git a/demo/index.html b/demo/public/index.html similarity index 100% rename from demo/index.html rename to demo/public/index.html diff --git a/src/deploy.ts b/src/deploy.ts index 3d4a6f94..4a069b34 100644 --- a/src/deploy.ts +++ b/src/deploy.ts @@ -72,7 +72,7 @@ async function execWithCredentials( }, env: { ...process.env, - FIREBASE_DEPLOY_AGENT: 'action-hosting-deploy', + FIREBASE_DEPLOY_AGENT: "action-hosting-deploy", GOOGLE_APPLICATION_CREDENTIALS: gacFilename, // the CLI will automatically authenticate with this env variable set }, } @@ -94,15 +94,11 @@ async function execWithCredentials( return Buffer.concat(deployOutputBuf).toString("utf-8"); // output from the CLI } -export async function deploy( - firebase: string, - gacFilename: string, - deployConfig: DeployConfig -) { +export async function deploy(gacFilename: string, deployConfig: DeployConfig) { const { projectId, expires, channelId } = deployConfig; const deploymentText = await execWithCredentials( - firebase, + "npx firebase-tools", ["hosting:channel:deploy", channelId], projectId, gacFilename @@ -115,9 +111,9 @@ export async function deploy( return deploymentResult; } -export async function deployProductionSite(firebase, gacFilename, projectId) { +export async function deployProductionSite(gacFilename, projectId) { const deploymentText = await execWithCredentials( - firebase, + "npx firebase-tools", ["deploy", "--only", "hosting"], projectId, gacFilename diff --git a/src/index.ts b/src/index.ts index f3846c5c..f122903f 100644 --- a/src/index.ts +++ b/src/index.ts @@ -22,11 +22,11 @@ import { startGroup, } from "@actions/core"; import { context, GitHub } from "@actions/github"; +import { existsSync } from "fs"; +import { createCheck } from "./createCheck"; import { createGacFile } from "./createGACFile"; -import { deploy, ErrorResult, deployProductionSite } from "./deploy"; +import { deploy, deployProductionSite, ErrorResult } from "./deploy"; import { getChannelId } from "./getChannelId"; -import { installFirebaseCLI } from "./installFirebaseCLI"; -import { createCheck } from "./createCheck"; import { postOrUpdateComment } from "./postOrUpdateComment"; // Inputs defined in action.yml @@ -39,6 +39,7 @@ const configuredChannelId = getInput("channelId"); const isProductionDeploy = configuredChannelId === "live"; const token = process.env.GITHUB_TOKEN || getInput("repoToken"); const github = token ? new GitHub(token) : undefined; +const entryPoint = getInput("entryPoint"); async function run() { const isPullRequest = !!context.payload.pull_request; @@ -49,21 +50,36 @@ async function run() { } try { - startGroup("Setting up Firebase"); - const firebase = await installFirebaseCLI(); + startGroup("Verifying firebase.json exists"); + + if (entryPoint !== ".") { + console.log(`Changing to directory: ${entryPoint}`); + try { + process.chdir(entryPoint); + } catch (err) { + throw Error(`Error changing to directory ${entryPoint}: ${err}`); + } + } + + if (existsSync("./firebase.json")) { + console.log("firebase.json file found. Continuing deploy."); + } else { + 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." + ); + } endGroup(); startGroup("Setting up CLI credentials"); const gacFilename = await createGacFile(googleApplicationCredentials); + console.log( + "Created a temporary file with Application Default Credentials." + ); endGroup(); if (isProductionDeploy) { startGroup("Deploying to production site"); - const deployment = await deployProductionSite( - firebase, - gacFilename, - projectId - ); + const deployment = await deployProductionSite(gacFilename, projectId); if (deployment.status === "error") { throw Error((deployment as ErrorResult).error); } @@ -84,7 +100,7 @@ async function run() { const channelId = getChannelId(configuredChannelId, context); startGroup(`Deploying to Firebase preview channel ${channelId}`); - const deployment = await deploy(firebase, gacFilename, { + const deployment = await deploy(gacFilename, { projectId, expires, channelId, diff --git a/src/installFirebaseCLI.ts b/src/installFirebaseCLI.ts deleted file mode 100644 index 6c6eebe3..00000000 --- a/src/installFirebaseCLI.ts +++ /dev/null @@ -1,36 +0,0 @@ -/** - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -import { exec } from "@actions/exec"; - -const FIREBASE_CLI_NPM_PACKAGE = "firebase-tools"; - -export async function installFirebaseCLI() { - // Install Firebase CLI - await exec("npm", [ - "install", - "--no-save", - "--no-package-lock", - FIREBASE_CLI_NPM_PACKAGE, - ]); - const firebase = "./node_modules/.bin/firebase"; - - // Log the CLI version to double check that it installed correctly - // and is available - await exec(firebase, ["--version"]); - - return firebase; -}