Today
-
Yesterday
-
Total
-
  • productive-box
    프로젝트 관련/Git 2023. 12. 2. 00:01

    나의 productive-box 가

    업데이트를 1주일이 넘게 안한 걸 어제 발견했다.

    어제는 일이 있어서 못하고 🙈


    오늘을 상큼하게 시작해볼 겸

    이 문제를 해결해보려고 뒤적거리고 있다.

    1. 업데이트 히스토리 발견

    repository 에서 Actions 탭에 가보니 이런게 있었다.

    왜 업데이트를 실패했을까??

    로그로 보이는 파일을 찾았는데 이유를 찾아볼 수 없었다...

    2023-05-19T17:32:45.5127586Z Requested labels: ubuntu-latest
    2023-05-19T17:32:45.5127752Z Job defined at: zhyunk/productive-box/.github/workflows/schedule.yml@refs/heads/master
    2023-05-19T17:32:45.5127856Z Waiting for a runner to pick up this job...
    2023-05-19T17:32:45.8647833Z Job is waiting for a hosted runner to come online.
    2023-05-19T17:32:48.8612070Z Job is about to start running on the hosted runner: GitHub Actions 2 (hosted)
    2023-05-19T17:32:52.1113597Z ##[debug]Starting: update-gist
    2023-05-19T17:32:52.1145191Z ##[debug]Cleaning runner temp folder: /home/runner/work/_temp
    2023-05-19T17:32:52.1546560Z ##[debug]Starting: Set up job
    2023-05-19T17:32:52.1547313Z Current runner version: '2.304.0'
    2023-05-19T17:32:52.1578188Z ##[group]Operating System
    2023-05-19T17:32:52.1578932Z Ubuntu
    2023-05-19T17:32:52.1579318Z 22.04.2
    2023-05-19T17:32:52.1579689Z LTS
    2023-05-19T17:32:52.1580050Z ##[endgroup]
    2023-05-19T17:32:52.1580549Z ##[group]Runner Image
    2023-05-19T17:32:52.1581005Z Image: ubuntu-22.04
    2023-05-19T17:32:52.1581426Z Version: 20230507.1
    2023-05-19T17:32:52.1582319Z Included Software: https://github.com/actions/runner-images/blob/ubuntu22/20230507.1/images/linux/Ubuntu2204-Readme.md
    2023-05-19T17:32:52.1583364Z Image Release: https://github.com/actions/runner-images/releases/tag/ubuntu22%2F20230507.1
    2023-05-19T17:32:52.1583879Z ##[endgroup]
    2023-05-19T17:32:52.1584346Z ##[group]Runner Image Provisioner
    2023-05-19T17:32:52.1584898Z 2.0.171.1
    2023-05-19T17:32:52.1586077Z ##[endgroup]
    2023-05-19T17:32:52.1587441Z ##[group]GITHUB_TOKEN Permissions
    2023-05-19T17:32:52.1588386Z Contents: read
    2023-05-19T17:32:52.1588906Z Metadata: read
    2023-05-19T17:32:52.1589330Z Packages: read
    2023-05-19T17:32:52.1589732Z ##[endgroup]
    2023-05-19T17:32:52.1594047Z Secret source: Actions
    2023-05-19T17:32:52.1594849Z ##[debug]Primary repository: zhyunk/productive-box
    2023-05-19T17:32:52.1595442Z Prepare workflow directory
    2023-05-19T17:32:52.1700831Z ##[debug]Creating pipeline directory: '/home/runner/work/productive-box'
    2023-05-19T17:32:52.1704208Z ##[debug]Creating workspace directory: '/home/runner/work/productive-box/productive-box'
    2023-05-19T17:32:52.1706037Z ##[debug]Update context data
    2023-05-19T17:32:52.1709941Z ##[debug]Evaluating job-level environment variables
    2023-05-19T17:32:52.2455279Z ##[debug]Evaluating job container
    2023-05-19T17:32:52.2460266Z ##[debug]Evaluating job service containers
    2023-05-19T17:32:52.2463599Z ##[debug]Evaluating job defaults
    2023-05-19T17:32:52.2559554Z Prepare all required actions
    2023-05-19T17:32:52.2806621Z Getting action download info
    2023-05-19T17:32:52.6564672Z Download action repository 'maxam2017/productive-box@master' (SHA:deb1f15e0f42ce6e6c4f9ae044449fdafd9dc115)
    2023-05-19T17:32:53.0983803Z ##[debug]Download 'https://api.github.com/repos/maxam2017/productive-box/tarball/deb1f15e0f42ce6e6c4f9ae044449fdafd9dc115' to '/home/runner/work/_actions/_temp_e9a2e6ff-f3c7-4b89-9a9d-b2e4e4000f3e/95da7b61-7d70-4336-8094-05751979e859.tar.gz'
    2023-05-19T17:32:53.2064198Z ##[debug]Unwrap 'maxam2017-productive-box-deb1f15' to '/home/runner/work/_actions/maxam2017/productive-box/master'
    2023-05-19T17:32:53.2136376Z ##[debug]Archive '/home/runner/work/_actions/_temp_e9a2e6ff-f3c7-4b89-9a9d-b2e4e4000f3e/95da7b61-7d70-4336-8094-05751979e859.tar.gz' has been unzipped into '/home/runner/work/_actions/maxam2017/productive-box/master'.
    2023-05-19T17:32:53.2380703Z ##[debug]action.yml for action: '/home/runner/work/_actions/maxam2017/productive-box/master/action.yml'.
    2023-05-19T17:32:53.3439245Z ##[debug]Set step '__maxam2017_productive-box' display name to: 'Update gist'
    2023-05-19T17:32:53.3440620Z Complete job name: update-gist
    2023-05-19T17:32:53.3452294Z ##[debug]Collect running processes for tracking orphan processes.
    2023-05-19T17:32:53.3788030Z ##[debug]Finishing: Set up job
    2023-05-19T17:32:53.4331315Z ##[debug]Evaluating: secrets.GH_TOKEN
    2023-05-19T17:32:53.4340788Z ##[debug]Evaluating Index:
    2023-05-19T17:32:53.4344067Z ##[debug]..Evaluating secrets:
    2023-05-19T17:32:53.4367958Z ##[debug]..=> Object
    2023-05-19T17:32:53.4391350Z ##[debug]..Evaluating String:
    2023-05-19T17:32:53.4392907Z ##[debug]..=> 'GH_TOKEN'
    2023-05-19T17:32:53.4399809Z ##[debug]=> '***'
    2023-05-19T17:32:53.4404793Z ##[debug]Result: '***'
    2023-05-19T17:32:53.4437321Z ##[debug]Evaluating: secrets.GIST_ID
    2023-05-19T17:32:53.4437903Z ##[debug]Evaluating Index:
    2023-05-19T17:32:53.4438491Z ##[debug]..Evaluating secrets:
    2023-05-19T17:32:53.4439317Z ##[debug]..=> Object
    2023-05-19T17:32:53.4440307Z ##[debug]..Evaluating String:
    2023-05-19T17:32:53.4440829Z ##[debug]..=> 'GIST_ID'
    2023-05-19T17:32:53.4441695Z ##[debug]=> '***'
    2023-05-19T17:32:53.4442337Z ##[debug]Result: '***'
    2023-05-19T17:32:53.4462719Z ##[debug]Evaluating condition for step: 'Update gist'
    2023-05-19T17:32:53.4510541Z ##[debug]Evaluating: success()
    2023-05-19T17:32:53.4513590Z ##[debug]Evaluating success:
    2023-05-19T17:32:53.4530421Z ##[debug]=> true
    2023-05-19T17:32:53.4534302Z ##[debug]Result: true
    2023-05-19T17:32:53.4579281Z ##[debug]Starting: Update gist
    2023-05-19T17:32:53.4866967Z ##[debug]Loading inputs
    2023-05-19T17:32:53.4870466Z ##[debug]Loading env
    2023-05-19T17:32:53.5004408Z ##[group]Run maxam2017/productive-box@master
    2023-05-19T17:32:53.5004951Z env:
    2023-05-19T17:32:53.5005858Z   GH_TOKEN: ***
    2023-05-19T17:32:53.5006403Z   GIST_ID: ***
    2023-05-19T17:32:53.5006783Z   TIMEZONE: Asia/Seoul
    2023-05-19T17:32:53.5007215Z ##[endgroup]
    2023-05-19T17:32:54.0507722Z /home/runner/work/_actions/maxam2017/productive-box/master/dist/index.js:1
    2023-05-19T17:32:54.0759919Z module.exports=function(e,p){"use strict";var a={};function __webpack_require__(p){if(a[p]){return a[p].exports}var d=a[p]={i:p,l:false,exports:{}};e[p].call(d.exports,d,d.exports,__webpack_require__);d.l=true;return d.exports}__webpack_require__.ab=__dirname+"/";function startup(){return __webpack_require__(429)}return startup()}({2:function(e,p,a){"use strict";const d=a(87);const i=a(118);const t=a(49);const r=(e,p)=>{if(!e&&p){throw new Error("You can't specify a `release` without specifying `platform`")}e=e||d.platform();let a;if(e==="darwin"){if(!p&&d.platform()==="darwin"){p=d.release()}const e=p?Number(p.split(".")[0])>15?"macOS":"OS X":"macOS";a=p?i(p).name:"";return e+(a?" "+a:"")}if(e==="linux"){if(!p&&d.platform()==="linux"){p=d.release()}a=p?p.replace(/^(\d+\.\d+).*/,"$1"):"";return"Linux"+(a?" "+a:"")}if(e==="win32"){if(!p&&d.platform()==="win32"){p=d.release()}a=p?t(p):"";return"Windows"+(a?" "+a:"")}return e};e.exports=r},9:function(e,p,a){var d=a(969);var i=function(){};var t=function(e){return e.setHeader&&typeof e.abort==="function"};var r=function(e){return e.stdio&&Array.isArray(e.stdio)&&e.stdio.length===3};var s=function(e,p,a){if(typeof p==="function")return s(e,null,p);if(!p)p={};a=d(a||i);var o=e._writableState;var m=e._readableState;var l=p.readable||p.readable!==false&&e.readable;var n=p.writable||p.writable!==false&&e.writable;var u=false;var c=function(){if(!e.writable)v()};var v=function(){n=false;if(!l)a.call(e)};var f=function(){l=false;if(!n)a.call(e)};var h=function(p){a.call(e,p?new Error("exited with error code: "+p):null)};var w=function(p){a.call(e,p)};var g=function(){process.nextTick(T)};var T=function(){if(u)return;if(l&&!(m&&(m.ended&&!m.destroyed)))return a.call(e,new Error("premature close"));if(n&&!(o&&(o.ended&&!o.destroyed)))return a.call(e,new Error("premature close"))};var _=function(){e.req.on("finish",v)};if(t(e)){e.on("complete",v);e.on("abort",g);if(e.req)_();else e.on("request",_)}else if(n&&!o){e.on("end",c);e.on("close",c)}if(r(e))e.on("exit",h);e.on("end",f);e.on("finish",v);if(p.error!==false)e.on("error",w);e.on("close",g);return function(){u=true;e.removeListener("complete",v);e.removeListener("abort",g);e.removeListener("request",_);if(e.req)e.req.removeListener("finish",v);e.removeListener("end",c);e.removeListener("close",c);e.removeListener("finish",v);e.removeListener("exit",h);e.removeListener("end",f);e.removeListener("error",w);e.removeListener("close",g)}};e.exports=s},11:function(e){e.exports=wrappy;function wrappy(e,p){if(e&&p)return wrappy(e)(p);if(typeof e!=="function")throw new TypeError("need wrapper function");Object.keys(e).forEach(function(p){wrapper[p]=e[p]});return wrapper;function wrapper(){var p=new Array(arguments.length);for(var a=0;a<p.length;a++){p[a]=arguments[a]}var d=e.apply(this,p);var i=p[p.length-1];if(typeof d==="function"&&d!==i){Object.keys(i).forEach(function(e){d[e]=i[e]})}return d}}},18:function(module){module.exports=eval("require")("encoding")},20:function(e,p,a){"use strict";const d=a(129);const i=a(568);const t=a(881);function spawn(e,p,a){const r=i(e,p,a);const s=d.spawn(r.command,r.args,r.options);t.hookChildProcess(s,r);return s}function spawnSync(e,p,a){const r=i(e,p,a);const s=d.spawnSync(r.command,r.args,r.options);s.error=s.error||t.verifyENOENTSync(s.status,r);return s}e.exports=spawn;e.exports.spawn=spawn;e.exports.sync=spawnSync;e.exports._parse=i;e.exports._enoent=t},39:function(e){"use strict";e.exports=(e=>{e=e||{};const p=e.env||process.env;const a=e.platform||process.platform;if(a!=="win32"){return"PATH"}return Object.keys(p).find(e=>e.toUpperCase()==="PATH")||"Path"})},49:function(e,p,a){"use strict";const d=a(87);const i=a(675);const t=new Map([["10.0","10"],["6.3","8.1"],["6.2","8"],["6.1","7"],["6.0","Vista"],["5.2","Server 2003"],["5.1","XP"],["5.0","2000"],["4.9","ME"],["4.1","98"],["4.0","95"]]);const r=e=>{const p=/\d+\.\d/.exec(e||d.release());if(e&&!p){throw new Error("`release` argument doesn't match `n.n`")}const a=(p||[])[0];if((!e||e===d.release())&&["6.1","6.2","6.3","10.0"].includes(a)){let e;try{e=i.sync("powershell",["(Get-CimInstance -ClassName Win32_OperatingSystem).caption"]).stdout||""}catch(p){e=i.sync("wmic",["os","get","Caption"]).stdout||""}const p=(e.match(/2008|2012|2016|2019/)||[])[0];if(p){return`Server ${p}`}}return t.get(a)};e.exports=r},63:function(e,p,a){const d=a(747);const i=a(622);function log(e){console.log(`[dotenv][DEBUG] ${e}`)}const t="\n";const r=/^\s*([\w.-]+)\s*=\s*(.*)?\s*$/;const s=/\\n/g;const o=/\n|\r|\r\n/;function parse(e,p){const a=Boolean(p&&p.debug);const d={};e.toString().split(o).forEach(function(e,p){const i=e.match(r);if(i!=null){const e=i[1];let p=i[2]||"";const a=p.length-1;const r=p[0]==='"'&&p[a]==='"';const o=p[0]==="'"&&p[a]==="'";if(o||r){p=p.substring(1,a);if(r){p=p.replace(s,t)}}else{p=p.trim()}d[e]=p}else if(a){log(`did not match key and value when parsing line ${p+1}: ${e}`)}});return d}function config(e){let p=i.resolve(process.cwd(),".env");let a="utf8";let t=false;if(e){if(e.path!=null){p=e.path}if(e.encoding!=null){a=e.encoding}if(e.debug!=null){t=true}}try{const e=parse(d.readFileSync(p,{encoding:a}),{debug:t});Object.keys(e).forEach(function(p){if(!Object.prototype.hasOwnProperty.call(process.env,p)){process.env[p]=e[p]}else if(t){log(`"${p}" is already defined in \`process.env\` and will not be overwritten`)}});return{parsed:e}}catch(e){return{error:e}}}e.exports.config=config;e.exports.parse=parse},87:function(e){e.exports=require("os")},118:function(e,p,a){"use strict";const d=a(87);const i=new Map([[19,"Catalina"],[18,"Mojave"],[17,"High Sierra"],[16,"Sierra"],[15,"El Capitan"],[14,"Yosemite"],[13,"Mavericks"],[12,"Mountain Lion"],[11,"Lion"],[10,"Snow Leopard"],[9,"Leopard"],[8,"Tiger"],[7,"Panther"],[6,"Jaguar"],[5,"Puma"]]);const t=e=>{e=Number((e||d.release()).split(".")[0]);return{name:i.get(e),version:"10."+(e-4)}};e.exports=t;e.exports.default=t},120:function(e){"use strict";e.exports.mixin=function mixin(e,p){const a=Object.getOwnPropertyNames(p);for(let d=0;d<a.length;++d){Object.defineProperty(e,a[d],Object.getOwnPropertyDescriptor(p,a[d]))}};e.exports.wrapperSymbol=Symbol("wrapper");e.exports.implSymbol=Symbol("impl");e.exports.wrapperForImpl=function(p){return p[e.exports.wrapperSymbol]};e.exports.implForWrapper=function(p){return p[e.exports.implSymbol]}},129:function(e){e.exports=require("child_process")},151:function(e){"use strict";const p=["stdin","stdout","stderr"];const a=e=>p.some(p=>Boolean(e[p]));e.exports=(e=>{if(!e){return null}if(e.stdio&&a(e)){throw new Error(`It's not possible to provide \`stdio\` in combination with one of ${p.map(e=>`\`${e}\``).join(", ")}`)}if(typeof e.stdio==="string"){return e.stdio}const d=e.stdio||[];if(!Array.isArray(d)){throw new TypeError(`Expected \`stdio\` to be of type \`string\` or \`Array\`, got \`${typeof d}\``)}const i=[];const t=Math.max(d.length,p.length);for(let a=0;a<t;a++){let t=null;if(d[a]!==undefined){t=d[a]}else if(e[p[a]]!==undefined){t=e[p[a]]}i[a]=t}return i})},176:function(e,p,a){"use strict";p.URL=a(880).interface;p.serializeURL=a(856).serializeURL;p.serializeURLOrigin=a(856).serializeURLOrigin;p.basicURLParse=a(856).basicURLParse;p.setTheUsername=a(856).setTheUsername;p.setThePassword=a(856).setThePassword;p.serializeHost=a(856).serializeHost;p.serializeInteger=a(856).serializeInteger;p.parseURL=a(856).parseURL},197:function(e,p,a){e.exports=isexe;isexe.sync=sync;var d=a(747);function isexe(e,p,a){d.stat(e,function(e,d){a(e,e?false:checkStat(d,p))})}function sync(e,p){return checkStat(d.statSync(e),p)}function checkStat(e,p){return e.isFile()&&checkMode(e,p)}function checkMode(e,p){var a=e.mode;var d=e.uid;var i=e.gid;var t=p.uid!==undefined?p.uid:process.getuid&&process.getuid();var r=p.gid!==undefined?p.gid:process.getgid&&process.getgid();var s=parseInt("100",8);var o=parseInt("010",8);var m=parseInt("001",8);var l=s|o;var n=a&m||a&o&&i===r||a&s&&d===t||a&l&&t===0;return n}},211:function(e){e.exports=require("https")},213:function(e){e.exports=require("punycode")},260:function(e,p,a){var d=a(357);var i=a(654);var t=/^win/i.test(process.platform);var r=a(614);if(typeof r!=="function"){r=r.EventEmitter}var s;if(process.__signal_exit_emitter__){s=process.__signal_exit_emitter__}else{s=process.__signal_exit_emitter__=new r;s.count=0;s.emitted={}}if(!s.infinite){s.setMaxListeners(Infinity);s.infinite=true}e.exports=function(e,p){d.equal(typeof e,"function","a callback must be provided for exit handler");if(m===false){load()}var a="exit";if(p&&p.alwaysLast){a="afterexit"}var i=function(){s.removeListener(a,e);if(s.listeners("exit").length===0&&s.listeners("afterexit").length===0){unload()}};s.on(a,e);return i};e.exports.unload=unload;function unload(){if(!m){return}m=false;i.forEach(function(e){try{process.removeListener(e,o[e])}catch(e){}});process.emit=n;process.reallyExit=l;s.count-=1}function emit(e,p,a){if(s.emitted[e]){return}s.emitted[e]=true;s.emit(e,p,a)}var o={};i.forEach(function(e){o[e]=function listener(){var p=process.listeners(e);if(p.length===s.count){unload();emit("exit",null,e);emit("afterexit",null,e);if(t&&e==="SIGHUP"){e="SIGINT"}process.kill(process.pid,e)}}});e.exports.signals=function(){return i};e.exports.load=load;var m=false;function load(){if(m){return}m=true;s.count+=1;i=i.filter(function(e){try{process.on(e,o[e]);return true}catch(e){return false}});process.emit=processEmit;process.reallyExit=processReallyExit}var l=process.reallyExit;function processReallyExit(e){process.exitCode=e||0;emit("exit",process.exitCode,null);emit("afterexit",process.exitCode,null);l.call(process,process.exitCode)}var n=process.emit;function processEmit(e,p){if(e==="exit"){if(p!==undefined){process.exitCode=p}var a=n.apply(this,arguments);emit("exit",process.exitCode,null);emit("afterexit",process.exitCode,null);return a}else{return n.apply(this,arguments)}}},276:function(e,p){"use strict";p.__esModule=true;p.userInfoQuery="\n  query {\n    viewer {\n      login\n      id\n    }\n  }\n";p.createContributedRepoQuery=function(e){return'\n  query {\n    user(login: "'+e+'") {\n      repositoriesContributedTo(last: 100, includeUserRepositories: true) {\n        nodes {\n          isFork\n          name\n          owner {\n            login\n          }\n        }\n      }\n    }\n  }\n'};p.createCommittedDateQuery=function(e,p,a){return'\n  query {\n    repository(owner: "'+a+'", name: "'+p+'") {\n      defaultBranchRef {\n        target {\n          ... on Commit {\n            history(first: 100, author: { id: "'+e+'" }) {\n              edges {\n                node {\n                  committedDate\n                }\n              }\n            }\n          }\n        }\n      }\n    }\n  }\n'}},280:function(e){e.exports=register;function register(e,p,a,d){if(typeof a!=="function"){throw new Error("method for before hook must be a function")}if(!d){d={}}if(Array.isArray(p)){return p.reverse().reduce(function(p,a){return register.bind(null,e,a,p,d)},a)()}return Promise.resolve().then(function(){if(!e.registry[p]){return a(d)}return e.registry[p].reduce(function(e,p){return p.hook.bind(null,e,d)},a)()})}},299:function(e,p){"use strict";Object.defineProperty(p,"__esModule",{value:true});const a="2.0.2";function normalizePaginatedListResponse(e,p,a){const d="total_count"in a.data&&!("url"in a.data);if(!d)return;const i=a.data.incomplete_results;const t=a.data.repository_selection;const r=a.data.total_count;delete a.data.incomplete_results;delete a.data.repository_selection;delete a.data.total_count;const s=Object.keys(a.data)[0];const o=a.data[s];a.data=o;if(typeof i!=="undefined"){a.data.incomplete_results=i}if(typeof t!=="undefined"){a.data.repository_selection=t}a.data.total_count=r}function iterator(e,p,a){const d=e.request.endpoint(p,a);const i=d.method;const t=d.headers;let r=d.url;return{[Symbol.asyncIterator]:()=>({next(){if(!r){return Promise.resolve({done:true})}return e.request({method:i,url:r,headers:t}).then(p=>{normalizePaginatedListResponse(e,r,p);r=((p.headers.link||"").match(/<([^>]+)>;\s*rel="next"/)||[])[1];return{value:p}})}})}}function paginate(e,p,a,d){if(typeof a==="function"){d=a;a=undefined}return gather(e,[],iterator(e,p,a)[Symbol.asyncIterator](),d)}function gather(e,p,a,d){return a.next().then(i=>{if(i.done){return p}let t=false;function done(){t=true}p=p.concat(d?d(i.value,done):i.value.data);if(t){return p}return gather(e,p,a,d)})}function paginateRest(e){return{paginate:Object.assign(paginate.bind(null,e),{iterator:iterator.bind(null,e)})}}paginateRest.VERSION=a;p.paginateRest=paginateRest},323:function(e){"use strict";var p=e.exports=function(e){return e!==null&&typeof e==="object"&&typeof e.pipe==="function"};p.writable=function(e){return p(e)&&e.writable!==false&&typeof e._write==="function"&&typeof e._writableState==="object"};p.readable=function(e){return p(e)&&e.readable!==false&&typeof e._read==="function"&&typeof e._readableState==="object"};p.duplex=function(e){return p.writable(e)&&p.readable(e)};p.transform=function(e){return p.duplex(e)&&typeof e._transform==="function"&&typeof e._transformState==="object"}},331:function(e,p){"use strict";p.__esModule=true;function generateBarChart(e,p){var a="░▏▎▍▌▋▊▉█";var d=Math.floor(p*8*e/100);var i=Math.floor(d/8);if(i>=p){return a.substring(8,9).repeat(p)}var t=d%8;return[a.substring(8,9).repeat(i),a.substring(t,t+1)].join("").padEnd(p,a.substring(0,1))}p["default"]=generateBarChart},357:function(e){e.exports=require("assert")},385:function(e,p,a){"use strict";Object.defineProperty(p,"__esModule",{value:true});function _interopDefault(e){return e&&typeof e==="object"&&"default"in e?e["default"]:e}var d=_interopDefault(a(696));var i=a(796);function lowercaseKeys(e){if(!e){return{}}return Object.keys(e).reduce((p,a)=>{p[a.toLowerCase()]=e[a];return p},{})}function mergeDeep(e,p){const a=Object.assign({},e);Object.keys(p).forEach(i=>{if(d(p[i])){if(!(i in e))Object.assign(a,{[i]:p[i]});else a[i]=mergeDeep(e[i],p[i])}else{Object.assign(a,{[i]:p[i]})}});return a}function merge(e,p,a){if(typeof p==="string"){let[e,d]=p.split(" ");a=Object.assign(d?{method:e,url:d}:{url:e},a)}else{a=Object.assign({},p)}a.headers=lowercaseKeys(a.headers);const d=mergeDeep(e||{},a);if(e&&e.mediaType.previews.length){d.mediaType.previews=e.mediaType.previews.filter(e=>!d.mediaType.previews.includes(e)).concat(d.mediaType.previews)}d.mediaType.previews=d.mediaType.previews.map(e=>e.replace(/-preview/,""));return d}function addQueryParameters(e,p){const a=/\?/.test(e)?"&":"?";const d=Object.keys(p);if(d.length===0){return e}return e+a+d.map(e=>{if(e==="q"){return"q="+p.q.split("+").map(encodeURIComponent).join("+")}return`${e}=${encodeURIComponent(p[e])}`}).join("&")}const t=/\{[^}]+\}/g;function removeNonChars(e){return e.replace(/^\W+|\W+$/g,"").split(/,/)}function extractUrlVariableNames(e){const p=e.match(t);if(!p){return[]}return p.map(removeNonChars).reduce((e,p)=>e.concat(p),[])}function omit(e,p){return Object.keys(e).filter(e=>!p.includes(e)).reduce((p,a)=>{p[a]=e[a];return p},{})}function encodeReserved(e){return e.split(/(%[0-9A-Fa-f]{2})/g).map(function(e){if(!/%[0-9A-Fa-f]/.test(e)){e=encodeURI(e).replace(/%5B/g,"[").replace(/%5D/g,"]")}return e}).join("")}function encodeUnreserved(e){return encodeURIComponent(e).replace(/[!'()*]/g,function(e){return"%"+e.charCodeAt(0).toString(16).toUpperCase()})}function encodeValue(e,p,a){p=e==="+"||e==="#"?encodeReserved(p):encodeUnreserved(p);if(a){return encodeUnreserved(a)+"="+p}else{return p}}function isDefined(e){return e!==undefined&&e!==null}function isKeyOperator(e){return e===";"||e==="&"||e==="?"}function getValues(e,p,a,d){var i=e[a],t=[];if(isDefined(i)&&i!==""){if(typeof i==="string"||typeof i==="number"||typeof i==="boolean"){i=i.toString();if(d&&d!=="*"){i=i.substring(0,parseInt(d,10))}t.push(encodeValue(p,i,isKeyOperator(p)?a:""))}else{if(d==="*"){if(Array.isArray(i)){i.filter(isDefined).forEach(function(e){t.push(encodeValue(p,e,isKeyOperator(p)?a:""))})}else{Object.keys(i).forEach(function(e){if(isDefined(i[e])){t.push(encodeValue(p,i[e],e))}})}}else{const e=[];if(Array.isArray(i)){i.filter(isDefined).forEach(function(a){e.push(encodeValue(p,a))})}else{Object.keys(i).forEach(function(a){if(isDefined(i[a])){e.push(encodeUnreserved(a));e.push(encodeValue(p,i[a].toString()))}})}if(isKeyOperator(p)){t.push(encodeUnreserved(a)+"="+e.join(","))}else if(e.length!==0){t.push(e.join(","))}}}}else{if(p===";"){if(isDefined(i)){t.push(encodeUnreserved(a))}}else if(i===""&&(p==="&"||p==="?")){t.push(encodeUnreserved(a)+"=")}else if(i===""){t.push("")}}return t}function parseUrl(e){return{expand:expand.bind(null,e)}}function expand(e,p){var a=["+","#",".","/",";","?","&"];return e.replace(/\{([^\{\}]+)\}|([^\{\}]+)/g,function(e,d,i){if(d){let e="";const i=[];if(a.indexOf(d.charAt(0))!==-1){e=d.charAt(0);d=d.substr(1)}d.split(/,/g).forEach(function(a){var d=/([^:\*]*)(?::(\d+)|(\*))?/.exec(a);i.push(getValues(p,e,d[1],d[2]||d[3]))});if(e&&e!=="+"){var t=",";if(e==="?"){t="&"}else if(e!=="#"){t=e}return(i.length!==0?e:"")+i.join(t)}else{return i.join(",")}}else{return encodeReserved(i)}})}function parse(e){let p=e.method.toUpperCase();let a=(e.url||"/").replace(/:([a-z]\w+)/g,"{+$1}");let d=Object.assign({},e.headers);let i;let t=omit(e,["method","baseUrl","url","headers","request","mediaType"]);const r=extractUrlVariableNames(a);a=parseUrl(a).expand(t);if(!/^http/.test(a)){a=e.baseUrl+a}const s=Object.keys(e).filter(e=>r.includes(e)).concat("baseUrl");const o=omit(t,s);const m=/application\/octet-stream/i.test(d.accept);if(!m){if(e.mediaType.format){d.accept=d.accept.split(/,/).map(p=>p.replace(/application\/vnd(\.\w+)(\.v3)?(\.\w+)?(\+json)?$/,`application/vnd$1$2.${e.mediaType.format}`)).join(",")}if(e.mediaType.previews.length){const p=d.accept.match(/[\w-]+(?=-preview)/g)||[];d.accept=p.concat(e.mediaType.previews).map(p=>{const a=e.mediaType.format?`.${e.mediaType.format}`:"+json";return`application/vnd.github.${p}-preview${a}`}).join(",")}}if(["GET","HEAD"].includes(p)){a=addQueryParameters(a,o)}else{if("data"in o){i=o.data}else{if(Object.keys(o).length){i=o}else{d["content-length"]=0}}}if(!d["content-type"]&&typeof i!=="undefined"){d["content-type"]="application/json; charset=utf-8"}if(["PATCH","PUT"].includes(p)&&typeof i==="undefined"){i=""}return Object.assign({method:p,url:a,headers:d},typeof i!=="undefined"?{body:i}:null,e.request?{request:e.request}:null)}function endpointWithDefaults(e,p,a){return parse(merge(e,p,a))}function withDefaults(e,p){const a=merge(e,p);const d=endpointWithDefaults.bind(null,a);return Object.assign(d,{DEFAULTS:a,defaults:withDefaults.bind(null,a),merge:merge.bind(null,a),parse:parse})}const r="6.0.0";const s=`octokit-endpoint.js/${r} ${i.getUserAgent()}`;const o={method:"GET",baseUrl:"https://api.github.com",headers:{accept:"application/vnd.github.v3+json","user-agent":s},mediaType:{format:"",previews:[]}};const m=withDefaults(null,o);p.endpoint=m},389:function(e,p,a){"use strict";const d=a(747);const i=a(866);function readShebang(e){const p=150;let a;if(Buffer.alloc){a=Buffer.alloc(p)}else{a=new Buffer(p);a.fill(0)}let t;try{t=d.openSync(e,"r");d.readSync(t,a,0,p,0);d.closeSync(t)}catch(e){}return i(a.toString())}e.exports=readShebang},406:function(e,p,a){"use strict";const d=a(622);const i=a(39);e.exports=(e=>{e=Object.assign({cwd:process.cwd(),path:process.env[i()]},e);let p;let a=d.resolve(e.cwd);const t=[];while(p!==a){t.push(d.join(a,"node_modules/.bin"));p=a;a=d.resolve(a,"..")}t.push(d.dirname(process.execPath));return t.concat(e.path).join(d.delimiter)});e.exports.env=(p=>{p=Object.assign({env:process.env},p);const a=Object.assign({},p.env);const d=i({env:a});p.path=a[d];a[d]=e.exports(p);return a})},413:function(e){e.exports=require("stream")},418:function(e,p,a){"use strict";const d=a(669);let i;if(typeof d.getSystemErrorName==="function"){e.exports=d.getSystemErrorName}else{try{i=process.binding("uv");if(typeof i.errname!=="function"){throw new TypeError("uv.errname is not a function")}}catch(e){console.error("execa/lib/errname: unable to establish process.binding('uv')",e);i=null}e.exports=(e=>errname(i,e))}e.exports.__test__=errname;function errname(e,p){if(e){return e.errname(p)}if(!(p<0)){throw new Error("err >= 0")}return`Unknown system error ${p}`}},429:function(e,p,a){"use strict";var d=this&&this.__awaiter||function(e,p,a,d){function adopt(e){return e instanceof a?e:new a(function(p){p(e)})}return new(a||(a=Promise))(function(a,i){function fulfilled(e){try{step(d.next(e))}catch(e){i(e)}}function rejected(e){try{step(d["throw"](e))}catch(e){i(e)}}function step(e){e.done?a(e.value):adopt(e.value).then(fulfilled,rejected)}step((d=d.apply(e,p||[])).next())})};var i=this&&this.__generator||function(e,p){var a={label:0,sent:function(){if(t[0]&1)throw t[1];return t[1]},trys:[],ops:[]},d,i,t,r;return r={next:verb(0),throw:verb(1),return:verb(2)},typeof Symbol==="function"&&(r[Symbol.iterator]=function(){return this}),r;function verb(e){return function(p){return step([e,p])}}function step(r){if(d)throw new TypeError("Generator is already executing.");while(a)try{if(d=1,i&&(t=r[0]&2?i["return"]:r[0]?i["throw"]||((t=i["return"])&&t.call(i),0):i.next)&&!(t=t.call(i,r[1])).done)return t;if(i=0,t)r=[r[0]&2,t.value];switch(r[0]){case 0:case 1:t=r;break;case 4:a.label++;return{value:r[1],done:false};case 5:a.label++;i=r[1];r=[0];continue;case 7:r=a.ops.pop();a.trys.pop();continue;default:if(!(t=a.trys,t=t.length>0&&t[t.length-1])&&(r[0]===6||r[0]===2)){a=0;continue}if(r[0]===3&&(!t||r[1]>t[0]&&r[1]<t[3])){a.label=r[1];break}if(r[0]===6&&a.label<t[1]){a.label=t[1];t=r;break}if(t&&a.label<t[2]){a.label=t[2];a.ops.push(r);break}if(t[2])a.ops.pop();a.trys.pop();continue}r=p.call(e,a)}catch(e){r=[6,e];i=0}finally{d=t=0}if(r[0]&5)throw r[1];return{value:r[0]?r[1]:void 0,done:true}}};var t=this&&this.__spreadArrays||function(){for(var e=0,p=0,a=arguments.length;p<a;p++)e+=arguments[p].length;for(var d=Array(e),i=0,p=0;p<a;p++)for(var t=arguments[p],r=0,s=t.length;r<s;r++,i++)d[i]=t[r];return d};p.__esModule=true;var r=a(622);var s=a(63);var o=a(889);var m=a(749);var l=a(331);var n=a(276);s.config({path:r.resolve(__dirname,"../.env")});(function(){return d(void 0,void 0,void 0,function(){var e,p,a,d,r,s,u,c,v,f,h,w,g,T,_,b,E,y;var S;var D,N,V,A;return i(this,function(i){switch(i.label){case 0:return[4,m["default"](n.userInfoQuery)["catch"](function(e){return console.error("Unable to get username and id\n"+e)})];case 1:e=i.sent();p=(D=e===null||e===void 0?void 0:e.data)===null||D===void 0?void 0:D.viewer,a=p.login,d=p.id;r=n.createContributedRepoQuery(a);return[4,m["default"](r)["catch"](function(e){return console.error("Unable to get the contributed repo\n"+e)})];case 2:s=i.sent();u=(A=(V=(N=s===null||s===void 0?void 0:s.data)===null||N===void 0?void 0:N.user)===null||V===void 0?void 0:V.repositoriesContributedTo)===null||A===void 0?void 0:A.nodes.filter(function(e){return!(e===null||e===void 0?void 0:e.isFork)}).map(function(e){var p;return{name:e===null||e===void 0?void 0:e.name,owner:(p=e===null||e===void 0?void 0:e.owner)===null||p===void 0?void 0:p.login}});return[4,Promise.all(u.map(function(e){var p=e.name,a=e.owner;return m["default"](n.createCommittedDateQuery(d,p,a))}))["catch"](function(e){return console.error("Unable to get the commit info\n"+e)})];case 3:c=i.sent();if(!c)return[2];v=0;f=0;h=0;w=0;c.forEach(function(e){var p,a,d,i,t;(t=(i=(d=(a=(p=e===null||e===void 0?void 0:e.data)===null||p===void 0?void 0:p.repository)===null||a===void 0?void 0:a.defaultBranchRef)===null||d===void 0?void 0:d.target)===null||i===void 0?void 0:i.history)===null||t===void 0?void 0:t.edges.forEach(function(e){var p;var a=(p=e===null||e===void 0?void 0:e.node)===null||p===void 0?void 0:p.committedDate;var d=new Date(a).toLocaleTimeString("en-US",{hour12:false,timeZone:process.env.TIMEZONE});var i=+d.split(":")[0];if(i>=6&&i<12)v++;if(i>=12&&i<18)f++;if(i>=18&&i<24)h++;if(i>=0&&i<6)w++})});g=v+f+h+w;if(!g)return[2];T=[{label:"🌞 Morning",commits:v},{label:"🌆 Daytime",commits:f},{label:"🌃 Evening",commits:h},{label:"🌙 Night",commits:w}];_=T.reduce(function(e,p){var a=p.commits/g*100;var d=[(""+p.label).padEnd(10),(p.commits.toString().padStart(5)+" commits").padEnd(14),l["default"](a,21),String(a.toFixed(1)).padStart(5)+"%"];return t(e,[d.join(" ")])},[]);b=new o.Octokit({auth:"token "+process.env.GH_TOKEN});return[4,b.gists.get({gist_id:process.env.GIST_ID})["catch"](function(e){return console.error("Unable to update gist\n"+e)})];case 4:E=i.sent();if(!E)return[2];y=Object.keys(E.data.files)[0];return[4,b.gists.update({gist_id:process.env.GIST_ID,files:(S={},S[y]={filename:v+f>h+w?"I'm an early 🐤":"I'm a night 🦉",content:_.join("\n")},S)})];case 5:i.sent();return[2]}})})})()},448:function(e,p,a){"use strict";Object.defineProperty(p,"__esModule",{value:true});var d=a(796);var i=a(523);var t=a(753);var r=a(898);var s=a(813);const o="2.5.0";class Octokit{constructor(e={}){const p=new i.Collection;const a={baseUrl:t.request.endpoint.DEFAULTS.baseUrl,headers:{},request:Object.assign({},e.request,{hook:p.bind(null,"request")}),mediaType:{previews:[],format:""}};a.headers["user-agent"]=[e.userAgent,`octokit-core.js/${o} ${d.getUserAgent()}`].filter(Boolean).join(" ");if(e.baseUrl){a.baseUrl=e.baseUrl}if(e.previews){a.mediaType.previews=e.previews}if(e.timeZone){a.headers["time-zone"]=e.timeZone}this.request=t.request.defaults(a);this.graphql=r.withCustomRequest(this.request).defaults(a);this.log=Object.assign({debug:()=>{},info:()=>{},warn:console.warn.bind(console),error:console.error.bind(console)},e.log);this.hook=p;if(!e.authStrategy){if(!e.auth){this.auth=(async()=>({type:"unauthenticated"}))}else{const a=s.createTokenAuth(e.auth);p.wrap("request",a.hook);this.auth=a}}else{const a=e.authStrategy(Object.assign({request:this.request},e.auth));p.wrap("request",a.hook);this.auth=a}const m=this.constructor;m.plugins.forEach(p=>{Object.assign(this,p(this,e))})}static defaults(e){const p=class extends(this){constructor(...p){const a=p[0]||{};super(Object.assign({},e,a,a.userAgent&&e.userAgent?{userAgent:`${a.userAgent} ${e.userAgent}`}:null))}};return p}static plugin(e,...p){var a;if(e instanceof Array){console.warn(["Passing an array of plugins to Octokit.plugin() has been deprecated.","Instead of:","  Octokit.plugin([plugin1, plugin2, ...])","Use:","  Octokit.plugin(plugin1, plugin2, ...)"].join("\n"))}const d=this.plugins;let i=[...e instanceof Array?e:[e],...p];const t=(a=class extends(this){},a.plugins=d.concat(i.filter(e=>!d.includes(e))),a);return t}}Octokit.VERSION=o;Octokit.plugins=[];p.Octokit=Octokit},453:function(e,p,a){var d=a(969);var i=a(9);var t=a(747);var r=function(){};var s=/^v?\.0/.test(process.version);var o=function(e){return typeof e==="function"};var m=function(e){if(!s)return false;if(!t)return false;return(e instanceof(t.ReadStream||r)||e instanceof(t.WriteStream||r))&&o(e.close)};var l=function(e){return e.setHeader&&o(e.abort)};var n=function(e,p,a,t){t=d(t);var s=false;e.on("close",function(){s=true});i(e,{readable:p,writable:a},function(e){if(e)return t(e);s=true;t()});var n=false;return function(p){if(s)return;if(n)return;n=true;if(m(e))return e.close(r);if(l(e))return e.abort();if(o(e.destroy))return e.destroy();t(p||new Error("stream was destroyed"))}};var u=function(e){e()};var c=function(e,p){return e.pipe(p)};var v=function(){var e=Array.prototype.slice.call(arguments);var p=o(e[e.length-1]||r)&&e.pop()||r;if(Array.isArray(e[0]))e=e[0];if(e.length<2)throw new Error("pump requires two streams per minimum");var a;var d=e.map(function(i,t){var r=t<e.length-1;var s=t>0;return n(i,r,s,function(e){if(!a)a=e;if(e)d.forEach(u);if(r)return;d.forEach(u);p(a)})});return e.reduce(c)};e.exports=v},454:function(e,p,a){"use strict";Object.defineProperty(p,"__esModule",{value:true});function _interopDefault(e){return e&&typeof e==="object"&&"default"in e?e["default"]:e}var d=_interopDefault(a(413));var i=_interopDefault(a(605));var t=_interopDefault(a(835));var r=_interopDefault(a(176));var s=_interopDefault(a(211));var o=_interopDefault(a(761));const m=d.Readable;const l=Symbol("buffer");const n=Symbol("type");class Blob{constructor(){this[n]="";const e=arguments[0];const p=arguments[1];const a=[];let d=0;if(e){const p=e;const i=Number(p.length);for(let e=0;e<i;e++){const i=p[e];let t;if(i instanceof Buffer){t=i}else if(ArrayBuffer.isView(i)){t=Buffer.from(i.buffer,i.byteOffset,i.byteLength)}else if(i instanceof ArrayBuffer){t=Buffer.from(i)}else if(i instanceof Blob){t=i[l]}else{t=Buffer.from(typeof i==="string"?i:String(i))}d+=t.length;a.push(t)}}this[l]=Buffer.concat(a);let i=p&&p.type!==undefined&&String(p.type).toLowerCase();if(i&&!/[^\u0020-\u007E]/.test(i)){this[n]=i}}get size(){return this[l].length}get type(){return this[n]}text(){return Promise.resolve(this[l].toString())}arrayBuffer(){const e=this[l];const p=e.buffer.slice(e.byteOffset,e.byteOffset+e.byteLength);return Promise.resolve(p)}stream(){const e=new m;e._read=function(){};e.push(this[l]);e.push(null);return e}toString(){return"[object Blob]"}slice(){const e=this.size;const p=arguments[0];const a=arguments[1];let d,i;if(p===undefined){d=0}else if(p<0){d=Math.max(e+p,0)}else{d=Math.min(p,e)}if(a===undefined){i=e}else if(a<0){i=Math.max(e+a,0)}else{i=Math.min(a,e)}const t=Math.max(i-d,0);const r=this[l];const s=r.slice(d,d+t);const o=new Blob([],{type:arguments[2]});o[l]=s;return o}}Object.defineProperties(Blob.prototype,{size:{enumerable:true},type:{enumerable:true},slice:{enumerable:true}});Object.defineProperty(Blob.prototype,Symbol.toStringTag,{value:"Blob",writable:false,enumerable:false,configurable:true});function FetchError(e,p,a){Error.call(this,e);this.message=e;this.type=p;if(a){this.code=this.errno=a.code}Error.captureStackTrace(this,this.constructor)}FetchError.prototype=Object.create(Error.prototype);FetchError.prototype.constructor=FetchError;FetchError.prototype.name="FetchError";let u;try{u=a(18).convert}catch(e){}const c=Symbol("Body internals");const v=d.PassThrough;function Body(e){var p=this;var a=arguments.length>1&&arguments[1]!==undefined?arguments[1]:{},i=a.size;let t=i===undefined?0:i;var r=a.timeout;let s=r===undefined?0:r;if(e==null){e=null}else if(isURLSearchParams(e)){e=Buffer.from(e.toString())}else if(isBlob(e))   ;else if(Buffer.isBuffer(e))   ;else if(Object.prototype.toString.call(e)==="[object ArrayBuffer]"){e=Buffer.from(e)}else if(ArrayBuffer.isView(e)){e=Buffer.from(e.buffer,e.byteOffset,e.byteLength)}else if(e instanceof d)   ;else{e=Buffer.from(String(e))}this[c]={body:e,disturbed:false,error:null};this.size=t;this.timeout=s;if(e instanceof d){e.on("error",function(e){const a=e.name==="AbortError"?e:new FetchError(`Invalid response body while trying to fetch ${p.url}: ${e.message}`,"system",e);p[c].error=a})}}Body.prototype={get body(){return this[c].body},get bodyUsed(){return this[c].disturbed},arrayBuffer(){return consumeBody.call(this).then(function(e){return e.buffer.slice(e.byteOffset,e.byteOffset+e.byteLength)})},blob(){let e=this.headers&&this.headers.get("content-type")||"";return consumeBody.call(this).then(function(p){return Object.assign(new Blob([],{type:e.toLowerCase()}),{[l]:p})})},json(){var e=this;return consumeBody.call(this).then(function(p){try{return JSON.parse(p.toString())}catch(p){return Body.Promise.reject(new FetchError(`invalid json response body at ${e.url} reason: ${p.message}`,"invalid-json"))}})},text(){return consumeBody.call(this).then(function(e){return e.toString()})},buffer(){return consumeBody.call(this)},textConverted(){var e=this;return consumeBody.call(this).then(function(p){return convertBody(p,e.headers)})}};Object.defineProperties(Body.prototype,{body:{enumerable:true},bodyUsed:{enumerable:true},arrayBuffer:{enumerable:true},blob:{enumerable:true},json:{enumerable:true},text:{enumerable:true}});Body.mixIn=function(e){for(const p of Object.getOwnPropertyNames(Body.prototype)){if(!(p in e)){const a=Object.getOwnPropertyDescriptor(Body.prototype,p);Object.defineProperty(e,p,a)}}};function consumeBody(){var e=this;if(this[c].disturbed){return Body.Promise.reject(new TypeError(`body used already for: ${this.url}`))}this[c].disturbed=true;if(this[c].error){return Body.Promise.reject(this[c].error)}let p=this.body;if(p===null){return Body.Promise.resolve(Buffer.alloc(0))}if(isBlob(p)){p=p.stream()}if(Buffer.isBuffer(p)){return Body.Promise.resolve(p)}if(!(p instanceof d)){return Body.Promise.resolve(Buffer.alloc(0))}let a=[];let i=0;let t=false;return new Body.Promise(function(d,r){let s;if(e.timeout){s=setTimeout(function(){t=true;r(new FetchError(`Response timeout while trying to fetch ${e.url} (over ${e.timeout}ms)`,"body-timeout"))},e.timeout)}p.on("error",function(p){if(p.name==="AbortError"){t=true;r(p)}else{r(new FetchError(`Invalid response body while trying to fetch ${e.url}: ${p.message}`,"system",p))}});p.on("data",function(p){if(t||p===null){return}if(e.size&&i+p.length>e.size){t=true;r(new FetchError(`content size at ${e.url} over limit: ${e.size}`,"max-size"));return}i+=p.length;a.push(p)});p.on("end",function(){if(t){return}clearTimeout(s);try{d(Buffer.concat(a,i))}catch(p){r(new FetchError(`Could not create Buffer from response body for ${e.url}: ${p.message}`,"system",p))}})})}function convertBody(e,p){if(typeof u!=="function"){throw new Error("The package `encoding` must be installed to use the textConverted() function")}const a=p.get("content-type");let d="utf-8";let i,t;if(a){i=/charset=([^;]*)/i.exec(a)}t=e.slice(0,1024).toString();if(!i&&t){i=/<meta.+?charset=(['"])(.+?)\1/i.exec(t)}if(!i&&t){i=/<meta[\s]+?http-equiv=(['"])content-type\1[\s]+?content=(['"])(.+?)\2/i.exec(t);if(!i){i=/<meta[\s]+?content=(['"])(.+?)\1[\s]+?http-equiv=(['"])content-type\3/i.exec(t);if(i){i.pop()}}if(i){i=/charset=(.*)/i.exec(i.pop())}}if(!i&&t){i=/<\?xml.+?encoding=(['"])(.+?)\1/i.exec(t)}if(i){d=i.pop();if(d==="gb2312"||d==="gbk"){d="gb18030"}}return u(e,"UTF-8",d).toString()}function isURLSearchParams(e){if(typeof e!=="object"||typeof e.append!=="function"||typeof e.delete!=="function"||typeof e.get!=="function"||typeof e.getAll!=="function"||typeof e.has!=="function"||typeof e.set!=="function"){return false}return e.constructor.name==="URLSearchParams"||Object.prototype.toString.call(e)==="[object URLSearchParams]"||typeof e.sort==="function"}function isBlob(e){return typeof e==="object"&&typeof e.arrayBuffer==="function"&&typeof e.type==="string"&&typeof e.stream==="function"&&typeof e.constructor==="function"&&typeof e.constructor.name==="string"&&/^(Blob|File)$/.test(e.constructor.name)&&/^(Blob|File)$/.test(e[Symbol.toStringTag])}function clone(e){let p,a;let i=e.body;if(e.bodyUsed){throw new Error("cannot clone body after it is used")}if(i instanceof d&&typeof i.getBoundary!=="function"){p=new v;a=new v;i.pipe(p);i.pipe(a);e[c].body=p;i=a}return i}function extractContentType(e){if(e===null){return null}else if(typeof e==="string"){return"text/plain;charset=UTF-8"}else if(isURLSearchParams(e)){return"application/x-www-form-urlencoded;charset=UTF-8"}else if(isBlob(e)){return e.type||null}else if(Buffer.isBuffer(e)){return null}else if(Object.prototype.toString.call(e)==="[object ArrayBuffer]"){return null}else if(ArrayBuffer.isView(e)){return null}else if(typeof e.getBoundary==="function"){return`multipart/form-data;boundary=${e.getBoundary()}`}else if(e instanceof d){return null}else{return"text/plain;charset=UTF-8"}}function getTotalBytes(e){const p=e.body;if(p===null){return 0}else if(isBlob(p)){return p.size}else if(Buffer.isBuffer(p)){return p.length}else if(p&&typeof p.getLengthSync==="function"){if(p._lengthRetrievers&&p._lengthRetrievers.length==0||p.hasKnownLength&&p.hasKnownLength()){return p.getLengthSync()}return null}else{return null}}function writeToStream(e,p){const a=p.body;if(a===null){e.end()}else if(isBlob(a)){a.stream().pipe(e)}else if(Buffer.isBuffer(a)){e.write(a);e.end()}else{a.pipe(e)}}Body.Promise=global.Promise;const f=/[^\^_`a-zA-Z\-0-9!#$%&'*+.|~]/;const h=/[^\t\x20-\x7e\x80-\xff]/;function validateName(e){e=`${e}`;if(f.test(e)||e===""){throw new TypeError(`${e} is not a legal HTTP header name`)}}function validateValue(e){e=`${e}`;if(h.test(e)){throw new TypeError(`${e} is not a legal HTTP header value`)}}function find(e,p){p=p.toLowerCase();for(const a in e){if(a.toLowerCase()===p){return a}}return undefined}const w=Symbol("map");class Headers{constructor(){let e=arguments.length>0&&arguments[0]!==undefined?arguments[0]:undefined;this[w]=Object.create(null);if(e instanceof Headers){const p=e.raw();const a=Object.keys(p);for(const e of a){for(const a of p[e]){this.append(e,a)}}return}if(e==null)   ;else if(typeof e==="object"){const p=e[Symbol.iterator];if(p!=null){if(typeof p!=="function"){throw new TypeError("Header pairs must be iterable")}const a=[];for(const p of e){if(typeof p!=="object"||typeof p[Symbol.iterator]!=="function"){throw new TypeError("Each header pair must be iterable")}a.push(Array.from(p))}for(const e of a){if(e.length!==2){throw new TypeError("Each header pair must be a name/value tuple")}this.append(e[0],e[1])}}else{for(const p of Object.keys(e)){const a=e[p];this.append(p,a)}}}else{throw new TypeError("Provided initializer must be an object")}}get(e){e=`${e}`;validateName(e);const p=find(this[w],e);if(p===undefined){return null}return this[w][p].join(", ")}forEach(e){let p=arguments.length>1&&arguments[1]!==undefined?arguments[1]:undefined;let a=getHeaders(this);let d=0;while(d<a.length){var i=a[d];const t=i[0],r=i[1];e.call(p,r,t,this);a=getHeaders(this);d++}}set(e,p){e=`${e}`;p=`${p}`;validateName(e);validateValue(p);const a=find(this[w],e);this[w][a!==undefined?a:e]=[p]}append(e,p){e=`${e}`;p=`${p}`;validateName(e);validateValue(p);const a=find(this[w],e);if(a!==undefined){this[w][a].push(p)}else{this[w][e]=[p]}}has(e){e=`${e}`;validateName(e);return find(this[w],e)!==undefined}delete(e){e=`${e}`;validateName(e);const p=find(this[w],e);if(p!==undefined){delete this[w][p]}}raw(){return this[w]}keys(){return createHeadersIterator(this,"key")}values(){return createHeadersIterator(this,"value")}[Symbol.iterator](){return createHeadersIterator(this,"key+value")}}Headers.prototype.entries=Headers.prototype[Symbol.iterator];Object.defineProperty(Headers.prototype,Symbol.toStringTag,{value:"Headers",writable:false,enumerable:false,configurable:true});Object.defineProperties(Headers.prototype,{get:{enumerable:true},forEach:{enumerable:true},set:{enumerable:true},append:{enumerable:true},has:{enumerable:true},delete:{enumerable:true},keys:{enumerable:true},values:{enumerable:true},entries:{enumerable:true}});function getHeaders(e){let p=arguments.length>1&&arguments[1]!==undefined?arguments[1]:"key+value";const a=Object.keys(e[w]).sort();return a.map(p==="key"?function(e){return e.toLowerCase()}:p==="value"?function(p){return e[w][p].join(", ")}:function(p){return[p.toLowerCase(),e[w][p].join(", ")]})}const g=Symbol("internal");function createHeadersIterator(e,p){const a=Object.create(T);a[g]={target:e,kind:p,index:0};return a}const T=Object.setPrototypeOf({next(){if(!this||Object.getPrototypeOf(this)!==T){throw new TypeError("Value of `this` is not a HeadersIterator")}var e=this[g];const p=e.target,a=e.kind,d=e.index;const i=getHeaders(p,a);const t=i.length;if(d>=t){return{value:undefined,done:true}}this[g].index=d+1;return{value:i[d],done:false}}},Object.getPrototypeOf(Object.getPrototypeOf([][Symbol.iterator]())));Object.defineProperty(T,Symbol.toStringTag,{value:"HeadersIterator",writable:false,enumerable:false,configurable:true});function exportNodeCompatibleHeaders(e){const p=Object.assign({__proto__:null},e[w]);const a=find(e[w],"Host");if(a!==undefined){p[a]=p[a][0]}return p}function createHeadersLenient(e){const p=new Headers;for(const a of Object.keys(e)){if(f.test(a)){continue}if(Array.isArray(e[a])){for(const d of e[a]){if(h.test(d)){continue}if(p[w][a]===undefined){p[w][a]=[d]}else{p[w][a].push(d)}}}else if(!h.test(e[a])){p[w][a]=[e[a]]}}return p}const _=Symbol("Response internals");const b=i.STATUS_CODES;class Response{constructor(){let e=arguments.length>0&&arguments[0]!==undefined?arguments[0]:null;let p=arguments.length>1&&arguments[1]!==undefined?arguments[1]:{};Body.call(this,e,p);const a=p.status||200;const d=new Headers(p.headers);if(e!=null&&!d.has("Content-Type")){const p=extractContentType(e);if(p){d.append("Content-Type",p)}}this[_]={url:p.url,status:a,statusText:p.statusText||b[a],headers:d,counter:p.counter}}get url(){return this[_].url||""}get status(){return this[_].status}get ok(){return this[_].status>=200&&this[_].status<300}get redirected(){return this[_].counter>0}get statusText(){return this[_].statusText}get headers(){return this[_].headers}clone(){return new Response(clone(this),{url:this.url,status:this.status,statusText:this.statusText,headers:this.headers,ok:this.ok,redirected:this.redirected})}}Body.mixIn(Response.prototype);Object.defineProperties(Response.prototype,{url:{enumerable:true},status:{enumerable:true},ok:{enumerable:true},redirected:{enumerable:true},statusText:{enumerable:true},headers:{enumerable:true},clone:{enumerable:true}});Object.defineProperty(Response.prototype,Symbol.toStringTag,{value:"Response",writable:false,enumerable:false,configurable:true});const E=Symbol("Request internals");const y=t.URL||r.URL;const S=t.parse;const D=t.format;function parseURL(e){if(/^[a-zA-Z][a-zA-Z\d+\-.]*:/.exec(e)){e=new y(e).toString()}return S(e)}const N="destroy"in d.Readable.prototype;function isRequest(e){return typeof e==="object"&&typeof e[E]==="object"}function isAbortSignal(e){const p=e&&typeof e==="object"&&Object.getPrototypeOf(e);return!!(p&&p.constructor.name==="AbortSignal")}class Request{constructor(e){let p=arguments.length>1&&arguments[1]!==undefined?arguments[1]:{};let a;if(!isRequest(e)){if(e&&e.href){a=parseURL(e.href)}else{a=parseURL(`${e}`)}e={}}else{a=parseURL(e.url)}let d=p.method||e.method||"GET";d=d.toUpperCase();if((p.body!=null||isRequest(e)&&e.body!==null)&&(d==="GET"||d==="HEAD")){throw new TypeError("Request with GET/HEAD method cannot have body")}let i=p.body!=null?p.body:isRequest(e)&&e.body!==null?clone(e):null;Body.call(this,i,{timeout:p.timeout||e.timeout||0,size:p.size||e.size||0});const t=new Headers(p.headers||e.headers||{});if(i!=null&&!t.has("Content-Type")){const e=extractContentType(i);if(e){t.append("Content-Type",e)}}let r=isRequest(e)?e.signal:null;if("signal"in p)r=p.signal;if(r!=null&&!isAbortSignal(r)){throw new TypeError("Expected signal to be an instanceof AbortSignal")}this[E]={method:d,redirect:p.redirect||e.redirect||"follow",headers:t,parsedURL:a,signal:r};this.follow=p.follow!==undefined?p.follow:e.follow!==undefined?e.follow:20;this.compress=p.compress!==undefined?p.compress:e.compress!==undefined?e.compress:true;this.counter=p.counter||e.counter||0;this.agent=p.agent||e.agent}get method(){return this[E].method}get url(){return D(this[E].parsedURL)}get headers(){return this[E].headers}get redirect(){return this[E].redirect}get signal(){return this[E].signal}clone(){return new Request(this)}}Body.mixIn(Request.prototype);Object.defineProperty(Request.prototype,Symbol.toStringTag,{value:"Request",writable:false,enumerable:false,configurable:true});Object.defineProperties(Request.prototype,{method:{enumerable:true},url:{enumerable:true},headers:{enumerable:true},redirect:{enumerable:true},clone:{enumerable:true},signal:{enumerable:true}});function getNodeRequestOptions(e){const p=e[E].parsedURL;const a=new Headers(e[E].headers);if(!a.has("Accept")){a.set("Accept","*/*")}if(!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 d.Readable&&!N){throw new Error("Cancellation of streamed requests with AbortSignal is not supported in node < 8")}let i=null;if(e.body==null&&/^(POST|PUT)$/i.test(e.method)){i="0"}if(e.body!=null){const p=getTotalBytes(e);if(typeof p==="number"){i=String(p)}}if(i){a.set("Content-Length",i)}if(!a.has("User-Agent")){a.set("User-Agent","node-fetch/1.0 (+https://github.com/bitinn/node-fetch)")}if(e.compress&&!a.has("Accept-Encoding")){a.set("Accept-Encoding","gzip,deflate")}let t=e.agent;if(typeof t==="function"){t=t(p)}if(!a.has("Connection")&&!t){a.set("Connection","close")}return Object.assign({},p,{method:e.method,headers:exportNodeCompatibleHeaders(a),agent:t})}function AbortError(e){Error.call(this,e);this.type="aborted";this.message=e;Error.captureStackTrace(this,this.constructor)}AbortError.prototype=Object.create(Error.prototype);AbortError.prototype.constructor=AbortError;AbortError.prototype.name="AbortError";const V=t.URL||r.URL;const A=d.PassThrough;const C=function isDomainOrSubdomain(e,p){const a=new V(p).hostname;const d=new V(e).hostname;return a===d||a[a.length-d.length-1]==="."&&a.endsWith(d)};function fetch(e,p){if(!fetch.Promise){throw new Error("native promise missing, set fetch.Promise to your favorite alternative")}Body.Promise=fetch.Promise;return new fetch.Promise(function(a,t){const r=new Request(e,p);const m=getNodeRequestOptions(r);const l=(m.protocol==="https:"?s:i).request;const n=r.signal;let u=null;const c=function abort(){let e=new AbortError("The user aborted a request.");t(e);if(r.body&&r.body instanceof d.Readable){r.body.destroy(e)}if(!u||!u.body)return;u.body.emit("error",e)};if(n&&n.aborted){c();return}const v=function abortAndFinalize(){c();finalize()};const f=l(m);let h;if(n){n.addEventListener("abort",v)}function finalize(){f.abort();if(n)n.removeEventListener("abort",v);clearTimeout(h)}if(r.timeout){f.once("socket",function(e){h=setTimeout(function(){t(new FetchError(`network timeout at: ${r.url}`,"request-timeout"));finalize()},r.timeout)})}f.on("error",function(e){t(new FetchError(`request to ${r.url} failed, reason: ${e.message}`,"system",e));finalize()});f.on("response",function(e){clearTimeout(h);const p=createHeadersLenient(e.headers);if(fetch.isRedirect(e.statusCode)){const d=p.get("Location");let i=null;try{i=d===null?null:new V(d,r.url).toString()}catch(e){if(r.redirect!=="manual"){t(new FetchError(`uri requested responds with an invalid redirect URL: ${d}`,"invalid-redirect"));finalize();return}}switch(r.redirect){case"error":t(new FetchError(`uri requested responds with a redirect, redirect mode is set to error: ${r.url}`,"no-redirect"));finalize();return;case"manual":if(i!==null){try{p.set("Location",i)}catch(e){t(e)}}break;case"follow":if(i===null){break}if(r.counter>=r.follow){t(new FetchError(`maximum redirect reached at: ${r.url}`,"max-redirect"));finalize();return}const d={headers:new Headers(r.headers),follow:r.follow,counter:r.counter+1,agent:r.agent,compress:r.compress,method:r.method,body:r.body,signal:r.signal,timeout:r.timeout,size:r.size};if(!C(r.url,i)){for(const e of["authorization","www-authenticate","cookie","cookie2"]){d.headers.delete(e)}}if(e.statusCode!==303&&r.body&&getTotalBytes(r)===null){t(new FetchError("Cannot follow redirect with body being a readable stream","unsupported-redirect"));finalize();return}if(e.statusCode===303||(e.statusCode===301||e.statusCode===302)&&r.method==="POST"){d.method="GET";d.body=undefined;d.headers.delete("content-length")}a(fetch(new Request(i,d)));finalize();return}}e.once("end",function(){if(n)n.removeEventListener("abort",v)});let d=e.pipe(new A);const i={url:r.url,status:e.statusCode,statusText:e.statusMessage,headers:p,size:r.size,timeout:r.timeout,counter:r.counter};const s=p.get("Content-Encoding");if(!r.compress||r.method==="HEAD"||s===null||e.statusCode===204||e.statusCode===304){u=new Response(d,i);a(u);return}const m={flush:o.Z_SYNC_FLUSH,finishFlush:o.Z_SYNC_FLUSH};if(s=="gzip"||s=="x-gzip"){d=d.pipe(o.createGunzip(m));u=new Response(d,i);a(u);return}if(s=="deflate"||s=="x-deflate"){const p=e.pipe(new A);p.once("data",function(e){if((e[0]&15)===8){d=d.pipe(o.createInflate())}else{d=d.pipe(o.createInflateRaw())}u=new Response(d,i);a(u)});return}if(s=="br"&&typeof o.createBrotliDecompress==="function"){d=d.pipe(o.createBrotliDecompress());u=new Response(d,i);a(u);return}u=new Response(d,i);a(u)});writeToStream(f,r)})}fetch.isRedirect=function(e){return e===301||e===302||e===303||e===307||e===308};fetch.Promise=global.Promise;e.exports=p=fetch;Object.defineProperty(p,"__esModule",{value:true});p.default=p;p.Headers=Headers;p.Request=Request;p.Response=Response;p.FetchError=FetchError},462:function(e){"use strict";const p=/([()\][%!^"`<>&|;, *?])/g;function escapeCommand(e){e=e.replace(p,"^$1");return e}function escapeArgument(e,a){e=`${e}`;e=e.replace(/(\\*)"/g,'$1$1\\"');e=e.replace(/(\\*)$/,"$1$1");e=`"${e}"`;e=e.replace(p,"^$1");if(a){e=e.replace(p,"^$1")}return e}e.exports.command=escapeCommand;e.exports.argument=escapeArgument},463:function(e,p,a){"use strict";Object.defineProperty(p,"__esModule",{value:true});function _interopDefault(e){return e&&typeof e==="object"&&"default"in e?e["default"]:e}var d=a(692);var i=_interopDefault(a(969));const t=i(e=>console.warn(e));class RequestError extends Error{constructor(e,p,a){super(e);if(Error.captureStackTrace){Error.captureStackTrace(this,this.constructor)}this.name="HttpError";this.status=p;Object.defineProperty(this,"code",{get(){t(new d.Deprecation("[@octokit/request-error] `error.code` is deprecated, use `error.status`."));return p}});this.headers=a.headers||{};const i=Object.assign({},a.request);if(a.request.headers.authorization){i.headers=Object.assign({},a.request.headers,{authorization:a.request.headers.authorization.replace(/ .*$/," [REDACTED]")})}i.url=i.url.replace(/\bclient_secret=\w+/g,"client_secret=[REDACTED]").replace(/\baccess_token=\w+/g,"access_token=[REDACTED]");this.request=i}}p.RequestError=RequestError},470:function(e,p){p=e.exports=SemVer;var a;if(typeof process==="object"&&process.env&&process.env.NODE_DEBUG&&/\bsemver\b/i.test(process.env.NODE_DEBUG)){a=function(){var e=Array.prototype.slice.call(arguments,0);e.unshift("SEMVER");console.log.apply(console,e)}}else{a=function(){}}p.SEMVER_SPEC_VERSION="2.0.0";var d=256;var i=Number.MAX_SAFE_INTEGER||9007199254740991;var t=16;var r=p.re=[];var s=p.src=[];var o=0;var m=o++;s[m]="0|[1-9]\\d*";var l=o++;s[l]="[0-9]+";var n=o++;s[n]="\\d*[a-zA-Z-][a-zA-Z0-9-]*";var u=o++;s[u]="("+s[m]+")\\."+"("+s[m]+")\\."+"("+s[m]+")";var c=o++;s[c]="("+s[l]+")\\."+"("+s[l]+")\\."+"("+s[l]+")";var v=o++;s[v]="(?:"+s[m]+"|"+s[n]+")";var f=o++;s[f]="(?:"+s[l]+"|"+s[n]+")";var h=o++;s[h]="(?:-("+s[v]+"(?:\\."+s[v]+")*))";var w=o++;s[w]="(?:-?("+s[f]+"(?:\\."+s[f]+")*))";var g=o++;s[g]="[0-9A-Za-z-]+";var T=o++;s[T]="(?:\\+("+s[g]+"(?:\\."+s[g]+")*))";var _=o++;var b="v?"+s[u]+s[h]+"?"+s[T]+"?";s[_]="^"+b+"$";var E="[v=\\s]*"+s[c]+s[w]+"?"+s[T]+"?";var y=o++;s[y]="^"+E+"$";var S=o++;s[S]="((?:<|>)?=?)";var D=o++;s[D]=s[l]+"|x|X|\\*";var N=o++;s[N]=s[m]+"|x|X|\\*";var V=o++;s[V]="[v=\\s]*("+s[N]+")"+"(?:\\.("+s[N]+")"+"(?:\\.("+s[N]+")"+"(?:"+s[h]+")?"+s[T]+"?"+")?)?";var A=o++;s[A]="[v=\\s]*("+s[D]+")"+"(?:\\.("+s[D]+")"+"(?:\\.("+s[D]+")"+"(?:"+s[w]+")?"+s[T]+"?"+")?)?";var C=o++;s[C]="^"+s[S]+"\\s*"+s[V]+"$";var P=o++;s[P]="^"+s[S]+"\\s*"+s[A]+"$";var O=o++;s[O]="(?:^|[^\\d])"+"(\\d{1,"+t+"})"+"(?:\\.(\\d{1,"+t+"}))?"+"(?:\\.(\\d{1,"+t+"}))?"+"(?:$|[^\\d])";var R=o++;s[R]="(?:~>?)";var G=o++;s[G]="(\\s*)"+s[R]+"\\s+";r[G]=new RegExp(s[G],"g");var F="$1~";var U=o++;s[U]="^"+s[R]+s[V]+"$";var B=o++;s[B]="^"+s[R]+s[A]+"$";var j=o++;s[j]="(?:\\^)";var L=o++;s[L]="(\\s*)"+s[j]+"\\s+";r[L]=new RegExp(s[L],"g");var x="$1^";var k=o++;s[k]="^"+s[j]+s[V]+"$";var q=o++;s[q]="^"+s[j]+s[A]+"$";var I=o++;s[I]="^"+s[S]+"\\s*("+E+")$|^$";var H=o++;s[H]="^"+s[S]+"\\s*("+b+")$|^$";var $=o++;s[$]="(\\s*)"+s[S]+"\\s*("+E+"|"+s[V]+")";r[$]=new RegExp(s[$],"g");var z="$1$2$3";var W=o++;s[W]="^\\s*("+s[V]+")"+"\\s+-\\s+"+"("+s[V]+")"+"\\s*$";var X=o++;s[X]="^\\s*("+s[A]+")"+"\\s+-\\s+"+"("+s[A]+")"+"\\s*$";var K=o++;s[K]="(<|>)?=?\\s*\\*";for(var Z=0;Z<o;Z++){a(Z,s[Z]);if(!r[Z]){r[Z]=new RegExp(s[Z])}}p.parse=parse;function parse(e,p){if(!p||typeof p!=="object"){p={loose:!!p,includePrerelease:false}}if(e instanceof SemVer){return e}if(typeof e!=="string"){return null}if(e.length>d){return null}var a=p.loose?r[y]:r[_];if(!a.test(e)){return null}try{return new SemVer(e,p)}catch(e){return null}}p.valid=valid;function valid(e,p){var a=parse(e,p);return a?a.version:null}p.clean=clean;function clean(e,p){var a=parse(e.trim().replace(/^[=v]+/,""),p);return a?a.version:null}p.SemVer=SemVer;function SemVer(e,p){if(!p||typeof p!=="object"){p={loose:!!p,includePrerelease:false}}if(e instanceof SemVer){if(e.loose===p.loose){return e}else{e=e.version}}else if(typeof e!=="string"){throw new TypeError("Invalid Version: "+e)}if(e.length>d){throw new TypeError("version is longer than "+d+" characters")}if(!(this instanceof SemVer)){return new SemVer(e,p)}a("SemVer",e,p);this.options=p;this.loose=!!p.loose;var t=e.trim().match(p.loose?r[y]:r[_]);if(!t){throw new TypeError("Invalid Version: "+e)}this.raw=e;this.major=+t[1];this.minor=+t[2];this.patch=+t[3];if(this.major>i||this.major<0){throw new TypeError("Invalid major version")}if(this.minor>i||this.minor<0){throw new TypeError("Invalid minor version")}if(this.patch>i||this.patch<0){throw new TypeError("Invalid patch version")}if(!t[4]){this.prerelease=[]}else{this.prerelease=t[4].split(".").map(function(e){if(/^[0-9]+$/.test(e)){var p=+e;if(p>=0&&p<i){return p}}return e})}this.build=t[5]?t[5].split("."):[];this.format()}SemVer.prototype.format=function(){this.version=this.major+"."+this.minor+"."+this.patch;if(this.prerelease.length){this.version+="-"+this.prerelease.join(".")}return this.version};SemVer.prototype.toString=function(){return this.version};SemVer.prototype.compare=function(e){a("SemVer.compare",this.version,this.options,e);if(!(e instanceof SemVer)){e=new SemVer(e,this.options)}return this.compareMain(e)||this.comparePre(e)};SemVer.prototype.compareMain=function(e){if(!(e instanceof SemVer)){e=new SemVer(e,this.options)}return compareIdentifiers(this.major,e.major)||compareIdentifiers(this.minor,e.minor)||compareIdentifiers(this.patch,e.patch)};SemVer.prototype.comparePre=function(e){if(!(e instanceof SemVer)){e=new SemVer(e,this.options)}if(this.prerelease.length&&!e.prerelease.length){return-1}else if(!this.prerelease.length&&e.prerelease.length){return 1}else if(!this.prerelease.length&&!e.prerelease.length){return 0}var p=0;do{var d=this.prerelease[p];var i=e.prerelease[p];a("prerelease compare",p,d,i);if(d===undefined&&i===undefined){return 0}else if(i===undefined){return 1}else if(d===undefined){return-1}else if(d===i){continue}else{return compareIdentifiers(d,i)}}while(++p)};SemVer.prototype.inc=function(e,p){switch(e){case"premajor":this.prerelease.length=0;this.patch=0;this.minor=0;this.major++;this.inc("pre",p);break;case"preminor":this.prerelease.length=0;this.patch=0;this.minor++;this.inc("pre",p);break;case"prepatch":this.prerelease.length=0;this.inc("patch",p);this.inc("pre",p);break;case"prerelease":if(this.prerelease.length===0){this.inc("patch",p)}this.inc("pre",p);break;case"major":if(this.minor!==0||this.patch!==0||this.prerelease.length===0){this.major++}this.minor=0;this.patch=0;this.prerelease=[];break;case"minor":if(this.patch!==0||this.prerelease.length===0){this.minor++}this.patch=0;this.prerelease=[];break;case"patch":if(this.prerelease.length===0){this.patch++}this.prerelease=[];break;case"pre":if(this.prerelease.length===0){this.prerelease=[0]}else{var a=this.prerelease.length;while(--a>=0){if(typeof this.prerelease[a]==="number"){this.prerelease[a]++;a=-2}}if(a===-1){this.prerelease.push(0)}}if(p){if(this.prerelease[0]===p){if(isNaN(this.prerelease[1])){this.prerelease=[p,0]}}else{this.prerelease=[p,0]}}break;default:throw new Error("invalid increment argument: "+e)}this.format();this.raw=this.version;return this};p.inc=inc;function inc(e,p,a,d){if(typeof a==="string"){d=a;a=undefined}try{return new SemVer(e,a).inc(p,d).version}catch(e){return null}}p.diff=diff;function diff(e,p){if(eq(e,p)){return null}else{var a=parse(e);var d=parse(p);var i="";if(a.prerelease.length||d.prerelease.length){i="pre";var t="prerelease"}for(var r in a){if(r==="major"||r==="minor"||r==="patch"){if(a[r]!==d[r]){return i+r}}}return t}}p.compareIdentifiers=compareIdentifiers;var J=/^[0-9]+$/;function compareIdentifiers(e,p){var a=J.test(e);var d=J.test(p);if(a&&d){e=+e;p=+p}return e===p?0:a&&!d?-1:d&&!a?1:e<p?-1:1}p.rcompareIdentifiers=rcompareIdentifiers;function rcompareIdentifiers(e,p){return compareIdentifiers(p,e)}p.major=major;function major(e,p){return new SemVer(e,p).major}p.minor=minor;function minor(e,p){return new SemVer(e,p).minor}p.patch=patch;function patch(e,p){return new SemVer(e,p).patch}p.compare=compare;function compare(e,p,a){return new SemVer(e,a).compare(new SemVer(p,a))}p.compareLoose=compareLoose;function compareLoose(e,p){return compare(e,p,true)}p.rcompare=rcompare;function rcompare(e,p,a){return compare(p,e,a)}p.sort=sort;function sort(e,a){return e.sort(function(e,d){return p.compare(e,d,a)})}p.rsort=rsort;function rsort(e,a){return e.sort(function(e,d){return p.rcompare(e,d,a)})}p.gt=gt;function gt(e,p,a){return compare(e,p,a)>0}p.lt=lt;function lt(e,p,a){return compare(e,p,a)<0}p.eq=eq;function eq(e,p,a){return compare(e,p,a)===0}p.neq=neq;function neq(e,p,a){return compare(e,p,a)!==0}p.gte=gte;function gte(e,p,a){return compare(e,p,a)>=0}p.lte=lte;function lte(e,p,a){return compare(e,p,a)<=0}p.cmp=cmp;function cmp(e,p,a,d){switch(p){case"===":if(typeof e==="object")e=e.version;if(typeof a==="object")a=a.version;return e===a;case"!==":if(typeof e==="object")e=e.version;if(typeof a==="object")a=a.version;return e!==a;case"":case"=":case"==":return eq(e,a,d);case"!=":return neq(e,a,d);case">":return gt(e,a,d);case">=":return gte(e,a,d);case"<":return lt(e,a,d);case"<=":return lte(e,a,d);default:throw new TypeError("Invalid operator: "+p)}}p.Comparator=Comparator;function Comparator(e,p){if(!p||typeof p!=="object"){p={loose:!!p,includePrerelease:false}}if(e instanceof Comparator){if(e.loose===!!p.loose){return e}else{e=e.value}}if(!(this instanceof Comparator)){return new Comparator(e,p)}a("comparator",e,p);this.options=p;this.loose=!!p.loose;this.parse(e);if(this.semver===Y){this.value=""}else{this.value=this.operator+this.semver.version}a("comp",this)}var Y={};Comparator.prototype.parse=function(e){var p=this.options.loose?r[I]:r[H];var a=e.match(p);if(!a){throw new TypeError("Invalid comparator: "+e)}this.operator=a[1];if(this.operator==="="){this.operator=""}if(!a[2]){this.semver=Y}else{this.semver=new SemVer(a[2],this.options.loose)}};Comparator.prototype.toString=function(){return this.value};Comparator.prototype.test=function(e){a("Comparator.test",e,this.options.loose);if(this.semver===Y){return true}if(typeof e==="string"){e=new SemVer(e,this.options)}return cmp(e,this.operator,this.semver,this.options)};Comparator.prototype.intersects=function(e,p){if(!(e instanceof Comparator)){throw new TypeError("a Comparator is required")}if(!p||typeof p!=="object"){p={loose:!!p,includePrerelease:false}}var a;if(this.operator===""){a=new Range(e.value,p);return satisfies(this.value,a,p)}else if(e.operator===""){a=new Range(this.value,p);return satisfies(e.semver,a,p)}var d=(this.operator===">="||this.operator===">")&&(e.operator===">="||e.operator===">");var i=(this.operator==="<="||this.operator==="<")&&(e.operator==="<="||e.operator==="<");var t=this.semver.version===e.semver.version;var r=(this.operator===">="||this.operator==="<=")&&(e.operator===">="||e.operator==="<=");var s=cmp(this.semver,"<",e.semver,p)&&((this.operator===">="||this.operator===">")&&(e.operator==="<="||e.operator==="<"));var o=cmp(this.semver,">",e.semver,p)&&((this.operator==="<="||this.operator==="<")&&(e.operator===">="||e.operator===">"));return d||i||t&&r||s||o};p.Range=Range;function Range(e,p){if(!p||typeof p!=="object"){p={loose:!!p,includePrerelease:false}}if(e instanceof Range){if(e.loose===!!p.loose&&e.includePrerelease===!!p.includePrerelease){return e}else{return new Range(e.raw,p)}}if(e instanceof Comparator){return new Range(e.value,p)}if(!(this instanceof Range)){return new Range(e,p)}this.options=p;this.loose=!!p.loose;this.includePrerelease=!!p.includePrerelease;this.raw=e;this.set=e.split(/\s*\|\|\s*/).map(function(e){return this.parseRange(e.trim())},this).filter(function(e){return e.length});if(!this.set.length){throw new TypeError("Invalid SemVer Range: "+e)}this.format()}Range.prototype.format=function(){this.range=this.set.map(function(e){return e.join(" ").trim()}).join("||").trim();return this.range};Range.prototype.toString=function(){return this.range};Range.prototype.parseRange=function(e){var p=this.options.loose;e=e.trim();var d=p?r[X]:r[W];e=e.replace(d,hyphenReplace);a("hyphen replace",e);e=e.replace(r[$],z);a("comparator trim",e,r[$]);e=e.replace(r[G],F);e=e.replace(r[L],x);e=e.split(/\s+/).join(" ");var i=p?r[I]:r[H];var t=e.split(" ").map(function(e){return parseComparator(e,this.options)},this).join(" ").split(/\s+/);if(this.options.loose){t=t.filter(function(e){return!!e.match(i)})}t=t.map(function(e){return new Comparator(e,this.options)},this);return t};Range.prototype.intersects=function(e,p){if(!(e instanceof Range)){throw new TypeError("a Range is required")}return this.set.some(function(a){return a.every(function(a){return e.set.some(function(e){return e.every(function(e){return a.intersects(e,p)})})})})};p.toComparators=toComparators;function toComparators(e,p){return new Range(e,p).set.map(function(e){return e.map(function(e){return e.value}).join(" ").trim().split(" ")})}function parseComparator(e,p){a("comp",e,p);e=replaceCarets(e,p);a("caret",e);e=replaceTildes(e,p);a("tildes",e);e=replaceXRanges(e,p);a("xrange",e);e=replaceStars(e,p);a("stars",e);return e}function isX(e){return!e||e.toLowerCase()==="x"||e==="*"}function replaceTildes(e,p){return e.trim().split(/\s+/).map(function(e){return replaceTilde(e,p)}).join(" ")}function replaceTilde(e,p){var d=p.loose?r[B]:r[U];return e.replace(d,function(p,d,i,t,r){a("tilde",e,p,d,i,t,r);var s;if(isX(d)){s=""}else if(isX(i)){s=">="+d+".0.0 <"+(+d+1)+".0.0"}else if(isX(t)){s=">="+d+"."+i+".0 <"+d+"."+(+i+1)+".0"}else if(r){a("replaceTilde pr",r);s=">="+d+"."+i+"."+t+"-"+r+" <"+d+"."+(+i+1)+".0"}else{s=">="+d+"."+i+"."+t+" <"+d+"."+(+i+1)+".0"}a("tilde return",s);return s})}function replaceCarets(e,p){return e.trim().split(/\s+/).map(function(e){return replaceCaret(e,p)}).join(" ")}function replaceCaret(e,p){a("caret",e,p);var d=p.loose?r[q]:r[k];return e.replace(d,function(p,d,i,t,r){a("caret",e,p,d,i,t,r);var s;if(isX(d)){s=""}else if(isX(i)){s=">="+d+".0.0 <"+(+d+1)+".0.0"}else if(isX(t)){if(d==="0"){s=">="+d+"."+i+".0 <"+d+"."+(+i+1)+".0"}else{s=">="+d+"."+i+".0 <"+(+d+1)+".0.0"}}else if(r){a("replaceCaret pr",r);if(d==="0"){if(i==="0"){s=">="+d+"."+i+"."+t+"-"+r+" <"+d+"."+i+"."+(+t+1)}else{s=">="+d+"."+i+"."+t+"-"+r+" <"+d+"."+(+i+1)+".0"}}else{s=">="+d+"."+i+"."+t+"-"+r+" <"+(+d+1)+".0.0"}}else{a("no pr");if(d==="0"){if(i==="0"){s=">="+d+"."+i+"."+t+" <"+d+"."+i+"."+(+t+1)}else{s=">="+d+"."+i+"."+t+" <"+d+"."+(+i+1)+".0"}}else{s=">="+d+"."+i+"."+t+" <"+(+d+1)+".0.0"}}a("caret return",s);return s})}function replaceXRanges(e,p){a("replaceXRanges",e,p);return e.split(/\s+/).map(function(e){return replaceXRange(e,p)}).join(" ")}function replaceXRange(e,p){e=e.trim();var d=p.loose?r[P]:r[C];return e.replace(d,function(p,d,i,t,r,s){a("xRange",e,p,d,i,t,r,s);var o=isX(i);var m=o||isX(t);var l=m||isX(r);var n=l;if(d==="="&&n){d=""}if(o){if(d===">"||d==="<"){p="<0.0.0"}else{p="*"}}else if(d&&n){if(m){t=0}r=0;if(d===">"){d=">=";if(m){i=+i+1;t=0;r=0}else{t=+t+1;r=0}}else if(d==="<="){d="<";if(m){i=+i+1}else{t=+t+1}}p=d+i+"."+t+"."+r}else if(m){p=">="+i+".0.0 <"+(+i+1)+".0.0"}else if(l){p=">="+i+"."+t+".0 <"+i+"."+(+t+1)+".0"}a("xRange return",p);return p})}function replaceStars(e,p){a("replaceStars",e,p);return e.trim().replace(r[K],"")}function hyphenReplace(e,p,a,d,i,t,r,s,o,m,l,n,u){if(isX(a)){p=""}else if(isX(d)){p=">="+a+".0.0"}else if(isX(i)){p=">="+a+"."+d+".0"}else{p=">="+p}if(isX(o)){s=""}else if(isX(m)){s="<"+(+o+1)+".0.0"}else if(isX(l)){s="<"+o+"."+(+m+1)+".0"}else if(n){s="<="+o+"."+m+"."+l+"-"+n}else{s="<="+s}return(p+" "+s).trim()}Range.prototype.test=function(e){if(!e){return false}if(typeof e==="string"){e=new SemVer(e,this.options)}for(var p=0;p<this.set.length;p++){if(testSet(this.set[p],e,this.options)){return true}}return false};function testSet(e,p,d){for(var i=0;i<e.length;i++){if(!e[i].test(p)){return false}}if(p.prerelease.length&&!d.includePrerelease){for(i=0;i<e.length;i++){a(e[i].semver);if(e[i].semver===Y){continue}if(e[i].semver.prerelease.length>0){var t=e[i].semver;if(t.major===p.major&&t.minor===p.minor&&t.patch===p.patch){return true}}}return false}return true}p.satisfies=satisfies;function satisfies(e,p,a){try{p=new Range(p,a)}catch(e){return false}return p.test(e)}p.maxSatisfying=maxSatisfying;function maxSatisfying(e,p,a){var d=null;var i=null;try{var t=new Range(p,a)}catch(e){return null}e.forEach(function(e){if(t.test(e)){if(!d||i.compare(e)===-1){d=e;i=new SemVer(d,a)}}});return d}p.minSatisfying
    2023-05-19T17:32:54.0878929Z ##[debug]Node Action run completed with exit code 1
    2023-05-19T17:32:54.1063152Z ##[debug]Finishing: Update gist
    2023-05-19T17:32:54.1219841Z ##[debug]Starting: Complete job
    2023-05-19T17:32:54.1222296Z Uploading runner diagnostic logs
    2023-05-19T17:32:54.1290001Z ##[debug]Starting diagnostic file upload.
    2023-05-19T17:32:54.1290478Z ##[debug]Setting up diagnostic log folders.
    2023-05-19T17:32:54.1294181Z ##[debug]Creating diagnostic log files folder.
    2023-05-19T17:32:54.1320816Z ##[debug]Copying 1 worker diagnostic logs.
    2023-05-19T17:32:54.1344343Z ##[debug]Copying 1 runner diagnostic logs.
    2023-05-19T17:32:54.1346421Z ##[debug]Zipping diagnostic files.
    2023-05-19T17:32:54.1401967Z ##[debug]Uploading diagnostic metadata file.
    2023-05-19T17:32:54.1439702Z ##[debug]Diagnostic file upload complete.
    2023-05-19T17:32:54.1441111Z Completed runner diagnostic log upload
    2023-05-19T17:32:54.1441539Z Cleaning up orphan processes
    2023-05-19T17:32:54.1963535Z ##[debug]Finishing: Complete job
    2023-05-19T17:32:54.2199738Z ##[debug]Finishing: update-gist

    success , completed 만 보이고, err, fail은 보이지가 않았다. 흐음..

    2. GH_TOKEN , GIST_ID 의심

    GIT 설정 메뉴에 숨어있는(?) Personal Access Token을 확인해봤다.

    오잉 이건 또 2주전에 사용되었다고 써있음!! 😠

    뭐지; 저 키는 만료일을 무기한으로 설정해두었기 때문에 키가 만료되었을리는 없다.

    여기 저장해둔 GIST_ID랑 GH_TOKEN 값이 보였음 좋았을 텐데 ㅜ 보안때문에 키를 보여주지 않는다 .

    별 다른 수가 생각나지 않으니 키를 다시 입력해봐야겠다 ㅠ

    • GIST_ID 는 Git Gist 주소 맨뒤의 값 만 입력!
    url = https://gist.github.com/zhyunk/sdfhkjiuwqernbmxdkasjdh
    일 때 GIST_ID = sdfhkjiuwqernbmxdkasjdh
    

    업뎃 완료하고 실패였던 update action을 재실행 해주니 성공했다!

    오 왜그랬을까..

    68일째에 실패가 되었다고 떠있던걸 보면 인증키를 2달 하고 1주일 주기로 갱신해주어야 하는겅가...????;;

    아주 미스테리하구만

    😕

Designed by Tistory / Custom by 얼거스