diff --git a/.github/workflows/pr-checks.yml b/.github/workflows/pr-checks.yml index 73174ee7..f676d003 100644 --- a/.github/workflows/pr-checks.yml +++ b/.github/workflows/pr-checks.yml @@ -51,7 +51,7 @@ jobs: - name: All tests run: yarn test - name: Add coverage comment - uses: ScaCap/code-coverage-assistant@master + uses: ScaCap/code-coverage-assistant@dependabot/npm_and_yarn/word-wrap-1.2.5 with: github-token: ${{ secrets.GITHUB_TOKEN }} lcov-file: ./coverage/lcov.info diff --git a/dist/main.js b/dist/main.js index db662102..2089c9e6 100644 --- a/dist/main.js +++ b/dist/main.js @@ -4,4 +4,4 @@ * * Copyright (c) 2014-2017, Jon Schlinkert. * Released under the MIT License. - */function rp(e){return"[object Object]"===Object.prototype.toString.call(e)}function sp(e){var p,a;return!1!==rp(e)&&(void 0===(p=e.constructor)||!1!==rp(a=p.prototype)&&!1!==a.hasOwnProperty("isPrototypeOf"))}function op(e,p){const a=Object.assign({},e);return Object.keys(p).forEach((d=>{sp(p[d])?d in e?a[d]=op(e[d],p[d]):Object.assign(a,{[d]:p[d]}):Object.assign(a,{[d]:p[d]})})),a}function ip(e){for(const p in e)void 0===e[p]&&delete e[p];return e}function mp(e,p,a){if("string"==typeof p){let[e,d]=p.split(" ");a=Object.assign(d?{method:e,url:d}:{url:e},a)}else a=Object.assign({},p);var d;a.headers=(d=a.headers)?Object.keys(d).reduce(((e,p)=>(e[p.toLowerCase()]=d[p],e)),{}):{},ip(a),ip(a.headers);const t=op(e||{},a);return e&&e.mediaType.previews.length&&(t.mediaType.previews=e.mediaType.previews.filter((e=>!t.mediaType.previews.includes(e))).concat(t.mediaType.previews)),t.mediaType.previews=t.mediaType.previews.map((e=>e.replace(/-preview/,""))),t}const np=/\{[^}]+\}/g;function lp(e){return e.replace(/^\W+|\W+$/g,"").split(/,/)}function up(e,p){return Object.keys(e).filter((e=>!p.includes(e))).reduce(((p,a)=>(p[a]=e[a],p)),{})}function cp(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 vp(e){return encodeURIComponent(e).replace(/[!'()*]/g,(function(e){return"%"+e.charCodeAt(0).toString(16).toUpperCase()}))}function hp(e,p,a){return p="+"===e||"#"===e?cp(p):vp(p),a?vp(a)+"="+p:p}function gp(e){return null!=e}function wp(e){return";"===e||"&"===e||"?"===e}function fp(e,p){var a=["+","#",".","/",";","?","&"];return e.replace(/\{([^\{\}]+)\}|([^\{\}]+)/g,(function(e,d,t){if(d){let e="";const t=[];if(-1!==a.indexOf(d.charAt(0))&&(e=d.charAt(0),d=d.substr(1)),d.split(/,/g).forEach((function(a){var d=/([^:\*]*)(?::(\d+)|(\*))?/.exec(a);t.push(function(e,p,a,d){var t=e[a],r=[];if(gp(t)&&""!==t)if("string"==typeof t||"number"==typeof t||"boolean"==typeof t)t=t.toString(),d&&"*"!==d&&(t=t.substring(0,parseInt(d,10))),r.push(hp(p,t,wp(p)?a:""));else if("*"===d)Array.isArray(t)?t.filter(gp).forEach((function(e){r.push(hp(p,e,wp(p)?a:""))})):Object.keys(t).forEach((function(e){gp(t[e])&&r.push(hp(p,t[e],e))}));else{const e=[];Array.isArray(t)?t.filter(gp).forEach((function(a){e.push(hp(p,a))})):Object.keys(t).forEach((function(a){gp(t[a])&&(e.push(vp(a)),e.push(hp(p,t[a].toString())))})),wp(p)?r.push(vp(a)+"="+e.join(",")):0!==e.length&&r.push(e.join(","))}else";"===p?gp(t)&&r.push(vp(a)):""!==t||"&"!==p&&"?"!==p?""===t&&r.push(""):r.push(vp(a)+"=");return r}(p,e,d[1],d[2]||d[3]))})),e&&"+"!==e){var r=",";return"?"===e?r="&":"#"!==e&&(r=e),(0!==t.length?e:"")+t.join(r)}return t.join(",")}return cp(t)}))}function Tp(e){let p,a=e.method.toUpperCase(),d=(e.url||"/").replace(/:([a-z]\w+)/g,"{$1}"),t=Object.assign({},e.headers),r=up(e,["method","baseUrl","url","headers","request","mediaType"]);const s=function(e){const p=e.match(np);return p?p.map(lp).reduce(((e,p)=>e.concat(p)),[]):[]}(d);var o;d=(o=d,{expand:fp.bind(null,o)}).expand(r),/^http/.test(d)||(d=e.baseUrl+d);const i=up(r,Object.keys(e).filter((e=>s.includes(e))).concat("baseUrl"));if(!/application\/octet-stream/i.test(t.accept)&&(e.mediaType.format&&(t.accept=t.accept.split(/,/).map((p=>p.replace(/application\/vnd(\.\w+)(\.v3)?(\.\w+)?(\+json)?$/,`application/vnd$1$2.${e.mediaType.format}`))).join(",")),e.mediaType.previews.length)){const p=t.accept.match(/[\w-]+(?=-preview)/g)||[];t.accept=p.concat(e.mediaType.previews).map((p=>`application/vnd.github.${p}-preview${e.mediaType.format?`.${e.mediaType.format}`:"+json"}`)).join(",")}return["GET","HEAD"].includes(a)?d=function(e,p){const a=/\?/.test(e)?"&":"?",d=Object.keys(p);return 0===d.length?e:e+a+d.map((e=>"q"===e?"q="+p.q.split("+").map(encodeURIComponent).join("+"):`${e}=${encodeURIComponent(p[e])}`)).join("&")}(d,i):"data"in i?p=i.data:Object.keys(i).length?p=i:t["content-length"]=0,t["content-type"]||void 0===p||(t["content-type"]="application/json; charset=utf-8"),["PATCH","PUT"].includes(a)&&void 0===p&&(p=""),Object.assign({method:a,url:d,headers:t},void 0!==p?{body:p}:null,e.request?{request:e.request}:null)}function _p(e,p,a){return Tp(mp(e,p,a))}const Ep=function e(p,a){const d=mp(p,a),t=_p.bind(null,d);return Object.assign(t,{DEFAULTS:d,defaults:e.bind(null,d),merge:mp.bind(null,d),parse:Tp})}(null,{method:"GET",baseUrl:"https://api.github.com",headers:{accept:"application/vnd.github.v3+json","user-agent":`octokit-endpoint.js/6.0.10 ${Me()}`},mediaType:{format:"",previews:[]}});var bp={},yp={exports:{}},Sp={},Dp=Sp;function Np(e){return e<0?-1:1}function Ap(e,p){p.unsigned||--e;const a=p.unsigned?0:-Math.pow(2,e),d=Math.pow(2,e)-1,t=p.moduloBitLength?Math.pow(2,p.moduloBitLength):Math.pow(2,e),r=p.moduloBitLength?Math.pow(2,p.moduloBitLength-1):Math.pow(2,e-1);return function(e,s){s||(s={});let o=+e;if(s.enforceRange){if(!Number.isFinite(o))throw new TypeError("Argument is not a finite number");if(o=Np(o)*Math.floor(Math.abs(o)),od)throw new TypeError("Argument is not in byte range");return o}if(!isNaN(o)&&s.clamp)return o=function(e){return e%1==.5&&0==(1&e)?Math.floor(e):Math.round(e)}(o),od&&(o=d),o;if(!Number.isFinite(o)||0===o)return 0;if(o=Np(o)*Math.floor(Math.abs(o)),o%=t,!p.unsigned&&o>=r)return o-t;if(p.unsigned)if(o<0)o+=t;else if(-0===o)return 0;return o}}Sp.void=function(){},Sp.boolean=function(e){return!!e},Sp.byte=Ap(8,{unsigned:!1}),Sp.octet=Ap(8,{unsigned:!0}),Sp.short=Ap(16,{unsigned:!1}),Sp["unsigned short"]=Ap(16,{unsigned:!0}),Sp.long=Ap(32,{unsigned:!1}),Sp["unsigned long"]=Ap(32,{unsigned:!0}),Sp["long long"]=Ap(32,{unsigned:!1,moduloBitLength:64}),Sp["unsigned long long"]=Ap(32,{unsigned:!0,moduloBitLength:64}),Sp.double=function(e){const p=+e;if(!Number.isFinite(p))throw new TypeError("Argument is not a finite floating-point value");return p},Sp["unrestricted double"]=function(e){const p=+e;if(isNaN(p))throw new TypeError("Argument is NaN");return p},Sp.float=Sp.double,Sp["unrestricted float"]=Sp["unrestricted double"],Sp.DOMString=function(e,p){return p||(p={}),p.treatNullAsEmptyString&&null===e?"":String(e)},Sp.ByteString=function(e,p){const a=String(e);let d;for(let e=0;void 0!==(d=a.codePointAt(e));++e)if(d>255)throw new TypeError("Argument is not a valid bytestring");return a},Sp.USVString=function(e){const p=String(e),a=p.length,d=[];for(let e=0;e57343)d.push(String.fromCodePoint(t));else if(56320<=t&&t<=57343)d.push(String.fromCodePoint(65533));else if(e===a-1)d.push(String.fromCodePoint(65533));else{const a=p.charCodeAt(e+1);if(56320<=a&&a<=57343){const p=1023&t,r=1023&a;d.push(String.fromCodePoint(65536+1024*p+r)),++e}else d.push(String.fromCodePoint(65533))}}return d.join("")},Sp.Date=function(e,p){if(!(e instanceof Date))throw new TypeError("Argument is not a Date object");if(!isNaN(e))return e},Sp.RegExp=function(e,p){return e instanceof RegExp||(e=new RegExp(e)),e};var Gp,kp={exports:{}};(Gp=kp).exports.mixin=function(e,p){const a=Object.getOwnPropertyNames(p);for(let d=0;d=e)return t;t[0][0]>e?a=d-1:p=d+1}return null}var Lp=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g;function Bp(e){return e.replace(Lp,"_").length}var xp=/[\u0300-\u036F\u0483-\u0489\u0591-\u05BD\u05BF\u05C1\u05C2\u05C4\u05C5\u05C7\u0610-\u061A\u064B-\u065F\u0670\u06D6-\u06DC\u06DF-\u06E4\u06E7\u06E8\u06EA-\u06ED\u0711\u0730-\u074A\u07A6-\u07B0\u07EB-\u07F3\u0816-\u0819\u081B-\u0823\u0825-\u0827\u0829-\u082D\u0859-\u085B\u08E4-\u0903\u093A-\u093C\u093E-\u094F\u0951-\u0957\u0962\u0963\u0981-\u0983\u09BC\u09BE-\u09C4\u09C7\u09C8\u09CB-\u09CD\u09D7\u09E2\u09E3\u0A01-\u0A03\u0A3C\u0A3E-\u0A42\u0A47\u0A48\u0A4B-\u0A4D\u0A51\u0A70\u0A71\u0A75\u0A81-\u0A83\u0ABC\u0ABE-\u0AC5\u0AC7-\u0AC9\u0ACB-\u0ACD\u0AE2\u0AE3\u0B01-\u0B03\u0B3C\u0B3E-\u0B44\u0B47\u0B48\u0B4B-\u0B4D\u0B56\u0B57\u0B62\u0B63\u0B82\u0BBE-\u0BC2\u0BC6-\u0BC8\u0BCA-\u0BCD\u0BD7\u0C00-\u0C03\u0C3E-\u0C44\u0C46-\u0C48\u0C4A-\u0C4D\u0C55\u0C56\u0C62\u0C63\u0C81-\u0C83\u0CBC\u0CBE-\u0CC4\u0CC6-\u0CC8\u0CCA-\u0CCD\u0CD5\u0CD6\u0CE2\u0CE3\u0D01-\u0D03\u0D3E-\u0D44\u0D46-\u0D48\u0D4A-\u0D4D\u0D57\u0D62\u0D63\u0D82\u0D83\u0DCA\u0DCF-\u0DD4\u0DD6\u0DD8-\u0DDF\u0DF2\u0DF3\u0E31\u0E34-\u0E3A\u0E47-\u0E4E\u0EB1\u0EB4-\u0EB9\u0EBB\u0EBC\u0EC8-\u0ECD\u0F18\u0F19\u0F35\u0F37\u0F39\u0F3E\u0F3F\u0F71-\u0F84\u0F86\u0F87\u0F8D-\u0F97\u0F99-\u0FBC\u0FC6\u102B-\u103E\u1056-\u1059\u105E-\u1060\u1062-\u1064\u1067-\u106D\u1071-\u1074\u1082-\u108D\u108F\u109A-\u109D\u135D-\u135F\u1712-\u1714\u1732-\u1734\u1752\u1753\u1772\u1773\u17B4-\u17D3\u17DD\u180B-\u180D\u18A9\u1920-\u192B\u1930-\u193B\u19B0-\u19C0\u19C8\u19C9\u1A17-\u1A1B\u1A55-\u1A5E\u1A60-\u1A7C\u1A7F\u1AB0-\u1ABE\u1B00-\u1B04\u1B34-\u1B44\u1B6B-\u1B73\u1B80-\u1B82\u1BA1-\u1BAD\u1BE6-\u1BF3\u1C24-\u1C37\u1CD0-\u1CD2\u1CD4-\u1CE8\u1CED\u1CF2-\u1CF4\u1CF8\u1CF9\u1DC0-\u1DF5\u1DFC-\u1DFF\u20D0-\u20F0\u2CEF-\u2CF1\u2D7F\u2DE0-\u2DFF\u302A-\u302F\u3099\u309A\uA66F-\uA672\uA674-\uA67D\uA69F\uA6F0\uA6F1\uA802\uA806\uA80B\uA823-\uA827\uA880\uA881\uA8B4-\uA8C4\uA8E0-\uA8F1\uA926-\uA92D\uA947-\uA953\uA980-\uA983\uA9B3-\uA9C0\uA9E5\uAA29-\uAA36\uAA43\uAA4C\uAA4D\uAA7B-\uAA7D\uAAB0\uAAB2-\uAAB4\uAAB7\uAAB8\uAABE\uAABF\uAAC1\uAAEB-\uAAEF\uAAF5\uAAF6\uABE3-\uABEA\uABEC\uABED\uFB1E\uFE00-\uFE0F\uFE20-\uFE2D]|\uD800[\uDDFD\uDEE0\uDF76-\uDF7A]|\uD802[\uDE01-\uDE03\uDE05\uDE06\uDE0C-\uDE0F\uDE38-\uDE3A\uDE3F\uDEE5\uDEE6]|\uD804[\uDC00-\uDC02\uDC38-\uDC46\uDC7F-\uDC82\uDCB0-\uDCBA\uDD00-\uDD02\uDD27-\uDD34\uDD73\uDD80-\uDD82\uDDB3-\uDDC0\uDE2C-\uDE37\uDEDF-\uDEEA\uDF01-\uDF03\uDF3C\uDF3E-\uDF44\uDF47\uDF48\uDF4B-\uDF4D\uDF57\uDF62\uDF63\uDF66-\uDF6C\uDF70-\uDF74]|\uD805[\uDCB0-\uDCC3\uDDAF-\uDDB5\uDDB8-\uDDC0\uDE30-\uDE40\uDEAB-\uDEB7]|\uD81A[\uDEF0-\uDEF4\uDF30-\uDF36]|\uD81B[\uDF51-\uDF7E\uDF8F-\uDF92]|\uD82F[\uDC9D\uDC9E]|\uD834[\uDD65-\uDD69\uDD6D-\uDD72\uDD7B-\uDD82\uDD85-\uDD8B\uDDAA-\uDDAD\uDE42-\uDE44]|\uD83A[\uDCD0-\uDCD6]|\uDB40[\uDD00-\uDDEF]/;function qp(e,p){"xn--"===e.substr(0,4)&&(e=Cp.toUnicode(e));var a=!1;(Up(e)!==e||"-"===e[3]&&"-"===e[4]||"-"===e[0]||"-"===e[e.length-1]||-1!==e.indexOf(".")||0===e.search(xp))&&(a=!0);for(var d=Bp(e),t=0;t253||0===s.length)&&(t.error=!0);for(var o=0;o63||0===r.length){t.error=!0;break}}return t.error?null:r.join(".")},Vp.toUnicode=function(e,p){var a=Ip(e,p,Fp.NONTRANSITIONAL);return{domain:a.string,error:a.error}},Vp.PROCESSING_OPTIONS=Fp,function(e){const p=n,a=Vp,d={ftp:21,file:null,gopher:70,http:80,https:443,ws:80,wss:443},t=Symbol("failure");function r(e){return p.ucs2.decode(e).length}function s(e,p){const a=e[p];return isNaN(a)?void 0:String.fromCodePoint(a)}function o(e){return e>=48&&e<=57}function i(e){return e>=65&&e<=90||e>=97&&e<=122}function m(e){return o(e)||e>=65&&e<=70||e>=97&&e<=102}function l(e){return"."===e||"%2e"===e.toLowerCase()}function u(e){return 2===e.length&&i(e.codePointAt(0))&&(":"===e[1]||"|"===e[1])}function c(e){return void 0!==d[e]}function v(e){return c(e.scheme)}function h(e){let p=e.toString(16).toUpperCase();return 1===p.length&&(p="0"+p),"%"+p}function g(e){return e<=31||e>126}const w=new Set([32,34,35,60,62,63,96,123,125]);function f(e){return g(e)||w.has(e)}const T=new Set([47,58,59,61,64,91,92,93,94,124]);function _(e){return f(e)||T.has(e)}function E(e,p){const a=String.fromCodePoint(e);return p(e)?function(e){const p=new Buffer(e);let a="";for(let e=0;e=2&&"0"===e.charAt(0)&&"x"===e.charAt(1).toLowerCase()?(e=e.substring(2),p=16):e.length>=2&&"0"===e.charAt(0)&&(e=e.substring(1),p=8),""===e)return 0;return(10===p?/[^0-9]/:16===p?/[^0-9A-Fa-f]/:/[^0-7]/).test(e)?t:parseInt(e,p)}function y(e,d){if("["===e[0])return"]"!==e[e.length-1]?t:function(e){const a=[0,0,0,0,0,0,0,0];let d=0,r=null,i=0;if(58===(e=p.ucs2.decode(e))[i]){if(58!==e[i+1])return t;i+=2,++d,r=d}for(;i6)return t;let p=0;for(;void 0!==e[i];){let r=null;if(p>0){if(!(46===e[i]&&p<4))return t;++i}if(!o(e[i]))return t;for(;o(e[i]);){const p=parseInt(s(e,i));if(null===r)r=p;else{if(0===r)return t;r=10*r+p}if(r>255)return t;++i}a[d]=256*a[d]+r,++p,2!==p&&4!==p||++d}if(4!==p)return t;break}if(58===e[i]){if(++i,void 0===e[i])return t}else if(void 0!==e[i])return t;a[d]=p,++d}if(null!==r){let e=d-r;for(d=7;0!==d&&e>0;){const p=a[r+e-1];a[r+e-1]=a[d],a[d]=p,--d,--e}}else if(null===r&&8!==d)return t;return a}(e.substring(1,e.length-1));if(!d)return function(e){if(a=e,-1!==a.search(/\u0000|\u0009|\u000A|\u000D|\u0020|#|\/|:|\?|@|\[|\\|\]/))return t;var a;let d="";const r=p.ucs2.decode(e);for(let e=0;e1&&p.pop(),p.length>4)return e;const a=[];for(const d of p){if(""===d)return e;const p=b(d);if(p===t)return e;a.push(p)}for(let e=0;e255)return t;if(a[a.length-1]>=Math.pow(256,5-a.length))return t;let d=a.pop(),r=0;for(const e of a)d+=e*Math.pow(256,3-r),++r;return d}(i);return"number"==typeof n||n===t?n:i}function S(e){return"number"==typeof e?function(e){let p="",a=e;for(let e=1;e<=4;++e)p=String(a%256)+p,4!==e&&(p="."+p),a=Math.floor(a/256);return p}(e):e instanceof Array?"["+function(e){let p="";const a=function(e){let p=null,a=1,d=null,t=0;for(let r=0;ra&&(p=d,a=t),d=null,t=0):(null===d&&(d=r),++t);return t>a&&(p=d,a=t),{idx:p,len:a}}(e),d=a.idx;let t=!1;for(let a=0;a<=7;++a)t&&0===e[a]||(t&&(t=!1),d!==a?(p+=e[a].toString(16),7!==a&&(p+=":")):(p+=0===a?"::":":",t=!0));return p}(e)+"]":e}function D(e){const p=e.path;var a;0!==p.length&&("file"===e.scheme&&1===p.length&&(a=p[0],/^[A-Za-z]:$/.test(a))||p.pop())}function N(e){return""!==e.username||""!==e.password}function A(e,a,d,r,s){if(this.pointer=0,this.input=e,this.base=a||null,this.encodingOverride=d||"utf-8",this.stateOverride=s,this.url=r,this.failure=!1,this.parseError=!1,!this.url){this.url={scheme:"",username:"",password:"",host:null,port:null,path:[],query:null,fragment:null,cannotBeABaseURL:!1};const e=function(e){return e.replace(/^[\u0000-\u001F\u0020]+|[\u0000-\u001F\u0020]+$/g,"")}(this.input);e!==this.input&&(this.parseError=!0),this.input=e}const o=function(e){return e.replace(/\u0009|\u000A|\u000D/g,"")}(this.input);for(o!==this.input&&(this.parseError=!0),this.input=o,this.state=s||"scheme start",this.buffer="",this.atFlag=!1,this.arrFlag=!1,this.passwordTokenSeenFlag=!1,this.input=p.ucs2.decode(this.input);this.pointer<=this.input.length;++this.pointer){const e=this.input[this.pointer],p=isNaN(e)?void 0:String.fromCodePoint(e),a=this["parse "+this.state](e,p);if(!a)break;if(a===t){this.failure=!0;break}}}A.prototype["parse scheme start"]=function(e,p){if(i(e))this.buffer+=p.toLowerCase(),this.state="scheme";else{if(this.stateOverride)return this.parseError=!0,t;this.state="no scheme",--this.pointer}return!0},A.prototype["parse scheme"]=function(e,p){if(function(e){return i(e)||o(e)}(e)||43===e||45===e||46===e)this.buffer+=p.toLowerCase();else if(58===e){if(this.stateOverride){if(v(this.url)&&!c(this.buffer))return!1;if(!v(this.url)&&c(this.buffer))return!1;if((N(this.url)||null!==this.url.port)&&"file"===this.buffer)return!1;if("file"===this.url.scheme&&(""===this.url.host||null===this.url.host))return!1}if(this.url.scheme=this.buffer,this.buffer="",this.stateOverride)return!1;"file"===this.url.scheme?(47===this.input[this.pointer+1]&&47===this.input[this.pointer+2]||(this.parseError=!0),this.state="file"):v(this.url)&&null!==this.base&&this.base.scheme===this.url.scheme?this.state="special relative or authority":v(this.url)?this.state="special authority slashes":47===this.input[this.pointer+1]?(this.state="path or authority",++this.pointer):(this.url.cannotBeABaseURL=!0,this.url.path.push(""),this.state="cannot-be-a-base-URL path")}else{if(this.stateOverride)return this.parseError=!0,t;this.buffer="",this.state="no scheme",this.pointer=-1}return!0},A.prototype["parse no scheme"]=function(e){return null===this.base||this.base.cannotBeABaseURL&&35!==e?t:(this.base.cannotBeABaseURL&&35===e?(this.url.scheme=this.base.scheme,this.url.path=this.base.path.slice(),this.url.query=this.base.query,this.url.fragment="",this.url.cannotBeABaseURL=!0,this.state="fragment"):"file"===this.base.scheme?(this.state="file",--this.pointer):(this.state="relative",--this.pointer),!0)},A.prototype["parse special relative or authority"]=function(e){return 47===e&&47===this.input[this.pointer+1]?(this.state="special authority ignore slashes",++this.pointer):(this.parseError=!0,this.state="relative",--this.pointer),!0},A.prototype["parse path or authority"]=function(e){return 47===e?this.state="authority":(this.state="path",--this.pointer),!0},A.prototype["parse relative"]=function(e){return this.url.scheme=this.base.scheme,isNaN(e)?(this.url.username=this.base.username,this.url.password=this.base.password,this.url.host=this.base.host,this.url.port=this.base.port,this.url.path=this.base.path.slice(),this.url.query=this.base.query):47===e?this.state="relative slash":63===e?(this.url.username=this.base.username,this.url.password=this.base.password,this.url.host=this.base.host,this.url.port=this.base.port,this.url.path=this.base.path.slice(),this.url.query="",this.state="query"):35===e?(this.url.username=this.base.username,this.url.password=this.base.password,this.url.host=this.base.host,this.url.port=this.base.port,this.url.path=this.base.path.slice(),this.url.query=this.base.query,this.url.fragment="",this.state="fragment"):v(this.url)&&92===e?(this.parseError=!0,this.state="relative slash"):(this.url.username=this.base.username,this.url.password=this.base.password,this.url.host=this.base.host,this.url.port=this.base.port,this.url.path=this.base.path.slice(0,this.base.path.length-1),this.state="path",--this.pointer),!0},A.prototype["parse relative slash"]=function(e){return!v(this.url)||47!==e&&92!==e?47===e?this.state="authority":(this.url.username=this.base.username,this.url.password=this.base.password,this.url.host=this.base.host,this.url.port=this.base.port,this.state="path",--this.pointer):(92===e&&(this.parseError=!0),this.state="special authority ignore slashes"),!0},A.prototype["parse special authority slashes"]=function(e){return 47===e&&47===this.input[this.pointer+1]?(this.state="special authority ignore slashes",++this.pointer):(this.parseError=!0,this.state="special authority ignore slashes",--this.pointer),!0},A.prototype["parse special authority ignore slashes"]=function(e){return 47!==e&&92!==e?(this.state="authority",--this.pointer):this.parseError=!0,!0},A.prototype["parse authority"]=function(e,p){if(64===e){this.parseError=!0,this.atFlag&&(this.buffer="%40"+this.buffer),this.atFlag=!0;const e=r(this.buffer);for(let p=0;pMath.pow(2,16)-1)return this.parseError=!0,t;this.url.port=e===(a=this.url.scheme,d[a])?null:e,this.buffer=""}if(this.stateOverride)return!1;this.state="path start",--this.pointer}var a;return!0};const G=new Set([47,92,63,35]);A.prototype["parse file"]=function(e){var p,a;return this.url.scheme="file",47===e||92===e?(92===e&&(this.parseError=!0),this.state="file slash"):null!==this.base&&"file"===this.base.scheme?isNaN(e)?(this.url.host=this.base.host,this.url.path=this.base.path.slice(),this.url.query=this.base.query):63===e?(this.url.host=this.base.host,this.url.path=this.base.path.slice(),this.url.query="",this.state="query"):35===e?(this.url.host=this.base.host,this.url.path=this.base.path.slice(),this.url.query=this.base.query,this.url.fragment="",this.state="fragment"):(this.input.length-this.pointer-1==0||(p=e,a=this.input[this.pointer+1],!i(p)||58!==a&&124!==a)||this.input.length-this.pointer-1>=2&&!G.has(this.input[this.pointer+2])?(this.url.host=this.base.host,this.url.path=this.base.path.slice(),D(this.url)):this.parseError=!0,this.state="path",--this.pointer):(this.state="path",--this.pointer),!0},A.prototype["parse file slash"]=function(e){var p;return 47===e||92===e?(92===e&&(this.parseError=!0),this.state="file host"):(null!==this.base&&"file"===this.base.scheme&&(2===(p=this.base.path[0]).length&&i(p.codePointAt(0))&&":"===p[1]?this.url.path.push(this.base.path[0]):this.url.host=this.base.host),this.state="path",--this.pointer),!0},A.prototype["parse file host"]=function(e,p){if(isNaN(e)||47===e||92===e||63===e||35===e)if(--this.pointer,!this.stateOverride&&u(this.buffer))this.parseError=!0,this.state="path";else if(""===this.buffer){if(this.url.host="",this.stateOverride)return!1;this.state="path start"}else{let e=y(this.buffer,v(this.url));if(e===t)return t;if("localhost"===e&&(e=""),this.url.host=e,this.stateOverride)return!1;this.buffer="",this.state="path start"}else this.buffer+=p;return!0},A.prototype["parse path start"]=function(e){return v(this.url)?(92===e&&(this.parseError=!0),this.state="path",47!==e&&92!==e&&--this.pointer):this.stateOverride||63!==e?this.stateOverride||35!==e?void 0!==e&&(this.state="path",47!==e&&--this.pointer):(this.url.fragment="",this.state="fragment"):(this.url.query="",this.state="query"),!0},A.prototype["parse path"]=function(e){if(isNaN(e)||47===e||v(this.url)&&92===e||!this.stateOverride&&(63===e||35===e)){if(v(this.url)&&92===e&&(this.parseError=!0),".."===(p=(p=this.buffer).toLowerCase())||"%2e."===p||".%2e"===p||"%2e%2e"===p?(D(this.url),47===e||v(this.url)&&92===e||this.url.path.push("")):!l(this.buffer)||47===e||v(this.url)&&92===e?l(this.buffer)||("file"===this.url.scheme&&0===this.url.path.length&&u(this.buffer)&&(""!==this.url.host&&null!==this.url.host&&(this.parseError=!0,this.url.host=""),this.buffer=this.buffer[0]+":"),this.url.path.push(this.buffer)):this.url.path.push(""),this.buffer="","file"===this.url.scheme&&(void 0===e||63===e||35===e))for(;this.url.path.length>1&&""===this.url.path[0];)this.parseError=!0,this.url.path.shift();63===e&&(this.url.query="",this.state="query"),35===e&&(this.url.fragment="",this.state="fragment")}else 37!==e||m(this.input[this.pointer+1])&&m(this.input[this.pointer+2])||(this.parseError=!0),this.buffer+=E(e,f);var p;return!0},A.prototype["parse cannot-be-a-base-URL path"]=function(e){return 63===e?(this.url.query="",this.state="query"):35===e?(this.url.fragment="",this.state="fragment"):(isNaN(e)||37===e||(this.parseError=!0),37!==e||m(this.input[this.pointer+1])&&m(this.input[this.pointer+2])||(this.parseError=!0),isNaN(e)||(this.url.path[0]=this.url.path[0]+E(e,g))),!0},A.prototype["parse query"]=function(e,p){if(isNaN(e)||!this.stateOverride&&35===e){v(this.url)&&"ws"!==this.url.scheme&&"wss"!==this.url.scheme||(this.encodingOverride="utf-8");const p=new Buffer(this.buffer);for(let e=0;e126||34===p[e]||35===p[e]||60===p[e]||62===p[e]?this.url.query+=h(p[e]):this.url.query+=String.fromCodePoint(p[e]);this.buffer="",35===e&&(this.url.fragment="",this.state="fragment")}else 37!==e||m(this.input[this.pointer+1])&&m(this.input[this.pointer+2])||(this.parseError=!0),this.buffer+=p;return!0},A.prototype["parse fragment"]=function(e){return isNaN(e)||(0===e?this.parseError=!0:(37!==e||m(this.input[this.pointer+1])&&m(this.input[this.pointer+2])||(this.parseError=!0),this.url.fragment+=E(e,g))),!0},e.exports.serializeURL=function(e,p){let a=e.scheme+":";if(null!==e.host?(a+="//",""===e.username&&""===e.password||(a+=e.username,""!==e.password&&(a+=":"+e.password),a+="@"),a+=S(e.host),null!==e.port&&(a+=":"+e.port)):null===e.host&&"file"===e.scheme&&(a+="//"),e.cannotBeABaseURL)a+=e.path[0];else for(const p of e.path)a+="/"+p;return null!==e.query&&(a+="?"+e.query),p||null===e.fragment||(a+="#"+e.fragment),a},e.exports.serializeURLOrigin=function(p){switch(p.scheme){case"blob":try{return e.exports.serializeURLOrigin(e.exports.parseURL(p.path[0]))}catch(e){return"null"}case"ftp":case"gopher":case"http":case"https":case"ws":case"wss":return function(e){let p=e.scheme+"://";return p+=S(e.host),null!==e.port&&(p+=":"+e.port),p}({scheme:p.scheme,host:p.host,port:p.port});case"file":return"file://";default:return"null"}},e.exports.basicURLParse=function(e,p){void 0===p&&(p={});const a=new A(e,p.baseURL,p.encodingOverride,p.url,p.stateOverride);return a.failure?"failure":a.url},e.exports.setTheUsername=function(e,a){e.username="";const d=p.ucs2.decode(a);for(let p=0;p!!e&&e[t]instanceof d.implementation,create(e,p){let a=Object.create(r.prototype);return this.setup(a,e,p),a},setup(e,p,r){r||(r={}),r.wrapper=e,e[t]=new d.implementation(p,r),e[t][a.wrapperSymbol]=e},interface:r,expose:{Window:{URL:r},Worker:{URL:r}}}}(yp),bp.URL=yp.exports.interface,bp.serializeURL=Op.exports.serializeURL,bp.serializeURLOrigin=Op.exports.serializeURLOrigin,bp.basicURLParse=Op.exports.basicURLParse,bp.setTheUsername=Op.exports.setTheUsername,bp.setThePassword=Op.exports.setThePassword,bp.serializeHost=Op.exports.serializeHost,bp.serializeInteger=Op.exports.serializeInteger,bp.parseURL=Op.exports.parseURL;const $p=i.Readable,Mp=Symbol("buffer"),zp=Symbol("type");class Wp{constructor(){this[zp]="";const e=arguments[0],p=arguments[1],a=[];let d=0;if(e){const p=e,t=Number(p.length);for(let e=0;e1&&void 0!==arguments[1]?arguments[1]:{},d=a.size;let t=void 0===d?0:d;var r=a.timeout;let s=void 0===r?0:r;null==e?e=null:ea(e)?e=Buffer.from(e.toString()):pa(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[Yp]={body:e,disturbed:!1,error:null},this.size=t,this.timeout=s,e instanceof i&&e.on("error",(function(e){const a="AbortError"===e.name?e:new Kp(`Invalid response body while trying to fetch ${p.url}: ${e.message}`,"system",e);p[Yp].error=a}))}function Xp(){var e=this;if(this[Yp].disturbed)return Qp.Promise.reject(new TypeError(`body used already for: ${this.url}`));if(this[Yp].disturbed=!0,this[Yp].error)return Qp.Promise.reject(this[Yp].error);let p=this.body;if(null===p)return Qp.Promise.resolve(Buffer.alloc(0));if(pa(p)&&(p=p.stream()),Buffer.isBuffer(p))return Qp.Promise.resolve(p);if(!(p instanceof i))return Qp.Promise.resolve(Buffer.alloc(0));let a=[],d=0,t=!1;return new Qp.Promise((function(r,s){let o;e.timeout&&(o=setTimeout((function(){t=!0,s(new Kp(`Response timeout while trying to fetch ${e.url} (over ${e.timeout}ms)`,"body-timeout"))}),e.timeout)),p.on("error",(function(p){"AbortError"===p.name?(t=!0,s(p)):s(new Kp(`Invalid response body while trying to fetch ${e.url}: ${p.message}`,"system",p))})),p.on("data",(function(p){if(!t&&null!==p){if(e.size&&d+p.length>e.size)return t=!0,void s(new Kp(`content size at ${e.url} over limit: ${e.size}`,"max-size"));d+=p.length,a.push(p)}})),p.on("end",(function(){if(!t){clearTimeout(o);try{r(Buffer.concat(a,d))}catch(p){s(new Kp(`Could not create Buffer from response body for ${e.url}: ${p.message}`,"system",p))}}}))}))}function ea(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 pa(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 aa(e){let p,a,d=e.body;if(e.bodyUsed)throw new Error("cannot clone body after it is used");return d instanceof i&&"function"!=typeof d.getBoundary&&(p=new Zp,a=new Zp,d.pipe(p),d.pipe(a),e[Yp].body=p,d=a),d}function da(e){return null===e?null:"string"==typeof e?"text/plain;charset=UTF-8":ea(e)?"application/x-www-form-urlencoded;charset=UTF-8":pa(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 ta(e){const p=e.body;return null===p?0:pa(p)?p.size:Buffer.isBuffer(p)?p.length:p&&"function"==typeof p.getLengthSync&&(p._lengthRetrievers&&0==p._lengthRetrievers.length||p.hasKnownLength&&p.hasKnownLength())?p.getLengthSync():null}Qp.prototype={get body(){return this[Yp].body},get bodyUsed(){return this[Yp].disturbed},arrayBuffer(){return Xp.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 Xp.call(this).then((function(p){return Object.assign(new Wp([],{type:e.toLowerCase()}),{[Mp]:p})}))},json(){var e=this;return Xp.call(this).then((function(p){try{return JSON.parse(p.toString())}catch(p){return Qp.Promise.reject(new Kp(`invalid json response body at ${e.url} reason: ${p.message}`,"invalid-json"))}}))},text(){return Xp.call(this).then((function(e){return e.toString()}))},buffer(){return Xp.call(this)},textConverted(){var e=this;return Xp.call(this).then((function(p){return function(e,p){if("function"!=typeof Jp)throw new Error("The package `encoding` must be installed to use the textConverted() function");const a=p.get("content-type");let d,t,r="utf-8";a&&(d=/charset=([^;]*)/i.exec(a));t=e.slice(0,1024).toString(),!d&&t&&(d=/0&&void 0!==arguments[0]?arguments[0]:void 0;if(this[na]=Object.create(null),e instanceof la){const p=e.raw(),a=Object.keys(p);for(const e of a)for(const a of p[e])this.append(e,a)}else if(null==e);else{if("object"!=typeof e)throw new TypeError("Provided initializer must be an object");{const p=e[Symbol.iterator];if(null!=p){if("function"!=typeof p)throw new TypeError("Header pairs must be iterable");const a=[];for(const p of e){if("object"!=typeof p||"function"!=typeof p[Symbol.iterator])throw new TypeError("Each header pair must be iterable");a.push(Array.from(p))}for(const e of a){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 p of Object.keys(e)){const a=e[p];this.append(p,a)}}}}get(e){oa(e=`${e}`);const p=ma(this[na],e);return void 0===p?null:this[na][p].join(", ")}forEach(e){let p=arguments.length>1&&void 0!==arguments[1]?arguments[1]:void 0,a=ua(this),d=0;for(;d1&&void 0!==arguments[1]?arguments[1]:"key+value";const a=Object.keys(e[na]).sort();return a.map("key"===p?function(e){return e.toLowerCase()}:"value"===p?function(p){return e[na][p].join(", ")}:function(p){return[p.toLowerCase(),e[na][p].join(", ")]})}la.prototype.entries=la.prototype[Symbol.iterator],Object.defineProperty(la.prototype,Symbol.toStringTag,{value:"Headers",writable:!1,enumerable:!1,configurable:!0}),Object.defineProperties(la.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 ca=Symbol("internal");function va(e,p){const a=Object.create(ha);return a[ca]={target:e,kind:p,index:0},a}const ha=Object.setPrototypeOf({next(){if(!this||Object.getPrototypeOf(this)!==ha)throw new TypeError("Value of `this` is not a HeadersIterator");var e=this[ca];const p=e.target,a=e.kind,d=e.index,t=ua(p,a);return d>=t.length?{value:void 0,done:!0}:(this[ca].index=d+1,{value:t[d],done:!1})}},Object.getPrototypeOf(Object.getPrototypeOf([][Symbol.iterator]())));function ga(e){const p=Object.assign({__proto__:null},e[na]),a=ma(e[na],"Host");return void 0!==a&&(p[a]=p[a][0]),p}Object.defineProperty(ha,Symbol.toStringTag,{value:"HeadersIterator",writable:!1,enumerable:!1,configurable:!0});const wa=Symbol("Response internals"),fa=d.STATUS_CODES;class Ta{constructor(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,p=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};Qp.call(this,e,p);const a=p.status||200,d=new la(p.headers);if(null!=e&&!d.has("Content-Type")){const p=da(e);p&&d.append("Content-Type",p)}this[wa]={url:p.url,status:a,statusText:p.statusText||fa[a],headers:d,counter:p.counter}}get url(){return this[wa].url||""}get status(){return this[wa].status}get ok(){return this[wa].status>=200&&this[wa].status<300}get redirected(){return this[wa].counter>0}get statusText(){return this[wa].statusText}get headers(){return this[wa].headers}clone(){return new Ta(aa(this),{url:this.url,status:this.status,statusText:this.statusText,headers:this.headers,ok:this.ok,redirected:this.redirected})}}Qp.mixIn(Ta.prototype),Object.defineProperties(Ta.prototype,{url:{enumerable:!0},status:{enumerable:!0},ok:{enumerable:!0},redirected:{enumerable:!0},statusText:{enumerable:!0},headers:{enumerable:!0},clone:{enumerable:!0}}),Object.defineProperty(Ta.prototype,Symbol.toStringTag,{value:"Response",writable:!1,enumerable:!1,configurable:!0});const _a=Symbol("Request internals"),Ea=m.URL||bp.URL,ba=m.parse,ya=m.format;function Sa(e){return/^[a-zA-Z][a-zA-Z\d+\-.]*:/.exec(e)&&(e=new Ea(e).toString()),ba(e)}const Da="destroy"in i.Readable.prototype;function Na(e){return"object"==typeof e&&"object"==typeof e[_a]}class Aa{constructor(e){let p,a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};Na(e)?p=Sa(e.url):(p=e&&e.href?Sa(e.href):Sa(`${e}`),e={});let d=a.method||e.method||"GET";if(d=d.toUpperCase(),(null!=a.body||Na(e)&&null!==e.body)&&("GET"===d||"HEAD"===d))throw new TypeError("Request with GET/HEAD method cannot have body");let t=null!=a.body?a.body:Na(e)&&null!==e.body?aa(e):null;Qp.call(this,t,{timeout:a.timeout||e.timeout||0,size:a.size||e.size||0});const r=new la(a.headers||e.headers||{});if(null!=t&&!r.has("Content-Type")){const e=da(t);e&&r.append("Content-Type",e)}let s=Na(e)?e.signal:null;if("signal"in a&&(s=a.signal),null!=s&&!function(e){const p=e&&"object"==typeof e&&Object.getPrototypeOf(e);return!(!p||"AbortSignal"!==p.constructor.name)}(s))throw new TypeError("Expected signal to be an instanceof AbortSignal");this[_a]={method:d,redirect:a.redirect||e.redirect||"follow",headers:r,parsedURL:p,signal:s},this.follow=void 0!==a.follow?a.follow:void 0!==e.follow?e.follow:20,this.compress=void 0!==a.compress?a.compress:void 0===e.compress||e.compress,this.counter=a.counter||e.counter||0,this.agent=a.agent||e.agent}get method(){return this[_a].method}get url(){return ya(this[_a].parsedURL)}get headers(){return this[_a].headers}get redirect(){return this[_a].redirect}get signal(){return this[_a].signal}clone(){return new Aa(this)}}function Ga(e){Error.call(this,e),this.type="aborted",this.message=e,Error.captureStackTrace(this,this.constructor)}Qp.mixIn(Aa.prototype),Object.defineProperty(Aa.prototype,Symbol.toStringTag,{value:"Request",writable:!1,enumerable:!1,configurable:!0}),Object.defineProperties(Aa.prototype,{method:{enumerable:!0},url:{enumerable:!0},headers:{enumerable:!0},redirect:{enumerable:!0},clone:{enumerable:!0},signal:{enumerable:!0}}),Ga.prototype=Object.create(Error.prototype),Ga.prototype.constructor=Ga,Ga.prototype.name="AbortError";const ka=m.URL||bp.URL,Pa=i.PassThrough;function Oa(e,p){if(!Oa.Promise)throw new Error("native promise missing, set fetch.Promise to your favorite alternative");return Qp.Promise=Oa.Promise,new Oa.Promise((function(a,r){const s=new Aa(e,p),o=function(e){const p=e[_a].parsedURL,a=new la(e[_a].headers);if(a.has("Accept")||a.set("Accept","*/*"),!p.protocol||!p.hostname)throw new TypeError("Only absolute URLs are supported");if(!/^https?:$/.test(p.protocol))throw new TypeError("Only HTTP(S) protocols are supported");if(e.signal&&e.body instanceof i.Readable&&!Da)throw new Error("Cancellation of streamed requests with AbortSignal is not supported in node < 8");let d=null;if(null==e.body&&/^(POST|PUT)$/i.test(e.method)&&(d="0"),null!=e.body){const p=ta(e);"number"==typeof p&&(d=String(p))}d&&a.set("Content-Length",d),a.has("User-Agent")||a.set("User-Agent","node-fetch/1.0 (+https://github.com/bitinn/node-fetch)"),e.compress&&!a.has("Accept-Encoding")&&a.set("Accept-Encoding","gzip,deflate");let t=e.agent;return"function"==typeof t&&(t=t(p)),a.has("Connection")||t||a.set("Connection","close"),Object.assign({},p,{method:e.method,headers:ga(a),agent:t})}(s),m=("https:"===o.protocol?t:d).request,n=s.signal;let u=null;const c=function(){let e=new Ga("The user aborted a request.");r(e),s.body&&s.body instanceof i.Readable&&s.body.destroy(e),u&&u.body&&u.body.emit("error",e)};if(n&&n.aborted)return void c();const v=function(){c(),w()},h=m(o);let g;function w(){h.abort(),n&&n.removeEventListener("abort",v),clearTimeout(g)}n&&n.addEventListener("abort",v),s.timeout&&h.once("socket",(function(e){g=setTimeout((function(){r(new Kp(`network timeout at: ${s.url}`,"request-timeout")),w()}),s.timeout)})),h.on("error",(function(e){r(new Kp(`request to ${s.url} failed, reason: ${e.message}`,"system",e)),w()})),h.on("response",(function(e){clearTimeout(g);const p=function(e){const p=new la;for(const a of Object.keys(e))if(!ra.test(a))if(Array.isArray(e[a]))for(const d of e[a])sa.test(d)||(void 0===p[na][a]?p[na][a]=[d]:p[na][a].push(d));else sa.test(e[a])||(p[na][a]=[e[a]]);return p}(e.headers);if(Oa.isRedirect(e.statusCode)){const d=p.get("Location");let t=null;try{t=null===d?null:new ka(d,s.url).toString()}catch(e){if("manual"!==s.redirect)return r(new Kp(`uri requested responds with an invalid redirect URL: ${d}`,"invalid-redirect")),void w()}switch(s.redirect){case"error":return r(new Kp(`uri requested responds with a redirect, redirect mode is set to error: ${s.url}`,"no-redirect")),void w();case"manual":if(null!==t)try{p.set("Location",t)}catch(e){r(e)}break;case"follow":if(null===t)break;if(s.counter>=s.follow)return r(new Kp(`maximum redirect reached at: ${s.url}`,"max-redirect")),void w();const d={headers:new la(s.headers),follow:s.follow,counter:s.counter+1,agent:s.agent,compress:s.compress,method:s.method,body:s.body,signal:s.signal,timeout:s.timeout,size:s.size};if(!function(e,p){const a=new ka(p).hostname,d=new ka(e).hostname;return a===d||"."===a[a.length-d.length-1]&&a.endsWith(d)}(s.url,t))for(const e of["authorization","www-authenticate","cookie","cookie2"])d.headers.delete(e);return 303!==e.statusCode&&s.body&&null===ta(s)?(r(new Kp("Cannot follow redirect with body being a readable stream","unsupported-redirect")),void w()):(303!==e.statusCode&&(301!==e.statusCode&&302!==e.statusCode||"POST"!==s.method)||(d.method="GET",d.body=void 0,d.headers.delete("content-length")),a(Oa(new Aa(t,d))),void w())}}e.once("end",(function(){n&&n.removeEventListener("abort",v)}));let d=e.pipe(new Pa);const t={url:s.url,status:e.statusCode,statusText:e.statusMessage,headers:p,size:s.size,timeout:s.timeout,counter:s.counter},o=p.get("Content-Encoding");if(!s.compress||"HEAD"===s.method||null===o||204===e.statusCode||304===e.statusCode)return u=new Ta(d,t),void a(u);const i={flush:l.Z_SYNC_FLUSH,finishFlush:l.Z_SYNC_FLUSH};if("gzip"==o||"x-gzip"==o)return d=d.pipe(l.createGunzip(i)),u=new Ta(d,t),void a(u);if("deflate"!=o&&"x-deflate"!=o){if("br"==o&&"function"==typeof l.createBrotliDecompress)return d=d.pipe(l.createBrotliDecompress()),u=new Ta(d,t),void a(u);u=new Ta(d,t),a(u)}else{e.pipe(new Pa).once("data",(function(e){d=8==(15&e[0])?d.pipe(l.createInflate()):d.pipe(l.createInflateRaw()),u=new Ta(d,t),a(u)}))}})),function(e,p){const a=p.body;null===a?e.end():pa(a)?a.stream().pipe(e):Buffer.isBuffer(a)?(e.write(a),e.end()):a.pipe(e)}(h,s)}))}Oa.isRedirect=function(e){return 301===e||302===e||303===e||307===e||308===e},Oa.Promise=global.Promise;class Va extends Error{constructor(e){super(e),Error.captureStackTrace&&Error.captureStackTrace(this,this.constructor),this.name="Deprecation"}}var Ca={exports:{}},Ra=function e(p,a){if(p&&a)return e(p)(a);if("function"!=typeof p)throw new TypeError("need wrapper function");return Object.keys(p).forEach((function(e){d[e]=p[e]})),d;function d(){for(var e=new Array(arguments.length),a=0;aconsole.warn(e))),Ba=Ca.exports((e=>console.warn(e)));let xa=class extends Error{constructor(e,p,a){let d;super(e),Error.captureStackTrace&&Error.captureStackTrace(this,this.constructor),this.name="HttpError",this.status=p,"headers"in a&&void 0!==a.headers&&(d=a.headers),"response"in a&&(this.response=a.response,d=a.response.headers);const t=Object.assign({},a.request);a.request.headers.authorization&&(t.headers=Object.assign({},a.request.headers,{authorization:a.request.headers.authorization.replace(/ .*$/," [REDACTED]")})),t.url=t.url.replace(/\bclient_secret=\w+/g,"client_secret=[REDACTED]").replace(/\baccess_token=\w+/g,"access_token=[REDACTED]"),this.request=t,Object.defineProperty(this,"code",{get:()=>(La(new Va("[@octokit/request-error] `error.code` is deprecated, use `error.status`.")),p)}),Object.defineProperty(this,"headers",{get:()=>(Ba(new Va("[@octokit/request-error] `error.headers` is deprecated, use `error.response.headers`.")),d||{})})}};function qa(e){const p=e.request&&e.request.log?e.request.log:console;(sp(e.body)||Array.isArray(e.body))&&(e.body=JSON.stringify(e.body));let a,d,t={};return(e.request&&e.request.fetch||Oa)(e.url,Object.assign({method:e.method,body:e.body,headers:e.headers,redirect:e.redirect},e.request)).then((async r=>{d=r.url,a=r.status;for(const e of r.headers)t[e[0]]=e[1];if("deprecation"in t){const a=t.link&&t.link.match(/<([^>]+)>; rel="deprecation"/),d=a&&a.pop();p.warn(`[@octokit/request] "${e.method} ${e.url}" is deprecated. It is scheduled to be removed on ${t.sunset}${d?`. See ${d}`:""}`)}if(204!==a&&205!==a){if("HEAD"===e.method){if(a<400)return;throw new xa(r.statusText,a,{response:{url:d,status:a,headers:t,data:void 0},request:e})}if(304===a)throw new xa("Not modified",a,{response:{url:d,status:a,headers:t,data:await Ia(r)},request:e});if(a>=400){const p=await Ia(r),s=new xa(function(e){if("string"==typeof e)return e;if("message"in e)return Array.isArray(e.errors)?`${e.message}: ${e.errors.map(JSON.stringify).join(", ")}`:e.message;return`Unknown error: ${JSON.stringify(e)}`}(p),a,{response:{url:d,status:a,headers:t,data:p},request:e});throw s}return Ia(r)}})).then((e=>({status:a,url:d,headers:t,data:e}))).catch((p=>{if(p instanceof xa)throw p;throw new xa(p.message,500,{request:e})}))}async function Ia(e){const p=e.headers.get("content-type");return/application\/json/.test(p)?e.json():!p||/^text\/|charset=utf-8$/.test(p)?e.text():function(e){return e.arrayBuffer()}(e)}const Ha=function e(p,a){const d=p.defaults(a);return Object.assign((function(p,a){const t=d.merge(p,a);if(!t.request||!t.request.hook)return qa(d.parse(t));const r=(e,p)=>qa(d.parse(d.merge(e,p)));return Object.assign(r,{endpoint:d,defaults:e.bind(null,d)}),t.request.hook(r,t)}),{endpoint:d,defaults:e.bind(null,d)})}(Ep,{headers:{"user-agent":`octokit-request.js/5.6.3 ${Me()}`}}),$a=Ca.exports((e=>console.warn(e)));class Ma extends Error{constructor(e,p,a){super(e),Error.captureStackTrace&&Error.captureStackTrace(this,this.constructor),this.name="HttpError",this.status=p,Object.defineProperty(this,"code",{get:()=>($a(new Va("[@octokit/request-error] `error.code` is deprecated, use `error.status`.")),p)}),this.headers=a.headers||{};const d=Object.assign({},a.request);a.request.headers.authorization&&(d.headers=Object.assign({},a.request.headers,{authorization:a.request.headers.authorization.replace(/ .*$/," [REDACTED]")})),d.url=d.url.replace(/\bclient_secret=\w+/g,"client_secret=[REDACTED]").replace(/\baccess_token=\w+/g,"access_token=[REDACTED]"),this.request=d}}function za(e){(sp(e.body)||Array.isArray(e.body))&&(e.body=JSON.stringify(e.body));let p,a,d={};return(e.request&&e.request.fetch||Oa)(e.url,Object.assign({method:e.method,body:e.body,headers:e.headers,redirect:e.redirect},e.request)).then((t=>{a=t.url,p=t.status;for(const e of t.headers)d[e[0]]=e[1];if(204===p||205===p)return;if("HEAD"===e.method){if(p<400)return;throw new Ma(t.statusText,p,{headers:d,request:e})}if(304===p)throw new Ma("Not modified",p,{headers:d,request:e});if(p>=400)return t.text().then((a=>{const t=new Ma(a,p,{headers:d,request:e});try{let e=JSON.parse(t.message);Object.assign(t,e);let p=e.errors;t.message=t.message+": "+p.map(JSON.stringify).join(", ")}catch(e){}throw t}));const r=t.headers.get("content-type");return/application\/json/.test(r)?t.json():!r||/^text\/|charset=utf-8$/.test(r)?t.text():function(e){return e.arrayBuffer()}(t)})).then((e=>({status:p,url:a,headers:d,data:e}))).catch((p=>{if(p instanceof Ma)throw p;throw new Ma(p.message,500,{headers:d,request:e})}))}const Wa=function e(p,a){const d=p.defaults(a);return Object.assign((function(p,a){const t=d.merge(p,a);if(!t.request||!t.request.hook)return za(d.parse(t));const r=(e,p)=>za(d.parse(d.merge(e,p)));return Object.assign(r,{endpoint:d,defaults:e.bind(null,d)}),t.request.hook(r,t)}),{endpoint:d,defaults:e.bind(null,d)})}(Ep,{headers:{"user-agent":`octokit-request.js/5.4.12 ${Me()}`}});class Ka extends Error{constructor(e,p){super(p.data.errors[0].message),Object.assign(this,p.data),Object.assign(this,{headers:p.headers}),this.name="GraphqlError",this.request=e,Error.captureStackTrace&&Error.captureStackTrace(this,this.constructor)}}const Ja=["method","baseUrl","url","headers","request","query","mediaType"],Ya=/\/api\/v3\/?$/;function Za(e,p){const a=e.defaults(p);return Object.assign(((e,p)=>function(e,p,a){if("string"==typeof p&&a&&"query"in a)return Promise.reject(new Error('[@octokit/graphql] "query" cannot be used as variable name'));const d="string"==typeof p?Object.assign({query:p},a):p,t=Object.keys(d).reduce(((e,p)=>Ja.includes(p)?(e[p]=d[p],e):(e.variables||(e.variables={}),e.variables[p]=d[p],e)),{}),r=d.baseUrl||e.endpoint.DEFAULTS.baseUrl;return Ya.test(r)&&(t.url=r.replace(Ya,"/api/graphql")),e(t).then((e=>{if(e.data.errors){const p={};for(const a of Object.keys(e.headers))p[a]=e.headers[a];throw new Ka(t,{headers:p,data:e.data})}return e.data.data}))}(a,e,p)),{defaults:Za.bind(null,a),endpoint:Wa.endpoint})}async function Qa(e){const p=3===e.split(/\./).length?"app":/^v\d+\./.test(e)?"installation":"oauth";return{type:"token",token:e,tokenType:p}}async function Xa(e,p,a,d){const t=p.endpoint.merge(a,d);return t.headers.authorization=function(e){return 3===e.split(/\./).length?`bearer ${e}`:`token ${e}`}(e),p(t)}Za(Wa,{headers:{"user-agent":`octokit-graphql.js/4.5.8 ${Me()}`},method:"POST",url:"/graphql"});const ed=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(Qa.bind(null,e),{hook:Xa.bind(null,e)})};class pd{constructor(e={}){const p=new tp,a={baseUrl:Ha.endpoint.DEFAULTS.baseUrl,headers:{},request:Object.assign({},e.request,{hook:p.bind(null,"request")}),mediaType:{previews:[],format:""}};var d;if(a.headers["user-agent"]=[e.userAgent,`octokit-core.js/3.6.0 ${Me()}`].filter(Boolean).join(" "),e.baseUrl&&(a.baseUrl=e.baseUrl),e.previews&&(a.mediaType.previews=e.previews),e.timeZone&&(a.headers["time-zone"]=e.timeZone),this.request=Ha.defaults(a),this.graphql=(d=this.request,Za(d,{method:"POST",url:"/graphql"})).defaults(a),this.log=Object.assign({debug:()=>{},info:()=>{},warn:console.warn.bind(console),error:console.error.bind(console)},e.log),this.hook=p,e.authStrategy){const{authStrategy:a,...d}=e,t=a(Object.assign({request:this.request,log:this.log,octokit:this,octokitOptions:d},e.auth));p.wrap("request",t.hook),this.auth=t}else if(e.auth){const a=ed(e.auth);p.wrap("request",a.hook),this.auth=a}else this.auth=async()=>({type:"unauthenticated"});this.constructor.plugins.forEach((p=>{Object.assign(this,p(this,e))}))}static defaults(e){return class extends(this){constructor(...p){const a=p[0]||{};super("function"!=typeof e?Object.assign({},e,a,a.userAgent&&e.userAgent?{userAgent:`${a.userAgent} ${e.userAgent}`}:null):e(a))}}}static plugin(...e){var p;const a=this.plugins;return(p=class extends(this){}).plugins=a.concat(e.filter((e=>!a.includes(e)))),p}}pd.VERSION="3.6.0",pd.plugins=[];var ad=c(Object.freeze({__proto__:null,Octokit:pd}));const dd={actions:{addCustomLabelsToSelfHostedRunnerForOrg:["POST /orgs/{org}/actions/runners/{runner_id}/labels"],addCustomLabelsToSelfHostedRunnerForRepo:["POST /repos/{owner}/{repo}/actions/runners/{runner_id}/labels"],addSelectedRepoToOrgSecret:["PUT /orgs/{org}/actions/secrets/{secret_name}/repositories/{repository_id}"],approveWorkflowRun:["POST /repos/{owner}/{repo}/actions/runs/{run_id}/approve"],cancelWorkflowRun:["POST /repos/{owner}/{repo}/actions/runs/{run_id}/cancel"],createOrUpdateEnvironmentSecret:["PUT /repositories/{repository_id}/environments/{environment_name}/secrets/{secret_name}"],createOrUpdateOrgSecret:["PUT /orgs/{org}/actions/secrets/{secret_name}"],createOrUpdateRepoSecret:["PUT /repos/{owner}/{repo}/actions/secrets/{secret_name}"],createRegistrationTokenForOrg:["POST /orgs/{org}/actions/runners/registration-token"],createRegistrationTokenForRepo:["POST /repos/{owner}/{repo}/actions/runners/registration-token"],createRemoveTokenForOrg:["POST /orgs/{org}/actions/runners/remove-token"],createRemoveTokenForRepo:["POST /repos/{owner}/{repo}/actions/runners/remove-token"],createWorkflowDispatch:["POST /repos/{owner}/{repo}/actions/workflows/{workflow_id}/dispatches"],deleteActionsCacheById:["DELETE /repos/{owner}/{repo}/actions/caches/{cache_id}"],deleteActionsCacheByKey:["DELETE /repos/{owner}/{repo}/actions/caches{?key,ref}"],deleteArtifact:["DELETE /repos/{owner}/{repo}/actions/artifacts/{artifact_id}"],deleteEnvironmentSecret:["DELETE /repositories/{repository_id}/environments/{environment_name}/secrets/{secret_name}"],deleteOrgSecret:["DELETE /orgs/{org}/actions/secrets/{secret_name}"],deleteRepoSecret:["DELETE /repos/{owner}/{repo}/actions/secrets/{secret_name}"],deleteSelfHostedRunnerFromOrg:["DELETE /orgs/{org}/actions/runners/{runner_id}"],deleteSelfHostedRunnerFromRepo:["DELETE /repos/{owner}/{repo}/actions/runners/{runner_id}"],deleteWorkflowRun:["DELETE /repos/{owner}/{repo}/actions/runs/{run_id}"],deleteWorkflowRunLogs:["DELETE /repos/{owner}/{repo}/actions/runs/{run_id}/logs"],disableSelectedRepositoryGithubActionsOrganization:["DELETE /orgs/{org}/actions/permissions/repositories/{repository_id}"],disableWorkflow:["PUT /repos/{owner}/{repo}/actions/workflows/{workflow_id}/disable"],downloadArtifact:["GET /repos/{owner}/{repo}/actions/artifacts/{artifact_id}/{archive_format}"],downloadJobLogsForWorkflowRun:["GET /repos/{owner}/{repo}/actions/jobs/{job_id}/logs"],downloadWorkflowRunAttemptLogs:["GET /repos/{owner}/{repo}/actions/runs/{run_id}/attempts/{attempt_number}/logs"],downloadWorkflowRunLogs:["GET /repos/{owner}/{repo}/actions/runs/{run_id}/logs"],enableSelectedRepositoryGithubActionsOrganization:["PUT /orgs/{org}/actions/permissions/repositories/{repository_id}"],enableWorkflow:["PUT /repos/{owner}/{repo}/actions/workflows/{workflow_id}/enable"],getActionsCacheList:["GET /repos/{owner}/{repo}/actions/caches"],getActionsCacheUsage:["GET /repos/{owner}/{repo}/actions/cache/usage"],getActionsCacheUsageByRepoForOrg:["GET /orgs/{org}/actions/cache/usage-by-repository"],getActionsCacheUsageForEnterprise:["GET /enterprises/{enterprise}/actions/cache/usage"],getActionsCacheUsageForOrg:["GET /orgs/{org}/actions/cache/usage"],getAllowedActionsOrganization:["GET /orgs/{org}/actions/permissions/selected-actions"],getAllowedActionsRepository:["GET /repos/{owner}/{repo}/actions/permissions/selected-actions"],getArtifact:["GET /repos/{owner}/{repo}/actions/artifacts/{artifact_id}"],getEnvironmentPublicKey:["GET /repositories/{repository_id}/environments/{environment_name}/secrets/public-key"],getEnvironmentSecret:["GET /repositories/{repository_id}/environments/{environment_name}/secrets/{secret_name}"],getGithubActionsDefaultWorkflowPermissionsEnterprise:["GET /enterprises/{enterprise}/actions/permissions/workflow"],getGithubActionsDefaultWorkflowPermissionsOrganization:["GET /orgs/{org}/actions/permissions/workflow"],getGithubActionsDefaultWorkflowPermissionsRepository:["GET /repos/{owner}/{repo}/actions/permissions/workflow"],getGithubActionsPermissionsOrganization:["GET /orgs/{org}/actions/permissions"],getGithubActionsPermissionsRepository:["GET /repos/{owner}/{repo}/actions/permissions"],getJobForWorkflowRun:["GET /repos/{owner}/{repo}/actions/jobs/{job_id}"],getOrgPublicKey:["GET /orgs/{org}/actions/secrets/public-key"],getOrgSecret:["GET /orgs/{org}/actions/secrets/{secret_name}"],getPendingDeploymentsForRun:["GET /repos/{owner}/{repo}/actions/runs/{run_id}/pending_deployments"],getRepoPermissions:["GET /repos/{owner}/{repo}/actions/permissions",{},{renamed:["actions","getGithubActionsPermissionsRepository"]}],getRepoPublicKey:["GET /repos/{owner}/{repo}/actions/secrets/public-key"],getRepoSecret:["GET /repos/{owner}/{repo}/actions/secrets/{secret_name}"],getReviewsForRun:["GET /repos/{owner}/{repo}/actions/runs/{run_id}/approvals"],getSelfHostedRunnerForOrg:["GET /orgs/{org}/actions/runners/{runner_id}"],getSelfHostedRunnerForRepo:["GET /repos/{owner}/{repo}/actions/runners/{runner_id}"],getWorkflow:["GET /repos/{owner}/{repo}/actions/workflows/{workflow_id}"],getWorkflowAccessToRepository:["GET /repos/{owner}/{repo}/actions/permissions/access"],getWorkflowRun:["GET /repos/{owner}/{repo}/actions/runs/{run_id}"],getWorkflowRunAttempt:["GET /repos/{owner}/{repo}/actions/runs/{run_id}/attempts/{attempt_number}"],getWorkflowRunUsage:["GET /repos/{owner}/{repo}/actions/runs/{run_id}/timing"],getWorkflowUsage:["GET /repos/{owner}/{repo}/actions/workflows/{workflow_id}/timing"],listArtifactsForRepo:["GET /repos/{owner}/{repo}/actions/artifacts"],listEnvironmentSecrets:["GET /repositories/{repository_id}/environments/{environment_name}/secrets"],listJobsForWorkflowRun:["GET /repos/{owner}/{repo}/actions/runs/{run_id}/jobs"],listJobsForWorkflowRunAttempt:["GET /repos/{owner}/{repo}/actions/runs/{run_id}/attempts/{attempt_number}/jobs"],listLabelsForSelfHostedRunnerForOrg:["GET /orgs/{org}/actions/runners/{runner_id}/labels"],listLabelsForSelfHostedRunnerForRepo:["GET /repos/{owner}/{repo}/actions/runners/{runner_id}/labels"],listOrgSecrets:["GET /orgs/{org}/actions/secrets"],listRepoSecrets:["GET /repos/{owner}/{repo}/actions/secrets"],listRepoWorkflows:["GET /repos/{owner}/{repo}/actions/workflows"],listRunnerApplicationsForOrg:["GET /orgs/{org}/actions/runners/downloads"],listRunnerApplicationsForRepo:["GET /repos/{owner}/{repo}/actions/runners/downloads"],listSelectedReposForOrgSecret:["GET /orgs/{org}/actions/secrets/{secret_name}/repositories"],listSelectedRepositoriesEnabledGithubActionsOrganization:["GET /orgs/{org}/actions/permissions/repositories"],listSelfHostedRunnersForOrg:["GET /orgs/{org}/actions/runners"],listSelfHostedRunnersForRepo:["GET /repos/{owner}/{repo}/actions/runners"],listWorkflowRunArtifacts:["GET /repos/{owner}/{repo}/actions/runs/{run_id}/artifacts"],listWorkflowRuns:["GET /repos/{owner}/{repo}/actions/workflows/{workflow_id}/runs"],listWorkflowRunsForRepo:["GET /repos/{owner}/{repo}/actions/runs"],reRunJobForWorkflowRun:["POST /repos/{owner}/{repo}/actions/jobs/{job_id}/rerun"],reRunWorkflow:["POST /repos/{owner}/{repo}/actions/runs/{run_id}/rerun"],reRunWorkflowFailedJobs:["POST /repos/{owner}/{repo}/actions/runs/{run_id}/rerun-failed-jobs"],removeAllCustomLabelsFromSelfHostedRunnerForOrg:["DELETE /orgs/{org}/actions/runners/{runner_id}/labels"],removeAllCustomLabelsFromSelfHostedRunnerForRepo:["DELETE /repos/{owner}/{repo}/actions/runners/{runner_id}/labels"],removeCustomLabelFromSelfHostedRunnerForOrg:["DELETE /orgs/{org}/actions/runners/{runner_id}/labels/{name}"],removeCustomLabelFromSelfHostedRunnerForRepo:["DELETE /repos/{owner}/{repo}/actions/runners/{runner_id}/labels/{name}"],removeSelectedRepoFromOrgSecret:["DELETE /orgs/{org}/actions/secrets/{secret_name}/repositories/{repository_id}"],reviewPendingDeploymentsForRun:["POST /repos/{owner}/{repo}/actions/runs/{run_id}/pending_deployments"],setAllowedActionsOrganization:["PUT /orgs/{org}/actions/permissions/selected-actions"],setAllowedActionsRepository:["PUT /repos/{owner}/{repo}/actions/permissions/selected-actions"],setCustomLabelsForSelfHostedRunnerForOrg:["PUT /orgs/{org}/actions/runners/{runner_id}/labels"],setCustomLabelsForSelfHostedRunnerForRepo:["PUT /repos/{owner}/{repo}/actions/runners/{runner_id}/labels"],setGithubActionsDefaultWorkflowPermissionsEnterprise:["PUT /enterprises/{enterprise}/actions/permissions/workflow"],setGithubActionsDefaultWorkflowPermissionsOrganization:["PUT /orgs/{org}/actions/permissions/workflow"],setGithubActionsDefaultWorkflowPermissionsRepository:["PUT /repos/{owner}/{repo}/actions/permissions/workflow"],setGithubActionsPermissionsOrganization:["PUT /orgs/{org}/actions/permissions"],setGithubActionsPermissionsRepository:["PUT /repos/{owner}/{repo}/actions/permissions"],setSelectedReposForOrgSecret:["PUT /orgs/{org}/actions/secrets/{secret_name}/repositories"],setSelectedRepositoriesEnabledGithubActionsOrganization:["PUT /orgs/{org}/actions/permissions/repositories"],setWorkflowAccessToRepository:["PUT /repos/{owner}/{repo}/actions/permissions/access"]},activity:{checkRepoIsStarredByAuthenticatedUser:["GET /user/starred/{owner}/{repo}"],deleteRepoSubscription:["DELETE /repos/{owner}/{repo}/subscription"],deleteThreadSubscription:["DELETE /notifications/threads/{thread_id}/subscription"],getFeeds:["GET /feeds"],getRepoSubscription:["GET /repos/{owner}/{repo}/subscription"],getThread:["GET /notifications/threads/{thread_id}"],getThreadSubscriptionForAuthenticatedUser:["GET /notifications/threads/{thread_id}/subscription"],listEventsForAuthenticatedUser:["GET /users/{username}/events"],listNotificationsForAuthenticatedUser:["GET /notifications"],listOrgEventsForAuthenticatedUser:["GET /users/{username}/events/orgs/{org}"],listPublicEvents:["GET /events"],listPublicEventsForRepoNetwork:["GET /networks/{owner}/{repo}/events"],listPublicEventsForUser:["GET /users/{username}/events/public"],listPublicOrgEvents:["GET /orgs/{org}/events"],listReceivedEventsForUser:["GET /users/{username}/received_events"],listReceivedPublicEventsForUser:["GET /users/{username}/received_events/public"],listRepoEvents:["GET /repos/{owner}/{repo}/events"],listRepoNotificationsForAuthenticatedUser:["GET /repos/{owner}/{repo}/notifications"],listReposStarredByAuthenticatedUser:["GET /user/starred"],listReposStarredByUser:["GET /users/{username}/starred"],listReposWatchedByUser:["GET /users/{username}/subscriptions"],listStargazersForRepo:["GET /repos/{owner}/{repo}/stargazers"],listWatchedReposForAuthenticatedUser:["GET /user/subscriptions"],listWatchersForRepo:["GET /repos/{owner}/{repo}/subscribers"],markNotificationsAsRead:["PUT /notifications"],markRepoNotificationsAsRead:["PUT /repos/{owner}/{repo}/notifications"],markThreadAsRead:["PATCH /notifications/threads/{thread_id}"],setRepoSubscription:["PUT /repos/{owner}/{repo}/subscription"],setThreadSubscription:["PUT /notifications/threads/{thread_id}/subscription"],starRepoForAuthenticatedUser:["PUT /user/starred/{owner}/{repo}"],unstarRepoForAuthenticatedUser:["DELETE /user/starred/{owner}/{repo}"]},apps:{addRepoToInstallation:["PUT /user/installations/{installation_id}/repositories/{repository_id}",{},{renamed:["apps","addRepoToInstallationForAuthenticatedUser"]}],addRepoToInstallationForAuthenticatedUser:["PUT /user/installations/{installation_id}/repositories/{repository_id}"],checkToken:["POST /applications/{client_id}/token"],createFromManifest:["POST /app-manifests/{code}/conversions"],createInstallationAccessToken:["POST /app/installations/{installation_id}/access_tokens"],deleteAuthorization:["DELETE /applications/{client_id}/grant"],deleteInstallation:["DELETE /app/installations/{installation_id}"],deleteToken:["DELETE /applications/{client_id}/token"],getAuthenticated:["GET /app"],getBySlug:["GET /apps/{app_slug}"],getInstallation:["GET /app/installations/{installation_id}"],getOrgInstallation:["GET /orgs/{org}/installation"],getRepoInstallation:["GET /repos/{owner}/{repo}/installation"],getSubscriptionPlanForAccount:["GET /marketplace_listing/accounts/{account_id}"],getSubscriptionPlanForAccountStubbed:["GET /marketplace_listing/stubbed/accounts/{account_id}"],getUserInstallation:["GET /users/{username}/installation"],getWebhookConfigForApp:["GET /app/hook/config"],getWebhookDelivery:["GET /app/hook/deliveries/{delivery_id}"],listAccountsForPlan:["GET /marketplace_listing/plans/{plan_id}/accounts"],listAccountsForPlanStubbed:["GET /marketplace_listing/stubbed/plans/{plan_id}/accounts"],listInstallationReposForAuthenticatedUser:["GET /user/installations/{installation_id}/repositories"],listInstallations:["GET /app/installations"],listInstallationsForAuthenticatedUser:["GET /user/installations"],listPlans:["GET /marketplace_listing/plans"],listPlansStubbed:["GET /marketplace_listing/stubbed/plans"],listReposAccessibleToInstallation:["GET /installation/repositories"],listSubscriptionsForAuthenticatedUser:["GET /user/marketplace_purchases"],listSubscriptionsForAuthenticatedUserStubbed:["GET /user/marketplace_purchases/stubbed"],listWebhookDeliveries:["GET /app/hook/deliveries"],redeliverWebhookDelivery:["POST /app/hook/deliveries/{delivery_id}/attempts"],removeRepoFromInstallation:["DELETE /user/installations/{installation_id}/repositories/{repository_id}",{},{renamed:["apps","removeRepoFromInstallationForAuthenticatedUser"]}],removeRepoFromInstallationForAuthenticatedUser:["DELETE /user/installations/{installation_id}/repositories/{repository_id}"],resetToken:["PATCH /applications/{client_id}/token"],revokeInstallationAccessToken:["DELETE /installation/token"],scopeToken:["POST /applications/{client_id}/token/scoped"],suspendInstallation:["PUT /app/installations/{installation_id}/suspended"],unsuspendInstallation:["DELETE /app/installations/{installation_id}/suspended"],updateWebhookConfigForApp:["PATCH /app/hook/config"]},billing:{getGithubActionsBillingOrg:["GET /orgs/{org}/settings/billing/actions"],getGithubActionsBillingUser:["GET /users/{username}/settings/billing/actions"],getGithubAdvancedSecurityBillingGhe:["GET /enterprises/{enterprise}/settings/billing/advanced-security"],getGithubAdvancedSecurityBillingOrg:["GET /orgs/{org}/settings/billing/advanced-security"],getGithubPackagesBillingOrg:["GET /orgs/{org}/settings/billing/packages"],getGithubPackagesBillingUser:["GET /users/{username}/settings/billing/packages"],getSharedStorageBillingOrg:["GET /orgs/{org}/settings/billing/shared-storage"],getSharedStorageBillingUser:["GET /users/{username}/settings/billing/shared-storage"]},checks:{create:["POST /repos/{owner}/{repo}/check-runs"],createSuite:["POST /repos/{owner}/{repo}/check-suites"],get:["GET /repos/{owner}/{repo}/check-runs/{check_run_id}"],getSuite:["GET /repos/{owner}/{repo}/check-suites/{check_suite_id}"],listAnnotations:["GET /repos/{owner}/{repo}/check-runs/{check_run_id}/annotations"],listForRef:["GET /repos/{owner}/{repo}/commits/{ref}/check-runs"],listForSuite:["GET /repos/{owner}/{repo}/check-suites/{check_suite_id}/check-runs"],listSuitesForRef:["GET /repos/{owner}/{repo}/commits/{ref}/check-suites"],rerequestRun:["POST /repos/{owner}/{repo}/check-runs/{check_run_id}/rerequest"],rerequestSuite:["POST /repos/{owner}/{repo}/check-suites/{check_suite_id}/rerequest"],setSuitesPreferences:["PATCH /repos/{owner}/{repo}/check-suites/preferences"],update:["PATCH /repos/{owner}/{repo}/check-runs/{check_run_id}"]},codeScanning:{deleteAnalysis:["DELETE /repos/{owner}/{repo}/code-scanning/analyses/{analysis_id}{?confirm_delete}"],getAlert:["GET /repos/{owner}/{repo}/code-scanning/alerts/{alert_number}",{},{renamedParameters:{alert_id:"alert_number"}}],getAnalysis:["GET /repos/{owner}/{repo}/code-scanning/analyses/{analysis_id}"],getSarif:["GET /repos/{owner}/{repo}/code-scanning/sarifs/{sarif_id}"],listAlertInstances:["GET /repos/{owner}/{repo}/code-scanning/alerts/{alert_number}/instances"],listAlertsForOrg:["GET /orgs/{org}/code-scanning/alerts"],listAlertsForRepo:["GET /repos/{owner}/{repo}/code-scanning/alerts"],listAlertsInstances:["GET /repos/{owner}/{repo}/code-scanning/alerts/{alert_number}/instances",{},{renamed:["codeScanning","listAlertInstances"]}],listRecentAnalyses:["GET /repos/{owner}/{repo}/code-scanning/analyses"],updateAlert:["PATCH /repos/{owner}/{repo}/code-scanning/alerts/{alert_number}"],uploadSarif:["POST /repos/{owner}/{repo}/code-scanning/sarifs"]},codesOfConduct:{getAllCodesOfConduct:["GET /codes_of_conduct"],getConductCode:["GET /codes_of_conduct/{key}"]},codespaces:{addRepositoryForSecretForAuthenticatedUser:["PUT /user/codespaces/secrets/{secret_name}/repositories/{repository_id}"],codespaceMachinesForAuthenticatedUser:["GET /user/codespaces/{codespace_name}/machines"],createForAuthenticatedUser:["POST /user/codespaces"],createOrUpdateRepoSecret:["PUT /repos/{owner}/{repo}/codespaces/secrets/{secret_name}"],createOrUpdateSecretForAuthenticatedUser:["PUT /user/codespaces/secrets/{secret_name}"],createWithPrForAuthenticatedUser:["POST /repos/{owner}/{repo}/pulls/{pull_number}/codespaces"],createWithRepoForAuthenticatedUser:["POST /repos/{owner}/{repo}/codespaces"],deleteForAuthenticatedUser:["DELETE /user/codespaces/{codespace_name}"],deleteFromOrganization:["DELETE /orgs/{org}/members/{username}/codespaces/{codespace_name}"],deleteRepoSecret:["DELETE /repos/{owner}/{repo}/codespaces/secrets/{secret_name}"],deleteSecretForAuthenticatedUser:["DELETE /user/codespaces/secrets/{secret_name}"],exportForAuthenticatedUser:["POST /user/codespaces/{codespace_name}/exports"],getExportDetailsForAuthenticatedUser:["GET /user/codespaces/{codespace_name}/exports/{export_id}"],getForAuthenticatedUser:["GET /user/codespaces/{codespace_name}"],getPublicKeyForAuthenticatedUser:["GET /user/codespaces/secrets/public-key"],getRepoPublicKey:["GET /repos/{owner}/{repo}/codespaces/secrets/public-key"],getRepoSecret:["GET /repos/{owner}/{repo}/codespaces/secrets/{secret_name}"],getSecretForAuthenticatedUser:["GET /user/codespaces/secrets/{secret_name}"],listDevcontainersInRepositoryForAuthenticatedUser:["GET /repos/{owner}/{repo}/codespaces/devcontainers"],listForAuthenticatedUser:["GET /user/codespaces"],listInOrganization:["GET /orgs/{org}/codespaces",{},{renamedParameters:{org_id:"org"}}],listInRepositoryForAuthenticatedUser:["GET /repos/{owner}/{repo}/codespaces"],listRepoSecrets:["GET /repos/{owner}/{repo}/codespaces/secrets"],listRepositoriesForSecretForAuthenticatedUser:["GET /user/codespaces/secrets/{secret_name}/repositories"],listSecretsForAuthenticatedUser:["GET /user/codespaces/secrets"],removeRepositoryForSecretForAuthenticatedUser:["DELETE /user/codespaces/secrets/{secret_name}/repositories/{repository_id}"],repoMachinesForAuthenticatedUser:["GET /repos/{owner}/{repo}/codespaces/machines"],setRepositoriesForSecretForAuthenticatedUser:["PUT /user/codespaces/secrets/{secret_name}/repositories"],startForAuthenticatedUser:["POST /user/codespaces/{codespace_name}/start"],stopForAuthenticatedUser:["POST /user/codespaces/{codespace_name}/stop"],stopInOrganization:["POST /orgs/{org}/members/{username}/codespaces/{codespace_name}/stop"],updateForAuthenticatedUser:["PATCH /user/codespaces/{codespace_name}"]},dependabot:{addSelectedRepoToOrgSecret:["PUT /orgs/{org}/dependabot/secrets/{secret_name}/repositories/{repository_id}"],createOrUpdateOrgSecret:["PUT /orgs/{org}/dependabot/secrets/{secret_name}"],createOrUpdateRepoSecret:["PUT /repos/{owner}/{repo}/dependabot/secrets/{secret_name}"],deleteOrgSecret:["DELETE /orgs/{org}/dependabot/secrets/{secret_name}"],deleteRepoSecret:["DELETE /repos/{owner}/{repo}/dependabot/secrets/{secret_name}"],getOrgPublicKey:["GET /orgs/{org}/dependabot/secrets/public-key"],getOrgSecret:["GET /orgs/{org}/dependabot/secrets/{secret_name}"],getRepoPublicKey:["GET /repos/{owner}/{repo}/dependabot/secrets/public-key"],getRepoSecret:["GET /repos/{owner}/{repo}/dependabot/secrets/{secret_name}"],listOrgSecrets:["GET /orgs/{org}/dependabot/secrets"],listRepoSecrets:["GET /repos/{owner}/{repo}/dependabot/secrets"],listSelectedReposForOrgSecret:["GET /orgs/{org}/dependabot/secrets/{secret_name}/repositories"],removeSelectedRepoFromOrgSecret:["DELETE /orgs/{org}/dependabot/secrets/{secret_name}/repositories/{repository_id}"],setSelectedReposForOrgSecret:["PUT /orgs/{org}/dependabot/secrets/{secret_name}/repositories"]},dependencyGraph:{createRepositorySnapshot:["POST /repos/{owner}/{repo}/dependency-graph/snapshots"],diffRange:["GET /repos/{owner}/{repo}/dependency-graph/compare/{basehead}"]},emojis:{get:["GET /emojis"]},enterpriseAdmin:{addCustomLabelsToSelfHostedRunnerForEnterprise:["POST /enterprises/{enterprise}/actions/runners/{runner_id}/labels"],disableSelectedOrganizationGithubActionsEnterprise:["DELETE /enterprises/{enterprise}/actions/permissions/organizations/{org_id}"],enableSelectedOrganizationGithubActionsEnterprise:["PUT /enterprises/{enterprise}/actions/permissions/organizations/{org_id}"],getAllowedActionsEnterprise:["GET /enterprises/{enterprise}/actions/permissions/selected-actions"],getGithubActionsPermissionsEnterprise:["GET /enterprises/{enterprise}/actions/permissions"],getServerStatistics:["GET /enterprise-installation/{enterprise_or_org}/server-statistics"],listLabelsForSelfHostedRunnerForEnterprise:["GET /enterprises/{enterprise}/actions/runners/{runner_id}/labels"],listSelectedOrganizationsEnabledGithubActionsEnterprise:["GET /enterprises/{enterprise}/actions/permissions/organizations"],removeAllCustomLabelsFromSelfHostedRunnerForEnterprise:["DELETE /enterprises/{enterprise}/actions/runners/{runner_id}/labels"],removeCustomLabelFromSelfHostedRunnerForEnterprise:["DELETE /enterprises/{enterprise}/actions/runners/{runner_id}/labels/{name}"],setAllowedActionsEnterprise:["PUT /enterprises/{enterprise}/actions/permissions/selected-actions"],setCustomLabelsForSelfHostedRunnerForEnterprise:["PUT /enterprises/{enterprise}/actions/runners/{runner_id}/labels"],setGithubActionsPermissionsEnterprise:["PUT /enterprises/{enterprise}/actions/permissions"],setSelectedOrganizationsEnabledGithubActionsEnterprise:["PUT /enterprises/{enterprise}/actions/permissions/organizations"]},gists:{checkIsStarred:["GET /gists/{gist_id}/star"],create:["POST /gists"],createComment:["POST /gists/{gist_id}/comments"],delete:["DELETE /gists/{gist_id}"],deleteComment:["DELETE /gists/{gist_id}/comments/{comment_id}"],fork:["POST /gists/{gist_id}/forks"],get:["GET /gists/{gist_id}"],getComment:["GET /gists/{gist_id}/comments/{comment_id}"],getRevision:["GET /gists/{gist_id}/{sha}"],list:["GET /gists"],listComments:["GET /gists/{gist_id}/comments"],listCommits:["GET /gists/{gist_id}/commits"],listForUser:["GET /users/{username}/gists"],listForks:["GET /gists/{gist_id}/forks"],listPublic:["GET /gists/public"],listStarred:["GET /gists/starred"],star:["PUT /gists/{gist_id}/star"],unstar:["DELETE /gists/{gist_id}/star"],update:["PATCH /gists/{gist_id}"],updateComment:["PATCH /gists/{gist_id}/comments/{comment_id}"]},git:{createBlob:["POST /repos/{owner}/{repo}/git/blobs"],createCommit:["POST /repos/{owner}/{repo}/git/commits"],createRef:["POST /repos/{owner}/{repo}/git/refs"],createTag:["POST /repos/{owner}/{repo}/git/tags"],createTree:["POST /repos/{owner}/{repo}/git/trees"],deleteRef:["DELETE /repos/{owner}/{repo}/git/refs/{ref}"],getBlob:["GET /repos/{owner}/{repo}/git/blobs/{file_sha}"],getCommit:["GET /repos/{owner}/{repo}/git/commits/{commit_sha}"],getRef:["GET /repos/{owner}/{repo}/git/ref/{ref}"],getTag:["GET /repos/{owner}/{repo}/git/tags/{tag_sha}"],getTree:["GET /repos/{owner}/{repo}/git/trees/{tree_sha}"],listMatchingRefs:["GET /repos/{owner}/{repo}/git/matching-refs/{ref}"],updateRef:["PATCH /repos/{owner}/{repo}/git/refs/{ref}"]},gitignore:{getAllTemplates:["GET /gitignore/templates"],getTemplate:["GET /gitignore/templates/{name}"]},interactions:{getRestrictionsForAuthenticatedUser:["GET /user/interaction-limits"],getRestrictionsForOrg:["GET /orgs/{org}/interaction-limits"],getRestrictionsForRepo:["GET /repos/{owner}/{repo}/interaction-limits"],getRestrictionsForYourPublicRepos:["GET /user/interaction-limits",{},{renamed:["interactions","getRestrictionsForAuthenticatedUser"]}],removeRestrictionsForAuthenticatedUser:["DELETE /user/interaction-limits"],removeRestrictionsForOrg:["DELETE /orgs/{org}/interaction-limits"],removeRestrictionsForRepo:["DELETE /repos/{owner}/{repo}/interaction-limits"],removeRestrictionsForYourPublicRepos:["DELETE /user/interaction-limits",{},{renamed:["interactions","removeRestrictionsForAuthenticatedUser"]}],setRestrictionsForAuthenticatedUser:["PUT /user/interaction-limits"],setRestrictionsForOrg:["PUT /orgs/{org}/interaction-limits"],setRestrictionsForRepo:["PUT /repos/{owner}/{repo}/interaction-limits"],setRestrictionsForYourPublicRepos:["PUT /user/interaction-limits",{},{renamed:["interactions","setRestrictionsForAuthenticatedUser"]}]},issues:{addAssignees:["POST /repos/{owner}/{repo}/issues/{issue_number}/assignees"],addLabels:["POST /repos/{owner}/{repo}/issues/{issue_number}/labels"],checkUserCanBeAssigned:["GET /repos/{owner}/{repo}/assignees/{assignee}"],create:["POST /repos/{owner}/{repo}/issues"],createComment:["POST /repos/{owner}/{repo}/issues/{issue_number}/comments"],createLabel:["POST /repos/{owner}/{repo}/labels"],createMilestone:["POST /repos/{owner}/{repo}/milestones"],deleteComment:["DELETE /repos/{owner}/{repo}/issues/comments/{comment_id}"],deleteLabel:["DELETE /repos/{owner}/{repo}/labels/{name}"],deleteMilestone:["DELETE /repos/{owner}/{repo}/milestones/{milestone_number}"],get:["GET /repos/{owner}/{repo}/issues/{issue_number}"],getComment:["GET /repos/{owner}/{repo}/issues/comments/{comment_id}"],getEvent:["GET /repos/{owner}/{repo}/issues/events/{event_id}"],getLabel:["GET /repos/{owner}/{repo}/labels/{name}"],getMilestone:["GET /repos/{owner}/{repo}/milestones/{milestone_number}"],list:["GET /issues"],listAssignees:["GET /repos/{owner}/{repo}/assignees"],listComments:["GET /repos/{owner}/{repo}/issues/{issue_number}/comments"],listCommentsForRepo:["GET /repos/{owner}/{repo}/issues/comments"],listEvents:["GET /repos/{owner}/{repo}/issues/{issue_number}/events"],listEventsForRepo:["GET /repos/{owner}/{repo}/issues/events"],listEventsForTimeline:["GET /repos/{owner}/{repo}/issues/{issue_number}/timeline"],listForAuthenticatedUser:["GET /user/issues"],listForOrg:["GET /orgs/{org}/issues"],listForRepo:["GET /repos/{owner}/{repo}/issues"],listLabelsForMilestone:["GET /repos/{owner}/{repo}/milestones/{milestone_number}/labels"],listLabelsForRepo:["GET /repos/{owner}/{repo}/labels"],listLabelsOnIssue:["GET /repos/{owner}/{repo}/issues/{issue_number}/labels"],listMilestones:["GET /repos/{owner}/{repo}/milestones"],lock:["PUT /repos/{owner}/{repo}/issues/{issue_number}/lock"],removeAllLabels:["DELETE /repos/{owner}/{repo}/issues/{issue_number}/labels"],removeAssignees:["DELETE /repos/{owner}/{repo}/issues/{issue_number}/assignees"],removeLabel:["DELETE /repos/{owner}/{repo}/issues/{issue_number}/labels/{name}"],setLabels:["PUT /repos/{owner}/{repo}/issues/{issue_number}/labels"],unlock:["DELETE /repos/{owner}/{repo}/issues/{issue_number}/lock"],update:["PATCH /repos/{owner}/{repo}/issues/{issue_number}"],updateComment:["PATCH /repos/{owner}/{repo}/issues/comments/{comment_id}"],updateLabel:["PATCH /repos/{owner}/{repo}/labels/{name}"],updateMilestone:["PATCH /repos/{owner}/{repo}/milestones/{milestone_number}"]},licenses:{get:["GET /licenses/{license}"],getAllCommonlyUsed:["GET /licenses"],getForRepo:["GET /repos/{owner}/{repo}/license"]},markdown:{render:["POST /markdown"],renderRaw:["POST /markdown/raw",{headers:{"content-type":"text/plain; charset=utf-8"}}]},meta:{get:["GET /meta"],getOctocat:["GET /octocat"],getZen:["GET /zen"],root:["GET /"]},migrations:{cancelImport:["DELETE /repos/{owner}/{repo}/import"],deleteArchiveForAuthenticatedUser:["DELETE /user/migrations/{migration_id}/archive"],deleteArchiveForOrg:["DELETE /orgs/{org}/migrations/{migration_id}/archive"],downloadArchiveForOrg:["GET /orgs/{org}/migrations/{migration_id}/archive"],getArchiveForAuthenticatedUser:["GET /user/migrations/{migration_id}/archive"],getCommitAuthors:["GET /repos/{owner}/{repo}/import/authors"],getImportStatus:["GET /repos/{owner}/{repo}/import"],getLargeFiles:["GET /repos/{owner}/{repo}/import/large_files"],getStatusForAuthenticatedUser:["GET /user/migrations/{migration_id}"],getStatusForOrg:["GET /orgs/{org}/migrations/{migration_id}"],listForAuthenticatedUser:["GET /user/migrations"],listForOrg:["GET /orgs/{org}/migrations"],listReposForAuthenticatedUser:["GET /user/migrations/{migration_id}/repositories"],listReposForOrg:["GET /orgs/{org}/migrations/{migration_id}/repositories"],listReposForUser:["GET /user/migrations/{migration_id}/repositories",{},{renamed:["migrations","listReposForAuthenticatedUser"]}],mapCommitAuthor:["PATCH /repos/{owner}/{repo}/import/authors/{author_id}"],setLfsPreference:["PATCH /repos/{owner}/{repo}/import/lfs"],startForAuthenticatedUser:["POST /user/migrations"],startForOrg:["POST /orgs/{org}/migrations"],startImport:["PUT /repos/{owner}/{repo}/import"],unlockRepoForAuthenticatedUser:["DELETE /user/migrations/{migration_id}/repos/{repo_name}/lock"],unlockRepoForOrg:["DELETE /orgs/{org}/migrations/{migration_id}/repos/{repo_name}/lock"],updateImport:["PATCH /repos/{owner}/{repo}/import"]},orgs:{blockUser:["PUT /orgs/{org}/blocks/{username}"],cancelInvitation:["DELETE /orgs/{org}/invitations/{invitation_id}"],checkBlockedUser:["GET /orgs/{org}/blocks/{username}"],checkMembershipForUser:["GET /orgs/{org}/members/{username}"],checkPublicMembershipForUser:["GET /orgs/{org}/public_members/{username}"],convertMemberToOutsideCollaborator:["PUT /orgs/{org}/outside_collaborators/{username}"],createInvitation:["POST /orgs/{org}/invitations"],createWebhook:["POST /orgs/{org}/hooks"],deleteWebhook:["DELETE /orgs/{org}/hooks/{hook_id}"],get:["GET /orgs/{org}"],getMembershipForAuthenticatedUser:["GET /user/memberships/orgs/{org}"],getMembershipForUser:["GET /orgs/{org}/memberships/{username}"],getWebhook:["GET /orgs/{org}/hooks/{hook_id}"],getWebhookConfigForOrg:["GET /orgs/{org}/hooks/{hook_id}/config"],getWebhookDelivery:["GET /orgs/{org}/hooks/{hook_id}/deliveries/{delivery_id}"],list:["GET /organizations"],listAppInstallations:["GET /orgs/{org}/installations"],listBlockedUsers:["GET /orgs/{org}/blocks"],listCustomRoles:["GET /organizations/{organization_id}/custom_roles"],listFailedInvitations:["GET /orgs/{org}/failed_invitations"],listForAuthenticatedUser:["GET /user/orgs"],listForUser:["GET /users/{username}/orgs"],listInvitationTeams:["GET /orgs/{org}/invitations/{invitation_id}/teams"],listMembers:["GET /orgs/{org}/members"],listMembershipsForAuthenticatedUser:["GET /user/memberships/orgs"],listOutsideCollaborators:["GET /orgs/{org}/outside_collaborators"],listPendingInvitations:["GET /orgs/{org}/invitations"],listPublicMembers:["GET /orgs/{org}/public_members"],listWebhookDeliveries:["GET /orgs/{org}/hooks/{hook_id}/deliveries"],listWebhooks:["GET /orgs/{org}/hooks"],pingWebhook:["POST /orgs/{org}/hooks/{hook_id}/pings"],redeliverWebhookDelivery:["POST /orgs/{org}/hooks/{hook_id}/deliveries/{delivery_id}/attempts"],removeMember:["DELETE /orgs/{org}/members/{username}"],removeMembershipForUser:["DELETE /orgs/{org}/memberships/{username}"],removeOutsideCollaborator:["DELETE /orgs/{org}/outside_collaborators/{username}"],removePublicMembershipForAuthenticatedUser:["DELETE /orgs/{org}/public_members/{username}"],setMembershipForUser:["PUT /orgs/{org}/memberships/{username}"],setPublicMembershipForAuthenticatedUser:["PUT /orgs/{org}/public_members/{username}"],unblockUser:["DELETE /orgs/{org}/blocks/{username}"],update:["PATCH /orgs/{org}"],updateMembershipForAuthenticatedUser:["PATCH /user/memberships/orgs/{org}"],updateWebhook:["PATCH /orgs/{org}/hooks/{hook_id}"],updateWebhookConfigForOrg:["PATCH /orgs/{org}/hooks/{hook_id}/config"]},packages:{deletePackageForAuthenticatedUser:["DELETE /user/packages/{package_type}/{package_name}"],deletePackageForOrg:["DELETE /orgs/{org}/packages/{package_type}/{package_name}"],deletePackageForUser:["DELETE /users/{username}/packages/{package_type}/{package_name}"],deletePackageVersionForAuthenticatedUser:["DELETE /user/packages/{package_type}/{package_name}/versions/{package_version_id}"],deletePackageVersionForOrg:["DELETE /orgs/{org}/packages/{package_type}/{package_name}/versions/{package_version_id}"],deletePackageVersionForUser:["DELETE /users/{username}/packages/{package_type}/{package_name}/versions/{package_version_id}"],getAllPackageVersionsForAPackageOwnedByAnOrg:["GET /orgs/{org}/packages/{package_type}/{package_name}/versions",{},{renamed:["packages","getAllPackageVersionsForPackageOwnedByOrg"]}],getAllPackageVersionsForAPackageOwnedByTheAuthenticatedUser:["GET /user/packages/{package_type}/{package_name}/versions",{},{renamed:["packages","getAllPackageVersionsForPackageOwnedByAuthenticatedUser"]}],getAllPackageVersionsForPackageOwnedByAuthenticatedUser:["GET /user/packages/{package_type}/{package_name}/versions"],getAllPackageVersionsForPackageOwnedByOrg:["GET /orgs/{org}/packages/{package_type}/{package_name}/versions"],getAllPackageVersionsForPackageOwnedByUser:["GET /users/{username}/packages/{package_type}/{package_name}/versions"],getPackageForAuthenticatedUser:["GET /user/packages/{package_type}/{package_name}"],getPackageForOrganization:["GET /orgs/{org}/packages/{package_type}/{package_name}"],getPackageForUser:["GET /users/{username}/packages/{package_type}/{package_name}"],getPackageVersionForAuthenticatedUser:["GET /user/packages/{package_type}/{package_name}/versions/{package_version_id}"],getPackageVersionForOrganization:["GET /orgs/{org}/packages/{package_type}/{package_name}/versions/{package_version_id}"],getPackageVersionForUser:["GET /users/{username}/packages/{package_type}/{package_name}/versions/{package_version_id}"],listPackagesForAuthenticatedUser:["GET /user/packages"],listPackagesForOrganization:["GET /orgs/{org}/packages"],listPackagesForUser:["GET /users/{username}/packages"],restorePackageForAuthenticatedUser:["POST /user/packages/{package_type}/{package_name}/restore{?token}"],restorePackageForOrg:["POST /orgs/{org}/packages/{package_type}/{package_name}/restore{?token}"],restorePackageForUser:["POST /users/{username}/packages/{package_type}/{package_name}/restore{?token}"],restorePackageVersionForAuthenticatedUser:["POST /user/packages/{package_type}/{package_name}/versions/{package_version_id}/restore"],restorePackageVersionForOrg:["POST /orgs/{org}/packages/{package_type}/{package_name}/versions/{package_version_id}/restore"],restorePackageVersionForUser:["POST /users/{username}/packages/{package_type}/{package_name}/versions/{package_version_id}/restore"]},projects:{addCollaborator:["PUT /projects/{project_id}/collaborators/{username}"],createCard:["POST /projects/columns/{column_id}/cards"],createColumn:["POST /projects/{project_id}/columns"],createForAuthenticatedUser:["POST /user/projects"],createForOrg:["POST /orgs/{org}/projects"],createForRepo:["POST /repos/{owner}/{repo}/projects"],delete:["DELETE /projects/{project_id}"],deleteCard:["DELETE /projects/columns/cards/{card_id}"],deleteColumn:["DELETE /projects/columns/{column_id}"],get:["GET /projects/{project_id}"],getCard:["GET /projects/columns/cards/{card_id}"],getColumn:["GET /projects/columns/{column_id}"],getPermissionForUser:["GET /projects/{project_id}/collaborators/{username}/permission"],listCards:["GET /projects/columns/{column_id}/cards"],listCollaborators:["GET /projects/{project_id}/collaborators"],listColumns:["GET /projects/{project_id}/columns"],listForOrg:["GET /orgs/{org}/projects"],listForRepo:["GET /repos/{owner}/{repo}/projects"],listForUser:["GET /users/{username}/projects"],moveCard:["POST /projects/columns/cards/{card_id}/moves"],moveColumn:["POST /projects/columns/{column_id}/moves"],removeCollaborator:["DELETE /projects/{project_id}/collaborators/{username}"],update:["PATCH /projects/{project_id}"],updateCard:["PATCH /projects/columns/cards/{card_id}"],updateColumn:["PATCH /projects/columns/{column_id}"]},pulls:{checkIfMerged:["GET /repos/{owner}/{repo}/pulls/{pull_number}/merge"],create:["POST /repos/{owner}/{repo}/pulls"],createReplyForReviewComment:["POST /repos/{owner}/{repo}/pulls/{pull_number}/comments/{comment_id}/replies"],createReview:["POST /repos/{owner}/{repo}/pulls/{pull_number}/reviews"],createReviewComment:["POST /repos/{owner}/{repo}/pulls/{pull_number}/comments"],deletePendingReview:["DELETE /repos/{owner}/{repo}/pulls/{pull_number}/reviews/{review_id}"],deleteReviewComment:["DELETE /repos/{owner}/{repo}/pulls/comments/{comment_id}"],dismissReview:["PUT /repos/{owner}/{repo}/pulls/{pull_number}/reviews/{review_id}/dismissals"],get:["GET /repos/{owner}/{repo}/pulls/{pull_number}"],getReview:["GET /repos/{owner}/{repo}/pulls/{pull_number}/reviews/{review_id}"],getReviewComment:["GET /repos/{owner}/{repo}/pulls/comments/{comment_id}"],list:["GET /repos/{owner}/{repo}/pulls"],listCommentsForReview:["GET /repos/{owner}/{repo}/pulls/{pull_number}/reviews/{review_id}/comments"],listCommits:["GET /repos/{owner}/{repo}/pulls/{pull_number}/commits"],listFiles:["GET /repos/{owner}/{repo}/pulls/{pull_number}/files"],listRequestedReviewers:["GET /repos/{owner}/{repo}/pulls/{pull_number}/requested_reviewers"],listReviewComments:["GET /repos/{owner}/{repo}/pulls/{pull_number}/comments"],listReviewCommentsForRepo:["GET /repos/{owner}/{repo}/pulls/comments"],listReviews:["GET /repos/{owner}/{repo}/pulls/{pull_number}/reviews"],merge:["PUT /repos/{owner}/{repo}/pulls/{pull_number}/merge"],removeRequestedReviewers:["DELETE /repos/{owner}/{repo}/pulls/{pull_number}/requested_reviewers"],requestReviewers:["POST /repos/{owner}/{repo}/pulls/{pull_number}/requested_reviewers"],submitReview:["POST /repos/{owner}/{repo}/pulls/{pull_number}/reviews/{review_id}/events"],update:["PATCH /repos/{owner}/{repo}/pulls/{pull_number}"],updateBranch:["PUT /repos/{owner}/{repo}/pulls/{pull_number}/update-branch"],updateReview:["PUT /repos/{owner}/{repo}/pulls/{pull_number}/reviews/{review_id}"],updateReviewComment:["PATCH /repos/{owner}/{repo}/pulls/comments/{comment_id}"]},rateLimit:{get:["GET /rate_limit"]},reactions:{createForCommitComment:["POST /repos/{owner}/{repo}/comments/{comment_id}/reactions"],createForIssue:["POST /repos/{owner}/{repo}/issues/{issue_number}/reactions"],createForIssueComment:["POST /repos/{owner}/{repo}/issues/comments/{comment_id}/reactions"],createForPullRequestReviewComment:["POST /repos/{owner}/{repo}/pulls/comments/{comment_id}/reactions"],createForRelease:["POST /repos/{owner}/{repo}/releases/{release_id}/reactions"],createForTeamDiscussionCommentInOrg:["POST /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments/{comment_number}/reactions"],createForTeamDiscussionInOrg:["POST /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/reactions"],deleteForCommitComment:["DELETE /repos/{owner}/{repo}/comments/{comment_id}/reactions/{reaction_id}"],deleteForIssue:["DELETE /repos/{owner}/{repo}/issues/{issue_number}/reactions/{reaction_id}"],deleteForIssueComment:["DELETE /repos/{owner}/{repo}/issues/comments/{comment_id}/reactions/{reaction_id}"],deleteForPullRequestComment:["DELETE /repos/{owner}/{repo}/pulls/comments/{comment_id}/reactions/{reaction_id}"],deleteForRelease:["DELETE /repos/{owner}/{repo}/releases/{release_id}/reactions/{reaction_id}"],deleteForTeamDiscussion:["DELETE /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/reactions/{reaction_id}"],deleteForTeamDiscussionComment:["DELETE /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments/{comment_number}/reactions/{reaction_id}"],listForCommitComment:["GET /repos/{owner}/{repo}/comments/{comment_id}/reactions"],listForIssue:["GET /repos/{owner}/{repo}/issues/{issue_number}/reactions"],listForIssueComment:["GET /repos/{owner}/{repo}/issues/comments/{comment_id}/reactions"],listForPullRequestReviewComment:["GET /repos/{owner}/{repo}/pulls/comments/{comment_id}/reactions"],listForRelease:["GET /repos/{owner}/{repo}/releases/{release_id}/reactions"],listForTeamDiscussionCommentInOrg:["GET /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments/{comment_number}/reactions"],listForTeamDiscussionInOrg:["GET /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/reactions"]},repos:{acceptInvitation:["PATCH /user/repository_invitations/{invitation_id}",{},{renamed:["repos","acceptInvitationForAuthenticatedUser"]}],acceptInvitationForAuthenticatedUser:["PATCH /user/repository_invitations/{invitation_id}"],addAppAccessRestrictions:["POST /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/apps",{},{mapToData:"apps"}],addCollaborator:["PUT /repos/{owner}/{repo}/collaborators/{username}"],addStatusCheckContexts:["POST /repos/{owner}/{repo}/branches/{branch}/protection/required_status_checks/contexts",{},{mapToData:"contexts"}],addTeamAccessRestrictions:["POST /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/teams",{},{mapToData:"teams"}],addUserAccessRestrictions:["POST /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/users",{},{mapToData:"users"}],checkCollaborator:["GET /repos/{owner}/{repo}/collaborators/{username}"],checkVulnerabilityAlerts:["GET /repos/{owner}/{repo}/vulnerability-alerts"],codeownersErrors:["GET /repos/{owner}/{repo}/codeowners/errors"],compareCommits:["GET /repos/{owner}/{repo}/compare/{base}...{head}"],compareCommitsWithBasehead:["GET /repos/{owner}/{repo}/compare/{basehead}"],createAutolink:["POST /repos/{owner}/{repo}/autolinks"],createCommitComment:["POST /repos/{owner}/{repo}/commits/{commit_sha}/comments"],createCommitSignatureProtection:["POST /repos/{owner}/{repo}/branches/{branch}/protection/required_signatures"],createCommitStatus:["POST /repos/{owner}/{repo}/statuses/{sha}"],createDeployKey:["POST /repos/{owner}/{repo}/keys"],createDeployment:["POST /repos/{owner}/{repo}/deployments"],createDeploymentStatus:["POST /repos/{owner}/{repo}/deployments/{deployment_id}/statuses"],createDispatchEvent:["POST /repos/{owner}/{repo}/dispatches"],createForAuthenticatedUser:["POST /user/repos"],createFork:["POST /repos/{owner}/{repo}/forks"],createInOrg:["POST /orgs/{org}/repos"],createOrUpdateEnvironment:["PUT /repos/{owner}/{repo}/environments/{environment_name}"],createOrUpdateFileContents:["PUT /repos/{owner}/{repo}/contents/{path}"],createPagesSite:["POST /repos/{owner}/{repo}/pages"],createRelease:["POST /repos/{owner}/{repo}/releases"],createTagProtection:["POST /repos/{owner}/{repo}/tags/protection"],createUsingTemplate:["POST /repos/{template_owner}/{template_repo}/generate"],createWebhook:["POST /repos/{owner}/{repo}/hooks"],declineInvitation:["DELETE /user/repository_invitations/{invitation_id}",{},{renamed:["repos","declineInvitationForAuthenticatedUser"]}],declineInvitationForAuthenticatedUser:["DELETE /user/repository_invitations/{invitation_id}"],delete:["DELETE /repos/{owner}/{repo}"],deleteAccessRestrictions:["DELETE /repos/{owner}/{repo}/branches/{branch}/protection/restrictions"],deleteAdminBranchProtection:["DELETE /repos/{owner}/{repo}/branches/{branch}/protection/enforce_admins"],deleteAnEnvironment:["DELETE /repos/{owner}/{repo}/environments/{environment_name}"],deleteAutolink:["DELETE /repos/{owner}/{repo}/autolinks/{autolink_id}"],deleteBranchProtection:["DELETE /repos/{owner}/{repo}/branches/{branch}/protection"],deleteCommitComment:["DELETE /repos/{owner}/{repo}/comments/{comment_id}"],deleteCommitSignatureProtection:["DELETE /repos/{owner}/{repo}/branches/{branch}/protection/required_signatures"],deleteDeployKey:["DELETE /repos/{owner}/{repo}/keys/{key_id}"],deleteDeployment:["DELETE /repos/{owner}/{repo}/deployments/{deployment_id}"],deleteFile:["DELETE /repos/{owner}/{repo}/contents/{path}"],deleteInvitation:["DELETE /repos/{owner}/{repo}/invitations/{invitation_id}"],deletePagesSite:["DELETE /repos/{owner}/{repo}/pages"],deletePullRequestReviewProtection:["DELETE /repos/{owner}/{repo}/branches/{branch}/protection/required_pull_request_reviews"],deleteRelease:["DELETE /repos/{owner}/{repo}/releases/{release_id}"],deleteReleaseAsset:["DELETE /repos/{owner}/{repo}/releases/assets/{asset_id}"],deleteTagProtection:["DELETE /repos/{owner}/{repo}/tags/protection/{tag_protection_id}"],deleteWebhook:["DELETE /repos/{owner}/{repo}/hooks/{hook_id}"],disableAutomatedSecurityFixes:["DELETE /repos/{owner}/{repo}/automated-security-fixes"],disableLfsForRepo:["DELETE /repos/{owner}/{repo}/lfs"],disableVulnerabilityAlerts:["DELETE /repos/{owner}/{repo}/vulnerability-alerts"],downloadArchive:["GET /repos/{owner}/{repo}/zipball/{ref}",{},{renamed:["repos","downloadZipballArchive"]}],downloadTarballArchive:["GET /repos/{owner}/{repo}/tarball/{ref}"],downloadZipballArchive:["GET /repos/{owner}/{repo}/zipball/{ref}"],enableAutomatedSecurityFixes:["PUT /repos/{owner}/{repo}/automated-security-fixes"],enableLfsForRepo:["PUT /repos/{owner}/{repo}/lfs"],enableVulnerabilityAlerts:["PUT /repos/{owner}/{repo}/vulnerability-alerts"],generateReleaseNotes:["POST /repos/{owner}/{repo}/releases/generate-notes"],get:["GET /repos/{owner}/{repo}"],getAccessRestrictions:["GET /repos/{owner}/{repo}/branches/{branch}/protection/restrictions"],getAdminBranchProtection:["GET /repos/{owner}/{repo}/branches/{branch}/protection/enforce_admins"],getAllEnvironments:["GET /repos/{owner}/{repo}/environments"],getAllStatusCheckContexts:["GET /repos/{owner}/{repo}/branches/{branch}/protection/required_status_checks/contexts"],getAllTopics:["GET /repos/{owner}/{repo}/topics"],getAppsWithAccessToProtectedBranch:["GET /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/apps"],getAutolink:["GET /repos/{owner}/{repo}/autolinks/{autolink_id}"],getBranch:["GET /repos/{owner}/{repo}/branches/{branch}"],getBranchProtection:["GET /repos/{owner}/{repo}/branches/{branch}/protection"],getClones:["GET /repos/{owner}/{repo}/traffic/clones"],getCodeFrequencyStats:["GET /repos/{owner}/{repo}/stats/code_frequency"],getCollaboratorPermissionLevel:["GET /repos/{owner}/{repo}/collaborators/{username}/permission"],getCombinedStatusForRef:["GET /repos/{owner}/{repo}/commits/{ref}/status"],getCommit:["GET /repos/{owner}/{repo}/commits/{ref}"],getCommitActivityStats:["GET /repos/{owner}/{repo}/stats/commit_activity"],getCommitComment:["GET /repos/{owner}/{repo}/comments/{comment_id}"],getCommitSignatureProtection:["GET /repos/{owner}/{repo}/branches/{branch}/protection/required_signatures"],getCommunityProfileMetrics:["GET /repos/{owner}/{repo}/community/profile"],getContent:["GET /repos/{owner}/{repo}/contents/{path}"],getContributorsStats:["GET /repos/{owner}/{repo}/stats/contributors"],getDeployKey:["GET /repos/{owner}/{repo}/keys/{key_id}"],getDeployment:["GET /repos/{owner}/{repo}/deployments/{deployment_id}"],getDeploymentStatus:["GET /repos/{owner}/{repo}/deployments/{deployment_id}/statuses/{status_id}"],getEnvironment:["GET /repos/{owner}/{repo}/environments/{environment_name}"],getLatestPagesBuild:["GET /repos/{owner}/{repo}/pages/builds/latest"],getLatestRelease:["GET /repos/{owner}/{repo}/releases/latest"],getPages:["GET /repos/{owner}/{repo}/pages"],getPagesBuild:["GET /repos/{owner}/{repo}/pages/builds/{build_id}"],getPagesHealthCheck:["GET /repos/{owner}/{repo}/pages/health"],getParticipationStats:["GET /repos/{owner}/{repo}/stats/participation"],getPullRequestReviewProtection:["GET /repos/{owner}/{repo}/branches/{branch}/protection/required_pull_request_reviews"],getPunchCardStats:["GET /repos/{owner}/{repo}/stats/punch_card"],getReadme:["GET /repos/{owner}/{repo}/readme"],getReadmeInDirectory:["GET /repos/{owner}/{repo}/readme/{dir}"],getRelease:["GET /repos/{owner}/{repo}/releases/{release_id}"],getReleaseAsset:["GET /repos/{owner}/{repo}/releases/assets/{asset_id}"],getReleaseByTag:["GET /repos/{owner}/{repo}/releases/tags/{tag}"],getStatusChecksProtection:["GET /repos/{owner}/{repo}/branches/{branch}/protection/required_status_checks"],getTeamsWithAccessToProtectedBranch:["GET /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/teams"],getTopPaths:["GET /repos/{owner}/{repo}/traffic/popular/paths"],getTopReferrers:["GET /repos/{owner}/{repo}/traffic/popular/referrers"],getUsersWithAccessToProtectedBranch:["GET /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/users"],getViews:["GET /repos/{owner}/{repo}/traffic/views"],getWebhook:["GET /repos/{owner}/{repo}/hooks/{hook_id}"],getWebhookConfigForRepo:["GET /repos/{owner}/{repo}/hooks/{hook_id}/config"],getWebhookDelivery:["GET /repos/{owner}/{repo}/hooks/{hook_id}/deliveries/{delivery_id}"],listAutolinks:["GET /repos/{owner}/{repo}/autolinks"],listBranches:["GET /repos/{owner}/{repo}/branches"],listBranchesForHeadCommit:["GET /repos/{owner}/{repo}/commits/{commit_sha}/branches-where-head"],listCollaborators:["GET /repos/{owner}/{repo}/collaborators"],listCommentsForCommit:["GET /repos/{owner}/{repo}/commits/{commit_sha}/comments"],listCommitCommentsForRepo:["GET /repos/{owner}/{repo}/comments"],listCommitStatusesForRef:["GET /repos/{owner}/{repo}/commits/{ref}/statuses"],listCommits:["GET /repos/{owner}/{repo}/commits"],listContributors:["GET /repos/{owner}/{repo}/contributors"],listDeployKeys:["GET /repos/{owner}/{repo}/keys"],listDeploymentStatuses:["GET /repos/{owner}/{repo}/deployments/{deployment_id}/statuses"],listDeployments:["GET /repos/{owner}/{repo}/deployments"],listForAuthenticatedUser:["GET /user/repos"],listForOrg:["GET /orgs/{org}/repos"],listForUser:["GET /users/{username}/repos"],listForks:["GET /repos/{owner}/{repo}/forks"],listInvitations:["GET /repos/{owner}/{repo}/invitations"],listInvitationsForAuthenticatedUser:["GET /user/repository_invitations"],listLanguages:["GET /repos/{owner}/{repo}/languages"],listPagesBuilds:["GET /repos/{owner}/{repo}/pages/builds"],listPublic:["GET /repositories"],listPullRequestsAssociatedWithCommit:["GET /repos/{owner}/{repo}/commits/{commit_sha}/pulls"],listReleaseAssets:["GET /repos/{owner}/{repo}/releases/{release_id}/assets"],listReleases:["GET /repos/{owner}/{repo}/releases"],listTagProtection:["GET /repos/{owner}/{repo}/tags/protection"],listTags:["GET /repos/{owner}/{repo}/tags"],listTeams:["GET /repos/{owner}/{repo}/teams"],listWebhookDeliveries:["GET /repos/{owner}/{repo}/hooks/{hook_id}/deliveries"],listWebhooks:["GET /repos/{owner}/{repo}/hooks"],merge:["POST /repos/{owner}/{repo}/merges"],mergeUpstream:["POST /repos/{owner}/{repo}/merge-upstream"],pingWebhook:["POST /repos/{owner}/{repo}/hooks/{hook_id}/pings"],redeliverWebhookDelivery:["POST /repos/{owner}/{repo}/hooks/{hook_id}/deliveries/{delivery_id}/attempts"],removeAppAccessRestrictions:["DELETE /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/apps",{},{mapToData:"apps"}],removeCollaborator:["DELETE /repos/{owner}/{repo}/collaborators/{username}"],removeStatusCheckContexts:["DELETE /repos/{owner}/{repo}/branches/{branch}/protection/required_status_checks/contexts",{},{mapToData:"contexts"}],removeStatusCheckProtection:["DELETE /repos/{owner}/{repo}/branches/{branch}/protection/required_status_checks"],removeTeamAccessRestrictions:["DELETE /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/teams",{},{mapToData:"teams"}],removeUserAccessRestrictions:["DELETE /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/users",{},{mapToData:"users"}],renameBranch:["POST /repos/{owner}/{repo}/branches/{branch}/rename"],replaceAllTopics:["PUT /repos/{owner}/{repo}/topics"],requestPagesBuild:["POST /repos/{owner}/{repo}/pages/builds"],setAdminBranchProtection:["POST /repos/{owner}/{repo}/branches/{branch}/protection/enforce_admins"],setAppAccessRestrictions:["PUT /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/apps",{},{mapToData:"apps"}],setStatusCheckContexts:["PUT /repos/{owner}/{repo}/branches/{branch}/protection/required_status_checks/contexts",{},{mapToData:"contexts"}],setTeamAccessRestrictions:["PUT /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/teams",{},{mapToData:"teams"}],setUserAccessRestrictions:["PUT /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/users",{},{mapToData:"users"}],testPushWebhook:["POST /repos/{owner}/{repo}/hooks/{hook_id}/tests"],transfer:["POST /repos/{owner}/{repo}/transfer"],update:["PATCH /repos/{owner}/{repo}"],updateBranchProtection:["PUT /repos/{owner}/{repo}/branches/{branch}/protection"],updateCommitComment:["PATCH /repos/{owner}/{repo}/comments/{comment_id}"],updateInformationAboutPagesSite:["PUT /repos/{owner}/{repo}/pages"],updateInvitation:["PATCH /repos/{owner}/{repo}/invitations/{invitation_id}"],updatePullRequestReviewProtection:["PATCH /repos/{owner}/{repo}/branches/{branch}/protection/required_pull_request_reviews"],updateRelease:["PATCH /repos/{owner}/{repo}/releases/{release_id}"],updateReleaseAsset:["PATCH /repos/{owner}/{repo}/releases/assets/{asset_id}"],updateStatusCheckPotection:["PATCH /repos/{owner}/{repo}/branches/{branch}/protection/required_status_checks",{},{renamed:["repos","updateStatusCheckProtection"]}],updateStatusCheckProtection:["PATCH /repos/{owner}/{repo}/branches/{branch}/protection/required_status_checks"],updateWebhook:["PATCH /repos/{owner}/{repo}/hooks/{hook_id}"],updateWebhookConfigForRepo:["PATCH /repos/{owner}/{repo}/hooks/{hook_id}/config"],uploadReleaseAsset:["POST /repos/{owner}/{repo}/releases/{release_id}/assets{?name,label}",{baseUrl:"https://uploads.github.com"}]},search:{code:["GET /search/code"],commits:["GET /search/commits"],issuesAndPullRequests:["GET /search/issues"],labels:["GET /search/labels"],repos:["GET /search/repositories"],topics:["GET /search/topics"],users:["GET /search/users"]},secretScanning:{getAlert:["GET /repos/{owner}/{repo}/secret-scanning/alerts/{alert_number}"],listAlertsForEnterprise:["GET /enterprises/{enterprise}/secret-scanning/alerts"],listAlertsForOrg:["GET /orgs/{org}/secret-scanning/alerts"],listAlertsForRepo:["GET /repos/{owner}/{repo}/secret-scanning/alerts"],listLocationsForAlert:["GET /repos/{owner}/{repo}/secret-scanning/alerts/{alert_number}/locations"],updateAlert:["PATCH /repos/{owner}/{repo}/secret-scanning/alerts/{alert_number}"]},teams:{addOrUpdateMembershipForUserInOrg:["PUT /orgs/{org}/teams/{team_slug}/memberships/{username}"],addOrUpdateProjectPermissionsInOrg:["PUT /orgs/{org}/teams/{team_slug}/projects/{project_id}"],addOrUpdateRepoPermissionsInOrg:["PUT /orgs/{org}/teams/{team_slug}/repos/{owner}/{repo}"],checkPermissionsForProjectInOrg:["GET /orgs/{org}/teams/{team_slug}/projects/{project_id}"],checkPermissionsForRepoInOrg:["GET /orgs/{org}/teams/{team_slug}/repos/{owner}/{repo}"],create:["POST /orgs/{org}/teams"],createDiscussionCommentInOrg:["POST /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments"],createDiscussionInOrg:["POST /orgs/{org}/teams/{team_slug}/discussions"],deleteDiscussionCommentInOrg:["DELETE /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments/{comment_number}"],deleteDiscussionInOrg:["DELETE /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}"],deleteInOrg:["DELETE /orgs/{org}/teams/{team_slug}"],getByName:["GET /orgs/{org}/teams/{team_slug}"],getDiscussionCommentInOrg:["GET /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments/{comment_number}"],getDiscussionInOrg:["GET /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}"],getMembershipForUserInOrg:["GET /orgs/{org}/teams/{team_slug}/memberships/{username}"],list:["GET /orgs/{org}/teams"],listChildInOrg:["GET /orgs/{org}/teams/{team_slug}/teams"],listDiscussionCommentsInOrg:["GET /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments"],listDiscussionsInOrg:["GET /orgs/{org}/teams/{team_slug}/discussions"],listForAuthenticatedUser:["GET /user/teams"],listMembersInOrg:["GET /orgs/{org}/teams/{team_slug}/members"],listPendingInvitationsInOrg:["GET /orgs/{org}/teams/{team_slug}/invitations"],listProjectsInOrg:["GET /orgs/{org}/teams/{team_slug}/projects"],listReposInOrg:["GET /orgs/{org}/teams/{team_slug}/repos"],removeMembershipForUserInOrg:["DELETE /orgs/{org}/teams/{team_slug}/memberships/{username}"],removeProjectInOrg:["DELETE /orgs/{org}/teams/{team_slug}/projects/{project_id}"],removeRepoInOrg:["DELETE /orgs/{org}/teams/{team_slug}/repos/{owner}/{repo}"],updateDiscussionCommentInOrg:["PATCH /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments/{comment_number}"],updateDiscussionInOrg:["PATCH /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}"],updateInOrg:["PATCH /orgs/{org}/teams/{team_slug}"]},users:{addEmailForAuthenticated:["POST /user/emails",{},{renamed:["users","addEmailForAuthenticatedUser"]}],addEmailForAuthenticatedUser:["POST /user/emails"],block:["PUT /user/blocks/{username}"],checkBlocked:["GET /user/blocks/{username}"],checkFollowingForUser:["GET /users/{username}/following/{target_user}"],checkPersonIsFollowedByAuthenticated:["GET /user/following/{username}"],createGpgKeyForAuthenticated:["POST /user/gpg_keys",{},{renamed:["users","createGpgKeyForAuthenticatedUser"]}],createGpgKeyForAuthenticatedUser:["POST /user/gpg_keys"],createPublicSshKeyForAuthenticated:["POST /user/keys",{},{renamed:["users","createPublicSshKeyForAuthenticatedUser"]}],createPublicSshKeyForAuthenticatedUser:["POST /user/keys"],deleteEmailForAuthenticated:["DELETE /user/emails",{},{renamed:["users","deleteEmailForAuthenticatedUser"]}],deleteEmailForAuthenticatedUser:["DELETE /user/emails"],deleteGpgKeyForAuthenticated:["DELETE /user/gpg_keys/{gpg_key_id}",{},{renamed:["users","deleteGpgKeyForAuthenticatedUser"]}],deleteGpgKeyForAuthenticatedUser:["DELETE /user/gpg_keys/{gpg_key_id}"],deletePublicSshKeyForAuthenticated:["DELETE /user/keys/{key_id}",{},{renamed:["users","deletePublicSshKeyForAuthenticatedUser"]}],deletePublicSshKeyForAuthenticatedUser:["DELETE /user/keys/{key_id}"],follow:["PUT /user/following/{username}"],getAuthenticated:["GET /user"],getByUsername:["GET /users/{username}"],getContextForUser:["GET /users/{username}/hovercard"],getGpgKeyForAuthenticated:["GET /user/gpg_keys/{gpg_key_id}",{},{renamed:["users","getGpgKeyForAuthenticatedUser"]}],getGpgKeyForAuthenticatedUser:["GET /user/gpg_keys/{gpg_key_id}"],getPublicSshKeyForAuthenticated:["GET /user/keys/{key_id}",{},{renamed:["users","getPublicSshKeyForAuthenticatedUser"]}],getPublicSshKeyForAuthenticatedUser:["GET /user/keys/{key_id}"],list:["GET /users"],listBlockedByAuthenticated:["GET /user/blocks",{},{renamed:["users","listBlockedByAuthenticatedUser"]}],listBlockedByAuthenticatedUser:["GET /user/blocks"],listEmailsForAuthenticated:["GET /user/emails",{},{renamed:["users","listEmailsForAuthenticatedUser"]}],listEmailsForAuthenticatedUser:["GET /user/emails"],listFollowedByAuthenticated:["GET /user/following",{},{renamed:["users","listFollowedByAuthenticatedUser"]}],listFollowedByAuthenticatedUser:["GET /user/following"],listFollowersForAuthenticatedUser:["GET /user/followers"],listFollowersForUser:["GET /users/{username}/followers"],listFollowingForUser:["GET /users/{username}/following"],listGpgKeysForAuthenticated:["GET /user/gpg_keys",{},{renamed:["users","listGpgKeysForAuthenticatedUser"]}],listGpgKeysForAuthenticatedUser:["GET /user/gpg_keys"],listGpgKeysForUser:["GET /users/{username}/gpg_keys"],listPublicEmailsForAuthenticated:["GET /user/public_emails",{},{renamed:["users","listPublicEmailsForAuthenticatedUser"]}],listPublicEmailsForAuthenticatedUser:["GET /user/public_emails"],listPublicKeysForUser:["GET /users/{username}/keys"],listPublicSshKeysForAuthenticated:["GET /user/keys",{},{renamed:["users","listPublicSshKeysForAuthenticatedUser"]}],listPublicSshKeysForAuthenticatedUser:["GET /user/keys"],setPrimaryEmailVisibilityForAuthenticated:["PATCH /user/email/visibility",{},{renamed:["users","setPrimaryEmailVisibilityForAuthenticatedUser"]}],setPrimaryEmailVisibilityForAuthenticatedUser:["PATCH /user/email/visibility"],unblock:["DELETE /user/blocks/{username}"],unfollow:["DELETE /user/following/{username}"],updateAuthenticated:["PATCH /user"]}};function td(e,p){const a={};for(const[d,t]of Object.entries(p))for(const[p,r]of Object.entries(t)){const[t,s,o]=r,[i,m]=t.split(/ /),n=Object.assign({method:i,url:m},s);a[d]||(a[d]={});const l=a[d];o?l[p]=rd(e,d,p,n,o):l[p]=e.request.defaults(n)}return a}function rd(e,p,a,d,t){const r=e.request.defaults(d);return Object.assign((function(...d){let s=r.endpoint.merge(...d);if(t.mapToData)return s=Object.assign({},s,{data:s[t.mapToData],[t.mapToData]:void 0}),r(s);if(t.renamed){const[d,r]=t.renamed;e.log.warn(`octokit.${p}.${a}() has been renamed to octokit.${d}.${r}()`)}if(t.deprecated&&e.log.warn(t.deprecated),t.renamedParameters){const s=r.endpoint.merge(...d);for(const[d,r]of Object.entries(t.renamedParameters))d in s&&(e.log.warn(`"${d}" parameter is deprecated for "octokit.${p}.${a}()". Use "${r}" instead`),r in s||(s[r]=s[d]),delete s[d]);return r(s)}return r(...d)}),r)}function sd(e){return{rest:td(e,dd)}}function od(e){const p=td(e,dd);return{...p,rest:p}}sd.VERSION="5.16.2",od.VERSION="5.16.2";var id=c(Object.freeze({__proto__:null,legacyRestEndpointMethods:od,restEndpointMethods:sd}));function md(e,p,a){const d="function"==typeof p?p.endpoint(a):e.request.endpoint(p,a),t="function"==typeof p?p:e.request,r=d.method,s=d.headers;let o=d.url;return{[Symbol.asyncIterator]:()=>({async next(){if(!o)return{done:!0};try{const e=function(e){if(!e.data)return{...e,data:[]};if(!("total_count"in e.data)||"url"in e.data)return e;const p=e.data.incomplete_results,a=e.data.repository_selection,d=e.data.total_count;delete e.data.incomplete_results,delete e.data.repository_selection,delete e.data.total_count;const t=Object.keys(e.data)[0],r=e.data[t];return e.data=r,void 0!==p&&(e.data.incomplete_results=p),void 0!==a&&(e.data.repository_selection=a),e.data.total_count=d,e}(await t({method:r,url:o,headers:s}));return o=((e.headers.link||"").match(/<([^>]+)>;\s*rel="next"/)||[])[1],{value:e}}catch(e){if(409!==e.status)throw e;return o="",{value:{status:200,headers:{},data:[]}}}}})}}function nd(e,p,a,d){return"function"==typeof a&&(d=a,a=void 0),ld(e,[],md(e,p,a)[Symbol.asyncIterator](),d)}function ld(e,p,a,d){return a.next().then((t=>{if(t.done)return p;let r=!1;return p=p.concat(d?d(t.value,(function(){r=!0})):t.value.data),r?p:ld(e,p,a,d)}))}const ud=Object.assign(nd,{iterator:md}),cd=["GET /app/hook/deliveries","GET /app/installations","GET /applications/grants","GET /authorizations","GET /enterprises/{enterprise}/actions/permissions/organizations","GET /enterprises/{enterprise}/actions/runner-groups","GET /enterprises/{enterprise}/actions/runner-groups/{runner_group_id}/organizations","GET /enterprises/{enterprise}/actions/runner-groups/{runner_group_id}/runners","GET /enterprises/{enterprise}/actions/runners","GET /enterprises/{enterprise}/audit-log","GET /enterprises/{enterprise}/secret-scanning/alerts","GET /enterprises/{enterprise}/settings/billing/advanced-security","GET /events","GET /gists","GET /gists/public","GET /gists/starred","GET /gists/{gist_id}/comments","GET /gists/{gist_id}/commits","GET /gists/{gist_id}/forks","GET /installation/repositories","GET /issues","GET /licenses","GET /marketplace_listing/plans","GET /marketplace_listing/plans/{plan_id}/accounts","GET /marketplace_listing/stubbed/plans","GET /marketplace_listing/stubbed/plans/{plan_id}/accounts","GET /networks/{owner}/{repo}/events","GET /notifications","GET /organizations","GET /orgs/{org}/actions/cache/usage-by-repository","GET /orgs/{org}/actions/permissions/repositories","GET /orgs/{org}/actions/runner-groups","GET /orgs/{org}/actions/runner-groups/{runner_group_id}/repositories","GET /orgs/{org}/actions/runner-groups/{runner_group_id}/runners","GET /orgs/{org}/actions/runners","GET /orgs/{org}/actions/secrets","GET /orgs/{org}/actions/secrets/{secret_name}/repositories","GET /orgs/{org}/audit-log","GET /orgs/{org}/blocks","GET /orgs/{org}/code-scanning/alerts","GET /orgs/{org}/codespaces","GET /orgs/{org}/credential-authorizations","GET /orgs/{org}/dependabot/secrets","GET /orgs/{org}/dependabot/secrets/{secret_name}/repositories","GET /orgs/{org}/events","GET /orgs/{org}/external-groups","GET /orgs/{org}/failed_invitations","GET /orgs/{org}/hooks","GET /orgs/{org}/hooks/{hook_id}/deliveries","GET /orgs/{org}/installations","GET /orgs/{org}/invitations","GET /orgs/{org}/invitations/{invitation_id}/teams","GET /orgs/{org}/issues","GET /orgs/{org}/members","GET /orgs/{org}/migrations","GET /orgs/{org}/migrations/{migration_id}/repositories","GET /orgs/{org}/outside_collaborators","GET /orgs/{org}/packages","GET /orgs/{org}/packages/{package_type}/{package_name}/versions","GET /orgs/{org}/projects","GET /orgs/{org}/public_members","GET /orgs/{org}/repos","GET /orgs/{org}/secret-scanning/alerts","GET /orgs/{org}/settings/billing/advanced-security","GET /orgs/{org}/team-sync/groups","GET /orgs/{org}/teams","GET /orgs/{org}/teams/{team_slug}/discussions","GET /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments","GET /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments/{comment_number}/reactions","GET /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/reactions","GET /orgs/{org}/teams/{team_slug}/invitations","GET /orgs/{org}/teams/{team_slug}/members","GET /orgs/{org}/teams/{team_slug}/projects","GET /orgs/{org}/teams/{team_slug}/repos","GET /orgs/{org}/teams/{team_slug}/teams","GET /projects/columns/{column_id}/cards","GET /projects/{project_id}/collaborators","GET /projects/{project_id}/columns","GET /repos/{owner}/{repo}/actions/artifacts","GET /repos/{owner}/{repo}/actions/caches","GET /repos/{owner}/{repo}/actions/runners","GET /repos/{owner}/{repo}/actions/runs","GET /repos/{owner}/{repo}/actions/runs/{run_id}/artifacts","GET /repos/{owner}/{repo}/actions/runs/{run_id}/attempts/{attempt_number}/jobs","GET /repos/{owner}/{repo}/actions/runs/{run_id}/jobs","GET /repos/{owner}/{repo}/actions/secrets","GET /repos/{owner}/{repo}/actions/workflows","GET /repos/{owner}/{repo}/actions/workflows/{workflow_id}/runs","GET /repos/{owner}/{repo}/assignees","GET /repos/{owner}/{repo}/branches","GET /repos/{owner}/{repo}/check-runs/{check_run_id}/annotations","GET /repos/{owner}/{repo}/check-suites/{check_suite_id}/check-runs","GET /repos/{owner}/{repo}/code-scanning/alerts","GET /repos/{owner}/{repo}/code-scanning/alerts/{alert_number}/instances","GET /repos/{owner}/{repo}/code-scanning/analyses","GET /repos/{owner}/{repo}/codespaces","GET /repos/{owner}/{repo}/codespaces/devcontainers","GET /repos/{owner}/{repo}/codespaces/secrets","GET /repos/{owner}/{repo}/collaborators","GET /repos/{owner}/{repo}/comments","GET /repos/{owner}/{repo}/comments/{comment_id}/reactions","GET /repos/{owner}/{repo}/commits","GET /repos/{owner}/{repo}/commits/{commit_sha}/comments","GET /repos/{owner}/{repo}/commits/{commit_sha}/pulls","GET /repos/{owner}/{repo}/commits/{ref}/check-runs","GET /repos/{owner}/{repo}/commits/{ref}/check-suites","GET /repos/{owner}/{repo}/commits/{ref}/status","GET /repos/{owner}/{repo}/commits/{ref}/statuses","GET /repos/{owner}/{repo}/contributors","GET /repos/{owner}/{repo}/dependabot/secrets","GET /repos/{owner}/{repo}/deployments","GET /repos/{owner}/{repo}/deployments/{deployment_id}/statuses","GET /repos/{owner}/{repo}/environments","GET /repos/{owner}/{repo}/events","GET /repos/{owner}/{repo}/forks","GET /repos/{owner}/{repo}/git/matching-refs/{ref}","GET /repos/{owner}/{repo}/hooks","GET /repos/{owner}/{repo}/hooks/{hook_id}/deliveries","GET /repos/{owner}/{repo}/invitations","GET /repos/{owner}/{repo}/issues","GET /repos/{owner}/{repo}/issues/comments","GET /repos/{owner}/{repo}/issues/comments/{comment_id}/reactions","GET /repos/{owner}/{repo}/issues/events","GET /repos/{owner}/{repo}/issues/{issue_number}/comments","GET /repos/{owner}/{repo}/issues/{issue_number}/events","GET /repos/{owner}/{repo}/issues/{issue_number}/labels","GET /repos/{owner}/{repo}/issues/{issue_number}/reactions","GET /repos/{owner}/{repo}/issues/{issue_number}/timeline","GET /repos/{owner}/{repo}/keys","GET /repos/{owner}/{repo}/labels","GET /repos/{owner}/{repo}/milestones","GET /repos/{owner}/{repo}/milestones/{milestone_number}/labels","GET /repos/{owner}/{repo}/notifications","GET /repos/{owner}/{repo}/pages/builds","GET /repos/{owner}/{repo}/projects","GET /repos/{owner}/{repo}/pulls","GET /repos/{owner}/{repo}/pulls/comments","GET /repos/{owner}/{repo}/pulls/comments/{comment_id}/reactions","GET /repos/{owner}/{repo}/pulls/{pull_number}/comments","GET /repos/{owner}/{repo}/pulls/{pull_number}/commits","GET /repos/{owner}/{repo}/pulls/{pull_number}/files","GET /repos/{owner}/{repo}/pulls/{pull_number}/requested_reviewers","GET /repos/{owner}/{repo}/pulls/{pull_number}/reviews","GET /repos/{owner}/{repo}/pulls/{pull_number}/reviews/{review_id}/comments","GET /repos/{owner}/{repo}/releases","GET /repos/{owner}/{repo}/releases/{release_id}/assets","GET /repos/{owner}/{repo}/releases/{release_id}/reactions","GET /repos/{owner}/{repo}/secret-scanning/alerts","GET /repos/{owner}/{repo}/secret-scanning/alerts/{alert_number}/locations","GET /repos/{owner}/{repo}/stargazers","GET /repos/{owner}/{repo}/subscribers","GET /repos/{owner}/{repo}/tags","GET /repos/{owner}/{repo}/teams","GET /repos/{owner}/{repo}/topics","GET /repositories","GET /repositories/{repository_id}/environments/{environment_name}/secrets","GET /search/code","GET /search/commits","GET /search/issues","GET /search/labels","GET /search/repositories","GET /search/topics","GET /search/users","GET /teams/{team_id}/discussions","GET /teams/{team_id}/discussions/{discussion_number}/comments","GET /teams/{team_id}/discussions/{discussion_number}/comments/{comment_number}/reactions","GET /teams/{team_id}/discussions/{discussion_number}/reactions","GET /teams/{team_id}/invitations","GET /teams/{team_id}/members","GET /teams/{team_id}/projects","GET /teams/{team_id}/repos","GET /teams/{team_id}/teams","GET /user/blocks","GET /user/codespaces","GET /user/codespaces/secrets","GET /user/emails","GET /user/followers","GET /user/following","GET /user/gpg_keys","GET /user/installations","GET /user/installations/{installation_id}/repositories","GET /user/issues","GET /user/keys","GET /user/marketplace_purchases","GET /user/marketplace_purchases/stubbed","GET /user/memberships/orgs","GET /user/migrations","GET /user/migrations/{migration_id}/repositories","GET /user/orgs","GET /user/packages","GET /user/packages/{package_type}/{package_name}/versions","GET /user/public_emails","GET /user/repos","GET /user/repository_invitations","GET /user/starred","GET /user/subscriptions","GET /user/teams","GET /users","GET /users/{username}/events","GET /users/{username}/events/orgs/{org}","GET /users/{username}/events/public","GET /users/{username}/followers","GET /users/{username}/following","GET /users/{username}/gists","GET /users/{username}/gpg_keys","GET /users/{username}/keys","GET /users/{username}/orgs","GET /users/{username}/packages","GET /users/{username}/projects","GET /users/{username}/received_events","GET /users/{username}/received_events/public","GET /users/{username}/repos","GET /users/{username}/starred","GET /users/{username}/subscriptions"];function vd(e){return{paginate:Object.assign(nd.bind(null,e),{iterator:md.bind(null,e)})}}vd.VERSION="2.21.3";var hd=c(Object.freeze({__proto__:null,composePaginateRest:ud,isPaginatingEndpoint:function(e){return"string"==typeof e&&cd.includes(e)},paginateRest:vd,paginatingEndpoints:cd}));!function(e){var p=u&&u.__createBinding||(Object.create?function(e,p,a,d){void 0===d&&(d=a),Object.defineProperty(e,d,{enumerable:!0,get:function(){return p[a]}})}:function(e,p,a,d){void 0===d&&(d=a),e[d]=p[a]}),a=u&&u.__setModuleDefault||(Object.create?function(e,p){Object.defineProperty(e,"default",{enumerable:!0,value:p})}:function(e,p){e.default=p}),d=u&&u.__importStar||function(e){if(e&&e.__esModule)return e;var d={};if(null!=e)for(var t in e)"default"!==t&&Object.hasOwnProperty.call(e,t)&&p(d,e,t);return a(d,e),d};Object.defineProperty(e,"__esModule",{value:!0}),e.getOctokitOptions=e.GitHub=e.defaults=e.context=void 0;const t=d(Ue),r=d(xe),s=ad,o=id,i=hd;e.context=new t.Context;const m=r.getApiBaseUrl();e.defaults={baseUrl:m,request:{agent:r.getProxyAgent(m)}},e.GitHub=s.Octokit.plugin(o.restEndpointMethods,i.paginateRest).defaults(e.defaults),e.getOctokitOptions=function(e,p){const a=Object.assign({},p||{}),d=r.getAuthString(e,a);return d&&(a.auth=d),a}}(Be);var gd=u&&u.__createBinding||(Object.create?function(e,p,a,d){void 0===d&&(d=a),Object.defineProperty(e,d,{enumerable:!0,get:function(){return p[a]}})}:function(e,p,a,d){void 0===d&&(d=a),e[d]=p[a]}),wd=u&&u.__setModuleDefault||(Object.create?function(e,p){Object.defineProperty(e,"default",{enumerable:!0,value:p})}:function(e,p){e.default=p}),fd=u&&u.__importStar||function(e){if(e&&e.__esModule)return e;var p={};if(null!=e)for(var a in e)"default"!==a&&Object.hasOwnProperty.call(e,a)&&gd(p,e,a);return wd(p,e),p};Object.defineProperty(Fe,"__esModule",{value:!0}),Fe.getOctokit=Fe.context=void 0;const Td=fd(Ue),_d=Be;Fe.context=new Td.Context,Fe.getOctokit=function(e,p,...a){return new(_d.GitHub.plugin(...a))(_d.getOctokitOptions(e,p))};var Ed={exports:{}},bd=e,yd=p,Sd=bd.exists||yd.exists,Dd=function(e,p){var a,d=[];["end_of_record"].concat(e.split("\n")).forEach((function(e){var p,t,r=(e=e.trim()).split(":"),s=[r.shift(),r.join(":")];switch(s[0].toUpperCase()){case"TN":a.title=s[1].trim();break;case"SF":a.file=s.slice(1).join(":").trim();break;case"FNF":a.functions.found=Number(s[1].trim());break;case"FNH":a.functions.hit=Number(s[1].trim());break;case"LF":a.lines.found=Number(s[1].trim());break;case"LH":a.lines.hit=Number(s[1].trim());break;case"DA":p=s[1].split(","),a.lines.details.push({line:Number(p[0]),hit:Number(p[1])});break;case"FN":t=s[1].split(","),a.functions.details.push({name:t[1],line:Number(t[0])});break;case"FNDA":t=s[1].split(","),a.functions.details.some((function(e,p){if(e.name===t[1]&&void 0===e.hit)return a.functions.details[p].hit=Number(t[0]),!0}));break;case"BRDA":t=s[1].split(","),a.branches.details.push({line:Number(t[0]),block:Number(t[1]),branch:Number(t[2]),taken:"-"===t[3]?0:Number(t[3])});break;case"BRF":a.branches.found=Number(s[1]);break;case"BRH":a.branches.hit=Number(s[1])}e.indexOf("end_of_record")>-1&&(d.push(a),a={lines:{found:0,hit:0,details:[]},functions:{hit:0,found:0,details:[]},branches:{hit:0,found:0,details:[]}})})),d.shift(),d.length?p(null,d):p("Failed to parse string")};Ed.exports=function(e,p){Sd(e,(function(a){if(!a)return Dd(e,p);bd.readFile(e,"utf8",(function(e,a){Dd(a,p)}))}))},Ed.exports.source=Dd;const Nd=e=>new Promise(((p,a)=>{Ed.exports(e,((e,d)=>{e?a(e):p(d)}))})),Ad=e=>{let p=0,a=0;for(const d of e)p+=d.lines.hit,a+=d.lines.found;return p/a*100},Gd=e=>(...p)=>{const a="object"==typeof p[0]?Object.keys(p[0]).map((e=>` ${e}='${p[0][e]}'`)).join(""):"",d="string"==typeof p[0]?p:p.slice(1);return`<${e}${a}>${d.join("")}`},kd=Gd("details"),Pd=Gd("summary"),Od=Gd("tr"),Vd=Gd("td"),Cd=Gd("th"),Rd=Gd("b"),Fd=Gd("table"),Ud=Gd("tbody"),jd=Gd("a"),Ld=(...e)=>e.join(""),Bd=e=>{if(!e)return"N/A";const p=0===e.found?100:e.hit/e.found*100,a=p.toFixed(2).replace(/\.0*$/u,"");return(100===p?Ld:Rd)(`${a}%`)},xd=(e,p,a)=>Od(Vd(((e,p,a)=>{const d=e.file.replace(a.prefix,""),t=`https://github.com/${a.repository}/blob/${a.commit}/${d}`,r=d.split("/"),s=r[r.length-1];return Ld(p?"   ":"",jd({href:t},s))})(e,p,a)),Vd(Bd(e.branches)),Vd(Bd(e.functions)),Vd(Bd(e.lines)),Vd(((e,p)=>[...(e.branches?e.branches.details:[]).filter((e=>0===e.taken)).map((e=>e.line)),...(e.lines?e.lines.details:[]).filter((e=>0===e.hit)).map((e=>e.line))].sort().map((a=>{const d=e.file.replace(p.prefix,""),t=`https://github.com/${p.repository}/blob/${p.commit}/${d}#L${a}`;return jd({href:t},a)})).join(", "))(e,a))),qd=e=>""===e?"":Od(Vd({colspan:5},Rd(e))),Id=(e,p)=>{const a=Od(Cd("File"),Cd("Branches"),Cd("Funcs"),Cd("Lines"),Cd("Uncovered Lines")),d={};for(const a of e){const e=a.file.replace(p.prefix,"").split("/").slice(0,-1).join("/");d[e]=d[e]||[],d[e].push(a)}const t=Object.keys(d).sort().reduce(((e,a)=>[...e,qd(a),...d[a].map((e=>xd(e,""!==a,p)))]),[]);return Fd(Ud(a,...t))},Hd=e=>e.toFixed(2)<0?"❌":"✅",$d=e=>p=>0===e.filter((e=>e.lines.found===p.lines.found&&e.lines.hit===p.lines.hit)).length,Md=(e,p,a)=>((e,p,a)=>{const{appName:d,base:t}=a,r=p?Ad(p):0,s=(p?Ad(e):0)-r,o=s>0?"+":"";let i="";s<0?i="▾":s>0&&(i="▴");const m=p?Cd(Hd(s)," ",i," ",o,s.toFixed(2),"%"):"";let n=e;if(p){const a=e.filter($d(p));n=p.filter($d(e)).concat(a)}const l=`Coverage after merging into ${Rd(t)}

`,u=Ud(d?Od(Cd(d),Cd(Ad(e).toFixed(2),"%"),m):Od(Cd(Ad(e).toFixed(2),"%"),m));return Ld(l,Fd(u),"\n\n",kd(Pd("Coverage Report"),Id(n,a)))})(e,p,a),zd=(e,p,a)=>((e,p,a)=>{const{base:d}=a,t=e.map((e=>{const d=p.find((p=>p.packageName===e.packageName)),t=d?Ad(d.lcov):0,r=(d?Ad(e.lcov):0)-t,s=r>0?"+":"";let o="";r<0?o="▾":r>0&&(o="▴");const i=d?Cd(Hd(r)," ",o," ",s,r.toFixed(2),"%"):"";let m=e.lcov;if(d){const p=e.lcov.filter($d(d));m=d.filter($d(e.lcov)).concat(p)}return`${Fd(Ud(Od(Cd(e.packageName),Cd(Ad(e.lcov).toFixed(2),"%"),i)))} \n\n ${kd(Pd("Coverage Report"),Id(m,a))}
`})),r=`Coverage after merging into ${Rd(d)}

`;return Ld(r,t.join(""))})(e,p,a),Wd=(e,p)=>p+e,Kd=async({client:e,context:p,prNumber:a,body:d,hiddenHeader:t})=>{const r=await(async({client:e,context:p,prNumber:a,hiddenHeader:d})=>{const{data:t}=await e.issues.listComments({...p.repo,issue_number:a});return t.filter((({body:e})=>e.startsWith(d)))})({client:e,context:p,prNumber:a,hiddenHeader:t}),s=r.pop();return await(({client:e,context:p,comments:a})=>Promise.all(a.map((({id:a})=>e.issues.deleteComment({...p.repo,comment_id:a})))))({client:e,context:p,comments:r}),s?(({client:e,context:p,body:a,commentId:d},t)=>e.issues.updateComment({...p.repo,comment_id:d,body:Wd(a,t)}))({client:e,context:p,body:d,commentId:s.id},t):(({client:e,context:p,prNumber:a,body:d},t)=>e.issues.createComment({...p.repo,issue_number:a,body:Wd(d,t)}))({client:e,context:p,prNumber:a,body:d},t)},Jd=(a,d)=>{let t=d||[];return e.readdirSync(a).forEach((d=>{t=e.statSync(p.join(a,d)).isDirectory()?Jd(p.join(a,d),t):t.filter((e=>e.path.includes("lcov.info"))).concat({name:a.split("/")[1],path:p.join(a,d)})})),t},Yd=(a,d)=>{let t=d||[];return e.readdirSync(a).forEach((d=>{t=e.statSync(p.join(a,d)).isDirectory()?Yd(p.join(a,d),t):t.filter((e=>e.path.includes("lcov-base"))).concat({name:a.split("/")[1],path:p.join(a,d)})})),t};(async()=>{const{context:p={}}=Fe||{},a=Re.getInput("github-token"),d=Re.getInput("lcov-file")||"./coverage/lcov.info",t=Re.getInput("lcov-base"),r=Re.getInput("app-name"),s=Re.getInput("monorepo-base-path"),o=!s&&await e.promises.readFile(d,"utf-8").catch((e=>console.error(e)));if(!s&&!o)return void console.log(`No coverage report found at '${d}', exiting...`);const i=t&&await e.promises.readFile(t,"utf-8").catch((e=>console.error(e)));s||!t||i||console.log(`No coverage report found at '${t}', ignoring...`);const m=s?Jd(s):[],n=s?Yd(s):[],l=[],u=[];for(const p of m)if(p.path.includes(".info")){const a=await e.promises.readFile(p.path,"utf8"),d=await Nd(a);l.push({packageName:p.name,lcov:d})}for(const p of n)if(p.path.includes(".info")){const a=await e.promises.readFile(p.path,"utf8"),d=await Nd(a);u.push({packageName:p.name,lcov:d})}const c={repository:p.payload.repository.full_name,commit:p.payload.pull_request.head.sha,prefix:`${process.env.GITHUB_WORKSPACE}/`,head:p.payload.pull_request.head.ref,base:p.payload.pull_request.base.ref,appName:r},v=!s&&await Nd(o),h=i&&await Nd(i),g=Fe.getOctokit(a);await Kd({client:g,context:p,prNumber:p.payload.pull_request.number,body:l.length?zd(l,u,c):Md(v,h,c),hiddenHeader:r?`\x3c!-- ${r}-code-coverage-assistant --\x3e`:"\x3c!-- monorepo-code-coverage-assistant --\x3e"})})().catch((e=>{console.log(e),Re.setFailed(e.message)})); + */function rp(e){return"[object Object]"===Object.prototype.toString.call(e)}function sp(e){var p,a;return!1!==rp(e)&&(void 0===(p=e.constructor)||!1!==rp(a=p.prototype)&&!1!==a.hasOwnProperty("isPrototypeOf"))}function op(e,p){const a=Object.assign({},e);return Object.keys(p).forEach((d=>{sp(p[d])?d in e?a[d]=op(e[d],p[d]):Object.assign(a,{[d]:p[d]}):Object.assign(a,{[d]:p[d]})})),a}function ip(e){for(const p in e)void 0===e[p]&&delete e[p];return e}function mp(e,p,a){if("string"==typeof p){let[e,d]=p.split(" ");a=Object.assign(d?{method:e,url:d}:{url:e},a)}else a=Object.assign({},p);var d;a.headers=(d=a.headers)?Object.keys(d).reduce(((e,p)=>(e[p.toLowerCase()]=d[p],e)),{}):{},ip(a),ip(a.headers);const t=op(e||{},a);return e&&e.mediaType.previews.length&&(t.mediaType.previews=e.mediaType.previews.filter((e=>!t.mediaType.previews.includes(e))).concat(t.mediaType.previews)),t.mediaType.previews=t.mediaType.previews.map((e=>e.replace(/-preview/,""))),t}const np=/\{[^}]+\}/g;function lp(e){return e.replace(/^\W+|\W+$/g,"").split(/,/)}function up(e,p){return Object.keys(e).filter((e=>!p.includes(e))).reduce(((p,a)=>(p[a]=e[a],p)),{})}function cp(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 vp(e){return encodeURIComponent(e).replace(/[!'()*]/g,(function(e){return"%"+e.charCodeAt(0).toString(16).toUpperCase()}))}function hp(e,p,a){return p="+"===e||"#"===e?cp(p):vp(p),a?vp(a)+"="+p:p}function gp(e){return null!=e}function wp(e){return";"===e||"&"===e||"?"===e}function fp(e,p){var a=["+","#",".","/",";","?","&"];return e.replace(/\{([^\{\}]+)\}|([^\{\}]+)/g,(function(e,d,t){if(d){let e="";const t=[];if(-1!==a.indexOf(d.charAt(0))&&(e=d.charAt(0),d=d.substr(1)),d.split(/,/g).forEach((function(a){var d=/([^:\*]*)(?::(\d+)|(\*))?/.exec(a);t.push(function(e,p,a,d){var t=e[a],r=[];if(gp(t)&&""!==t)if("string"==typeof t||"number"==typeof t||"boolean"==typeof t)t=t.toString(),d&&"*"!==d&&(t=t.substring(0,parseInt(d,10))),r.push(hp(p,t,wp(p)?a:""));else if("*"===d)Array.isArray(t)?t.filter(gp).forEach((function(e){r.push(hp(p,e,wp(p)?a:""))})):Object.keys(t).forEach((function(e){gp(t[e])&&r.push(hp(p,t[e],e))}));else{const e=[];Array.isArray(t)?t.filter(gp).forEach((function(a){e.push(hp(p,a))})):Object.keys(t).forEach((function(a){gp(t[a])&&(e.push(vp(a)),e.push(hp(p,t[a].toString())))})),wp(p)?r.push(vp(a)+"="+e.join(",")):0!==e.length&&r.push(e.join(","))}else";"===p?gp(t)&&r.push(vp(a)):""!==t||"&"!==p&&"?"!==p?""===t&&r.push(""):r.push(vp(a)+"=");return r}(p,e,d[1],d[2]||d[3]))})),e&&"+"!==e){var r=",";return"?"===e?r="&":"#"!==e&&(r=e),(0!==t.length?e:"")+t.join(r)}return t.join(",")}return cp(t)}))}function Tp(e){let p,a=e.method.toUpperCase(),d=(e.url||"/").replace(/:([a-z]\w+)/g,"{$1}"),t=Object.assign({},e.headers),r=up(e,["method","baseUrl","url","headers","request","mediaType"]);const s=function(e){const p=e.match(np);return p?p.map(lp).reduce(((e,p)=>e.concat(p)),[]):[]}(d);var o;d=(o=d,{expand:fp.bind(null,o)}).expand(r),/^http/.test(d)||(d=e.baseUrl+d);const i=up(r,Object.keys(e).filter((e=>s.includes(e))).concat("baseUrl"));if(!/application\/octet-stream/i.test(t.accept)&&(e.mediaType.format&&(t.accept=t.accept.split(/,/).map((p=>p.replace(/application\/vnd(\.\w+)(\.v3)?(\.\w+)?(\+json)?$/,`application/vnd$1$2.${e.mediaType.format}`))).join(",")),e.mediaType.previews.length)){const p=t.accept.match(/[\w-]+(?=-preview)/g)||[];t.accept=p.concat(e.mediaType.previews).map((p=>`application/vnd.github.${p}-preview${e.mediaType.format?`.${e.mediaType.format}`:"+json"}`)).join(",")}return["GET","HEAD"].includes(a)?d=function(e,p){const a=/\?/.test(e)?"&":"?",d=Object.keys(p);return 0===d.length?e:e+a+d.map((e=>"q"===e?"q="+p.q.split("+").map(encodeURIComponent).join("+"):`${e}=${encodeURIComponent(p[e])}`)).join("&")}(d,i):"data"in i?p=i.data:Object.keys(i).length?p=i:t["content-length"]=0,t["content-type"]||void 0===p||(t["content-type"]="application/json; charset=utf-8"),["PATCH","PUT"].includes(a)&&void 0===p&&(p=""),Object.assign({method:a,url:d,headers:t},void 0!==p?{body:p}:null,e.request?{request:e.request}:null)}function _p(e,p,a){return Tp(mp(e,p,a))}const Ep=function e(p,a){const d=mp(p,a),t=_p.bind(null,d);return Object.assign(t,{DEFAULTS:d,defaults:e.bind(null,d),merge:mp.bind(null,d),parse:Tp})}(null,{method:"GET",baseUrl:"https://api.github.com",headers:{accept:"application/vnd.github.v3+json","user-agent":`octokit-endpoint.js/6.0.10 ${Me()}`},mediaType:{format:"",previews:[]}});var bp={},yp={exports:{}},Sp={},Dp=Sp;function Np(e){return e<0?-1:1}function Ap(e,p){p.unsigned||--e;const a=p.unsigned?0:-Math.pow(2,e),d=Math.pow(2,e)-1,t=p.moduloBitLength?Math.pow(2,p.moduloBitLength):Math.pow(2,e),r=p.moduloBitLength?Math.pow(2,p.moduloBitLength-1):Math.pow(2,e-1);return function(e,s){s||(s={});let o=+e;if(s.enforceRange){if(!Number.isFinite(o))throw new TypeError("Argument is not a finite number");if(o=Np(o)*Math.floor(Math.abs(o)),od)throw new TypeError("Argument is not in byte range");return o}if(!isNaN(o)&&s.clamp)return o=function(e){return e%1==.5&&0==(1&e)?Math.floor(e):Math.round(e)}(o),od&&(o=d),o;if(!Number.isFinite(o)||0===o)return 0;if(o=Np(o)*Math.floor(Math.abs(o)),o%=t,!p.unsigned&&o>=r)return o-t;if(p.unsigned)if(o<0)o+=t;else if(-0===o)return 0;return o}}Sp.void=function(){},Sp.boolean=function(e){return!!e},Sp.byte=Ap(8,{unsigned:!1}),Sp.octet=Ap(8,{unsigned:!0}),Sp.short=Ap(16,{unsigned:!1}),Sp["unsigned short"]=Ap(16,{unsigned:!0}),Sp.long=Ap(32,{unsigned:!1}),Sp["unsigned long"]=Ap(32,{unsigned:!0}),Sp["long long"]=Ap(32,{unsigned:!1,moduloBitLength:64}),Sp["unsigned long long"]=Ap(32,{unsigned:!0,moduloBitLength:64}),Sp.double=function(e){const p=+e;if(!Number.isFinite(p))throw new TypeError("Argument is not a finite floating-point value");return p},Sp["unrestricted double"]=function(e){const p=+e;if(isNaN(p))throw new TypeError("Argument is NaN");return p},Sp.float=Sp.double,Sp["unrestricted float"]=Sp["unrestricted double"],Sp.DOMString=function(e,p){return p||(p={}),p.treatNullAsEmptyString&&null===e?"":String(e)},Sp.ByteString=function(e,p){const a=String(e);let d;for(let e=0;void 0!==(d=a.codePointAt(e));++e)if(d>255)throw new TypeError("Argument is not a valid bytestring");return a},Sp.USVString=function(e){const p=String(e),a=p.length,d=[];for(let e=0;e57343)d.push(String.fromCodePoint(t));else if(56320<=t&&t<=57343)d.push(String.fromCodePoint(65533));else if(e===a-1)d.push(String.fromCodePoint(65533));else{const a=p.charCodeAt(e+1);if(56320<=a&&a<=57343){const p=1023&t,r=1023&a;d.push(String.fromCodePoint(65536+1024*p+r)),++e}else d.push(String.fromCodePoint(65533))}}return d.join("")},Sp.Date=function(e,p){if(!(e instanceof Date))throw new TypeError("Argument is not a Date object");if(!isNaN(e))return e},Sp.RegExp=function(e,p){return e instanceof RegExp||(e=new RegExp(e)),e};var Gp,kp={exports:{}};(Gp=kp).exports.mixin=function(e,p){const a=Object.getOwnPropertyNames(p);for(let d=0;d=e)return t;t[0][0]>e?a=d-1:p=d+1}return null}var Lp=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g;function Bp(e){return e.replace(Lp,"_").length}var xp=/[\u0300-\u036F\u0483-\u0489\u0591-\u05BD\u05BF\u05C1\u05C2\u05C4\u05C5\u05C7\u0610-\u061A\u064B-\u065F\u0670\u06D6-\u06DC\u06DF-\u06E4\u06E7\u06E8\u06EA-\u06ED\u0711\u0730-\u074A\u07A6-\u07B0\u07EB-\u07F3\u0816-\u0819\u081B-\u0823\u0825-\u0827\u0829-\u082D\u0859-\u085B\u08E4-\u0903\u093A-\u093C\u093E-\u094F\u0951-\u0957\u0962\u0963\u0981-\u0983\u09BC\u09BE-\u09C4\u09C7\u09C8\u09CB-\u09CD\u09D7\u09E2\u09E3\u0A01-\u0A03\u0A3C\u0A3E-\u0A42\u0A47\u0A48\u0A4B-\u0A4D\u0A51\u0A70\u0A71\u0A75\u0A81-\u0A83\u0ABC\u0ABE-\u0AC5\u0AC7-\u0AC9\u0ACB-\u0ACD\u0AE2\u0AE3\u0B01-\u0B03\u0B3C\u0B3E-\u0B44\u0B47\u0B48\u0B4B-\u0B4D\u0B56\u0B57\u0B62\u0B63\u0B82\u0BBE-\u0BC2\u0BC6-\u0BC8\u0BCA-\u0BCD\u0BD7\u0C00-\u0C03\u0C3E-\u0C44\u0C46-\u0C48\u0C4A-\u0C4D\u0C55\u0C56\u0C62\u0C63\u0C81-\u0C83\u0CBC\u0CBE-\u0CC4\u0CC6-\u0CC8\u0CCA-\u0CCD\u0CD5\u0CD6\u0CE2\u0CE3\u0D01-\u0D03\u0D3E-\u0D44\u0D46-\u0D48\u0D4A-\u0D4D\u0D57\u0D62\u0D63\u0D82\u0D83\u0DCA\u0DCF-\u0DD4\u0DD6\u0DD8-\u0DDF\u0DF2\u0DF3\u0E31\u0E34-\u0E3A\u0E47-\u0E4E\u0EB1\u0EB4-\u0EB9\u0EBB\u0EBC\u0EC8-\u0ECD\u0F18\u0F19\u0F35\u0F37\u0F39\u0F3E\u0F3F\u0F71-\u0F84\u0F86\u0F87\u0F8D-\u0F97\u0F99-\u0FBC\u0FC6\u102B-\u103E\u1056-\u1059\u105E-\u1060\u1062-\u1064\u1067-\u106D\u1071-\u1074\u1082-\u108D\u108F\u109A-\u109D\u135D-\u135F\u1712-\u1714\u1732-\u1734\u1752\u1753\u1772\u1773\u17B4-\u17D3\u17DD\u180B-\u180D\u18A9\u1920-\u192B\u1930-\u193B\u19B0-\u19C0\u19C8\u19C9\u1A17-\u1A1B\u1A55-\u1A5E\u1A60-\u1A7C\u1A7F\u1AB0-\u1ABE\u1B00-\u1B04\u1B34-\u1B44\u1B6B-\u1B73\u1B80-\u1B82\u1BA1-\u1BAD\u1BE6-\u1BF3\u1C24-\u1C37\u1CD0-\u1CD2\u1CD4-\u1CE8\u1CED\u1CF2-\u1CF4\u1CF8\u1CF9\u1DC0-\u1DF5\u1DFC-\u1DFF\u20D0-\u20F0\u2CEF-\u2CF1\u2D7F\u2DE0-\u2DFF\u302A-\u302F\u3099\u309A\uA66F-\uA672\uA674-\uA67D\uA69F\uA6F0\uA6F1\uA802\uA806\uA80B\uA823-\uA827\uA880\uA881\uA8B4-\uA8C4\uA8E0-\uA8F1\uA926-\uA92D\uA947-\uA953\uA980-\uA983\uA9B3-\uA9C0\uA9E5\uAA29-\uAA36\uAA43\uAA4C\uAA4D\uAA7B-\uAA7D\uAAB0\uAAB2-\uAAB4\uAAB7\uAAB8\uAABE\uAABF\uAAC1\uAAEB-\uAAEF\uAAF5\uAAF6\uABE3-\uABEA\uABEC\uABED\uFB1E\uFE00-\uFE0F\uFE20-\uFE2D]|\uD800[\uDDFD\uDEE0\uDF76-\uDF7A]|\uD802[\uDE01-\uDE03\uDE05\uDE06\uDE0C-\uDE0F\uDE38-\uDE3A\uDE3F\uDEE5\uDEE6]|\uD804[\uDC00-\uDC02\uDC38-\uDC46\uDC7F-\uDC82\uDCB0-\uDCBA\uDD00-\uDD02\uDD27-\uDD34\uDD73\uDD80-\uDD82\uDDB3-\uDDC0\uDE2C-\uDE37\uDEDF-\uDEEA\uDF01-\uDF03\uDF3C\uDF3E-\uDF44\uDF47\uDF48\uDF4B-\uDF4D\uDF57\uDF62\uDF63\uDF66-\uDF6C\uDF70-\uDF74]|\uD805[\uDCB0-\uDCC3\uDDAF-\uDDB5\uDDB8-\uDDC0\uDE30-\uDE40\uDEAB-\uDEB7]|\uD81A[\uDEF0-\uDEF4\uDF30-\uDF36]|\uD81B[\uDF51-\uDF7E\uDF8F-\uDF92]|\uD82F[\uDC9D\uDC9E]|\uD834[\uDD65-\uDD69\uDD6D-\uDD72\uDD7B-\uDD82\uDD85-\uDD8B\uDDAA-\uDDAD\uDE42-\uDE44]|\uD83A[\uDCD0-\uDCD6]|\uDB40[\uDD00-\uDDEF]/;function qp(e,p){"xn--"===e.substr(0,4)&&(e=Cp.toUnicode(e));var a=!1;(Up(e)!==e||"-"===e[3]&&"-"===e[4]||"-"===e[0]||"-"===e[e.length-1]||-1!==e.indexOf(".")||0===e.search(xp))&&(a=!0);for(var d=Bp(e),t=0;t253||0===s.length)&&(t.error=!0);for(var o=0;o63||0===r.length){t.error=!0;break}}return t.error?null:r.join(".")},Vp.toUnicode=function(e,p){var a=Ip(e,p,Fp.NONTRANSITIONAL);return{domain:a.string,error:a.error}},Vp.PROCESSING_OPTIONS=Fp,function(e){const p=n,a=Vp,d={ftp:21,file:null,gopher:70,http:80,https:443,ws:80,wss:443},t=Symbol("failure");function r(e){return p.ucs2.decode(e).length}function s(e,p){const a=e[p];return isNaN(a)?void 0:String.fromCodePoint(a)}function o(e){return e>=48&&e<=57}function i(e){return e>=65&&e<=90||e>=97&&e<=122}function m(e){return o(e)||e>=65&&e<=70||e>=97&&e<=102}function l(e){return"."===e||"%2e"===e.toLowerCase()}function u(e){return 2===e.length&&i(e.codePointAt(0))&&(":"===e[1]||"|"===e[1])}function c(e){return void 0!==d[e]}function v(e){return c(e.scheme)}function h(e){let p=e.toString(16).toUpperCase();return 1===p.length&&(p="0"+p),"%"+p}function g(e){return e<=31||e>126}const w=new Set([32,34,35,60,62,63,96,123,125]);function f(e){return g(e)||w.has(e)}const T=new Set([47,58,59,61,64,91,92,93,94,124]);function _(e){return f(e)||T.has(e)}function E(e,p){const a=String.fromCodePoint(e);return p(e)?function(e){const p=new Buffer(e);let a="";for(let e=0;e=2&&"0"===e.charAt(0)&&"x"===e.charAt(1).toLowerCase()?(e=e.substring(2),p=16):e.length>=2&&"0"===e.charAt(0)&&(e=e.substring(1),p=8),""===e)return 0;return(10===p?/[^0-9]/:16===p?/[^0-9A-Fa-f]/:/[^0-7]/).test(e)?t:parseInt(e,p)}function y(e,d){if("["===e[0])return"]"!==e[e.length-1]?t:function(e){const a=[0,0,0,0,0,0,0,0];let d=0,r=null,i=0;if(58===(e=p.ucs2.decode(e))[i]){if(58!==e[i+1])return t;i+=2,++d,r=d}for(;i6)return t;let p=0;for(;void 0!==e[i];){let r=null;if(p>0){if(!(46===e[i]&&p<4))return t;++i}if(!o(e[i]))return t;for(;o(e[i]);){const p=parseInt(s(e,i));if(null===r)r=p;else{if(0===r)return t;r=10*r+p}if(r>255)return t;++i}a[d]=256*a[d]+r,++p,2!==p&&4!==p||++d}if(4!==p)return t;break}if(58===e[i]){if(++i,void 0===e[i])return t}else if(void 0!==e[i])return t;a[d]=p,++d}if(null!==r){let e=d-r;for(d=7;0!==d&&e>0;){const p=a[r+e-1];a[r+e-1]=a[d],a[d]=p,--d,--e}}else if(null===r&&8!==d)return t;return a}(e.substring(1,e.length-1));if(!d)return function(e){if(a=e,-1!==a.search(/\u0000|\u0009|\u000A|\u000D|\u0020|#|\/|:|\?|@|\[|\\|\]/))return t;var a;let d="";const r=p.ucs2.decode(e);for(let e=0;e1&&p.pop(),p.length>4)return e;const a=[];for(const d of p){if(""===d)return e;const p=b(d);if(p===t)return e;a.push(p)}for(let e=0;e255)return t;if(a[a.length-1]>=Math.pow(256,5-a.length))return t;let d=a.pop(),r=0;for(const e of a)d+=e*Math.pow(256,3-r),++r;return d}(i);return"number"==typeof n||n===t?n:i}function S(e){return"number"==typeof e?function(e){let p="",a=e;for(let e=1;e<=4;++e)p=String(a%256)+p,4!==e&&(p="."+p),a=Math.floor(a/256);return p}(e):e instanceof Array?"["+function(e){let p="";const a=function(e){let p=null,a=1,d=null,t=0;for(let r=0;ra&&(p=d,a=t),d=null,t=0):(null===d&&(d=r),++t);return t>a&&(p=d,a=t),{idx:p,len:a}}(e),d=a.idx;let t=!1;for(let a=0;a<=7;++a)t&&0===e[a]||(t&&(t=!1),d!==a?(p+=e[a].toString(16),7!==a&&(p+=":")):(p+=0===a?"::":":",t=!0));return p}(e)+"]":e}function D(e){const p=e.path;var a;0!==p.length&&("file"===e.scheme&&1===p.length&&(a=p[0],/^[A-Za-z]:$/.test(a))||p.pop())}function N(e){return""!==e.username||""!==e.password}function A(e,a,d,r,s){if(this.pointer=0,this.input=e,this.base=a||null,this.encodingOverride=d||"utf-8",this.stateOverride=s,this.url=r,this.failure=!1,this.parseError=!1,!this.url){this.url={scheme:"",username:"",password:"",host:null,port:null,path:[],query:null,fragment:null,cannotBeABaseURL:!1};const e=function(e){return e.replace(/^[\u0000-\u001F\u0020]+|[\u0000-\u001F\u0020]+$/g,"")}(this.input);e!==this.input&&(this.parseError=!0),this.input=e}const o=function(e){return e.replace(/\u0009|\u000A|\u000D/g,"")}(this.input);for(o!==this.input&&(this.parseError=!0),this.input=o,this.state=s||"scheme start",this.buffer="",this.atFlag=!1,this.arrFlag=!1,this.passwordTokenSeenFlag=!1,this.input=p.ucs2.decode(this.input);this.pointer<=this.input.length;++this.pointer){const e=this.input[this.pointer],p=isNaN(e)?void 0:String.fromCodePoint(e),a=this["parse "+this.state](e,p);if(!a)break;if(a===t){this.failure=!0;break}}}A.prototype["parse scheme start"]=function(e,p){if(i(e))this.buffer+=p.toLowerCase(),this.state="scheme";else{if(this.stateOverride)return this.parseError=!0,t;this.state="no scheme",--this.pointer}return!0},A.prototype["parse scheme"]=function(e,p){if(function(e){return i(e)||o(e)}(e)||43===e||45===e||46===e)this.buffer+=p.toLowerCase();else if(58===e){if(this.stateOverride){if(v(this.url)&&!c(this.buffer))return!1;if(!v(this.url)&&c(this.buffer))return!1;if((N(this.url)||null!==this.url.port)&&"file"===this.buffer)return!1;if("file"===this.url.scheme&&(""===this.url.host||null===this.url.host))return!1}if(this.url.scheme=this.buffer,this.buffer="",this.stateOverride)return!1;"file"===this.url.scheme?(47===this.input[this.pointer+1]&&47===this.input[this.pointer+2]||(this.parseError=!0),this.state="file"):v(this.url)&&null!==this.base&&this.base.scheme===this.url.scheme?this.state="special relative or authority":v(this.url)?this.state="special authority slashes":47===this.input[this.pointer+1]?(this.state="path or authority",++this.pointer):(this.url.cannotBeABaseURL=!0,this.url.path.push(""),this.state="cannot-be-a-base-URL path")}else{if(this.stateOverride)return this.parseError=!0,t;this.buffer="",this.state="no scheme",this.pointer=-1}return!0},A.prototype["parse no scheme"]=function(e){return null===this.base||this.base.cannotBeABaseURL&&35!==e?t:(this.base.cannotBeABaseURL&&35===e?(this.url.scheme=this.base.scheme,this.url.path=this.base.path.slice(),this.url.query=this.base.query,this.url.fragment="",this.url.cannotBeABaseURL=!0,this.state="fragment"):"file"===this.base.scheme?(this.state="file",--this.pointer):(this.state="relative",--this.pointer),!0)},A.prototype["parse special relative or authority"]=function(e){return 47===e&&47===this.input[this.pointer+1]?(this.state="special authority ignore slashes",++this.pointer):(this.parseError=!0,this.state="relative",--this.pointer),!0},A.prototype["parse path or authority"]=function(e){return 47===e?this.state="authority":(this.state="path",--this.pointer),!0},A.prototype["parse relative"]=function(e){return this.url.scheme=this.base.scheme,isNaN(e)?(this.url.username=this.base.username,this.url.password=this.base.password,this.url.host=this.base.host,this.url.port=this.base.port,this.url.path=this.base.path.slice(),this.url.query=this.base.query):47===e?this.state="relative slash":63===e?(this.url.username=this.base.username,this.url.password=this.base.password,this.url.host=this.base.host,this.url.port=this.base.port,this.url.path=this.base.path.slice(),this.url.query="",this.state="query"):35===e?(this.url.username=this.base.username,this.url.password=this.base.password,this.url.host=this.base.host,this.url.port=this.base.port,this.url.path=this.base.path.slice(),this.url.query=this.base.query,this.url.fragment="",this.state="fragment"):v(this.url)&&92===e?(this.parseError=!0,this.state="relative slash"):(this.url.username=this.base.username,this.url.password=this.base.password,this.url.host=this.base.host,this.url.port=this.base.port,this.url.path=this.base.path.slice(0,this.base.path.length-1),this.state="path",--this.pointer),!0},A.prototype["parse relative slash"]=function(e){return!v(this.url)||47!==e&&92!==e?47===e?this.state="authority":(this.url.username=this.base.username,this.url.password=this.base.password,this.url.host=this.base.host,this.url.port=this.base.port,this.state="path",--this.pointer):(92===e&&(this.parseError=!0),this.state="special authority ignore slashes"),!0},A.prototype["parse special authority slashes"]=function(e){return 47===e&&47===this.input[this.pointer+1]?(this.state="special authority ignore slashes",++this.pointer):(this.parseError=!0,this.state="special authority ignore slashes",--this.pointer),!0},A.prototype["parse special authority ignore slashes"]=function(e){return 47!==e&&92!==e?(this.state="authority",--this.pointer):this.parseError=!0,!0},A.prototype["parse authority"]=function(e,p){if(64===e){this.parseError=!0,this.atFlag&&(this.buffer="%40"+this.buffer),this.atFlag=!0;const e=r(this.buffer);for(let p=0;pMath.pow(2,16)-1)return this.parseError=!0,t;this.url.port=e===(a=this.url.scheme,d[a])?null:e,this.buffer=""}if(this.stateOverride)return!1;this.state="path start",--this.pointer}var a;return!0};const G=new Set([47,92,63,35]);A.prototype["parse file"]=function(e){var p,a;return this.url.scheme="file",47===e||92===e?(92===e&&(this.parseError=!0),this.state="file slash"):null!==this.base&&"file"===this.base.scheme?isNaN(e)?(this.url.host=this.base.host,this.url.path=this.base.path.slice(),this.url.query=this.base.query):63===e?(this.url.host=this.base.host,this.url.path=this.base.path.slice(),this.url.query="",this.state="query"):35===e?(this.url.host=this.base.host,this.url.path=this.base.path.slice(),this.url.query=this.base.query,this.url.fragment="",this.state="fragment"):(this.input.length-this.pointer-1==0||(p=e,a=this.input[this.pointer+1],!i(p)||58!==a&&124!==a)||this.input.length-this.pointer-1>=2&&!G.has(this.input[this.pointer+2])?(this.url.host=this.base.host,this.url.path=this.base.path.slice(),D(this.url)):this.parseError=!0,this.state="path",--this.pointer):(this.state="path",--this.pointer),!0},A.prototype["parse file slash"]=function(e){var p;return 47===e||92===e?(92===e&&(this.parseError=!0),this.state="file host"):(null!==this.base&&"file"===this.base.scheme&&(2===(p=this.base.path[0]).length&&i(p.codePointAt(0))&&":"===p[1]?this.url.path.push(this.base.path[0]):this.url.host=this.base.host),this.state="path",--this.pointer),!0},A.prototype["parse file host"]=function(e,p){if(isNaN(e)||47===e||92===e||63===e||35===e)if(--this.pointer,!this.stateOverride&&u(this.buffer))this.parseError=!0,this.state="path";else if(""===this.buffer){if(this.url.host="",this.stateOverride)return!1;this.state="path start"}else{let e=y(this.buffer,v(this.url));if(e===t)return t;if("localhost"===e&&(e=""),this.url.host=e,this.stateOverride)return!1;this.buffer="",this.state="path start"}else this.buffer+=p;return!0},A.prototype["parse path start"]=function(e){return v(this.url)?(92===e&&(this.parseError=!0),this.state="path",47!==e&&92!==e&&--this.pointer):this.stateOverride||63!==e?this.stateOverride||35!==e?void 0!==e&&(this.state="path",47!==e&&--this.pointer):(this.url.fragment="",this.state="fragment"):(this.url.query="",this.state="query"),!0},A.prototype["parse path"]=function(e){if(isNaN(e)||47===e||v(this.url)&&92===e||!this.stateOverride&&(63===e||35===e)){if(v(this.url)&&92===e&&(this.parseError=!0),".."===(p=(p=this.buffer).toLowerCase())||"%2e."===p||".%2e"===p||"%2e%2e"===p?(D(this.url),47===e||v(this.url)&&92===e||this.url.path.push("")):!l(this.buffer)||47===e||v(this.url)&&92===e?l(this.buffer)||("file"===this.url.scheme&&0===this.url.path.length&&u(this.buffer)&&(""!==this.url.host&&null!==this.url.host&&(this.parseError=!0,this.url.host=""),this.buffer=this.buffer[0]+":"),this.url.path.push(this.buffer)):this.url.path.push(""),this.buffer="","file"===this.url.scheme&&(void 0===e||63===e||35===e))for(;this.url.path.length>1&&""===this.url.path[0];)this.parseError=!0,this.url.path.shift();63===e&&(this.url.query="",this.state="query"),35===e&&(this.url.fragment="",this.state="fragment")}else 37!==e||m(this.input[this.pointer+1])&&m(this.input[this.pointer+2])||(this.parseError=!0),this.buffer+=E(e,f);var p;return!0},A.prototype["parse cannot-be-a-base-URL path"]=function(e){return 63===e?(this.url.query="",this.state="query"):35===e?(this.url.fragment="",this.state="fragment"):(isNaN(e)||37===e||(this.parseError=!0),37!==e||m(this.input[this.pointer+1])&&m(this.input[this.pointer+2])||(this.parseError=!0),isNaN(e)||(this.url.path[0]=this.url.path[0]+E(e,g))),!0},A.prototype["parse query"]=function(e,p){if(isNaN(e)||!this.stateOverride&&35===e){v(this.url)&&"ws"!==this.url.scheme&&"wss"!==this.url.scheme||(this.encodingOverride="utf-8");const p=new Buffer(this.buffer);for(let e=0;e126||34===p[e]||35===p[e]||60===p[e]||62===p[e]?this.url.query+=h(p[e]):this.url.query+=String.fromCodePoint(p[e]);this.buffer="",35===e&&(this.url.fragment="",this.state="fragment")}else 37!==e||m(this.input[this.pointer+1])&&m(this.input[this.pointer+2])||(this.parseError=!0),this.buffer+=p;return!0},A.prototype["parse fragment"]=function(e){return isNaN(e)||(0===e?this.parseError=!0:(37!==e||m(this.input[this.pointer+1])&&m(this.input[this.pointer+2])||(this.parseError=!0),this.url.fragment+=E(e,g))),!0},e.exports.serializeURL=function(e,p){let a=e.scheme+":";if(null!==e.host?(a+="//",""===e.username&&""===e.password||(a+=e.username,""!==e.password&&(a+=":"+e.password),a+="@"),a+=S(e.host),null!==e.port&&(a+=":"+e.port)):null===e.host&&"file"===e.scheme&&(a+="//"),e.cannotBeABaseURL)a+=e.path[0];else for(const p of e.path)a+="/"+p;return null!==e.query&&(a+="?"+e.query),p||null===e.fragment||(a+="#"+e.fragment),a},e.exports.serializeURLOrigin=function(p){switch(p.scheme){case"blob":try{return e.exports.serializeURLOrigin(e.exports.parseURL(p.path[0]))}catch(e){return"null"}case"ftp":case"gopher":case"http":case"https":case"ws":case"wss":return function(e){let p=e.scheme+"://";return p+=S(e.host),null!==e.port&&(p+=":"+e.port),p}({scheme:p.scheme,host:p.host,port:p.port});case"file":return"file://";default:return"null"}},e.exports.basicURLParse=function(e,p){void 0===p&&(p={});const a=new A(e,p.baseURL,p.encodingOverride,p.url,p.stateOverride);return a.failure?"failure":a.url},e.exports.setTheUsername=function(e,a){e.username="";const d=p.ucs2.decode(a);for(let p=0;p!!e&&e[t]instanceof d.implementation,create(e,p){let a=Object.create(r.prototype);return this.setup(a,e,p),a},setup(e,p,r){r||(r={}),r.wrapper=e,e[t]=new d.implementation(p,r),e[t][a.wrapperSymbol]=e},interface:r,expose:{Window:{URL:r},Worker:{URL:r}}}}(yp),bp.URL=yp.exports.interface,bp.serializeURL=Op.exports.serializeURL,bp.serializeURLOrigin=Op.exports.serializeURLOrigin,bp.basicURLParse=Op.exports.basicURLParse,bp.setTheUsername=Op.exports.setTheUsername,bp.setThePassword=Op.exports.setThePassword,bp.serializeHost=Op.exports.serializeHost,bp.serializeInteger=Op.exports.serializeInteger,bp.parseURL=Op.exports.parseURL;const $p=i.Readable,Mp=Symbol("buffer"),zp=Symbol("type");class Wp{constructor(){this[zp]="";const e=arguments[0],p=arguments[1],a=[];let d=0;if(e){const p=e,t=Number(p.length);for(let e=0;e1&&void 0!==arguments[1]?arguments[1]:{},d=a.size;let t=void 0===d?0:d;var r=a.timeout;let s=void 0===r?0:r;null==e?e=null:ea(e)?e=Buffer.from(e.toString()):pa(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[Yp]={body:e,disturbed:!1,error:null},this.size=t,this.timeout=s,e instanceof i&&e.on("error",(function(e){const a="AbortError"===e.name?e:new Kp(`Invalid response body while trying to fetch ${p.url}: ${e.message}`,"system",e);p[Yp].error=a}))}function Xp(){var e=this;if(this[Yp].disturbed)return Qp.Promise.reject(new TypeError(`body used already for: ${this.url}`));if(this[Yp].disturbed=!0,this[Yp].error)return Qp.Promise.reject(this[Yp].error);let p=this.body;if(null===p)return Qp.Promise.resolve(Buffer.alloc(0));if(pa(p)&&(p=p.stream()),Buffer.isBuffer(p))return Qp.Promise.resolve(p);if(!(p instanceof i))return Qp.Promise.resolve(Buffer.alloc(0));let a=[],d=0,t=!1;return new Qp.Promise((function(r,s){let o;e.timeout&&(o=setTimeout((function(){t=!0,s(new Kp(`Response timeout while trying to fetch ${e.url} (over ${e.timeout}ms)`,"body-timeout"))}),e.timeout)),p.on("error",(function(p){"AbortError"===p.name?(t=!0,s(p)):s(new Kp(`Invalid response body while trying to fetch ${e.url}: ${p.message}`,"system",p))})),p.on("data",(function(p){if(!t&&null!==p){if(e.size&&d+p.length>e.size)return t=!0,void s(new Kp(`content size at ${e.url} over limit: ${e.size}`,"max-size"));d+=p.length,a.push(p)}})),p.on("end",(function(){if(!t){clearTimeout(o);try{r(Buffer.concat(a,d))}catch(p){s(new Kp(`Could not create Buffer from response body for ${e.url}: ${p.message}`,"system",p))}}}))}))}function ea(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 pa(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 aa(e){let p,a,d=e.body;if(e.bodyUsed)throw new Error("cannot clone body after it is used");return d instanceof i&&"function"!=typeof d.getBoundary&&(p=new Zp,a=new Zp,d.pipe(p),d.pipe(a),e[Yp].body=p,d=a),d}function da(e){return null===e?null:"string"==typeof e?"text/plain;charset=UTF-8":ea(e)?"application/x-www-form-urlencoded;charset=UTF-8":pa(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 ta(e){const p=e.body;return null===p?0:pa(p)?p.size:Buffer.isBuffer(p)?p.length:p&&"function"==typeof p.getLengthSync&&(p._lengthRetrievers&&0==p._lengthRetrievers.length||p.hasKnownLength&&p.hasKnownLength())?p.getLengthSync():null}Qp.prototype={get body(){return this[Yp].body},get bodyUsed(){return this[Yp].disturbed},arrayBuffer(){return Xp.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 Xp.call(this).then((function(p){return Object.assign(new Wp([],{type:e.toLowerCase()}),{[Mp]:p})}))},json(){var e=this;return Xp.call(this).then((function(p){try{return JSON.parse(p.toString())}catch(p){return Qp.Promise.reject(new Kp(`invalid json response body at ${e.url} reason: ${p.message}`,"invalid-json"))}}))},text(){return Xp.call(this).then((function(e){return e.toString()}))},buffer(){return Xp.call(this)},textConverted(){var e=this;return Xp.call(this).then((function(p){return function(e,p){if("function"!=typeof Jp)throw new Error("The package `encoding` must be installed to use the textConverted() function");const a=p.get("content-type");let d,t,r="utf-8";a&&(d=/charset=([^;]*)/i.exec(a));t=e.slice(0,1024).toString(),!d&&t&&(d=/0&&void 0!==arguments[0]?arguments[0]:void 0;if(this[na]=Object.create(null),e instanceof la){const p=e.raw(),a=Object.keys(p);for(const e of a)for(const a of p[e])this.append(e,a)}else if(null==e);else{if("object"!=typeof e)throw new TypeError("Provided initializer must be an object");{const p=e[Symbol.iterator];if(null!=p){if("function"!=typeof p)throw new TypeError("Header pairs must be iterable");const a=[];for(const p of e){if("object"!=typeof p||"function"!=typeof p[Symbol.iterator])throw new TypeError("Each header pair must be iterable");a.push(Array.from(p))}for(const e of a){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 p of Object.keys(e)){const a=e[p];this.append(p,a)}}}}get(e){oa(e=`${e}`);const p=ma(this[na],e);return void 0===p?null:this[na][p].join(", ")}forEach(e){let p=arguments.length>1&&void 0!==arguments[1]?arguments[1]:void 0,a=ua(this),d=0;for(;d1&&void 0!==arguments[1]?arguments[1]:"key+value";const a=Object.keys(e[na]).sort();return a.map("key"===p?function(e){return e.toLowerCase()}:"value"===p?function(p){return e[na][p].join(", ")}:function(p){return[p.toLowerCase(),e[na][p].join(", ")]})}la.prototype.entries=la.prototype[Symbol.iterator],Object.defineProperty(la.prototype,Symbol.toStringTag,{value:"Headers",writable:!1,enumerable:!1,configurable:!0}),Object.defineProperties(la.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 ca=Symbol("internal");function va(e,p){const a=Object.create(ha);return a[ca]={target:e,kind:p,index:0},a}const ha=Object.setPrototypeOf({next(){if(!this||Object.getPrototypeOf(this)!==ha)throw new TypeError("Value of `this` is not a HeadersIterator");var e=this[ca];const p=e.target,a=e.kind,d=e.index,t=ua(p,a);return d>=t.length?{value:void 0,done:!0}:(this[ca].index=d+1,{value:t[d],done:!1})}},Object.getPrototypeOf(Object.getPrototypeOf([][Symbol.iterator]())));function ga(e){const p=Object.assign({__proto__:null},e[na]),a=ma(e[na],"Host");return void 0!==a&&(p[a]=p[a][0]),p}Object.defineProperty(ha,Symbol.toStringTag,{value:"HeadersIterator",writable:!1,enumerable:!1,configurable:!0});const wa=Symbol("Response internals"),fa=d.STATUS_CODES;class Ta{constructor(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,p=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};Qp.call(this,e,p);const a=p.status||200,d=new la(p.headers);if(null!=e&&!d.has("Content-Type")){const p=da(e);p&&d.append("Content-Type",p)}this[wa]={url:p.url,status:a,statusText:p.statusText||fa[a],headers:d,counter:p.counter}}get url(){return this[wa].url||""}get status(){return this[wa].status}get ok(){return this[wa].status>=200&&this[wa].status<300}get redirected(){return this[wa].counter>0}get statusText(){return this[wa].statusText}get headers(){return this[wa].headers}clone(){return new Ta(aa(this),{url:this.url,status:this.status,statusText:this.statusText,headers:this.headers,ok:this.ok,redirected:this.redirected})}}Qp.mixIn(Ta.prototype),Object.defineProperties(Ta.prototype,{url:{enumerable:!0},status:{enumerable:!0},ok:{enumerable:!0},redirected:{enumerable:!0},statusText:{enumerable:!0},headers:{enumerable:!0},clone:{enumerable:!0}}),Object.defineProperty(Ta.prototype,Symbol.toStringTag,{value:"Response",writable:!1,enumerable:!1,configurable:!0});const _a=Symbol("Request internals"),Ea=m.URL||bp.URL,ba=m.parse,ya=m.format;function Sa(e){return/^[a-zA-Z][a-zA-Z\d+\-.]*:/.exec(e)&&(e=new Ea(e).toString()),ba(e)}const Da="destroy"in i.Readable.prototype;function Na(e){return"object"==typeof e&&"object"==typeof e[_a]}class Aa{constructor(e){let p,a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};Na(e)?p=Sa(e.url):(p=e&&e.href?Sa(e.href):Sa(`${e}`),e={});let d=a.method||e.method||"GET";if(d=d.toUpperCase(),(null!=a.body||Na(e)&&null!==e.body)&&("GET"===d||"HEAD"===d))throw new TypeError("Request with GET/HEAD method cannot have body");let t=null!=a.body?a.body:Na(e)&&null!==e.body?aa(e):null;Qp.call(this,t,{timeout:a.timeout||e.timeout||0,size:a.size||e.size||0});const r=new la(a.headers||e.headers||{});if(null!=t&&!r.has("Content-Type")){const e=da(t);e&&r.append("Content-Type",e)}let s=Na(e)?e.signal:null;if("signal"in a&&(s=a.signal),null!=s&&!function(e){const p=e&&"object"==typeof e&&Object.getPrototypeOf(e);return!(!p||"AbortSignal"!==p.constructor.name)}(s))throw new TypeError("Expected signal to be an instanceof AbortSignal");this[_a]={method:d,redirect:a.redirect||e.redirect||"follow",headers:r,parsedURL:p,signal:s},this.follow=void 0!==a.follow?a.follow:void 0!==e.follow?e.follow:20,this.compress=void 0!==a.compress?a.compress:void 0===e.compress||e.compress,this.counter=a.counter||e.counter||0,this.agent=a.agent||e.agent}get method(){return this[_a].method}get url(){return ya(this[_a].parsedURL)}get headers(){return this[_a].headers}get redirect(){return this[_a].redirect}get signal(){return this[_a].signal}clone(){return new Aa(this)}}function Ga(e){Error.call(this,e),this.type="aborted",this.message=e,Error.captureStackTrace(this,this.constructor)}Qp.mixIn(Aa.prototype),Object.defineProperty(Aa.prototype,Symbol.toStringTag,{value:"Request",writable:!1,enumerable:!1,configurable:!0}),Object.defineProperties(Aa.prototype,{method:{enumerable:!0},url:{enumerable:!0},headers:{enumerable:!0},redirect:{enumerable:!0},clone:{enumerable:!0},signal:{enumerable:!0}}),Ga.prototype=Object.create(Error.prototype),Ga.prototype.constructor=Ga,Ga.prototype.name="AbortError";const ka=m.URL||bp.URL,Pa=i.PassThrough;function Oa(e,p){if(!Oa.Promise)throw new Error("native promise missing, set fetch.Promise to your favorite alternative");return Qp.Promise=Oa.Promise,new Oa.Promise((function(a,r){const s=new Aa(e,p),o=function(e){const p=e[_a].parsedURL,a=new la(e[_a].headers);if(a.has("Accept")||a.set("Accept","*/*"),!p.protocol||!p.hostname)throw new TypeError("Only absolute URLs are supported");if(!/^https?:$/.test(p.protocol))throw new TypeError("Only HTTP(S) protocols are supported");if(e.signal&&e.body instanceof i.Readable&&!Da)throw new Error("Cancellation of streamed requests with AbortSignal is not supported in node < 8");let d=null;if(null==e.body&&/^(POST|PUT)$/i.test(e.method)&&(d="0"),null!=e.body){const p=ta(e);"number"==typeof p&&(d=String(p))}d&&a.set("Content-Length",d),a.has("User-Agent")||a.set("User-Agent","node-fetch/1.0 (+https://github.com/bitinn/node-fetch)"),e.compress&&!a.has("Accept-Encoding")&&a.set("Accept-Encoding","gzip,deflate");let t=e.agent;return"function"==typeof t&&(t=t(p)),a.has("Connection")||t||a.set("Connection","close"),Object.assign({},p,{method:e.method,headers:ga(a),agent:t})}(s),m=("https:"===o.protocol?t:d).request,n=s.signal;let u=null;const c=function(){let e=new Ga("The user aborted a request.");r(e),s.body&&s.body instanceof i.Readable&&s.body.destroy(e),u&&u.body&&u.body.emit("error",e)};if(n&&n.aborted)return void c();const v=function(){c(),w()},h=m(o);let g;function w(){h.abort(),n&&n.removeEventListener("abort",v),clearTimeout(g)}n&&n.addEventListener("abort",v),s.timeout&&h.once("socket",(function(e){g=setTimeout((function(){r(new Kp(`network timeout at: ${s.url}`,"request-timeout")),w()}),s.timeout)})),h.on("error",(function(e){r(new Kp(`request to ${s.url} failed, reason: ${e.message}`,"system",e)),w()})),h.on("response",(function(e){clearTimeout(g);const p=function(e){const p=new la;for(const a of Object.keys(e))if(!ra.test(a))if(Array.isArray(e[a]))for(const d of e[a])sa.test(d)||(void 0===p[na][a]?p[na][a]=[d]:p[na][a].push(d));else sa.test(e[a])||(p[na][a]=[e[a]]);return p}(e.headers);if(Oa.isRedirect(e.statusCode)){const d=p.get("Location");let t=null;try{t=null===d?null:new ka(d,s.url).toString()}catch(e){if("manual"!==s.redirect)return r(new Kp(`uri requested responds with an invalid redirect URL: ${d}`,"invalid-redirect")),void w()}switch(s.redirect){case"error":return r(new Kp(`uri requested responds with a redirect, redirect mode is set to error: ${s.url}`,"no-redirect")),void w();case"manual":if(null!==t)try{p.set("Location",t)}catch(e){r(e)}break;case"follow":if(null===t)break;if(s.counter>=s.follow)return r(new Kp(`maximum redirect reached at: ${s.url}`,"max-redirect")),void w();const d={headers:new la(s.headers),follow:s.follow,counter:s.counter+1,agent:s.agent,compress:s.compress,method:s.method,body:s.body,signal:s.signal,timeout:s.timeout,size:s.size};if(!function(e,p){const a=new ka(p).hostname,d=new ka(e).hostname;return a===d||"."===a[a.length-d.length-1]&&a.endsWith(d)}(s.url,t))for(const e of["authorization","www-authenticate","cookie","cookie2"])d.headers.delete(e);return 303!==e.statusCode&&s.body&&null===ta(s)?(r(new Kp("Cannot follow redirect with body being a readable stream","unsupported-redirect")),void w()):(303!==e.statusCode&&(301!==e.statusCode&&302!==e.statusCode||"POST"!==s.method)||(d.method="GET",d.body=void 0,d.headers.delete("content-length")),a(Oa(new Aa(t,d))),void w())}}e.once("end",(function(){n&&n.removeEventListener("abort",v)}));let d=e.pipe(new Pa);const t={url:s.url,status:e.statusCode,statusText:e.statusMessage,headers:p,size:s.size,timeout:s.timeout,counter:s.counter},o=p.get("Content-Encoding");if(!s.compress||"HEAD"===s.method||null===o||204===e.statusCode||304===e.statusCode)return u=new Ta(d,t),void a(u);const i={flush:l.Z_SYNC_FLUSH,finishFlush:l.Z_SYNC_FLUSH};if("gzip"==o||"x-gzip"==o)return d=d.pipe(l.createGunzip(i)),u=new Ta(d,t),void a(u);if("deflate"!=o&&"x-deflate"!=o){if("br"==o&&"function"==typeof l.createBrotliDecompress)return d=d.pipe(l.createBrotliDecompress()),u=new Ta(d,t),void a(u);u=new Ta(d,t),a(u)}else{e.pipe(new Pa).once("data",(function(e){d=8==(15&e[0])?d.pipe(l.createInflate()):d.pipe(l.createInflateRaw()),u=new Ta(d,t),a(u)}))}})),function(e,p){const a=p.body;null===a?e.end():pa(a)?a.stream().pipe(e):Buffer.isBuffer(a)?(e.write(a),e.end()):a.pipe(e)}(h,s)}))}Oa.isRedirect=function(e){return 301===e||302===e||303===e||307===e||308===e},Oa.Promise=global.Promise;class Va extends Error{constructor(e){super(e),Error.captureStackTrace&&Error.captureStackTrace(this,this.constructor),this.name="Deprecation"}}var Ca={exports:{}},Ra=function e(p,a){if(p&&a)return e(p)(a);if("function"!=typeof p)throw new TypeError("need wrapper function");return Object.keys(p).forEach((function(e){d[e]=p[e]})),d;function d(){for(var e=new Array(arguments.length),a=0;aconsole.warn(e))),Ba=Ca.exports((e=>console.warn(e)));let xa=class extends Error{constructor(e,p,a){let d;super(e),Error.captureStackTrace&&Error.captureStackTrace(this,this.constructor),this.name="HttpError",this.status=p,"headers"in a&&void 0!==a.headers&&(d=a.headers),"response"in a&&(this.response=a.response,d=a.response.headers);const t=Object.assign({},a.request);a.request.headers.authorization&&(t.headers=Object.assign({},a.request.headers,{authorization:a.request.headers.authorization.replace(/ .*$/," [REDACTED]")})),t.url=t.url.replace(/\bclient_secret=\w+/g,"client_secret=[REDACTED]").replace(/\baccess_token=\w+/g,"access_token=[REDACTED]"),this.request=t,Object.defineProperty(this,"code",{get:()=>(La(new Va("[@octokit/request-error] `error.code` is deprecated, use `error.status`.")),p)}),Object.defineProperty(this,"headers",{get:()=>(Ba(new Va("[@octokit/request-error] `error.headers` is deprecated, use `error.response.headers`.")),d||{})})}};function qa(e){const p=e.request&&e.request.log?e.request.log:console;(sp(e.body)||Array.isArray(e.body))&&(e.body=JSON.stringify(e.body));let a,d,t={};return(e.request&&e.request.fetch||Oa)(e.url,Object.assign({method:e.method,body:e.body,headers:e.headers,redirect:e.redirect},e.request)).then((async r=>{d=r.url,a=r.status;for(const e of r.headers)t[e[0]]=e[1];if("deprecation"in t){const a=t.link&&t.link.match(/<([^>]+)>; rel="deprecation"/),d=a&&a.pop();p.warn(`[@octokit/request] "${e.method} ${e.url}" is deprecated. It is scheduled to be removed on ${t.sunset}${d?`. See ${d}`:""}`)}if(204!==a&&205!==a){if("HEAD"===e.method){if(a<400)return;throw new xa(r.statusText,a,{response:{url:d,status:a,headers:t,data:void 0},request:e})}if(304===a)throw new xa("Not modified",a,{response:{url:d,status:a,headers:t,data:await Ia(r)},request:e});if(a>=400){const p=await Ia(r),s=new xa(function(e){if("string"==typeof e)return e;if("message"in e)return Array.isArray(e.errors)?`${e.message}: ${e.errors.map(JSON.stringify).join(", ")}`:e.message;return`Unknown error: ${JSON.stringify(e)}`}(p),a,{response:{url:d,status:a,headers:t,data:p},request:e});throw s}return Ia(r)}})).then((e=>({status:a,url:d,headers:t,data:e}))).catch((p=>{if(p instanceof xa)throw p;throw new xa(p.message,500,{request:e})}))}async function Ia(e){const p=e.headers.get("content-type");return/application\/json/.test(p)?e.json():!p||/^text\/|charset=utf-8$/.test(p)?e.text():function(e){return e.arrayBuffer()}(e)}const Ha=function e(p,a){const d=p.defaults(a);return Object.assign((function(p,a){const t=d.merge(p,a);if(!t.request||!t.request.hook)return qa(d.parse(t));const r=(e,p)=>qa(d.parse(d.merge(e,p)));return Object.assign(r,{endpoint:d,defaults:e.bind(null,d)}),t.request.hook(r,t)}),{endpoint:d,defaults:e.bind(null,d)})}(Ep,{headers:{"user-agent":`octokit-request.js/5.6.3 ${Me()}`}}),$a=Ca.exports((e=>console.warn(e)));class Ma extends Error{constructor(e,p,a){super(e),Error.captureStackTrace&&Error.captureStackTrace(this,this.constructor),this.name="HttpError",this.status=p,Object.defineProperty(this,"code",{get:()=>($a(new Va("[@octokit/request-error] `error.code` is deprecated, use `error.status`.")),p)}),this.headers=a.headers||{};const d=Object.assign({},a.request);a.request.headers.authorization&&(d.headers=Object.assign({},a.request.headers,{authorization:a.request.headers.authorization.replace(/ .*$/," [REDACTED]")})),d.url=d.url.replace(/\bclient_secret=\w+/g,"client_secret=[REDACTED]").replace(/\baccess_token=\w+/g,"access_token=[REDACTED]"),this.request=d}}function za(e){(sp(e.body)||Array.isArray(e.body))&&(e.body=JSON.stringify(e.body));let p,a,d={};return(e.request&&e.request.fetch||Oa)(e.url,Object.assign({method:e.method,body:e.body,headers:e.headers,redirect:e.redirect},e.request)).then((t=>{a=t.url,p=t.status;for(const e of t.headers)d[e[0]]=e[1];if(204===p||205===p)return;if("HEAD"===e.method){if(p<400)return;throw new Ma(t.statusText,p,{headers:d,request:e})}if(304===p)throw new Ma("Not modified",p,{headers:d,request:e});if(p>=400)return t.text().then((a=>{const t=new Ma(a,p,{headers:d,request:e});try{let e=JSON.parse(t.message);Object.assign(t,e);let p=e.errors;t.message=t.message+": "+p.map(JSON.stringify).join(", ")}catch(e){}throw t}));const r=t.headers.get("content-type");return/application\/json/.test(r)?t.json():!r||/^text\/|charset=utf-8$/.test(r)?t.text():function(e){return e.arrayBuffer()}(t)})).then((e=>({status:p,url:a,headers:d,data:e}))).catch((p=>{if(p instanceof Ma)throw p;throw new Ma(p.message,500,{headers:d,request:e})}))}const Wa=function e(p,a){const d=p.defaults(a);return Object.assign((function(p,a){const t=d.merge(p,a);if(!t.request||!t.request.hook)return za(d.parse(t));const r=(e,p)=>za(d.parse(d.merge(e,p)));return Object.assign(r,{endpoint:d,defaults:e.bind(null,d)}),t.request.hook(r,t)}),{endpoint:d,defaults:e.bind(null,d)})}(Ep,{headers:{"user-agent":`octokit-request.js/5.4.12 ${Me()}`}});class Ka extends Error{constructor(e,p){super(p.data.errors[0].message),Object.assign(this,p.data),Object.assign(this,{headers:p.headers}),this.name="GraphqlError",this.request=e,Error.captureStackTrace&&Error.captureStackTrace(this,this.constructor)}}const Ja=["method","baseUrl","url","headers","request","query","mediaType"],Ya=/\/api\/v3\/?$/;function Za(e,p){const a=e.defaults(p);return Object.assign(((e,p)=>function(e,p,a){if("string"==typeof p&&a&&"query"in a)return Promise.reject(new Error('[@octokit/graphql] "query" cannot be used as variable name'));const d="string"==typeof p?Object.assign({query:p},a):p,t=Object.keys(d).reduce(((e,p)=>Ja.includes(p)?(e[p]=d[p],e):(e.variables||(e.variables={}),e.variables[p]=d[p],e)),{}),r=d.baseUrl||e.endpoint.DEFAULTS.baseUrl;return Ya.test(r)&&(t.url=r.replace(Ya,"/api/graphql")),e(t).then((e=>{if(e.data.errors){const p={};for(const a of Object.keys(e.headers))p[a]=e.headers[a];throw new Ka(t,{headers:p,data:e.data})}return e.data.data}))}(a,e,p)),{defaults:Za.bind(null,a),endpoint:Wa.endpoint})}async function Qa(e){const p=3===e.split(/\./).length?"app":/^v\d+\./.test(e)?"installation":"oauth";return{type:"token",token:e,tokenType:p}}async function Xa(e,p,a,d){const t=p.endpoint.merge(a,d);return t.headers.authorization=function(e){return 3===e.split(/\./).length?`bearer ${e}`:`token ${e}`}(e),p(t)}Za(Wa,{headers:{"user-agent":`octokit-graphql.js/4.5.8 ${Me()}`},method:"POST",url:"/graphql"});const ed=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(Qa.bind(null,e),{hook:Xa.bind(null,e)})};class pd{constructor(e={}){const p=new tp,a={baseUrl:Ha.endpoint.DEFAULTS.baseUrl,headers:{},request:Object.assign({},e.request,{hook:p.bind(null,"request")}),mediaType:{previews:[],format:""}};var d;if(a.headers["user-agent"]=[e.userAgent,`octokit-core.js/3.6.0 ${Me()}`].filter(Boolean).join(" "),e.baseUrl&&(a.baseUrl=e.baseUrl),e.previews&&(a.mediaType.previews=e.previews),e.timeZone&&(a.headers["time-zone"]=e.timeZone),this.request=Ha.defaults(a),this.graphql=(d=this.request,Za(d,{method:"POST",url:"/graphql"})).defaults(a),this.log=Object.assign({debug:()=>{},info:()=>{},warn:console.warn.bind(console),error:console.error.bind(console)},e.log),this.hook=p,e.authStrategy){const{authStrategy:a,...d}=e,t=a(Object.assign({request:this.request,log:this.log,octokit:this,octokitOptions:d},e.auth));p.wrap("request",t.hook),this.auth=t}else if(e.auth){const a=ed(e.auth);p.wrap("request",a.hook),this.auth=a}else this.auth=async()=>({type:"unauthenticated"});this.constructor.plugins.forEach((p=>{Object.assign(this,p(this,e))}))}static defaults(e){return class extends(this){constructor(...p){const a=p[0]||{};super("function"!=typeof e?Object.assign({},e,a,a.userAgent&&e.userAgent?{userAgent:`${a.userAgent} ${e.userAgent}`}:null):e(a))}}}static plugin(...e){var p;const a=this.plugins;return(p=class extends(this){}).plugins=a.concat(e.filter((e=>!a.includes(e)))),p}}pd.VERSION="3.6.0",pd.plugins=[];var ad=c(Object.freeze({__proto__:null,Octokit:pd}));const dd={actions:{addCustomLabelsToSelfHostedRunnerForOrg:["POST /orgs/{org}/actions/runners/{runner_id}/labels"],addCustomLabelsToSelfHostedRunnerForRepo:["POST /repos/{owner}/{repo}/actions/runners/{runner_id}/labels"],addSelectedRepoToOrgSecret:["PUT /orgs/{org}/actions/secrets/{secret_name}/repositories/{repository_id}"],approveWorkflowRun:["POST /repos/{owner}/{repo}/actions/runs/{run_id}/approve"],cancelWorkflowRun:["POST /repos/{owner}/{repo}/actions/runs/{run_id}/cancel"],createOrUpdateEnvironmentSecret:["PUT /repositories/{repository_id}/environments/{environment_name}/secrets/{secret_name}"],createOrUpdateOrgSecret:["PUT /orgs/{org}/actions/secrets/{secret_name}"],createOrUpdateRepoSecret:["PUT /repos/{owner}/{repo}/actions/secrets/{secret_name}"],createRegistrationTokenForOrg:["POST /orgs/{org}/actions/runners/registration-token"],createRegistrationTokenForRepo:["POST /repos/{owner}/{repo}/actions/runners/registration-token"],createRemoveTokenForOrg:["POST /orgs/{org}/actions/runners/remove-token"],createRemoveTokenForRepo:["POST /repos/{owner}/{repo}/actions/runners/remove-token"],createWorkflowDispatch:["POST /repos/{owner}/{repo}/actions/workflows/{workflow_id}/dispatches"],deleteActionsCacheById:["DELETE /repos/{owner}/{repo}/actions/caches/{cache_id}"],deleteActionsCacheByKey:["DELETE /repos/{owner}/{repo}/actions/caches{?key,ref}"],deleteArtifact:["DELETE /repos/{owner}/{repo}/actions/artifacts/{artifact_id}"],deleteEnvironmentSecret:["DELETE /repositories/{repository_id}/environments/{environment_name}/secrets/{secret_name}"],deleteOrgSecret:["DELETE /orgs/{org}/actions/secrets/{secret_name}"],deleteRepoSecret:["DELETE /repos/{owner}/{repo}/actions/secrets/{secret_name}"],deleteSelfHostedRunnerFromOrg:["DELETE /orgs/{org}/actions/runners/{runner_id}"],deleteSelfHostedRunnerFromRepo:["DELETE /repos/{owner}/{repo}/actions/runners/{runner_id}"],deleteWorkflowRun:["DELETE /repos/{owner}/{repo}/actions/runs/{run_id}"],deleteWorkflowRunLogs:["DELETE /repos/{owner}/{repo}/actions/runs/{run_id}/logs"],disableSelectedRepositoryGithubActionsOrganization:["DELETE /orgs/{org}/actions/permissions/repositories/{repository_id}"],disableWorkflow:["PUT /repos/{owner}/{repo}/actions/workflows/{workflow_id}/disable"],downloadArtifact:["GET /repos/{owner}/{repo}/actions/artifacts/{artifact_id}/{archive_format}"],downloadJobLogsForWorkflowRun:["GET /repos/{owner}/{repo}/actions/jobs/{job_id}/logs"],downloadWorkflowRunAttemptLogs:["GET /repos/{owner}/{repo}/actions/runs/{run_id}/attempts/{attempt_number}/logs"],downloadWorkflowRunLogs:["GET /repos/{owner}/{repo}/actions/runs/{run_id}/logs"],enableSelectedRepositoryGithubActionsOrganization:["PUT /orgs/{org}/actions/permissions/repositories/{repository_id}"],enableWorkflow:["PUT /repos/{owner}/{repo}/actions/workflows/{workflow_id}/enable"],getActionsCacheList:["GET /repos/{owner}/{repo}/actions/caches"],getActionsCacheUsage:["GET /repos/{owner}/{repo}/actions/cache/usage"],getActionsCacheUsageByRepoForOrg:["GET /orgs/{org}/actions/cache/usage-by-repository"],getActionsCacheUsageForEnterprise:["GET /enterprises/{enterprise}/actions/cache/usage"],getActionsCacheUsageForOrg:["GET /orgs/{org}/actions/cache/usage"],getAllowedActionsOrganization:["GET /orgs/{org}/actions/permissions/selected-actions"],getAllowedActionsRepository:["GET /repos/{owner}/{repo}/actions/permissions/selected-actions"],getArtifact:["GET /repos/{owner}/{repo}/actions/artifacts/{artifact_id}"],getEnvironmentPublicKey:["GET /repositories/{repository_id}/environments/{environment_name}/secrets/public-key"],getEnvironmentSecret:["GET /repositories/{repository_id}/environments/{environment_name}/secrets/{secret_name}"],getGithubActionsDefaultWorkflowPermissionsEnterprise:["GET /enterprises/{enterprise}/actions/permissions/workflow"],getGithubActionsDefaultWorkflowPermissionsOrganization:["GET /orgs/{org}/actions/permissions/workflow"],getGithubActionsDefaultWorkflowPermissionsRepository:["GET /repos/{owner}/{repo}/actions/permissions/workflow"],getGithubActionsPermissionsOrganization:["GET /orgs/{org}/actions/permissions"],getGithubActionsPermissionsRepository:["GET /repos/{owner}/{repo}/actions/permissions"],getJobForWorkflowRun:["GET /repos/{owner}/{repo}/actions/jobs/{job_id}"],getOrgPublicKey:["GET /orgs/{org}/actions/secrets/public-key"],getOrgSecret:["GET /orgs/{org}/actions/secrets/{secret_name}"],getPendingDeploymentsForRun:["GET /repos/{owner}/{repo}/actions/runs/{run_id}/pending_deployments"],getRepoPermissions:["GET /repos/{owner}/{repo}/actions/permissions",{},{renamed:["actions","getGithubActionsPermissionsRepository"]}],getRepoPublicKey:["GET /repos/{owner}/{repo}/actions/secrets/public-key"],getRepoSecret:["GET /repos/{owner}/{repo}/actions/secrets/{secret_name}"],getReviewsForRun:["GET /repos/{owner}/{repo}/actions/runs/{run_id}/approvals"],getSelfHostedRunnerForOrg:["GET /orgs/{org}/actions/runners/{runner_id}"],getSelfHostedRunnerForRepo:["GET /repos/{owner}/{repo}/actions/runners/{runner_id}"],getWorkflow:["GET /repos/{owner}/{repo}/actions/workflows/{workflow_id}"],getWorkflowAccessToRepository:["GET /repos/{owner}/{repo}/actions/permissions/access"],getWorkflowRun:["GET /repos/{owner}/{repo}/actions/runs/{run_id}"],getWorkflowRunAttempt:["GET /repos/{owner}/{repo}/actions/runs/{run_id}/attempts/{attempt_number}"],getWorkflowRunUsage:["GET /repos/{owner}/{repo}/actions/runs/{run_id}/timing"],getWorkflowUsage:["GET /repos/{owner}/{repo}/actions/workflows/{workflow_id}/timing"],listArtifactsForRepo:["GET /repos/{owner}/{repo}/actions/artifacts"],listEnvironmentSecrets:["GET /repositories/{repository_id}/environments/{environment_name}/secrets"],listJobsForWorkflowRun:["GET /repos/{owner}/{repo}/actions/runs/{run_id}/jobs"],listJobsForWorkflowRunAttempt:["GET /repos/{owner}/{repo}/actions/runs/{run_id}/attempts/{attempt_number}/jobs"],listLabelsForSelfHostedRunnerForOrg:["GET /orgs/{org}/actions/runners/{runner_id}/labels"],listLabelsForSelfHostedRunnerForRepo:["GET /repos/{owner}/{repo}/actions/runners/{runner_id}/labels"],listOrgSecrets:["GET /orgs/{org}/actions/secrets"],listRepoSecrets:["GET /repos/{owner}/{repo}/actions/secrets"],listRepoWorkflows:["GET /repos/{owner}/{repo}/actions/workflows"],listRunnerApplicationsForOrg:["GET /orgs/{org}/actions/runners/downloads"],listRunnerApplicationsForRepo:["GET /repos/{owner}/{repo}/actions/runners/downloads"],listSelectedReposForOrgSecret:["GET /orgs/{org}/actions/secrets/{secret_name}/repositories"],listSelectedRepositoriesEnabledGithubActionsOrganization:["GET /orgs/{org}/actions/permissions/repositories"],listSelfHostedRunnersForOrg:["GET /orgs/{org}/actions/runners"],listSelfHostedRunnersForRepo:["GET /repos/{owner}/{repo}/actions/runners"],listWorkflowRunArtifacts:["GET /repos/{owner}/{repo}/actions/runs/{run_id}/artifacts"],listWorkflowRuns:["GET /repos/{owner}/{repo}/actions/workflows/{workflow_id}/runs"],listWorkflowRunsForRepo:["GET /repos/{owner}/{repo}/actions/runs"],reRunJobForWorkflowRun:["POST /repos/{owner}/{repo}/actions/jobs/{job_id}/rerun"],reRunWorkflow:["POST /repos/{owner}/{repo}/actions/runs/{run_id}/rerun"],reRunWorkflowFailedJobs:["POST /repos/{owner}/{repo}/actions/runs/{run_id}/rerun-failed-jobs"],removeAllCustomLabelsFromSelfHostedRunnerForOrg:["DELETE /orgs/{org}/actions/runners/{runner_id}/labels"],removeAllCustomLabelsFromSelfHostedRunnerForRepo:["DELETE /repos/{owner}/{repo}/actions/runners/{runner_id}/labels"],removeCustomLabelFromSelfHostedRunnerForOrg:["DELETE /orgs/{org}/actions/runners/{runner_id}/labels/{name}"],removeCustomLabelFromSelfHostedRunnerForRepo:["DELETE /repos/{owner}/{repo}/actions/runners/{runner_id}/labels/{name}"],removeSelectedRepoFromOrgSecret:["DELETE /orgs/{org}/actions/secrets/{secret_name}/repositories/{repository_id}"],reviewPendingDeploymentsForRun:["POST /repos/{owner}/{repo}/actions/runs/{run_id}/pending_deployments"],setAllowedActionsOrganization:["PUT /orgs/{org}/actions/permissions/selected-actions"],setAllowedActionsRepository:["PUT /repos/{owner}/{repo}/actions/permissions/selected-actions"],setCustomLabelsForSelfHostedRunnerForOrg:["PUT /orgs/{org}/actions/runners/{runner_id}/labels"],setCustomLabelsForSelfHostedRunnerForRepo:["PUT /repos/{owner}/{repo}/actions/runners/{runner_id}/labels"],setGithubActionsDefaultWorkflowPermissionsEnterprise:["PUT /enterprises/{enterprise}/actions/permissions/workflow"],setGithubActionsDefaultWorkflowPermissionsOrganization:["PUT /orgs/{org}/actions/permissions/workflow"],setGithubActionsDefaultWorkflowPermissionsRepository:["PUT /repos/{owner}/{repo}/actions/permissions/workflow"],setGithubActionsPermissionsOrganization:["PUT /orgs/{org}/actions/permissions"],setGithubActionsPermissionsRepository:["PUT /repos/{owner}/{repo}/actions/permissions"],setSelectedReposForOrgSecret:["PUT /orgs/{org}/actions/secrets/{secret_name}/repositories"],setSelectedRepositoriesEnabledGithubActionsOrganization:["PUT /orgs/{org}/actions/permissions/repositories"],setWorkflowAccessToRepository:["PUT /repos/{owner}/{repo}/actions/permissions/access"]},activity:{checkRepoIsStarredByAuthenticatedUser:["GET /user/starred/{owner}/{repo}"],deleteRepoSubscription:["DELETE /repos/{owner}/{repo}/subscription"],deleteThreadSubscription:["DELETE /notifications/threads/{thread_id}/subscription"],getFeeds:["GET /feeds"],getRepoSubscription:["GET /repos/{owner}/{repo}/subscription"],getThread:["GET /notifications/threads/{thread_id}"],getThreadSubscriptionForAuthenticatedUser:["GET /notifications/threads/{thread_id}/subscription"],listEventsForAuthenticatedUser:["GET /users/{username}/events"],listNotificationsForAuthenticatedUser:["GET /notifications"],listOrgEventsForAuthenticatedUser:["GET /users/{username}/events/orgs/{org}"],listPublicEvents:["GET /events"],listPublicEventsForRepoNetwork:["GET /networks/{owner}/{repo}/events"],listPublicEventsForUser:["GET /users/{username}/events/public"],listPublicOrgEvents:["GET /orgs/{org}/events"],listReceivedEventsForUser:["GET /users/{username}/received_events"],listReceivedPublicEventsForUser:["GET /users/{username}/received_events/public"],listRepoEvents:["GET /repos/{owner}/{repo}/events"],listRepoNotificationsForAuthenticatedUser:["GET /repos/{owner}/{repo}/notifications"],listReposStarredByAuthenticatedUser:["GET /user/starred"],listReposStarredByUser:["GET /users/{username}/starred"],listReposWatchedByUser:["GET /users/{username}/subscriptions"],listStargazersForRepo:["GET /repos/{owner}/{repo}/stargazers"],listWatchedReposForAuthenticatedUser:["GET /user/subscriptions"],listWatchersForRepo:["GET /repos/{owner}/{repo}/subscribers"],markNotificationsAsRead:["PUT /notifications"],markRepoNotificationsAsRead:["PUT /repos/{owner}/{repo}/notifications"],markThreadAsRead:["PATCH /notifications/threads/{thread_id}"],setRepoSubscription:["PUT /repos/{owner}/{repo}/subscription"],setThreadSubscription:["PUT /notifications/threads/{thread_id}/subscription"],starRepoForAuthenticatedUser:["PUT /user/starred/{owner}/{repo}"],unstarRepoForAuthenticatedUser:["DELETE /user/starred/{owner}/{repo}"]},apps:{addRepoToInstallation:["PUT /user/installations/{installation_id}/repositories/{repository_id}",{},{renamed:["apps","addRepoToInstallationForAuthenticatedUser"]}],addRepoToInstallationForAuthenticatedUser:["PUT /user/installations/{installation_id}/repositories/{repository_id}"],checkToken:["POST /applications/{client_id}/token"],createFromManifest:["POST /app-manifests/{code}/conversions"],createInstallationAccessToken:["POST /app/installations/{installation_id}/access_tokens"],deleteAuthorization:["DELETE /applications/{client_id}/grant"],deleteInstallation:["DELETE /app/installations/{installation_id}"],deleteToken:["DELETE /applications/{client_id}/token"],getAuthenticated:["GET /app"],getBySlug:["GET /apps/{app_slug}"],getInstallation:["GET /app/installations/{installation_id}"],getOrgInstallation:["GET /orgs/{org}/installation"],getRepoInstallation:["GET /repos/{owner}/{repo}/installation"],getSubscriptionPlanForAccount:["GET /marketplace_listing/accounts/{account_id}"],getSubscriptionPlanForAccountStubbed:["GET /marketplace_listing/stubbed/accounts/{account_id}"],getUserInstallation:["GET /users/{username}/installation"],getWebhookConfigForApp:["GET /app/hook/config"],getWebhookDelivery:["GET /app/hook/deliveries/{delivery_id}"],listAccountsForPlan:["GET /marketplace_listing/plans/{plan_id}/accounts"],listAccountsForPlanStubbed:["GET /marketplace_listing/stubbed/plans/{plan_id}/accounts"],listInstallationReposForAuthenticatedUser:["GET /user/installations/{installation_id}/repositories"],listInstallations:["GET /app/installations"],listInstallationsForAuthenticatedUser:["GET /user/installations"],listPlans:["GET /marketplace_listing/plans"],listPlansStubbed:["GET /marketplace_listing/stubbed/plans"],listReposAccessibleToInstallation:["GET /installation/repositories"],listSubscriptionsForAuthenticatedUser:["GET /user/marketplace_purchases"],listSubscriptionsForAuthenticatedUserStubbed:["GET /user/marketplace_purchases/stubbed"],listWebhookDeliveries:["GET /app/hook/deliveries"],redeliverWebhookDelivery:["POST /app/hook/deliveries/{delivery_id}/attempts"],removeRepoFromInstallation:["DELETE /user/installations/{installation_id}/repositories/{repository_id}",{},{renamed:["apps","removeRepoFromInstallationForAuthenticatedUser"]}],removeRepoFromInstallationForAuthenticatedUser:["DELETE /user/installations/{installation_id}/repositories/{repository_id}"],resetToken:["PATCH /applications/{client_id}/token"],revokeInstallationAccessToken:["DELETE /installation/token"],scopeToken:["POST /applications/{client_id}/token/scoped"],suspendInstallation:["PUT /app/installations/{installation_id}/suspended"],unsuspendInstallation:["DELETE /app/installations/{installation_id}/suspended"],updateWebhookConfigForApp:["PATCH /app/hook/config"]},billing:{getGithubActionsBillingOrg:["GET /orgs/{org}/settings/billing/actions"],getGithubActionsBillingUser:["GET /users/{username}/settings/billing/actions"],getGithubAdvancedSecurityBillingGhe:["GET /enterprises/{enterprise}/settings/billing/advanced-security"],getGithubAdvancedSecurityBillingOrg:["GET /orgs/{org}/settings/billing/advanced-security"],getGithubPackagesBillingOrg:["GET /orgs/{org}/settings/billing/packages"],getGithubPackagesBillingUser:["GET /users/{username}/settings/billing/packages"],getSharedStorageBillingOrg:["GET /orgs/{org}/settings/billing/shared-storage"],getSharedStorageBillingUser:["GET /users/{username}/settings/billing/shared-storage"]},checks:{create:["POST /repos/{owner}/{repo}/check-runs"],createSuite:["POST /repos/{owner}/{repo}/check-suites"],get:["GET /repos/{owner}/{repo}/check-runs/{check_run_id}"],getSuite:["GET /repos/{owner}/{repo}/check-suites/{check_suite_id}"],listAnnotations:["GET /repos/{owner}/{repo}/check-runs/{check_run_id}/annotations"],listForRef:["GET /repos/{owner}/{repo}/commits/{ref}/check-runs"],listForSuite:["GET /repos/{owner}/{repo}/check-suites/{check_suite_id}/check-runs"],listSuitesForRef:["GET /repos/{owner}/{repo}/commits/{ref}/check-suites"],rerequestRun:["POST /repos/{owner}/{repo}/check-runs/{check_run_id}/rerequest"],rerequestSuite:["POST /repos/{owner}/{repo}/check-suites/{check_suite_id}/rerequest"],setSuitesPreferences:["PATCH /repos/{owner}/{repo}/check-suites/preferences"],update:["PATCH /repos/{owner}/{repo}/check-runs/{check_run_id}"]},codeScanning:{deleteAnalysis:["DELETE /repos/{owner}/{repo}/code-scanning/analyses/{analysis_id}{?confirm_delete}"],getAlert:["GET /repos/{owner}/{repo}/code-scanning/alerts/{alert_number}",{},{renamedParameters:{alert_id:"alert_number"}}],getAnalysis:["GET /repos/{owner}/{repo}/code-scanning/analyses/{analysis_id}"],getSarif:["GET /repos/{owner}/{repo}/code-scanning/sarifs/{sarif_id}"],listAlertInstances:["GET /repos/{owner}/{repo}/code-scanning/alerts/{alert_number}/instances"],listAlertsForOrg:["GET /orgs/{org}/code-scanning/alerts"],listAlertsForRepo:["GET /repos/{owner}/{repo}/code-scanning/alerts"],listAlertsInstances:["GET /repos/{owner}/{repo}/code-scanning/alerts/{alert_number}/instances",{},{renamed:["codeScanning","listAlertInstances"]}],listRecentAnalyses:["GET /repos/{owner}/{repo}/code-scanning/analyses"],updateAlert:["PATCH /repos/{owner}/{repo}/code-scanning/alerts/{alert_number}"],uploadSarif:["POST /repos/{owner}/{repo}/code-scanning/sarifs"]},codesOfConduct:{getAllCodesOfConduct:["GET /codes_of_conduct"],getConductCode:["GET /codes_of_conduct/{key}"]},codespaces:{addRepositoryForSecretForAuthenticatedUser:["PUT /user/codespaces/secrets/{secret_name}/repositories/{repository_id}"],codespaceMachinesForAuthenticatedUser:["GET /user/codespaces/{codespace_name}/machines"],createForAuthenticatedUser:["POST /user/codespaces"],createOrUpdateRepoSecret:["PUT /repos/{owner}/{repo}/codespaces/secrets/{secret_name}"],createOrUpdateSecretForAuthenticatedUser:["PUT /user/codespaces/secrets/{secret_name}"],createWithPrForAuthenticatedUser:["POST /repos/{owner}/{repo}/pulls/{pull_number}/codespaces"],createWithRepoForAuthenticatedUser:["POST /repos/{owner}/{repo}/codespaces"],deleteForAuthenticatedUser:["DELETE /user/codespaces/{codespace_name}"],deleteFromOrganization:["DELETE /orgs/{org}/members/{username}/codespaces/{codespace_name}"],deleteRepoSecret:["DELETE /repos/{owner}/{repo}/codespaces/secrets/{secret_name}"],deleteSecretForAuthenticatedUser:["DELETE /user/codespaces/secrets/{secret_name}"],exportForAuthenticatedUser:["POST /user/codespaces/{codespace_name}/exports"],getExportDetailsForAuthenticatedUser:["GET /user/codespaces/{codespace_name}/exports/{export_id}"],getForAuthenticatedUser:["GET /user/codespaces/{codespace_name}"],getPublicKeyForAuthenticatedUser:["GET /user/codespaces/secrets/public-key"],getRepoPublicKey:["GET /repos/{owner}/{repo}/codespaces/secrets/public-key"],getRepoSecret:["GET /repos/{owner}/{repo}/codespaces/secrets/{secret_name}"],getSecretForAuthenticatedUser:["GET /user/codespaces/secrets/{secret_name}"],listDevcontainersInRepositoryForAuthenticatedUser:["GET /repos/{owner}/{repo}/codespaces/devcontainers"],listForAuthenticatedUser:["GET /user/codespaces"],listInOrganization:["GET /orgs/{org}/codespaces",{},{renamedParameters:{org_id:"org"}}],listInRepositoryForAuthenticatedUser:["GET /repos/{owner}/{repo}/codespaces"],listRepoSecrets:["GET /repos/{owner}/{repo}/codespaces/secrets"],listRepositoriesForSecretForAuthenticatedUser:["GET /user/codespaces/secrets/{secret_name}/repositories"],listSecretsForAuthenticatedUser:["GET /user/codespaces/secrets"],removeRepositoryForSecretForAuthenticatedUser:["DELETE /user/codespaces/secrets/{secret_name}/repositories/{repository_id}"],repoMachinesForAuthenticatedUser:["GET /repos/{owner}/{repo}/codespaces/machines"],setRepositoriesForSecretForAuthenticatedUser:["PUT /user/codespaces/secrets/{secret_name}/repositories"],startForAuthenticatedUser:["POST /user/codespaces/{codespace_name}/start"],stopForAuthenticatedUser:["POST /user/codespaces/{codespace_name}/stop"],stopInOrganization:["POST /orgs/{org}/members/{username}/codespaces/{codespace_name}/stop"],updateForAuthenticatedUser:["PATCH /user/codespaces/{codespace_name}"]},dependabot:{addSelectedRepoToOrgSecret:["PUT /orgs/{org}/dependabot/secrets/{secret_name}/repositories/{repository_id}"],createOrUpdateOrgSecret:["PUT /orgs/{org}/dependabot/secrets/{secret_name}"],createOrUpdateRepoSecret:["PUT /repos/{owner}/{repo}/dependabot/secrets/{secret_name}"],deleteOrgSecret:["DELETE /orgs/{org}/dependabot/secrets/{secret_name}"],deleteRepoSecret:["DELETE /repos/{owner}/{repo}/dependabot/secrets/{secret_name}"],getOrgPublicKey:["GET /orgs/{org}/dependabot/secrets/public-key"],getOrgSecret:["GET /orgs/{org}/dependabot/secrets/{secret_name}"],getRepoPublicKey:["GET /repos/{owner}/{repo}/dependabot/secrets/public-key"],getRepoSecret:["GET /repos/{owner}/{repo}/dependabot/secrets/{secret_name}"],listOrgSecrets:["GET /orgs/{org}/dependabot/secrets"],listRepoSecrets:["GET /repos/{owner}/{repo}/dependabot/secrets"],listSelectedReposForOrgSecret:["GET /orgs/{org}/dependabot/secrets/{secret_name}/repositories"],removeSelectedRepoFromOrgSecret:["DELETE /orgs/{org}/dependabot/secrets/{secret_name}/repositories/{repository_id}"],setSelectedReposForOrgSecret:["PUT /orgs/{org}/dependabot/secrets/{secret_name}/repositories"]},dependencyGraph:{createRepositorySnapshot:["POST /repos/{owner}/{repo}/dependency-graph/snapshots"],diffRange:["GET /repos/{owner}/{repo}/dependency-graph/compare/{basehead}"]},emojis:{get:["GET /emojis"]},enterpriseAdmin:{addCustomLabelsToSelfHostedRunnerForEnterprise:["POST /enterprises/{enterprise}/actions/runners/{runner_id}/labels"],disableSelectedOrganizationGithubActionsEnterprise:["DELETE /enterprises/{enterprise}/actions/permissions/organizations/{org_id}"],enableSelectedOrganizationGithubActionsEnterprise:["PUT /enterprises/{enterprise}/actions/permissions/organizations/{org_id}"],getAllowedActionsEnterprise:["GET /enterprises/{enterprise}/actions/permissions/selected-actions"],getGithubActionsPermissionsEnterprise:["GET /enterprises/{enterprise}/actions/permissions"],getServerStatistics:["GET /enterprise-installation/{enterprise_or_org}/server-statistics"],listLabelsForSelfHostedRunnerForEnterprise:["GET /enterprises/{enterprise}/actions/runners/{runner_id}/labels"],listSelectedOrganizationsEnabledGithubActionsEnterprise:["GET /enterprises/{enterprise}/actions/permissions/organizations"],removeAllCustomLabelsFromSelfHostedRunnerForEnterprise:["DELETE /enterprises/{enterprise}/actions/runners/{runner_id}/labels"],removeCustomLabelFromSelfHostedRunnerForEnterprise:["DELETE /enterprises/{enterprise}/actions/runners/{runner_id}/labels/{name}"],setAllowedActionsEnterprise:["PUT /enterprises/{enterprise}/actions/permissions/selected-actions"],setCustomLabelsForSelfHostedRunnerForEnterprise:["PUT /enterprises/{enterprise}/actions/runners/{runner_id}/labels"],setGithubActionsPermissionsEnterprise:["PUT /enterprises/{enterprise}/actions/permissions"],setSelectedOrganizationsEnabledGithubActionsEnterprise:["PUT /enterprises/{enterprise}/actions/permissions/organizations"]},gists:{checkIsStarred:["GET /gists/{gist_id}/star"],create:["POST /gists"],createComment:["POST /gists/{gist_id}/comments"],delete:["DELETE /gists/{gist_id}"],deleteComment:["DELETE /gists/{gist_id}/comments/{comment_id}"],fork:["POST /gists/{gist_id}/forks"],get:["GET /gists/{gist_id}"],getComment:["GET /gists/{gist_id}/comments/{comment_id}"],getRevision:["GET /gists/{gist_id}/{sha}"],list:["GET /gists"],listComments:["GET /gists/{gist_id}/comments"],listCommits:["GET /gists/{gist_id}/commits"],listForUser:["GET /users/{username}/gists"],listForks:["GET /gists/{gist_id}/forks"],listPublic:["GET /gists/public"],listStarred:["GET /gists/starred"],star:["PUT /gists/{gist_id}/star"],unstar:["DELETE /gists/{gist_id}/star"],update:["PATCH /gists/{gist_id}"],updateComment:["PATCH /gists/{gist_id}/comments/{comment_id}"]},git:{createBlob:["POST /repos/{owner}/{repo}/git/blobs"],createCommit:["POST /repos/{owner}/{repo}/git/commits"],createRef:["POST /repos/{owner}/{repo}/git/refs"],createTag:["POST /repos/{owner}/{repo}/git/tags"],createTree:["POST /repos/{owner}/{repo}/git/trees"],deleteRef:["DELETE /repos/{owner}/{repo}/git/refs/{ref}"],getBlob:["GET /repos/{owner}/{repo}/git/blobs/{file_sha}"],getCommit:["GET /repos/{owner}/{repo}/git/commits/{commit_sha}"],getRef:["GET /repos/{owner}/{repo}/git/ref/{ref}"],getTag:["GET /repos/{owner}/{repo}/git/tags/{tag_sha}"],getTree:["GET /repos/{owner}/{repo}/git/trees/{tree_sha}"],listMatchingRefs:["GET /repos/{owner}/{repo}/git/matching-refs/{ref}"],updateRef:["PATCH /repos/{owner}/{repo}/git/refs/{ref}"]},gitignore:{getAllTemplates:["GET /gitignore/templates"],getTemplate:["GET /gitignore/templates/{name}"]},interactions:{getRestrictionsForAuthenticatedUser:["GET /user/interaction-limits"],getRestrictionsForOrg:["GET /orgs/{org}/interaction-limits"],getRestrictionsForRepo:["GET /repos/{owner}/{repo}/interaction-limits"],getRestrictionsForYourPublicRepos:["GET /user/interaction-limits",{},{renamed:["interactions","getRestrictionsForAuthenticatedUser"]}],removeRestrictionsForAuthenticatedUser:["DELETE /user/interaction-limits"],removeRestrictionsForOrg:["DELETE /orgs/{org}/interaction-limits"],removeRestrictionsForRepo:["DELETE /repos/{owner}/{repo}/interaction-limits"],removeRestrictionsForYourPublicRepos:["DELETE /user/interaction-limits",{},{renamed:["interactions","removeRestrictionsForAuthenticatedUser"]}],setRestrictionsForAuthenticatedUser:["PUT /user/interaction-limits"],setRestrictionsForOrg:["PUT /orgs/{org}/interaction-limits"],setRestrictionsForRepo:["PUT /repos/{owner}/{repo}/interaction-limits"],setRestrictionsForYourPublicRepos:["PUT /user/interaction-limits",{},{renamed:["interactions","setRestrictionsForAuthenticatedUser"]}]},issues:{addAssignees:["POST /repos/{owner}/{repo}/issues/{issue_number}/assignees"],addLabels:["POST /repos/{owner}/{repo}/issues/{issue_number}/labels"],checkUserCanBeAssigned:["GET /repos/{owner}/{repo}/assignees/{assignee}"],create:["POST /repos/{owner}/{repo}/issues"],createComment:["POST /repos/{owner}/{repo}/issues/{issue_number}/comments"],createLabel:["POST /repos/{owner}/{repo}/labels"],createMilestone:["POST /repos/{owner}/{repo}/milestones"],deleteComment:["DELETE /repos/{owner}/{repo}/issues/comments/{comment_id}"],deleteLabel:["DELETE /repos/{owner}/{repo}/labels/{name}"],deleteMilestone:["DELETE /repos/{owner}/{repo}/milestones/{milestone_number}"],get:["GET /repos/{owner}/{repo}/issues/{issue_number}"],getComment:["GET /repos/{owner}/{repo}/issues/comments/{comment_id}"],getEvent:["GET /repos/{owner}/{repo}/issues/events/{event_id}"],getLabel:["GET /repos/{owner}/{repo}/labels/{name}"],getMilestone:["GET /repos/{owner}/{repo}/milestones/{milestone_number}"],list:["GET /issues"],listAssignees:["GET /repos/{owner}/{repo}/assignees"],listComments:["GET /repos/{owner}/{repo}/issues/{issue_number}/comments"],listCommentsForRepo:["GET /repos/{owner}/{repo}/issues/comments"],listEvents:["GET /repos/{owner}/{repo}/issues/{issue_number}/events"],listEventsForRepo:["GET /repos/{owner}/{repo}/issues/events"],listEventsForTimeline:["GET /repos/{owner}/{repo}/issues/{issue_number}/timeline"],listForAuthenticatedUser:["GET /user/issues"],listForOrg:["GET /orgs/{org}/issues"],listForRepo:["GET /repos/{owner}/{repo}/issues"],listLabelsForMilestone:["GET /repos/{owner}/{repo}/milestones/{milestone_number}/labels"],listLabelsForRepo:["GET /repos/{owner}/{repo}/labels"],listLabelsOnIssue:["GET /repos/{owner}/{repo}/issues/{issue_number}/labels"],listMilestones:["GET /repos/{owner}/{repo}/milestones"],lock:["PUT /repos/{owner}/{repo}/issues/{issue_number}/lock"],removeAllLabels:["DELETE /repos/{owner}/{repo}/issues/{issue_number}/labels"],removeAssignees:["DELETE /repos/{owner}/{repo}/issues/{issue_number}/assignees"],removeLabel:["DELETE /repos/{owner}/{repo}/issues/{issue_number}/labels/{name}"],setLabels:["PUT /repos/{owner}/{repo}/issues/{issue_number}/labels"],unlock:["DELETE /repos/{owner}/{repo}/issues/{issue_number}/lock"],update:["PATCH /repos/{owner}/{repo}/issues/{issue_number}"],updateComment:["PATCH /repos/{owner}/{repo}/issues/comments/{comment_id}"],updateLabel:["PATCH /repos/{owner}/{repo}/labels/{name}"],updateMilestone:["PATCH /repos/{owner}/{repo}/milestones/{milestone_number}"]},licenses:{get:["GET /licenses/{license}"],getAllCommonlyUsed:["GET /licenses"],getForRepo:["GET /repos/{owner}/{repo}/license"]},markdown:{render:["POST /markdown"],renderRaw:["POST /markdown/raw",{headers:{"content-type":"text/plain; charset=utf-8"}}]},meta:{get:["GET /meta"],getOctocat:["GET /octocat"],getZen:["GET /zen"],root:["GET /"]},migrations:{cancelImport:["DELETE /repos/{owner}/{repo}/import"],deleteArchiveForAuthenticatedUser:["DELETE /user/migrations/{migration_id}/archive"],deleteArchiveForOrg:["DELETE /orgs/{org}/migrations/{migration_id}/archive"],downloadArchiveForOrg:["GET /orgs/{org}/migrations/{migration_id}/archive"],getArchiveForAuthenticatedUser:["GET /user/migrations/{migration_id}/archive"],getCommitAuthors:["GET /repos/{owner}/{repo}/import/authors"],getImportStatus:["GET /repos/{owner}/{repo}/import"],getLargeFiles:["GET /repos/{owner}/{repo}/import/large_files"],getStatusForAuthenticatedUser:["GET /user/migrations/{migration_id}"],getStatusForOrg:["GET /orgs/{org}/migrations/{migration_id}"],listForAuthenticatedUser:["GET /user/migrations"],listForOrg:["GET /orgs/{org}/migrations"],listReposForAuthenticatedUser:["GET /user/migrations/{migration_id}/repositories"],listReposForOrg:["GET /orgs/{org}/migrations/{migration_id}/repositories"],listReposForUser:["GET /user/migrations/{migration_id}/repositories",{},{renamed:["migrations","listReposForAuthenticatedUser"]}],mapCommitAuthor:["PATCH /repos/{owner}/{repo}/import/authors/{author_id}"],setLfsPreference:["PATCH /repos/{owner}/{repo}/import/lfs"],startForAuthenticatedUser:["POST /user/migrations"],startForOrg:["POST /orgs/{org}/migrations"],startImport:["PUT /repos/{owner}/{repo}/import"],unlockRepoForAuthenticatedUser:["DELETE /user/migrations/{migration_id}/repos/{repo_name}/lock"],unlockRepoForOrg:["DELETE /orgs/{org}/migrations/{migration_id}/repos/{repo_name}/lock"],updateImport:["PATCH /repos/{owner}/{repo}/import"]},orgs:{blockUser:["PUT /orgs/{org}/blocks/{username}"],cancelInvitation:["DELETE /orgs/{org}/invitations/{invitation_id}"],checkBlockedUser:["GET /orgs/{org}/blocks/{username}"],checkMembershipForUser:["GET /orgs/{org}/members/{username}"],checkPublicMembershipForUser:["GET /orgs/{org}/public_members/{username}"],convertMemberToOutsideCollaborator:["PUT /orgs/{org}/outside_collaborators/{username}"],createInvitation:["POST /orgs/{org}/invitations"],createWebhook:["POST /orgs/{org}/hooks"],deleteWebhook:["DELETE /orgs/{org}/hooks/{hook_id}"],get:["GET /orgs/{org}"],getMembershipForAuthenticatedUser:["GET /user/memberships/orgs/{org}"],getMembershipForUser:["GET /orgs/{org}/memberships/{username}"],getWebhook:["GET /orgs/{org}/hooks/{hook_id}"],getWebhookConfigForOrg:["GET /orgs/{org}/hooks/{hook_id}/config"],getWebhookDelivery:["GET /orgs/{org}/hooks/{hook_id}/deliveries/{delivery_id}"],list:["GET /organizations"],listAppInstallations:["GET /orgs/{org}/installations"],listBlockedUsers:["GET /orgs/{org}/blocks"],listCustomRoles:["GET /organizations/{organization_id}/custom_roles"],listFailedInvitations:["GET /orgs/{org}/failed_invitations"],listForAuthenticatedUser:["GET /user/orgs"],listForUser:["GET /users/{username}/orgs"],listInvitationTeams:["GET /orgs/{org}/invitations/{invitation_id}/teams"],listMembers:["GET /orgs/{org}/members"],listMembershipsForAuthenticatedUser:["GET /user/memberships/orgs"],listOutsideCollaborators:["GET /orgs/{org}/outside_collaborators"],listPendingInvitations:["GET /orgs/{org}/invitations"],listPublicMembers:["GET /orgs/{org}/public_members"],listWebhookDeliveries:["GET /orgs/{org}/hooks/{hook_id}/deliveries"],listWebhooks:["GET /orgs/{org}/hooks"],pingWebhook:["POST /orgs/{org}/hooks/{hook_id}/pings"],redeliverWebhookDelivery:["POST /orgs/{org}/hooks/{hook_id}/deliveries/{delivery_id}/attempts"],removeMember:["DELETE /orgs/{org}/members/{username}"],removeMembershipForUser:["DELETE /orgs/{org}/memberships/{username}"],removeOutsideCollaborator:["DELETE /orgs/{org}/outside_collaborators/{username}"],removePublicMembershipForAuthenticatedUser:["DELETE /orgs/{org}/public_members/{username}"],setMembershipForUser:["PUT /orgs/{org}/memberships/{username}"],setPublicMembershipForAuthenticatedUser:["PUT /orgs/{org}/public_members/{username}"],unblockUser:["DELETE /orgs/{org}/blocks/{username}"],update:["PATCH /orgs/{org}"],updateMembershipForAuthenticatedUser:["PATCH /user/memberships/orgs/{org}"],updateWebhook:["PATCH /orgs/{org}/hooks/{hook_id}"],updateWebhookConfigForOrg:["PATCH /orgs/{org}/hooks/{hook_id}/config"]},packages:{deletePackageForAuthenticatedUser:["DELETE /user/packages/{package_type}/{package_name}"],deletePackageForOrg:["DELETE /orgs/{org}/packages/{package_type}/{package_name}"],deletePackageForUser:["DELETE /users/{username}/packages/{package_type}/{package_name}"],deletePackageVersionForAuthenticatedUser:["DELETE /user/packages/{package_type}/{package_name}/versions/{package_version_id}"],deletePackageVersionForOrg:["DELETE /orgs/{org}/packages/{package_type}/{package_name}/versions/{package_version_id}"],deletePackageVersionForUser:["DELETE /users/{username}/packages/{package_type}/{package_name}/versions/{package_version_id}"],getAllPackageVersionsForAPackageOwnedByAnOrg:["GET /orgs/{org}/packages/{package_type}/{package_name}/versions",{},{renamed:["packages","getAllPackageVersionsForPackageOwnedByOrg"]}],getAllPackageVersionsForAPackageOwnedByTheAuthenticatedUser:["GET /user/packages/{package_type}/{package_name}/versions",{},{renamed:["packages","getAllPackageVersionsForPackageOwnedByAuthenticatedUser"]}],getAllPackageVersionsForPackageOwnedByAuthenticatedUser:["GET /user/packages/{package_type}/{package_name}/versions"],getAllPackageVersionsForPackageOwnedByOrg:["GET /orgs/{org}/packages/{package_type}/{package_name}/versions"],getAllPackageVersionsForPackageOwnedByUser:["GET /users/{username}/packages/{package_type}/{package_name}/versions"],getPackageForAuthenticatedUser:["GET /user/packages/{package_type}/{package_name}"],getPackageForOrganization:["GET /orgs/{org}/packages/{package_type}/{package_name}"],getPackageForUser:["GET /users/{username}/packages/{package_type}/{package_name}"],getPackageVersionForAuthenticatedUser:["GET /user/packages/{package_type}/{package_name}/versions/{package_version_id}"],getPackageVersionForOrganization:["GET /orgs/{org}/packages/{package_type}/{package_name}/versions/{package_version_id}"],getPackageVersionForUser:["GET /users/{username}/packages/{package_type}/{package_name}/versions/{package_version_id}"],listPackagesForAuthenticatedUser:["GET /user/packages"],listPackagesForOrganization:["GET /orgs/{org}/packages"],listPackagesForUser:["GET /users/{username}/packages"],restorePackageForAuthenticatedUser:["POST /user/packages/{package_type}/{package_name}/restore{?token}"],restorePackageForOrg:["POST /orgs/{org}/packages/{package_type}/{package_name}/restore{?token}"],restorePackageForUser:["POST /users/{username}/packages/{package_type}/{package_name}/restore{?token}"],restorePackageVersionForAuthenticatedUser:["POST /user/packages/{package_type}/{package_name}/versions/{package_version_id}/restore"],restorePackageVersionForOrg:["POST /orgs/{org}/packages/{package_type}/{package_name}/versions/{package_version_id}/restore"],restorePackageVersionForUser:["POST /users/{username}/packages/{package_type}/{package_name}/versions/{package_version_id}/restore"]},projects:{addCollaborator:["PUT /projects/{project_id}/collaborators/{username}"],createCard:["POST /projects/columns/{column_id}/cards"],createColumn:["POST /projects/{project_id}/columns"],createForAuthenticatedUser:["POST /user/projects"],createForOrg:["POST /orgs/{org}/projects"],createForRepo:["POST /repos/{owner}/{repo}/projects"],delete:["DELETE /projects/{project_id}"],deleteCard:["DELETE /projects/columns/cards/{card_id}"],deleteColumn:["DELETE /projects/columns/{column_id}"],get:["GET /projects/{project_id}"],getCard:["GET /projects/columns/cards/{card_id}"],getColumn:["GET /projects/columns/{column_id}"],getPermissionForUser:["GET /projects/{project_id}/collaborators/{username}/permission"],listCards:["GET /projects/columns/{column_id}/cards"],listCollaborators:["GET /projects/{project_id}/collaborators"],listColumns:["GET /projects/{project_id}/columns"],listForOrg:["GET /orgs/{org}/projects"],listForRepo:["GET /repos/{owner}/{repo}/projects"],listForUser:["GET /users/{username}/projects"],moveCard:["POST /projects/columns/cards/{card_id}/moves"],moveColumn:["POST /projects/columns/{column_id}/moves"],removeCollaborator:["DELETE /projects/{project_id}/collaborators/{username}"],update:["PATCH /projects/{project_id}"],updateCard:["PATCH /projects/columns/cards/{card_id}"],updateColumn:["PATCH /projects/columns/{column_id}"]},pulls:{checkIfMerged:["GET /repos/{owner}/{repo}/pulls/{pull_number}/merge"],create:["POST /repos/{owner}/{repo}/pulls"],createReplyForReviewComment:["POST /repos/{owner}/{repo}/pulls/{pull_number}/comments/{comment_id}/replies"],createReview:["POST /repos/{owner}/{repo}/pulls/{pull_number}/reviews"],createReviewComment:["POST /repos/{owner}/{repo}/pulls/{pull_number}/comments"],deletePendingReview:["DELETE /repos/{owner}/{repo}/pulls/{pull_number}/reviews/{review_id}"],deleteReviewComment:["DELETE /repos/{owner}/{repo}/pulls/comments/{comment_id}"],dismissReview:["PUT /repos/{owner}/{repo}/pulls/{pull_number}/reviews/{review_id}/dismissals"],get:["GET /repos/{owner}/{repo}/pulls/{pull_number}"],getReview:["GET /repos/{owner}/{repo}/pulls/{pull_number}/reviews/{review_id}"],getReviewComment:["GET /repos/{owner}/{repo}/pulls/comments/{comment_id}"],list:["GET /repos/{owner}/{repo}/pulls"],listCommentsForReview:["GET /repos/{owner}/{repo}/pulls/{pull_number}/reviews/{review_id}/comments"],listCommits:["GET /repos/{owner}/{repo}/pulls/{pull_number}/commits"],listFiles:["GET /repos/{owner}/{repo}/pulls/{pull_number}/files"],listRequestedReviewers:["GET /repos/{owner}/{repo}/pulls/{pull_number}/requested_reviewers"],listReviewComments:["GET /repos/{owner}/{repo}/pulls/{pull_number}/comments"],listReviewCommentsForRepo:["GET /repos/{owner}/{repo}/pulls/comments"],listReviews:["GET /repos/{owner}/{repo}/pulls/{pull_number}/reviews"],merge:["PUT /repos/{owner}/{repo}/pulls/{pull_number}/merge"],removeRequestedReviewers:["DELETE /repos/{owner}/{repo}/pulls/{pull_number}/requested_reviewers"],requestReviewers:["POST /repos/{owner}/{repo}/pulls/{pull_number}/requested_reviewers"],submitReview:["POST /repos/{owner}/{repo}/pulls/{pull_number}/reviews/{review_id}/events"],update:["PATCH /repos/{owner}/{repo}/pulls/{pull_number}"],updateBranch:["PUT /repos/{owner}/{repo}/pulls/{pull_number}/update-branch"],updateReview:["PUT /repos/{owner}/{repo}/pulls/{pull_number}/reviews/{review_id}"],updateReviewComment:["PATCH /repos/{owner}/{repo}/pulls/comments/{comment_id}"]},rateLimit:{get:["GET /rate_limit"]},reactions:{createForCommitComment:["POST /repos/{owner}/{repo}/comments/{comment_id}/reactions"],createForIssue:["POST /repos/{owner}/{repo}/issues/{issue_number}/reactions"],createForIssueComment:["POST /repos/{owner}/{repo}/issues/comments/{comment_id}/reactions"],createForPullRequestReviewComment:["POST /repos/{owner}/{repo}/pulls/comments/{comment_id}/reactions"],createForRelease:["POST /repos/{owner}/{repo}/releases/{release_id}/reactions"],createForTeamDiscussionCommentInOrg:["POST /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments/{comment_number}/reactions"],createForTeamDiscussionInOrg:["POST /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/reactions"],deleteForCommitComment:["DELETE /repos/{owner}/{repo}/comments/{comment_id}/reactions/{reaction_id}"],deleteForIssue:["DELETE /repos/{owner}/{repo}/issues/{issue_number}/reactions/{reaction_id}"],deleteForIssueComment:["DELETE /repos/{owner}/{repo}/issues/comments/{comment_id}/reactions/{reaction_id}"],deleteForPullRequestComment:["DELETE /repos/{owner}/{repo}/pulls/comments/{comment_id}/reactions/{reaction_id}"],deleteForRelease:["DELETE /repos/{owner}/{repo}/releases/{release_id}/reactions/{reaction_id}"],deleteForTeamDiscussion:["DELETE /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/reactions/{reaction_id}"],deleteForTeamDiscussionComment:["DELETE /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments/{comment_number}/reactions/{reaction_id}"],listForCommitComment:["GET /repos/{owner}/{repo}/comments/{comment_id}/reactions"],listForIssue:["GET /repos/{owner}/{repo}/issues/{issue_number}/reactions"],listForIssueComment:["GET /repos/{owner}/{repo}/issues/comments/{comment_id}/reactions"],listForPullRequestReviewComment:["GET /repos/{owner}/{repo}/pulls/comments/{comment_id}/reactions"],listForRelease:["GET /repos/{owner}/{repo}/releases/{release_id}/reactions"],listForTeamDiscussionCommentInOrg:["GET /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments/{comment_number}/reactions"],listForTeamDiscussionInOrg:["GET /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/reactions"]},repos:{acceptInvitation:["PATCH /user/repository_invitations/{invitation_id}",{},{renamed:["repos","acceptInvitationForAuthenticatedUser"]}],acceptInvitationForAuthenticatedUser:["PATCH /user/repository_invitations/{invitation_id}"],addAppAccessRestrictions:["POST /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/apps",{},{mapToData:"apps"}],addCollaborator:["PUT /repos/{owner}/{repo}/collaborators/{username}"],addStatusCheckContexts:["POST /repos/{owner}/{repo}/branches/{branch}/protection/required_status_checks/contexts",{},{mapToData:"contexts"}],addTeamAccessRestrictions:["POST /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/teams",{},{mapToData:"teams"}],addUserAccessRestrictions:["POST /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/users",{},{mapToData:"users"}],checkCollaborator:["GET /repos/{owner}/{repo}/collaborators/{username}"],checkVulnerabilityAlerts:["GET /repos/{owner}/{repo}/vulnerability-alerts"],codeownersErrors:["GET /repos/{owner}/{repo}/codeowners/errors"],compareCommits:["GET /repos/{owner}/{repo}/compare/{base}...{head}"],compareCommitsWithBasehead:["GET /repos/{owner}/{repo}/compare/{basehead}"],createAutolink:["POST /repos/{owner}/{repo}/autolinks"],createCommitComment:["POST /repos/{owner}/{repo}/commits/{commit_sha}/comments"],createCommitSignatureProtection:["POST /repos/{owner}/{repo}/branches/{branch}/protection/required_signatures"],createCommitStatus:["POST /repos/{owner}/{repo}/statuses/{sha}"],createDeployKey:["POST /repos/{owner}/{repo}/keys"],createDeployment:["POST /repos/{owner}/{repo}/deployments"],createDeploymentStatus:["POST /repos/{owner}/{repo}/deployments/{deployment_id}/statuses"],createDispatchEvent:["POST /repos/{owner}/{repo}/dispatches"],createForAuthenticatedUser:["POST /user/repos"],createFork:["POST /repos/{owner}/{repo}/forks"],createInOrg:["POST /orgs/{org}/repos"],createOrUpdateEnvironment:["PUT /repos/{owner}/{repo}/environments/{environment_name}"],createOrUpdateFileContents:["PUT /repos/{owner}/{repo}/contents/{path}"],createPagesSite:["POST /repos/{owner}/{repo}/pages"],createRelease:["POST /repos/{owner}/{repo}/releases"],createTagProtection:["POST /repos/{owner}/{repo}/tags/protection"],createUsingTemplate:["POST /repos/{template_owner}/{template_repo}/generate"],createWebhook:["POST /repos/{owner}/{repo}/hooks"],declineInvitation:["DELETE /user/repository_invitations/{invitation_id}",{},{renamed:["repos","declineInvitationForAuthenticatedUser"]}],declineInvitationForAuthenticatedUser:["DELETE /user/repository_invitations/{invitation_id}"],delete:["DELETE /repos/{owner}/{repo}"],deleteAccessRestrictions:["DELETE /repos/{owner}/{repo}/branches/{branch}/protection/restrictions"],deleteAdminBranchProtection:["DELETE /repos/{owner}/{repo}/branches/{branch}/protection/enforce_admins"],deleteAnEnvironment:["DELETE /repos/{owner}/{repo}/environments/{environment_name}"],deleteAutolink:["DELETE /repos/{owner}/{repo}/autolinks/{autolink_id}"],deleteBranchProtection:["DELETE /repos/{owner}/{repo}/branches/{branch}/protection"],deleteCommitComment:["DELETE /repos/{owner}/{repo}/comments/{comment_id}"],deleteCommitSignatureProtection:["DELETE /repos/{owner}/{repo}/branches/{branch}/protection/required_signatures"],deleteDeployKey:["DELETE /repos/{owner}/{repo}/keys/{key_id}"],deleteDeployment:["DELETE /repos/{owner}/{repo}/deployments/{deployment_id}"],deleteFile:["DELETE /repos/{owner}/{repo}/contents/{path}"],deleteInvitation:["DELETE /repos/{owner}/{repo}/invitations/{invitation_id}"],deletePagesSite:["DELETE /repos/{owner}/{repo}/pages"],deletePullRequestReviewProtection:["DELETE /repos/{owner}/{repo}/branches/{branch}/protection/required_pull_request_reviews"],deleteRelease:["DELETE /repos/{owner}/{repo}/releases/{release_id}"],deleteReleaseAsset:["DELETE /repos/{owner}/{repo}/releases/assets/{asset_id}"],deleteTagProtection:["DELETE /repos/{owner}/{repo}/tags/protection/{tag_protection_id}"],deleteWebhook:["DELETE /repos/{owner}/{repo}/hooks/{hook_id}"],disableAutomatedSecurityFixes:["DELETE /repos/{owner}/{repo}/automated-security-fixes"],disableLfsForRepo:["DELETE /repos/{owner}/{repo}/lfs"],disableVulnerabilityAlerts:["DELETE /repos/{owner}/{repo}/vulnerability-alerts"],downloadArchive:["GET /repos/{owner}/{repo}/zipball/{ref}",{},{renamed:["repos","downloadZipballArchive"]}],downloadTarballArchive:["GET /repos/{owner}/{repo}/tarball/{ref}"],downloadZipballArchive:["GET /repos/{owner}/{repo}/zipball/{ref}"],enableAutomatedSecurityFixes:["PUT /repos/{owner}/{repo}/automated-security-fixes"],enableLfsForRepo:["PUT /repos/{owner}/{repo}/lfs"],enableVulnerabilityAlerts:["PUT /repos/{owner}/{repo}/vulnerability-alerts"],generateReleaseNotes:["POST /repos/{owner}/{repo}/releases/generate-notes"],get:["GET /repos/{owner}/{repo}"],getAccessRestrictions:["GET /repos/{owner}/{repo}/branches/{branch}/protection/restrictions"],getAdminBranchProtection:["GET /repos/{owner}/{repo}/branches/{branch}/protection/enforce_admins"],getAllEnvironments:["GET /repos/{owner}/{repo}/environments"],getAllStatusCheckContexts:["GET /repos/{owner}/{repo}/branches/{branch}/protection/required_status_checks/contexts"],getAllTopics:["GET /repos/{owner}/{repo}/topics"],getAppsWithAccessToProtectedBranch:["GET /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/apps"],getAutolink:["GET /repos/{owner}/{repo}/autolinks/{autolink_id}"],getBranch:["GET /repos/{owner}/{repo}/branches/{branch}"],getBranchProtection:["GET /repos/{owner}/{repo}/branches/{branch}/protection"],getClones:["GET /repos/{owner}/{repo}/traffic/clones"],getCodeFrequencyStats:["GET /repos/{owner}/{repo}/stats/code_frequency"],getCollaboratorPermissionLevel:["GET /repos/{owner}/{repo}/collaborators/{username}/permission"],getCombinedStatusForRef:["GET /repos/{owner}/{repo}/commits/{ref}/status"],getCommit:["GET /repos/{owner}/{repo}/commits/{ref}"],getCommitActivityStats:["GET /repos/{owner}/{repo}/stats/commit_activity"],getCommitComment:["GET /repos/{owner}/{repo}/comments/{comment_id}"],getCommitSignatureProtection:["GET /repos/{owner}/{repo}/branches/{branch}/protection/required_signatures"],getCommunityProfileMetrics:["GET /repos/{owner}/{repo}/community/profile"],getContent:["GET /repos/{owner}/{repo}/contents/{path}"],getContributorsStats:["GET /repos/{owner}/{repo}/stats/contributors"],getDeployKey:["GET /repos/{owner}/{repo}/keys/{key_id}"],getDeployment:["GET /repos/{owner}/{repo}/deployments/{deployment_id}"],getDeploymentStatus:["GET /repos/{owner}/{repo}/deployments/{deployment_id}/statuses/{status_id}"],getEnvironment:["GET /repos/{owner}/{repo}/environments/{environment_name}"],getLatestPagesBuild:["GET /repos/{owner}/{repo}/pages/builds/latest"],getLatestRelease:["GET /repos/{owner}/{repo}/releases/latest"],getPages:["GET /repos/{owner}/{repo}/pages"],getPagesBuild:["GET /repos/{owner}/{repo}/pages/builds/{build_id}"],getPagesHealthCheck:["GET /repos/{owner}/{repo}/pages/health"],getParticipationStats:["GET /repos/{owner}/{repo}/stats/participation"],getPullRequestReviewProtection:["GET /repos/{owner}/{repo}/branches/{branch}/protection/required_pull_request_reviews"],getPunchCardStats:["GET /repos/{owner}/{repo}/stats/punch_card"],getReadme:["GET /repos/{owner}/{repo}/readme"],getReadmeInDirectory:["GET /repos/{owner}/{repo}/readme/{dir}"],getRelease:["GET /repos/{owner}/{repo}/releases/{release_id}"],getReleaseAsset:["GET /repos/{owner}/{repo}/releases/assets/{asset_id}"],getReleaseByTag:["GET /repos/{owner}/{repo}/releases/tags/{tag}"],getStatusChecksProtection:["GET /repos/{owner}/{repo}/branches/{branch}/protection/required_status_checks"],getTeamsWithAccessToProtectedBranch:["GET /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/teams"],getTopPaths:["GET /repos/{owner}/{repo}/traffic/popular/paths"],getTopReferrers:["GET /repos/{owner}/{repo}/traffic/popular/referrers"],getUsersWithAccessToProtectedBranch:["GET /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/users"],getViews:["GET /repos/{owner}/{repo}/traffic/views"],getWebhook:["GET /repos/{owner}/{repo}/hooks/{hook_id}"],getWebhookConfigForRepo:["GET /repos/{owner}/{repo}/hooks/{hook_id}/config"],getWebhookDelivery:["GET /repos/{owner}/{repo}/hooks/{hook_id}/deliveries/{delivery_id}"],listAutolinks:["GET /repos/{owner}/{repo}/autolinks"],listBranches:["GET /repos/{owner}/{repo}/branches"],listBranchesForHeadCommit:["GET /repos/{owner}/{repo}/commits/{commit_sha}/branches-where-head"],listCollaborators:["GET /repos/{owner}/{repo}/collaborators"],listCommentsForCommit:["GET /repos/{owner}/{repo}/commits/{commit_sha}/comments"],listCommitCommentsForRepo:["GET /repos/{owner}/{repo}/comments"],listCommitStatusesForRef:["GET /repos/{owner}/{repo}/commits/{ref}/statuses"],listCommits:["GET /repos/{owner}/{repo}/commits"],listContributors:["GET /repos/{owner}/{repo}/contributors"],listDeployKeys:["GET /repos/{owner}/{repo}/keys"],listDeploymentStatuses:["GET /repos/{owner}/{repo}/deployments/{deployment_id}/statuses"],listDeployments:["GET /repos/{owner}/{repo}/deployments"],listForAuthenticatedUser:["GET /user/repos"],listForOrg:["GET /orgs/{org}/repos"],listForUser:["GET /users/{username}/repos"],listForks:["GET /repos/{owner}/{repo}/forks"],listInvitations:["GET /repos/{owner}/{repo}/invitations"],listInvitationsForAuthenticatedUser:["GET /user/repository_invitations"],listLanguages:["GET /repos/{owner}/{repo}/languages"],listPagesBuilds:["GET /repos/{owner}/{repo}/pages/builds"],listPublic:["GET /repositories"],listPullRequestsAssociatedWithCommit:["GET /repos/{owner}/{repo}/commits/{commit_sha}/pulls"],listReleaseAssets:["GET /repos/{owner}/{repo}/releases/{release_id}/assets"],listReleases:["GET /repos/{owner}/{repo}/releases"],listTagProtection:["GET /repos/{owner}/{repo}/tags/protection"],listTags:["GET /repos/{owner}/{repo}/tags"],listTeams:["GET /repos/{owner}/{repo}/teams"],listWebhookDeliveries:["GET /repos/{owner}/{repo}/hooks/{hook_id}/deliveries"],listWebhooks:["GET /repos/{owner}/{repo}/hooks"],merge:["POST /repos/{owner}/{repo}/merges"],mergeUpstream:["POST /repos/{owner}/{repo}/merge-upstream"],pingWebhook:["POST /repos/{owner}/{repo}/hooks/{hook_id}/pings"],redeliverWebhookDelivery:["POST /repos/{owner}/{repo}/hooks/{hook_id}/deliveries/{delivery_id}/attempts"],removeAppAccessRestrictions:["DELETE /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/apps",{},{mapToData:"apps"}],removeCollaborator:["DELETE /repos/{owner}/{repo}/collaborators/{username}"],removeStatusCheckContexts:["DELETE /repos/{owner}/{repo}/branches/{branch}/protection/required_status_checks/contexts",{},{mapToData:"contexts"}],removeStatusCheckProtection:["DELETE /repos/{owner}/{repo}/branches/{branch}/protection/required_status_checks"],removeTeamAccessRestrictions:["DELETE /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/teams",{},{mapToData:"teams"}],removeUserAccessRestrictions:["DELETE /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/users",{},{mapToData:"users"}],renameBranch:["POST /repos/{owner}/{repo}/branches/{branch}/rename"],replaceAllTopics:["PUT /repos/{owner}/{repo}/topics"],requestPagesBuild:["POST /repos/{owner}/{repo}/pages/builds"],setAdminBranchProtection:["POST /repos/{owner}/{repo}/branches/{branch}/protection/enforce_admins"],setAppAccessRestrictions:["PUT /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/apps",{},{mapToData:"apps"}],setStatusCheckContexts:["PUT /repos/{owner}/{repo}/branches/{branch}/protection/required_status_checks/contexts",{},{mapToData:"contexts"}],setTeamAccessRestrictions:["PUT /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/teams",{},{mapToData:"teams"}],setUserAccessRestrictions:["PUT /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/users",{},{mapToData:"users"}],testPushWebhook:["POST /repos/{owner}/{repo}/hooks/{hook_id}/tests"],transfer:["POST /repos/{owner}/{repo}/transfer"],update:["PATCH /repos/{owner}/{repo}"],updateBranchProtection:["PUT /repos/{owner}/{repo}/branches/{branch}/protection"],updateCommitComment:["PATCH /repos/{owner}/{repo}/comments/{comment_id}"],updateInformationAboutPagesSite:["PUT /repos/{owner}/{repo}/pages"],updateInvitation:["PATCH /repos/{owner}/{repo}/invitations/{invitation_id}"],updatePullRequestReviewProtection:["PATCH /repos/{owner}/{repo}/branches/{branch}/protection/required_pull_request_reviews"],updateRelease:["PATCH /repos/{owner}/{repo}/releases/{release_id}"],updateReleaseAsset:["PATCH /repos/{owner}/{repo}/releases/assets/{asset_id}"],updateStatusCheckPotection:["PATCH /repos/{owner}/{repo}/branches/{branch}/protection/required_status_checks",{},{renamed:["repos","updateStatusCheckProtection"]}],updateStatusCheckProtection:["PATCH /repos/{owner}/{repo}/branches/{branch}/protection/required_status_checks"],updateWebhook:["PATCH /repos/{owner}/{repo}/hooks/{hook_id}"],updateWebhookConfigForRepo:["PATCH /repos/{owner}/{repo}/hooks/{hook_id}/config"],uploadReleaseAsset:["POST /repos/{owner}/{repo}/releases/{release_id}/assets{?name,label}",{baseUrl:"https://uploads.github.com"}]},search:{code:["GET /search/code"],commits:["GET /search/commits"],issuesAndPullRequests:["GET /search/issues"],labels:["GET /search/labels"],repos:["GET /search/repositories"],topics:["GET /search/topics"],users:["GET /search/users"]},secretScanning:{getAlert:["GET /repos/{owner}/{repo}/secret-scanning/alerts/{alert_number}"],listAlertsForEnterprise:["GET /enterprises/{enterprise}/secret-scanning/alerts"],listAlertsForOrg:["GET /orgs/{org}/secret-scanning/alerts"],listAlertsForRepo:["GET /repos/{owner}/{repo}/secret-scanning/alerts"],listLocationsForAlert:["GET /repos/{owner}/{repo}/secret-scanning/alerts/{alert_number}/locations"],updateAlert:["PATCH /repos/{owner}/{repo}/secret-scanning/alerts/{alert_number}"]},teams:{addOrUpdateMembershipForUserInOrg:["PUT /orgs/{org}/teams/{team_slug}/memberships/{username}"],addOrUpdateProjectPermissionsInOrg:["PUT /orgs/{org}/teams/{team_slug}/projects/{project_id}"],addOrUpdateRepoPermissionsInOrg:["PUT /orgs/{org}/teams/{team_slug}/repos/{owner}/{repo}"],checkPermissionsForProjectInOrg:["GET /orgs/{org}/teams/{team_slug}/projects/{project_id}"],checkPermissionsForRepoInOrg:["GET /orgs/{org}/teams/{team_slug}/repos/{owner}/{repo}"],create:["POST /orgs/{org}/teams"],createDiscussionCommentInOrg:["POST /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments"],createDiscussionInOrg:["POST /orgs/{org}/teams/{team_slug}/discussions"],deleteDiscussionCommentInOrg:["DELETE /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments/{comment_number}"],deleteDiscussionInOrg:["DELETE /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}"],deleteInOrg:["DELETE /orgs/{org}/teams/{team_slug}"],getByName:["GET /orgs/{org}/teams/{team_slug}"],getDiscussionCommentInOrg:["GET /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments/{comment_number}"],getDiscussionInOrg:["GET /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}"],getMembershipForUserInOrg:["GET /orgs/{org}/teams/{team_slug}/memberships/{username}"],list:["GET /orgs/{org}/teams"],listChildInOrg:["GET /orgs/{org}/teams/{team_slug}/teams"],listDiscussionCommentsInOrg:["GET /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments"],listDiscussionsInOrg:["GET /orgs/{org}/teams/{team_slug}/discussions"],listForAuthenticatedUser:["GET /user/teams"],listMembersInOrg:["GET /orgs/{org}/teams/{team_slug}/members"],listPendingInvitationsInOrg:["GET /orgs/{org}/teams/{team_slug}/invitations"],listProjectsInOrg:["GET /orgs/{org}/teams/{team_slug}/projects"],listReposInOrg:["GET /orgs/{org}/teams/{team_slug}/repos"],removeMembershipForUserInOrg:["DELETE /orgs/{org}/teams/{team_slug}/memberships/{username}"],removeProjectInOrg:["DELETE /orgs/{org}/teams/{team_slug}/projects/{project_id}"],removeRepoInOrg:["DELETE /orgs/{org}/teams/{team_slug}/repos/{owner}/{repo}"],updateDiscussionCommentInOrg:["PATCH /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments/{comment_number}"],updateDiscussionInOrg:["PATCH /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}"],updateInOrg:["PATCH /orgs/{org}/teams/{team_slug}"]},users:{addEmailForAuthenticated:["POST /user/emails",{},{renamed:["users","addEmailForAuthenticatedUser"]}],addEmailForAuthenticatedUser:["POST /user/emails"],block:["PUT /user/blocks/{username}"],checkBlocked:["GET /user/blocks/{username}"],checkFollowingForUser:["GET /users/{username}/following/{target_user}"],checkPersonIsFollowedByAuthenticated:["GET /user/following/{username}"],createGpgKeyForAuthenticated:["POST /user/gpg_keys",{},{renamed:["users","createGpgKeyForAuthenticatedUser"]}],createGpgKeyForAuthenticatedUser:["POST /user/gpg_keys"],createPublicSshKeyForAuthenticated:["POST /user/keys",{},{renamed:["users","createPublicSshKeyForAuthenticatedUser"]}],createPublicSshKeyForAuthenticatedUser:["POST /user/keys"],deleteEmailForAuthenticated:["DELETE /user/emails",{},{renamed:["users","deleteEmailForAuthenticatedUser"]}],deleteEmailForAuthenticatedUser:["DELETE /user/emails"],deleteGpgKeyForAuthenticated:["DELETE /user/gpg_keys/{gpg_key_id}",{},{renamed:["users","deleteGpgKeyForAuthenticatedUser"]}],deleteGpgKeyForAuthenticatedUser:["DELETE /user/gpg_keys/{gpg_key_id}"],deletePublicSshKeyForAuthenticated:["DELETE /user/keys/{key_id}",{},{renamed:["users","deletePublicSshKeyForAuthenticatedUser"]}],deletePublicSshKeyForAuthenticatedUser:["DELETE /user/keys/{key_id}"],follow:["PUT /user/following/{username}"],getAuthenticated:["GET /user"],getByUsername:["GET /users/{username}"],getContextForUser:["GET /users/{username}/hovercard"],getGpgKeyForAuthenticated:["GET /user/gpg_keys/{gpg_key_id}",{},{renamed:["users","getGpgKeyForAuthenticatedUser"]}],getGpgKeyForAuthenticatedUser:["GET /user/gpg_keys/{gpg_key_id}"],getPublicSshKeyForAuthenticated:["GET /user/keys/{key_id}",{},{renamed:["users","getPublicSshKeyForAuthenticatedUser"]}],getPublicSshKeyForAuthenticatedUser:["GET /user/keys/{key_id}"],list:["GET /users"],listBlockedByAuthenticated:["GET /user/blocks",{},{renamed:["users","listBlockedByAuthenticatedUser"]}],listBlockedByAuthenticatedUser:["GET /user/blocks"],listEmailsForAuthenticated:["GET /user/emails",{},{renamed:["users","listEmailsForAuthenticatedUser"]}],listEmailsForAuthenticatedUser:["GET /user/emails"],listFollowedByAuthenticated:["GET /user/following",{},{renamed:["users","listFollowedByAuthenticatedUser"]}],listFollowedByAuthenticatedUser:["GET /user/following"],listFollowersForAuthenticatedUser:["GET /user/followers"],listFollowersForUser:["GET /users/{username}/followers"],listFollowingForUser:["GET /users/{username}/following"],listGpgKeysForAuthenticated:["GET /user/gpg_keys",{},{renamed:["users","listGpgKeysForAuthenticatedUser"]}],listGpgKeysForAuthenticatedUser:["GET /user/gpg_keys"],listGpgKeysForUser:["GET /users/{username}/gpg_keys"],listPublicEmailsForAuthenticated:["GET /user/public_emails",{},{renamed:["users","listPublicEmailsForAuthenticatedUser"]}],listPublicEmailsForAuthenticatedUser:["GET /user/public_emails"],listPublicKeysForUser:["GET /users/{username}/keys"],listPublicSshKeysForAuthenticated:["GET /user/keys",{},{renamed:["users","listPublicSshKeysForAuthenticatedUser"]}],listPublicSshKeysForAuthenticatedUser:["GET /user/keys"],setPrimaryEmailVisibilityForAuthenticated:["PATCH /user/email/visibility",{},{renamed:["users","setPrimaryEmailVisibilityForAuthenticatedUser"]}],setPrimaryEmailVisibilityForAuthenticatedUser:["PATCH /user/email/visibility"],unblock:["DELETE /user/blocks/{username}"],unfollow:["DELETE /user/following/{username}"],updateAuthenticated:["PATCH /user"]}};function td(e,p){const a={};for(const[d,t]of Object.entries(p))for(const[p,r]of Object.entries(t)){const[t,s,o]=r,[i,m]=t.split(/ /),n=Object.assign({method:i,url:m},s);a[d]||(a[d]={});const l=a[d];o?l[p]=rd(e,d,p,n,o):l[p]=e.request.defaults(n)}return a}function rd(e,p,a,d,t){const r=e.request.defaults(d);return Object.assign((function(...d){let s=r.endpoint.merge(...d);if(t.mapToData)return s=Object.assign({},s,{data:s[t.mapToData],[t.mapToData]:void 0}),r(s);if(t.renamed){const[d,r]=t.renamed;e.log.warn(`octokit.${p}.${a}() has been renamed to octokit.${d}.${r}()`)}if(t.deprecated&&e.log.warn(t.deprecated),t.renamedParameters){const s=r.endpoint.merge(...d);for(const[d,r]of Object.entries(t.renamedParameters))d in s&&(e.log.warn(`"${d}" parameter is deprecated for "octokit.${p}.${a}()". Use "${r}" instead`),r in s||(s[r]=s[d]),delete s[d]);return r(s)}return r(...d)}),r)}function sd(e){return{rest:td(e,dd)}}function od(e){const p=td(e,dd);return{...p,rest:p}}sd.VERSION="5.16.2",od.VERSION="5.16.2";var id=c(Object.freeze({__proto__:null,legacyRestEndpointMethods:od,restEndpointMethods:sd}));function md(e,p,a){const d="function"==typeof p?p.endpoint(a):e.request.endpoint(p,a),t="function"==typeof p?p:e.request,r=d.method,s=d.headers;let o=d.url;return{[Symbol.asyncIterator]:()=>({async next(){if(!o)return{done:!0};try{const e=function(e){if(!e.data)return{...e,data:[]};if(!("total_count"in e.data)||"url"in e.data)return e;const p=e.data.incomplete_results,a=e.data.repository_selection,d=e.data.total_count;delete e.data.incomplete_results,delete e.data.repository_selection,delete e.data.total_count;const t=Object.keys(e.data)[0],r=e.data[t];return e.data=r,void 0!==p&&(e.data.incomplete_results=p),void 0!==a&&(e.data.repository_selection=a),e.data.total_count=d,e}(await t({method:r,url:o,headers:s}));return o=((e.headers.link||"").match(/<([^>]+)>;\s*rel="next"/)||[])[1],{value:e}}catch(e){if(409!==e.status)throw e;return o="",{value:{status:200,headers:{},data:[]}}}}})}}function nd(e,p,a,d){return"function"==typeof a&&(d=a,a=void 0),ld(e,[],md(e,p,a)[Symbol.asyncIterator](),d)}function ld(e,p,a,d){return a.next().then((t=>{if(t.done)return p;let r=!1;return p=p.concat(d?d(t.value,(function(){r=!0})):t.value.data),r?p:ld(e,p,a,d)}))}const ud=Object.assign(nd,{iterator:md}),cd=["GET /app/hook/deliveries","GET /app/installations","GET /applications/grants","GET /authorizations","GET /enterprises/{enterprise}/actions/permissions/organizations","GET /enterprises/{enterprise}/actions/runner-groups","GET /enterprises/{enterprise}/actions/runner-groups/{runner_group_id}/organizations","GET /enterprises/{enterprise}/actions/runner-groups/{runner_group_id}/runners","GET /enterprises/{enterprise}/actions/runners","GET /enterprises/{enterprise}/audit-log","GET /enterprises/{enterprise}/secret-scanning/alerts","GET /enterprises/{enterprise}/settings/billing/advanced-security","GET /events","GET /gists","GET /gists/public","GET /gists/starred","GET /gists/{gist_id}/comments","GET /gists/{gist_id}/commits","GET /gists/{gist_id}/forks","GET /installation/repositories","GET /issues","GET /licenses","GET /marketplace_listing/plans","GET /marketplace_listing/plans/{plan_id}/accounts","GET /marketplace_listing/stubbed/plans","GET /marketplace_listing/stubbed/plans/{plan_id}/accounts","GET /networks/{owner}/{repo}/events","GET /notifications","GET /organizations","GET /orgs/{org}/actions/cache/usage-by-repository","GET /orgs/{org}/actions/permissions/repositories","GET /orgs/{org}/actions/runner-groups","GET /orgs/{org}/actions/runner-groups/{runner_group_id}/repositories","GET /orgs/{org}/actions/runner-groups/{runner_group_id}/runners","GET /orgs/{org}/actions/runners","GET /orgs/{org}/actions/secrets","GET /orgs/{org}/actions/secrets/{secret_name}/repositories","GET /orgs/{org}/audit-log","GET /orgs/{org}/blocks","GET /orgs/{org}/code-scanning/alerts","GET /orgs/{org}/codespaces","GET /orgs/{org}/credential-authorizations","GET /orgs/{org}/dependabot/secrets","GET /orgs/{org}/dependabot/secrets/{secret_name}/repositories","GET /orgs/{org}/events","GET /orgs/{org}/external-groups","GET /orgs/{org}/failed_invitations","GET /orgs/{org}/hooks","GET /orgs/{org}/hooks/{hook_id}/deliveries","GET /orgs/{org}/installations","GET /orgs/{org}/invitations","GET /orgs/{org}/invitations/{invitation_id}/teams","GET /orgs/{org}/issues","GET /orgs/{org}/members","GET /orgs/{org}/migrations","GET /orgs/{org}/migrations/{migration_id}/repositories","GET /orgs/{org}/outside_collaborators","GET /orgs/{org}/packages","GET /orgs/{org}/packages/{package_type}/{package_name}/versions","GET /orgs/{org}/projects","GET /orgs/{org}/public_members","GET /orgs/{org}/repos","GET /orgs/{org}/secret-scanning/alerts","GET /orgs/{org}/settings/billing/advanced-security","GET /orgs/{org}/team-sync/groups","GET /orgs/{org}/teams","GET /orgs/{org}/teams/{team_slug}/discussions","GET /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments","GET /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments/{comment_number}/reactions","GET /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/reactions","GET /orgs/{org}/teams/{team_slug}/invitations","GET /orgs/{org}/teams/{team_slug}/members","GET /orgs/{org}/teams/{team_slug}/projects","GET /orgs/{org}/teams/{team_slug}/repos","GET /orgs/{org}/teams/{team_slug}/teams","GET /projects/columns/{column_id}/cards","GET /projects/{project_id}/collaborators","GET /projects/{project_id}/columns","GET /repos/{owner}/{repo}/actions/artifacts","GET /repos/{owner}/{repo}/actions/caches","GET /repos/{owner}/{repo}/actions/runners","GET /repos/{owner}/{repo}/actions/runs","GET /repos/{owner}/{repo}/actions/runs/{run_id}/artifacts","GET /repos/{owner}/{repo}/actions/runs/{run_id}/attempts/{attempt_number}/jobs","GET /repos/{owner}/{repo}/actions/runs/{run_id}/jobs","GET /repos/{owner}/{repo}/actions/secrets","GET /repos/{owner}/{repo}/actions/workflows","GET /repos/{owner}/{repo}/actions/workflows/{workflow_id}/runs","GET /repos/{owner}/{repo}/assignees","GET /repos/{owner}/{repo}/branches","GET /repos/{owner}/{repo}/check-runs/{check_run_id}/annotations","GET /repos/{owner}/{repo}/check-suites/{check_suite_id}/check-runs","GET /repos/{owner}/{repo}/code-scanning/alerts","GET /repos/{owner}/{repo}/code-scanning/alerts/{alert_number}/instances","GET /repos/{owner}/{repo}/code-scanning/analyses","GET /repos/{owner}/{repo}/codespaces","GET /repos/{owner}/{repo}/codespaces/devcontainers","GET /repos/{owner}/{repo}/codespaces/secrets","GET /repos/{owner}/{repo}/collaborators","GET /repos/{owner}/{repo}/comments","GET /repos/{owner}/{repo}/comments/{comment_id}/reactions","GET /repos/{owner}/{repo}/commits","GET /repos/{owner}/{repo}/commits/{commit_sha}/comments","GET /repos/{owner}/{repo}/commits/{commit_sha}/pulls","GET /repos/{owner}/{repo}/commits/{ref}/check-runs","GET /repos/{owner}/{repo}/commits/{ref}/check-suites","GET /repos/{owner}/{repo}/commits/{ref}/status","GET /repos/{owner}/{repo}/commits/{ref}/statuses","GET /repos/{owner}/{repo}/contributors","GET /repos/{owner}/{repo}/dependabot/secrets","GET /repos/{owner}/{repo}/deployments","GET /repos/{owner}/{repo}/deployments/{deployment_id}/statuses","GET /repos/{owner}/{repo}/environments","GET /repos/{owner}/{repo}/events","GET /repos/{owner}/{repo}/forks","GET /repos/{owner}/{repo}/git/matching-refs/{ref}","GET /repos/{owner}/{repo}/hooks","GET /repos/{owner}/{repo}/hooks/{hook_id}/deliveries","GET /repos/{owner}/{repo}/invitations","GET /repos/{owner}/{repo}/issues","GET /repos/{owner}/{repo}/issues/comments","GET /repos/{owner}/{repo}/issues/comments/{comment_id}/reactions","GET /repos/{owner}/{repo}/issues/events","GET /repos/{owner}/{repo}/issues/{issue_number}/comments","GET /repos/{owner}/{repo}/issues/{issue_number}/events","GET /repos/{owner}/{repo}/issues/{issue_number}/labels","GET /repos/{owner}/{repo}/issues/{issue_number}/reactions","GET /repos/{owner}/{repo}/issues/{issue_number}/timeline","GET /repos/{owner}/{repo}/keys","GET /repos/{owner}/{repo}/labels","GET /repos/{owner}/{repo}/milestones","GET /repos/{owner}/{repo}/milestones/{milestone_number}/labels","GET /repos/{owner}/{repo}/notifications","GET /repos/{owner}/{repo}/pages/builds","GET /repos/{owner}/{repo}/projects","GET /repos/{owner}/{repo}/pulls","GET /repos/{owner}/{repo}/pulls/comments","GET /repos/{owner}/{repo}/pulls/comments/{comment_id}/reactions","GET /repos/{owner}/{repo}/pulls/{pull_number}/comments","GET /repos/{owner}/{repo}/pulls/{pull_number}/commits","GET /repos/{owner}/{repo}/pulls/{pull_number}/files","GET /repos/{owner}/{repo}/pulls/{pull_number}/requested_reviewers","GET /repos/{owner}/{repo}/pulls/{pull_number}/reviews","GET /repos/{owner}/{repo}/pulls/{pull_number}/reviews/{review_id}/comments","GET /repos/{owner}/{repo}/releases","GET /repos/{owner}/{repo}/releases/{release_id}/assets","GET /repos/{owner}/{repo}/releases/{release_id}/reactions","GET /repos/{owner}/{repo}/secret-scanning/alerts","GET /repos/{owner}/{repo}/secret-scanning/alerts/{alert_number}/locations","GET /repos/{owner}/{repo}/stargazers","GET /repos/{owner}/{repo}/subscribers","GET /repos/{owner}/{repo}/tags","GET /repos/{owner}/{repo}/teams","GET /repos/{owner}/{repo}/topics","GET /repositories","GET /repositories/{repository_id}/environments/{environment_name}/secrets","GET /search/code","GET /search/commits","GET /search/issues","GET /search/labels","GET /search/repositories","GET /search/topics","GET /search/users","GET /teams/{team_id}/discussions","GET /teams/{team_id}/discussions/{discussion_number}/comments","GET /teams/{team_id}/discussions/{discussion_number}/comments/{comment_number}/reactions","GET /teams/{team_id}/discussions/{discussion_number}/reactions","GET /teams/{team_id}/invitations","GET /teams/{team_id}/members","GET /teams/{team_id}/projects","GET /teams/{team_id}/repos","GET /teams/{team_id}/teams","GET /user/blocks","GET /user/codespaces","GET /user/codespaces/secrets","GET /user/emails","GET /user/followers","GET /user/following","GET /user/gpg_keys","GET /user/installations","GET /user/installations/{installation_id}/repositories","GET /user/issues","GET /user/keys","GET /user/marketplace_purchases","GET /user/marketplace_purchases/stubbed","GET /user/memberships/orgs","GET /user/migrations","GET /user/migrations/{migration_id}/repositories","GET /user/orgs","GET /user/packages","GET /user/packages/{package_type}/{package_name}/versions","GET /user/public_emails","GET /user/repos","GET /user/repository_invitations","GET /user/starred","GET /user/subscriptions","GET /user/teams","GET /users","GET /users/{username}/events","GET /users/{username}/events/orgs/{org}","GET /users/{username}/events/public","GET /users/{username}/followers","GET /users/{username}/following","GET /users/{username}/gists","GET /users/{username}/gpg_keys","GET /users/{username}/keys","GET /users/{username}/orgs","GET /users/{username}/packages","GET /users/{username}/projects","GET /users/{username}/received_events","GET /users/{username}/received_events/public","GET /users/{username}/repos","GET /users/{username}/starred","GET /users/{username}/subscriptions"];function vd(e){return{paginate:Object.assign(nd.bind(null,e),{iterator:md.bind(null,e)})}}vd.VERSION="2.21.3";var hd=c(Object.freeze({__proto__:null,composePaginateRest:ud,isPaginatingEndpoint:function(e){return"string"==typeof e&&cd.includes(e)},paginateRest:vd,paginatingEndpoints:cd}));!function(e){var p=u&&u.__createBinding||(Object.create?function(e,p,a,d){void 0===d&&(d=a),Object.defineProperty(e,d,{enumerable:!0,get:function(){return p[a]}})}:function(e,p,a,d){void 0===d&&(d=a),e[d]=p[a]}),a=u&&u.__setModuleDefault||(Object.create?function(e,p){Object.defineProperty(e,"default",{enumerable:!0,value:p})}:function(e,p){e.default=p}),d=u&&u.__importStar||function(e){if(e&&e.__esModule)return e;var d={};if(null!=e)for(var t in e)"default"!==t&&Object.hasOwnProperty.call(e,t)&&p(d,e,t);return a(d,e),d};Object.defineProperty(e,"__esModule",{value:!0}),e.getOctokitOptions=e.GitHub=e.defaults=e.context=void 0;const t=d(Ue),r=d(xe),s=ad,o=id,i=hd;e.context=new t.Context;const m=r.getApiBaseUrl();e.defaults={baseUrl:m,request:{agent:r.getProxyAgent(m)}},e.GitHub=s.Octokit.plugin(o.restEndpointMethods,i.paginateRest).defaults(e.defaults),e.getOctokitOptions=function(e,p){const a=Object.assign({},p||{}),d=r.getAuthString(e,a);return d&&(a.auth=d),a}}(Be);var gd=u&&u.__createBinding||(Object.create?function(e,p,a,d){void 0===d&&(d=a),Object.defineProperty(e,d,{enumerable:!0,get:function(){return p[a]}})}:function(e,p,a,d){void 0===d&&(d=a),e[d]=p[a]}),wd=u&&u.__setModuleDefault||(Object.create?function(e,p){Object.defineProperty(e,"default",{enumerable:!0,value:p})}:function(e,p){e.default=p}),fd=u&&u.__importStar||function(e){if(e&&e.__esModule)return e;var p={};if(null!=e)for(var a in e)"default"!==a&&Object.hasOwnProperty.call(e,a)&&gd(p,e,a);return wd(p,e),p};Object.defineProperty(Fe,"__esModule",{value:!0}),Fe.getOctokit=Fe.context=void 0;const Td=fd(Ue),_d=Be;Fe.context=new Td.Context,Fe.getOctokit=function(e,p,...a){return new(_d.GitHub.plugin(...a))(_d.getOctokitOptions(e,p))};var Ed={exports:{}},bd=e,yd=p,Sd=bd.exists||yd.exists,Dd=function(e,p){var a,d=[];["end_of_record"].concat(e.split("\n")).forEach((function(e){var p,t,r=(e=e.trim()).split(":"),s=[r.shift(),r.join(":")];switch(s[0].toUpperCase()){case"TN":a.title=s[1].trim();break;case"SF":a.file=s.slice(1).join(":").trim();break;case"FNF":a.functions.found=Number(s[1].trim());break;case"FNH":a.functions.hit=Number(s[1].trim());break;case"LF":a.lines.found=Number(s[1].trim());break;case"LH":a.lines.hit=Number(s[1].trim());break;case"DA":p=s[1].split(","),a.lines.details.push({line:Number(p[0]),hit:Number(p[1])});break;case"FN":t=s[1].split(","),a.functions.details.push({name:t[1],line:Number(t[0])});break;case"FNDA":t=s[1].split(","),a.functions.details.some((function(e,p){if(e.name===t[1]&&void 0===e.hit)return a.functions.details[p].hit=Number(t[0]),!0}));break;case"BRDA":t=s[1].split(","),a.branches.details.push({line:Number(t[0]),block:Number(t[1]),branch:Number(t[2]),taken:"-"===t[3]?0:Number(t[3])});break;case"BRF":a.branches.found=Number(s[1]);break;case"BRH":a.branches.hit=Number(s[1])}e.indexOf("end_of_record")>-1&&(d.push(a),a={lines:{found:0,hit:0,details:[]},functions:{hit:0,found:0,details:[]},branches:{hit:0,found:0,details:[]}})})),d.shift(),d.length?p(null,d):p("Failed to parse string")};Ed.exports=function(e,p){Sd(e,(function(a){if(!a)return Dd(e,p);bd.readFile(e,"utf8",(function(e,a){Dd(a,p)}))}))},Ed.exports.source=Dd;const Nd=e=>new Promise(((p,a)=>{Ed.exports(e,((e,d)=>{e?a(e):p(d)}))})),Ad=e=>{let p=0,a=0;for(const d of e)p+=d.lines.hit,a+=d.lines.found;return p/a*100},Gd=e=>(...p)=>{const a="object"==typeof p[0]?Object.keys(p[0]).map((e=>` ${e}='${p[0][e]}'`)).join(""):"",d="string"==typeof p[0]?p:p.slice(1);return`<${e}${a}>${d.join("")}`},kd=Gd("details"),Pd=Gd("summary"),Od=Gd("tr"),Vd=Gd("td"),Cd=Gd("th"),Rd=Gd("b"),Fd=Gd("table"),Ud=Gd("tbody"),jd=Gd("a"),Ld=(...e)=>e.join(""),Bd=e=>{if(!e)return"N/A";const p=0===e.found?100:e.hit/e.found*100,a=p.toFixed(2).replace(/\.0*$/u,"");return(100===p?Ld:Rd)(`${a}%`)},xd=(e,p,a)=>Od(Vd(((e,p,a)=>{const d=e.file.replace(a.prefix,""),t=`https://github.com/${a.repository}/blob/${a.commit}/${d}`,r=d.split("/"),s=r[r.length-1];return Ld(p?"   ":"",jd({href:t},s))})(e,p,a)),Vd(Bd(e.branches)),Vd(Bd(e.functions)),Vd(Bd(e.lines)),Vd(((e,p)=>[...(e.branches?e.branches.details:[]).filter((e=>0===e.taken)).map((e=>e.line)),...(e.lines?e.lines.details:[]).filter((e=>0===e.hit)).map((e=>e.line))].sort().map((a=>{const d=e.file.replace(p.prefix,""),t=`https://github.com/${p.repository}/blob/${p.commit}/${d}#L${a}`;return jd({href:t},a)})).join(", "))(e,a))),qd=e=>""===e?"":Od(Vd({colspan:5},Rd(e))),Id=(e,p)=>{const a=Od(Cd("File"),Cd("Branches"),Cd("Funcs"),Cd("Lines"),Cd("Uncovered Lines")),d={};for(const a of e){const e=a.file.replace(p.prefix,"").split("/").slice(0,-1).join("/");d[e]=d[e]||[],d[e].push(a)}const t=Object.keys(d).sort().reduce(((e,a)=>[...e,qd(a),...d[a].map((e=>xd(e,""!==a,p)))]),[]);return Fd(Ud(a,...t))},Hd=e=>e.toFixed(2)<0?"❌":"✅",$d=e=>p=>0===e.filter((e=>e.lines.found===p.lines.found&&e.lines.hit===p.lines.hit)).length,Md=(e,p,a)=>((e,p,a)=>{const{appName:d,base:t}=a,r=p?Ad(p):0,s=(p?Ad(e):0)-r,o=s>0?"+":"";let i="";s<0?i="▾":s>0&&(i="▴");const m=p?Cd(Hd(s)," ",i," ",o,s.toFixed(2),"%"):"";let n=e;if(p){const a=e.filter($d(p));n=p.filter($d(e)).concat(a)}const l=`Coverage after merging into ${Rd(t)}

`,u=Ud(d?Od(Cd(d),Cd(Ad(e).toFixed(2),"%"),m):Od(Cd(Ad(e).toFixed(2),"%"),m));return Ld(l,Fd(u),"\n\n",kd(Pd("Coverage Report"),Id(n,a)))})(e,p,a),zd=(e,p,a)=>((e,p,a)=>{const{base:d}=a,t=e.map((e=>{const d=p.find((p=>p.packageName===e.packageName)),t=d?Ad(d.lcov):0,r=(d?Ad(e.lcov):0)-t,s=r>0?"+":"";let o="";r<0?o="▾":r>0&&(o="▴");const i=d?Cd(Hd(r)," ",o," ",s,r.toFixed(2),"%"):"";let m=e.lcov;if(d){const p=e.lcov.filter($d(d));m=d.filter($d(e.lcov)).concat(p)}return`${Fd(Ud(Od(Cd(e.packageName),Cd(Ad(e.lcov).toFixed(2),"%"),i)))} \n\n ${kd(Pd("Coverage Report"),Id(m,a))}
`})),r=`Coverage after merging into ${Rd(d)}

`;return Ld(r,t.join(""))})(e,p,a),Wd=(e,p)=>p+e,Kd=async({client:e,context:p,prNumber:a,body:d,hiddenHeader:t})=>{if(e.issues){const r=await(async({client:e,context:p,prNumber:a,hiddenHeader:d})=>{const{data:t}=await(e.issues?.listComments({...p.repo,issue_number:a}))||{};return t?.filter((({body:e})=>e.startsWith(d)))??[]})({client:e,context:p,prNumber:a,hiddenHeader:t}),s=r.pop();return await(({client:e,context:p,comments:a})=>Promise.all(a.map((({id:a})=>e.issues?.deleteComment({...p.repo,comment_id:a})))))({client:e,context:p,comments:r}),s?(({client:e,context:p,body:a,commentId:d},t)=>e.issues?.updateComment({...p.repo,comment_id:d,body:Wd(a,t)}))({client:e,context:p,body:d,commentId:s.id},t):(({client:e,context:p,prNumber:a,body:d},t)=>e.issues?.createComment({...p.repo,issue_number:a,body:Wd(d,t)}))({client:e,context:p,prNumber:a,body:d},t)}return""},Jd=(a,d)=>{let t=d||[];return e.readdirSync(a).forEach((d=>{t=e.statSync(p.join(a,d)).isDirectory()?Jd(p.join(a,d),t):t.filter((e=>e.path.includes("lcov.info"))).concat({name:a.split("/")[1],path:p.join(a,d)})})),t},Yd=(a,d)=>{let t=d||[];return e.readdirSync(a).forEach((d=>{t=e.statSync(p.join(a,d)).isDirectory()?Yd(p.join(a,d),t):t.filter((e=>e.path.includes("lcov-base"))).concat({name:a.split("/")[1],path:p.join(a,d)})})),t};(async()=>{const{context:p={}}=Fe||{},a=Re.getInput("github-token"),d=Re.getInput("lcov-file")||"./coverage/lcov.info",t=Re.getInput("lcov-base"),r=Re.getInput("app-name"),s=Re.getInput("monorepo-base-path"),o=!s&&await e.promises.readFile(d,"utf-8").catch((e=>console.error(e)));if(!s&&!o)return void console.log(`No coverage report found at '${d}', exiting...`);const i=t&&await e.promises.readFile(t,"utf-8").catch((e=>console.error(e)));s||!t||i||console.log(`No coverage report found at '${t}', ignoring...`);const m=s?Jd(s):[],n=s?Yd(s):[],l=[],u=[];for(const p of m)if(p.path.includes(".info")){const a=await e.promises.readFile(p.path,"utf8"),d=await Nd(a);l.push({packageName:p.name,lcov:d})}for(const p of n)if(p.path.includes(".info")){const a=await e.promises.readFile(p.path,"utf8"),d=await Nd(a);u.push({packageName:p.name,lcov:d})}const c={repository:p.payload.repository.full_name,commit:p.payload.pull_request.head.sha,prefix:`${process.env.GITHUB_WORKSPACE}/`,head:p.payload.pull_request.head.ref,base:p.payload.pull_request.base.ref,appName:r},v=!s&&await Nd(o),h=i&&await Nd(i),g=Fe.getOctokit(a);await Kd({client:g,context:p,prNumber:p.payload.pull_request.number,body:l.length?zd(l,u,c):Md(v,h,c),hiddenHeader:r?`\x3c!-- ${r}-code-coverage-assistant --\x3e`:"\x3c!-- monorepo-code-coverage-assistant --\x3e"})})().catch((e=>{console.log(e),Re.setFailed(e.message)})); diff --git a/src/github.js b/src/github.js index 62722278..f8cbb44e 100644 --- a/src/github.js +++ b/src/github.js @@ -15,23 +15,27 @@ const appendHiddenHeaderToComment = (body, hiddenHeader) => hiddenHeader + body; const listComments = async ({ client, context, prNumber, hiddenHeader }) => { - const { data: existingComments } = await client.issues.listComments({ - ...context.repo, - issue_number: prNumber, - }); + const { data: existingComments } = + (await client.issues?.listComments({ + ...context.repo, + issue_number: prNumber, + })) || {}; - return existingComments.filter(({ body }) => body.startsWith(hiddenHeader)); + return ( + existingComments?.filter(({ body }) => body.startsWith(hiddenHeader)) ?? + [] + ); }; const insertComment = ({ client, context, prNumber, body }, hiddenHeader) => - client.issues.createComment({ + client.issues?.createComment({ ...context.repo, issue_number: prNumber, body: appendHiddenHeaderToComment(body, hiddenHeader), }); const updateComment = ({ client, context, body, commentId }, hiddenHeader) => - client.issues.updateComment({ + client.issues?.updateComment({ ...context.repo, comment_id: commentId, body: appendHiddenHeaderToComment(body, hiddenHeader), @@ -40,7 +44,7 @@ const updateComment = ({ client, context, body, commentId }, hiddenHeader) => const deleteComments = ({ client, context, comments }) => Promise.all( comments.map(({ id }) => - client.issues.deleteComment({ + client.issues?.deleteComment({ ...context.repo, comment_id: id, }), @@ -54,37 +58,41 @@ export const upsertComment = async ({ body, hiddenHeader, }) => { - const existingComments = await listComments({ - client, - context, - prNumber, - hiddenHeader, - }); - const last = existingComments.pop(); + if (client.issues) { + const existingComments = await listComments({ + client, + context, + prNumber, + hiddenHeader, + }); + const last = existingComments.pop(); - await deleteComments({ - client, - context, - comments: existingComments, - }); + await deleteComments({ + client, + context, + comments: existingComments, + }); + + return last + ? updateComment( + { + client, + context, + body, + commentId: last.id, + }, + hiddenHeader, + ) + : insertComment( + { + client, + context, + prNumber, + body, + }, + hiddenHeader, + ); + } - return last - ? updateComment( - { - client, - context, - body, - commentId: last.id, - }, - hiddenHeader, - ) - : insertComment( - { - client, - context, - prNumber, - body, - }, - hiddenHeader, - ); + return ""; }; diff --git a/yarn.lock b/yarn.lock index f00376e5..84cbb368 100644 --- a/yarn.lock +++ b/yarn.lock @@ -5161,9 +5161,9 @@ which@^2.0.1: isexe "^2.0.0" word-wrap@^1.2.3: - version "1.2.3" - resolved "https://registry.yarnpkg.com/word-wrap/-/word-wrap-1.2.3.tgz#610636f6b1f703891bd34771ccb17fb93b47079c" - integrity sha512-Hz/mrNwitNRh/HUAtM/VT/5VH+ygD6DV7mYKZAtHOrbs8U7lvPS6xf7EJKMF0uW1KJCl0H701g3ZGus+muE5vQ== + version "1.2.5" + resolved "https://registry.yarnpkg.com/word-wrap/-/word-wrap-1.2.5.tgz#d2c45c6dd4fbce621a66f136cbe328afd0410b34" + integrity sha512-BN22B5eaMMI9UMtjrGd5g5eCYPpCPDUy0FJXbYsaT5zYxjFOckS53SQDE3pWkVoWpHXVb3BrYcEN4Twa55B5cA== wrap-ansi@^7.0.0: version "7.0.0"