diff --git a/action.yml b/action.yml index 13371865c..88b55098c 100644 --- a/action.yml +++ b/action.yml @@ -22,7 +22,7 @@ inputs: message: description: The message for the commit required: false - pull_stategy: + pull_strategy: description: The flag used on the pull strategy required: false default: '--no-rebase' diff --git a/lib/index.js b/lib/index.js index cfb72f386..0e930e214 100644 --- a/lib/index.js +++ b/lib/index.js @@ -1 +1 @@ -module.exports=(()=>{var e={7351:function(e,t,r){"use strict";var n=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var r in e)if(Object.hasOwnProperty.call(e,r))t[r]=e[r];t["default"]=e;return t};Object.defineProperty(t,"__esModule",{value:true});const s=n(r(2087));const o=r(5278);function issueCommand(e,t,r){const n=new Command(e,t,r);process.stdout.write(n.toString()+s.EOL)}t.issueCommand=issueCommand;function issue(e,t=""){issueCommand(e,{},t)}t.issue=issue;const i="::";class Command{constructor(e,t,r){if(!e){e="missing.command"}this.command=e;this.properties=t;this.message=r}toString(){let e=i+this.command;if(this.properties&&Object.keys(this.properties).length>0){e+=" ";let t=true;for(const r in this.properties){if(this.properties.hasOwnProperty(r)){const n=this.properties[r];if(n){if(t){t=false}else{e+=","}e+=`${r}=${escapeProperty(n)}`}}}}e+=`${i}${escapeData(this.message)}`;return e}}function escapeData(e){return o.toCommandValue(e).replace(/%/g,"%25").replace(/\r/g,"%0D").replace(/\n/g,"%0A")}function escapeProperty(e){return o.toCommandValue(e).replace(/%/g,"%25").replace(/\r/g,"%0D").replace(/\n/g,"%0A").replace(/:/g,"%3A").replace(/,/g,"%2C")}},2186:function(e,t,r){"use strict";var n=this&&this.__awaiter||function(e,t,r,n){function adopt(e){return e instanceof r?e:new r(function(t){t(e)})}return new(r||(r=Promise))(function(r,s){function fulfilled(e){try{step(n.next(e))}catch(e){s(e)}}function rejected(e){try{step(n["throw"](e))}catch(e){s(e)}}function step(e){e.done?r(e.value):adopt(e.value).then(fulfilled,rejected)}step((n=n.apply(e,t||[])).next())})};var s=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var r in e)if(Object.hasOwnProperty.call(e,r))t[r]=e[r];t["default"]=e;return t};Object.defineProperty(t,"__esModule",{value:true});const o=r(7351);const i=r(717);const a=r(5278);const u=s(r(2087));const c=s(r(5622));var f;(function(e){e[e["Success"]=0]="Success";e[e["Failure"]=1]="Failure"})(f=t.ExitCode||(t.ExitCode={}));function exportVariable(e,t){const r=a.toCommandValue(t);process.env[e]=r;const n=process.env["GITHUB_ENV"]||"";if(n){const t="_GitHubActionsFileCommandDelimeter_";const n=`${e}<<${t}${u.EOL}${r}${u.EOL}${t}`;i.issueCommand("ENV",n)}else{o.issueCommand("set-env",{name:e},r)}}t.exportVariable=exportVariable;function setSecret(e){o.issueCommand("add-mask",{},e)}t.setSecret=setSecret;function addPath(e){const t=process.env["GITHUB_PATH"]||"";if(t){i.issueCommand("PATH",e)}else{o.issueCommand("add-path",{},e)}process.env["PATH"]=`${e}${c.delimiter}${process.env["PATH"]}`}t.addPath=addPath;function getInput(e,t){const r=process.env[`INPUT_${e.replace(/ /g,"_").toUpperCase()}`]||"";if(t&&t.required&&!r){throw new Error(`Input required and not supplied: ${e}`)}return r.trim()}t.getInput=getInput;function setOutput(e,t){o.issueCommand("set-output",{name:e},t)}t.setOutput=setOutput;function setCommandEcho(e){o.issue("echo",e?"on":"off")}t.setCommandEcho=setCommandEcho;function setFailed(e){process.exitCode=f.Failure;error(e)}t.setFailed=setFailed;function isDebug(){return process.env["RUNNER_DEBUG"]==="1"}t.isDebug=isDebug;function debug(e){o.issueCommand("debug",{},e)}t.debug=debug;function error(e){o.issue("error",e instanceof Error?e.toString():e)}t.error=error;function warning(e){o.issue("warning",e instanceof Error?e.toString():e)}t.warning=warning;function info(e){process.stdout.write(e+u.EOL)}t.info=info;function startGroup(e){o.issue("group",e)}t.startGroup=startGroup;function endGroup(){o.issue("endgroup")}t.endGroup=endGroup;function group(e,t){return n(this,void 0,void 0,function*(){startGroup(e);let r;try{r=yield t()}finally{endGroup()}return r})}t.group=group;function saveState(e,t){o.issueCommand("save-state",{name:e},t)}t.saveState=saveState;function getState(e){return process.env[`STATE_${e}`]||""}t.getState=getState},717:function(e,t,r){"use strict";var n=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var r in e)if(Object.hasOwnProperty.call(e,r))t[r]=e[r];t["default"]=e;return t};Object.defineProperty(t,"__esModule",{value:true});const s=n(r(5747));const o=n(r(2087));const i=r(5278);function issueCommand(e,t){const r=process.env[`GITHUB_${e}`];if(!r){throw new Error(`Unable to find environment variable for file command ${e}`)}if(!s.existsSync(r)){throw new Error(`Missing file at path: ${r}`)}s.appendFileSync(r,`${i.toCommandValue(t)}${o.EOL}`,{encoding:"utf8"})}t.issueCommand=issueCommand},5278:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});function toCommandValue(e){if(e===null||e===undefined){return""}else if(typeof e==="string"||e instanceof String){return e}return JSON.stringify(e)}t.toCommandValue=toCommandValue},4751:(e,t,r)=>{"use strict";function __export(e){for(var r in e)if(!t.hasOwnProperty(r))t[r]=e[r]}Object.defineProperty(t,"__esModule",{value:true});__export(r(2825))},2825:function(e,t,r){"use strict";var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:true});const s=r(5747);const o=n(r(8237));const i=o.default("@kwsites/file-exists");function check(e,t,r){i(`checking %s`,e);try{const n=s.statSync(e);if(n.isFile()&&t){i(`[OK] path represents a file`);return true}if(n.isDirectory()&&r){i(`[OK] path represents a directory`);return true}i(`[FAIL] path represents something other than a file or directory`);return false}catch(e){if(e.code==="ENOENT"){i(`[FAIL] path is not accessible: %o`,e);return false}i(`[FATAL] %o`,e);throw e}}function exists(e,r=t.READABLE){return check(e,(r&t.FILE)>0,(r&t.FOLDER)>0)}t.exists=exists;t.FILE=1;t.FOLDER=2;t.READABLE=t.FILE+t.FOLDER},9819:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.createDeferred=t.deferred=void 0;function deferred(){let e;let t;let r="pending";const n=new Promise((r,n)=>{e=r;t=n});return{promise:n,done(t){if(r==="pending"){r="resolved";e(t)}},fail(e){if(r==="pending"){r="rejected";t(e)}},get fulfilled(){return r!=="pending"},get status(){return r}}}t.deferred=deferred;t.createDeferred=deferred;t.default=deferred},6545:(e,t,r)=>{e.exports=r(2618)},8104:(e,t,r)=>{"use strict";var n=r(328);var s=r(3211);var o=r(1934);var i=r(646);var a=r(8605);var u=r(7211);var c=r(7707).http;var f=r(7707).https;var l=r(8835);var p=r(8761);var d=r(696);var h=r(5226);var m=r(1516);var g=/https:?/;e.exports=function httpAdapter(e){return new Promise(function dispatchHttpRequest(t,r){var y=function resolve(e){t(e)};var v=function reject(e){r(e)};var b=e.data;var T=e.headers;if(!T["User-Agent"]&&!T["user-agent"]){T["User-Agent"]="axios/"+d.version}if(b&&!n.isStream(b)){if(Buffer.isBuffer(b)){}else if(n.isArrayBuffer(b)){b=Buffer.from(new Uint8Array(b))}else if(n.isString(b)){b=Buffer.from(b,"utf-8")}else{return v(h("Data after transformation must be a string, an ArrayBuffer, a Buffer, or a Stream",e))}T["Content-Length"]=b.length}var _=undefined;if(e.auth){var C=e.auth.username||"";var R=e.auth.password||"";_=C+":"+R}var O=o(e.baseURL,e.url);var E=l.parse(O);var k=E.protocol||"http:";if(!_&&E.auth){var S=E.auth.split(":");var w=S[0]||"";var x=S[1]||"";_=w+":"+x}if(_){delete T.Authorization}var P=g.test(k);var L=P?e.httpsAgent:e.httpAgent;var M={path:i(E.path,e.params,e.paramsSerializer).replace(/^\?/,""),method:e.method.toUpperCase(),headers:T,agent:L,agents:{http:e.httpAgent,https:e.httpsAgent},auth:_};if(e.socketPath){M.socketPath=e.socketPath}else{M.hostname=E.hostname;M.port=E.port}var A=e.proxy;if(!A&&A!==false){var D=k.slice(0,-1)+"_proxy";var j=process.env[D]||process.env[D.toUpperCase()];if(j){var F=l.parse(j);var I=process.env.no_proxy||process.env.NO_PROXY;var G=true;if(I){var B=I.split(",").map(function trim(e){return e.trim()});G=!B.some(function proxyMatch(e){if(!e){return false}if(e==="*"){return true}if(e[0]==="."&&E.hostname.substr(E.hostname.length-e.length)===e){return true}return E.hostname===e})}if(G){A={host:F.hostname,port:F.port};if(F.auth){var N=F.auth.split(":");A.auth={username:N[0],password:N[1]}}}}}if(A){M.hostname=A.host;M.host=A.host;M.headers.host=E.hostname+(E.port?":"+E.port:"");M.port=A.port;M.path=k+"//"+E.hostname+(E.port?":"+E.port:"")+M.path;if(A.auth){var U=Buffer.from(A.auth.username+":"+A.auth.password,"utf8").toString("base64");M.headers["Proxy-Authorization"]="Basic "+U}}var q;var $=P&&(A?g.test(A.protocol):true);if(e.transport){q=e.transport}else if(e.maxRedirects===0){q=$?u:a}else{if(e.maxRedirects){M.maxRedirects=e.maxRedirects}q=$?f:c}if(e.maxBodyLength>-1){M.maxBodyLength=e.maxBodyLength}var H=q.request(M,function handleResponse(t){if(H.aborted)return;var r=t;var o=t.req||H;if(t.statusCode!==204&&o.method!=="HEAD"&&e.decompress!==false){switch(t.headers["content-encoding"]){case"gzip":case"compress":case"deflate":r=r.pipe(p.createUnzip());delete t.headers["content-encoding"];break}}var i={status:t.statusCode,statusText:t.statusMessage,headers:t.headers,config:e,request:o};if(e.responseType==="stream"){i.data=r;s(y,v,i)}else{var a=[];r.on("data",function handleStreamData(t){a.push(t);if(e.maxContentLength>-1&&Buffer.concat(a).length>e.maxContentLength){r.destroy();v(h("maxContentLength size of "+e.maxContentLength+" exceeded",e,null,o))}});r.on("error",function handleStreamError(t){if(H.aborted)return;v(m(t,e,null,o))});r.on("end",function handleStreamEnd(){var t=Buffer.concat(a);if(e.responseType!=="arraybuffer"){t=t.toString(e.responseEncoding);if(!e.responseEncoding||e.responseEncoding==="utf8"){t=n.stripBOM(t)}}i.data=t;s(y,v,i)})}});H.on("error",function handleRequestError(t){if(H.aborted&&t.code!=="ERR_FR_TOO_MANY_REDIRECTS")return;v(m(t,e,null,H))});if(e.timeout){H.setTimeout(e.timeout,function handleRequestTimeout(){H.abort();v(h("timeout of "+e.timeout+"ms exceeded",e,"ECONNABORTED",H))})}if(e.cancelToken){e.cancelToken.promise.then(function onCanceled(e){if(H.aborted)return;H.abort();v(e)})}if(n.isStream(b)){b.on("error",function handleStreamError(t){v(m(t,e,null,H))}).pipe(H)}else{H.end(b)}})}},3454:(e,t,r)=>{"use strict";var n=r(328);var s=r(3211);var o=r(1545);var i=r(646);var a=r(1934);var u=r(6455);var c=r(3608);var f=r(5226);e.exports=function xhrAdapter(e){return new Promise(function dispatchXhrRequest(t,r){var l=e.data;var p=e.headers;if(n.isFormData(l)){delete p["Content-Type"]}var d=new XMLHttpRequest;if(e.auth){var h=e.auth.username||"";var m=e.auth.password?unescape(encodeURIComponent(e.auth.password)):"";p.Authorization="Basic "+btoa(h+":"+m)}var g=a(e.baseURL,e.url);d.open(e.method.toUpperCase(),i(g,e.params,e.paramsSerializer),true);d.timeout=e.timeout;d.onreadystatechange=function handleLoad(){if(!d||d.readyState!==4){return}if(d.status===0&&!(d.responseURL&&d.responseURL.indexOf("file:")===0)){return}var n="getAllResponseHeaders"in d?u(d.getAllResponseHeaders()):null;var o=!e.responseType||e.responseType==="text"?d.responseText:d.response;var i={data:o,status:d.status,statusText:d.statusText,headers:n,config:e,request:d};s(t,r,i);d=null};d.onabort=function handleAbort(){if(!d){return}r(f("Request aborted",e,"ECONNABORTED",d));d=null};d.onerror=function handleError(){r(f("Network Error",e,null,d));d=null};d.ontimeout=function handleTimeout(){var t="timeout of "+e.timeout+"ms exceeded";if(e.timeoutErrorMessage){t=e.timeoutErrorMessage}r(f(t,e,"ECONNABORTED",d));d=null};if(n.isStandardBrowserEnv()){var y=(e.withCredentials||c(g))&&e.xsrfCookieName?o.read(e.xsrfCookieName):undefined;if(y){p[e.xsrfHeaderName]=y}}if("setRequestHeader"in d){n.forEach(p,function setRequestHeader(e,t){if(typeof l==="undefined"&&t.toLowerCase()==="content-type"){delete p[t]}else{d.setRequestHeader(t,e)}})}if(!n.isUndefined(e.withCredentials)){d.withCredentials=!!e.withCredentials}if(e.responseType){try{d.responseType=e.responseType}catch(t){if(e.responseType!=="json"){throw t}}}if(typeof e.onDownloadProgress==="function"){d.addEventListener("progress",e.onDownloadProgress)}if(typeof e.onUploadProgress==="function"&&d.upload){d.upload.addEventListener("progress",e.onUploadProgress)}if(e.cancelToken){e.cancelToken.promise.then(function onCanceled(e){if(!d){return}d.abort();r(e);d=null})}if(!l){l=null}d.send(l)})}},2618:(e,t,r)=>{"use strict";var n=r(328);var s=r(7065);var o=r(8178);var i=r(4831);var a=r(8190);function createInstance(e){var t=new o(e);var r=s(o.prototype.request,t);n.extend(r,o.prototype,t);n.extend(r,t);return r}var u=createInstance(a);u.Axios=o;u.create=function create(e){return createInstance(i(u.defaults,e))};u.Cancel=r(8875);u.CancelToken=r(1587);u.isCancel=r(4057);u.all=function all(e){return Promise.all(e)};u.spread=r(4850);e.exports=u;e.exports.default=u},8875:e=>{"use strict";function Cancel(e){this.message=e}Cancel.prototype.toString=function toString(){return"Cancel"+(this.message?": "+this.message:"")};Cancel.prototype.__CANCEL__=true;e.exports=Cancel},1587:(e,t,r)=>{"use strict";var n=r(8875);function CancelToken(e){if(typeof e!=="function"){throw new TypeError("executor must be a function.")}var t;this.promise=new Promise(function promiseExecutor(e){t=e});var r=this;e(function cancel(e){if(r.reason){return}r.reason=new n(e);t(r.reason)})}CancelToken.prototype.throwIfRequested=function throwIfRequested(){if(this.reason){throw this.reason}};CancelToken.source=function source(){var e;var t=new CancelToken(function executor(t){e=t});return{token:t,cancel:e}};e.exports=CancelToken},4057:e=>{"use strict";e.exports=function isCancel(e){return!!(e&&e.__CANCEL__)}},8178:(e,t,r)=>{"use strict";var n=r(328);var s=r(646);var o=r(3214);var i=r(5062);var a=r(4831);function Axios(e){this.defaults=e;this.interceptors={request:new o,response:new o}}Axios.prototype.request=function request(e){if(typeof e==="string"){e=arguments[1]||{};e.url=arguments[0]}else{e=e||{}}e=a(this.defaults,e);if(e.method){e.method=e.method.toLowerCase()}else if(this.defaults.method){e.method=this.defaults.method.toLowerCase()}else{e.method="get"}var t=[i,undefined];var r=Promise.resolve(e);this.interceptors.request.forEach(function unshiftRequestInterceptors(e){t.unshift(e.fulfilled,e.rejected)});this.interceptors.response.forEach(function pushResponseInterceptors(e){t.push(e.fulfilled,e.rejected)});while(t.length){r=r.then(t.shift(),t.shift())}return r};Axios.prototype.getUri=function getUri(e){e=a(this.defaults,e);return s(e.url,e.params,e.paramsSerializer).replace(/^\?/,"")};n.forEach(["delete","get","head","options"],function forEachMethodNoData(e){Axios.prototype[e]=function(t,r){return this.request(a(r||{},{method:e,url:t,data:(r||{}).data}))}});n.forEach(["post","put","patch"],function forEachMethodWithData(e){Axios.prototype[e]=function(t,r,n){return this.request(a(n||{},{method:e,url:t,data:r}))}});e.exports=Axios},3214:(e,t,r)=>{"use strict";var n=r(328);function InterceptorManager(){this.handlers=[]}InterceptorManager.prototype.use=function use(e,t){this.handlers.push({fulfilled:e,rejected:t});return this.handlers.length-1};InterceptorManager.prototype.eject=function eject(e){if(this.handlers[e]){this.handlers[e]=null}};InterceptorManager.prototype.forEach=function forEach(e){n.forEach(this.handlers,function forEachHandler(t){if(t!==null){e(t)}})};e.exports=InterceptorManager},1934:(e,t,r)=>{"use strict";var n=r(1301);var s=r(7189);e.exports=function buildFullPath(e,t){if(e&&!n(t)){return s(e,t)}return t}},5226:(e,t,r)=>{"use strict";var n=r(1516);e.exports=function createError(e,t,r,s,o){var i=new Error(e);return n(i,t,r,s,o)}},5062:(e,t,r)=>{"use strict";var n=r(328);var s=r(9812);var o=r(4057);var i=r(8190);function throwIfCancellationRequested(e){if(e.cancelToken){e.cancelToken.throwIfRequested()}}e.exports=function dispatchRequest(e){throwIfCancellationRequested(e);e.headers=e.headers||{};e.data=s(e.data,e.headers,e.transformRequest);e.headers=n.merge(e.headers.common||{},e.headers[e.method]||{},e.headers);n.forEach(["delete","get","head","post","put","patch","common"],function cleanHeaderConfig(t){delete e.headers[t]});var t=e.adapter||i.adapter;return t(e).then(function onAdapterResolution(t){throwIfCancellationRequested(e);t.data=s(t.data,t.headers,e.transformResponse);return t},function onAdapterRejection(t){if(!o(t)){throwIfCancellationRequested(e);if(t&&t.response){t.response.data=s(t.response.data,t.response.headers,e.transformResponse)}}return Promise.reject(t)})}},1516:e=>{"use strict";e.exports=function enhanceError(e,t,r,n,s){e.config=t;if(r){e.code=r}e.request=n;e.response=s;e.isAxiosError=true;e.toJSON=function toJSON(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:this.config,code:this.code}};return e}},4831:(e,t,r)=>{"use strict";var n=r(328);e.exports=function mergeConfig(e,t){t=t||{};var r={};var s=["url","method","data"];var o=["headers","auth","proxy","params"];var i=["baseURL","transformRequest","transformResponse","paramsSerializer","timeout","timeoutMessage","withCredentials","adapter","responseType","xsrfCookieName","xsrfHeaderName","onUploadProgress","onDownloadProgress","decompress","maxContentLength","maxBodyLength","maxRedirects","transport","httpAgent","httpsAgent","cancelToken","socketPath","responseEncoding"];var a=["validateStatus"];function getMergedValue(e,t){if(n.isPlainObject(e)&&n.isPlainObject(t)){return n.merge(e,t)}else if(n.isPlainObject(t)){return n.merge({},t)}else if(n.isArray(t)){return t.slice()}return t}function mergeDeepProperties(s){if(!n.isUndefined(t[s])){r[s]=getMergedValue(e[s],t[s])}else if(!n.isUndefined(e[s])){r[s]=getMergedValue(undefined,e[s])}}n.forEach(s,function valueFromConfig2(e){if(!n.isUndefined(t[e])){r[e]=getMergedValue(undefined,t[e])}});n.forEach(o,mergeDeepProperties);n.forEach(i,function defaultToConfig2(s){if(!n.isUndefined(t[s])){r[s]=getMergedValue(undefined,t[s])}else if(!n.isUndefined(e[s])){r[s]=getMergedValue(undefined,e[s])}});n.forEach(a,function merge(n){if(n in t){r[n]=getMergedValue(e[n],t[n])}else if(n in e){r[n]=getMergedValue(undefined,e[n])}});var u=s.concat(o).concat(i).concat(a);var c=Object.keys(e).concat(Object.keys(t)).filter(function filterAxiosKeys(e){return u.indexOf(e)===-1});n.forEach(c,mergeDeepProperties);return r}},3211:(e,t,r)=>{"use strict";var n=r(5226);e.exports=function settle(e,t,r){var s=r.config.validateStatus;if(!r.status||!s||s(r.status)){e(r)}else{t(n("Request failed with status code "+r.status,r.config,null,r.request,r))}}},9812:(e,t,r)=>{"use strict";var n=r(328);e.exports=function transformData(e,t,r){n.forEach(r,function transform(r){e=r(e,t)});return e}},8190:(e,t,r)=>{"use strict";var n=r(328);var s=r(6240);var o={"Content-Type":"application/x-www-form-urlencoded"};function setContentTypeIfUnset(e,t){if(!n.isUndefined(e)&&n.isUndefined(e["Content-Type"])){e["Content-Type"]=t}}function getDefaultAdapter(){var e;if(typeof XMLHttpRequest!=="undefined"){e=r(3454)}else if(typeof process!=="undefined"&&Object.prototype.toString.call(process)==="[object process]"){e=r(8104)}return e}var i={adapter:getDefaultAdapter(),transformRequest:[function transformRequest(e,t){s(t,"Accept");s(t,"Content-Type");if(n.isFormData(e)||n.isArrayBuffer(e)||n.isBuffer(e)||n.isStream(e)||n.isFile(e)||n.isBlob(e)){return e}if(n.isArrayBufferView(e)){return e.buffer}if(n.isURLSearchParams(e)){setContentTypeIfUnset(t,"application/x-www-form-urlencoded;charset=utf-8");return e.toString()}if(n.isObject(e)){setContentTypeIfUnset(t,"application/json;charset=utf-8");return JSON.stringify(e)}return e}],transformResponse:[function transformResponse(e){if(typeof e==="string"){try{e=JSON.parse(e)}catch(e){}}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,validateStatus:function validateStatus(e){return e>=200&&e<300}};i.headers={common:{Accept:"application/json, text/plain, */*"}};n.forEach(["delete","get","head"],function forEachMethodNoData(e){i.headers[e]={}});n.forEach(["post","put","patch"],function forEachMethodWithData(e){i.headers[e]=n.merge(o)});e.exports=i},7065:e=>{"use strict";e.exports=function bind(e,t){return function wrap(){var r=new Array(arguments.length);for(var n=0;n{"use strict";var n=r(328);function encode(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}e.exports=function buildURL(e,t,r){if(!t){return e}var s;if(r){s=r(t)}else if(n.isURLSearchParams(t)){s=t.toString()}else{var o=[];n.forEach(t,function serialize(e,t){if(e===null||typeof e==="undefined"){return}if(n.isArray(e)){t=t+"[]"}else{e=[e]}n.forEach(e,function parseValue(e){if(n.isDate(e)){e=e.toISOString()}else if(n.isObject(e)){e=JSON.stringify(e)}o.push(encode(t)+"="+encode(e))})});s=o.join("&")}if(s){var i=e.indexOf("#");if(i!==-1){e=e.slice(0,i)}e+=(e.indexOf("?")===-1?"?":"&")+s}return e}},7189:e=>{"use strict";e.exports=function combineURLs(e,t){return t?e.replace(/\/+$/,"")+"/"+t.replace(/^\/+/,""):e}},1545:(e,t,r)=>{"use strict";var n=r(328);e.exports=n.isStandardBrowserEnv()?function standardBrowserEnv(){return{write:function write(e,t,r,s,o,i){var a=[];a.push(e+"="+encodeURIComponent(t));if(n.isNumber(r)){a.push("expires="+new Date(r).toGMTString())}if(n.isString(s)){a.push("path="+s)}if(n.isString(o)){a.push("domain="+o)}if(i===true){a.push("secure")}document.cookie=a.join("; ")},read:function read(e){var t=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return t?decodeURIComponent(t[3]):null},remove:function remove(e){this.write(e,"",Date.now()-864e5)}}}():function nonStandardBrowserEnv(){return{write:function write(){},read:function read(){return null},remove:function remove(){}}}()},1301:e=>{"use strict";e.exports=function isAbsoluteURL(e){return/^([a-z][a-z\d\+\-\.]*:)?\/\//i.test(e)}},3608:(e,t,r)=>{"use strict";var n=r(328);e.exports=n.isStandardBrowserEnv()?function standardBrowserEnv(){var e=/(msie|trident)/i.test(navigator.userAgent);var t=document.createElement("a");var r;function resolveURL(r){var n=r;if(e){t.setAttribute("href",n);n=t.href}t.setAttribute("href",n);return{href:t.href,protocol:t.protocol?t.protocol.replace(/:$/,""):"",host:t.host,search:t.search?t.search.replace(/^\?/,""):"",hash:t.hash?t.hash.replace(/^#/,""):"",hostname:t.hostname,port:t.port,pathname:t.pathname.charAt(0)==="/"?t.pathname:"/"+t.pathname}}r=resolveURL(window.location.href);return function isURLSameOrigin(e){var t=n.isString(e)?resolveURL(e):e;return t.protocol===r.protocol&&t.host===r.host}}():function nonStandardBrowserEnv(){return function isURLSameOrigin(){return true}}()},6240:(e,t,r)=>{"use strict";var n=r(328);e.exports=function normalizeHeaderName(e,t){n.forEach(e,function processHeader(r,n){if(n!==t&&n.toUpperCase()===t.toUpperCase()){e[t]=r;delete e[n]}})}},6455:(e,t,r)=>{"use strict";var n=r(328);var s=["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"];e.exports=function parseHeaders(e){var t={};var r;var o;var i;if(!e){return t}n.forEach(e.split("\n"),function parser(e){i=e.indexOf(":");r=n.trim(e.substr(0,i)).toLowerCase();o=n.trim(e.substr(i+1));if(r){if(t[r]&&s.indexOf(r)>=0){return}if(r==="set-cookie"){t[r]=(t[r]?t[r]:[]).concat([o])}else{t[r]=t[r]?t[r]+", "+o:o}}});return t}},4850:e=>{"use strict";e.exports=function spread(e){return function wrap(t){return e.apply(null,t)}}},328:(e,t,r)=>{"use strict";var n=r(7065);var s=Object.prototype.toString;function isArray(e){return s.call(e)==="[object Array]"}function isUndefined(e){return typeof e==="undefined"}function isBuffer(e){return e!==null&&!isUndefined(e)&&e.constructor!==null&&!isUndefined(e.constructor)&&typeof e.constructor.isBuffer==="function"&&e.constructor.isBuffer(e)}function isArrayBuffer(e){return s.call(e)==="[object ArrayBuffer]"}function isFormData(e){return typeof FormData!=="undefined"&&e instanceof FormData}function isArrayBufferView(e){var t;if(typeof ArrayBuffer!=="undefined"&&ArrayBuffer.isView){t=ArrayBuffer.isView(e)}else{t=e&&e.buffer&&e.buffer instanceof ArrayBuffer}return t}function isString(e){return typeof e==="string"}function isNumber(e){return typeof e==="number"}function isObject(e){return e!==null&&typeof e==="object"}function isPlainObject(e){if(s.call(e)!=="[object Object]"){return false}var t=Object.getPrototypeOf(e);return t===null||t===Object.prototype}function isDate(e){return s.call(e)==="[object Date]"}function isFile(e){return s.call(e)==="[object File]"}function isBlob(e){return s.call(e)==="[object Blob]"}function isFunction(e){return s.call(e)==="[object Function]"}function isStream(e){return isObject(e)&&isFunction(e.pipe)}function isURLSearchParams(e){return typeof URLSearchParams!=="undefined"&&e instanceof URLSearchParams}function trim(e){return e.replace(/^\s*/,"").replace(/\s*$/,"")}function isStandardBrowserEnv(){if(typeof navigator!=="undefined"&&(navigator.product==="ReactNative"||navigator.product==="NativeScript"||navigator.product==="NS")){return false}return typeof window!=="undefined"&&typeof document!=="undefined"}function forEach(e,t){if(e===null||typeof e==="undefined"){return}if(typeof e!=="object"){e=[e]}if(isArray(e)){for(var r=0,n=e.length;r{t.log=log;t.formatArgs=formatArgs;t.save=save;t.load=load;t.useColors=useColors;t.storage=localstorage();t.colors=["#0000CC","#0000FF","#0033CC","#0033FF","#0066CC","#0066FF","#0099CC","#0099FF","#00CC00","#00CC33","#00CC66","#00CC99","#00CCCC","#00CCFF","#3300CC","#3300FF","#3333CC","#3333FF","#3366CC","#3366FF","#3399CC","#3399FF","#33CC00","#33CC33","#33CC66","#33CC99","#33CCCC","#33CCFF","#6600CC","#6600FF","#6633CC","#6633FF","#66CC00","#66CC33","#9900CC","#9900FF","#9933CC","#9933FF","#99CC00","#99CC33","#CC0000","#CC0033","#CC0066","#CC0099","#CC00CC","#CC00FF","#CC3300","#CC3333","#CC3366","#CC3399","#CC33CC","#CC33FF","#CC6600","#CC6633","#CC9900","#CC9933","#CCCC00","#CCCC33","#FF0000","#FF0033","#FF0066","#FF0099","#FF00CC","#FF00FF","#FF3300","#FF3333","#FF3366","#FF3399","#FF33CC","#FF33FF","#FF6600","#FF6633","#FF9900","#FF9933","#FFCC00","#FFCC33"];function useColors(){if(typeof window!=="undefined"&&window.process&&(window.process.type==="renderer"||window.process.__nwjs)){return true}if(typeof navigator!=="undefined"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/(edge|trident)\/(\d+)/)){return false}return typeof document!=="undefined"&&document.documentElement&&document.documentElement.style&&document.documentElement.style.WebkitAppearance||typeof window!=="undefined"&&window.console&&(window.console.firebug||window.console.exception&&window.console.table)||typeof navigator!=="undefined"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/)&&parseInt(RegExp.$1,10)>=31||typeof navigator!=="undefined"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/)}function formatArgs(t){t[0]=(this.useColors?"%c":"")+this.namespace+(this.useColors?" %c":" ")+t[0]+(this.useColors?"%c ":" ")+"+"+e.exports.humanize(this.diff);if(!this.useColors){return}const r="color: "+this.color;t.splice(1,0,r,"color: inherit");let n=0;let s=0;t[0].replace(/%[a-zA-Z%]/g,e=>{if(e==="%%"){return}n++;if(e==="%c"){s=n}});t.splice(s,0,r)}function log(...e){return typeof console==="object"&&console.log&&console.log(...e)}function save(e){try{if(e){t.storage.setItem("debug",e)}else{t.storage.removeItem("debug")}}catch(e){}}function load(){let e;try{e=t.storage.getItem("debug")}catch(e){}if(!e&&typeof process!=="undefined"&&"env"in process){e=process.env.DEBUG}return e}function localstorage(){try{return localStorage}catch(e){}}e.exports=r(6243)(t);const{formatters:n}=e.exports;n.j=function(e){try{return JSON.stringify(e)}catch(e){return"[UnexpectedJSONParseError]: "+e.message}}},6243:(e,t,r)=>{function setup(e){createDebug.debug=createDebug;createDebug.default=createDebug;createDebug.coerce=coerce;createDebug.disable=disable;createDebug.enable=enable;createDebug.enabled=enabled;createDebug.humanize=r(900);Object.keys(e).forEach(t=>{createDebug[t]=e[t]});createDebug.instances=[];createDebug.names=[];createDebug.skips=[];createDebug.formatters={};function selectColor(e){let t=0;for(let r=0;r{if(t==="%%"){return t}o++;const s=createDebug.formatters[n];if(typeof s==="function"){const n=e[o];t=s.call(r,n);e.splice(o,1);o--}return t});createDebug.formatArgs.call(r,e);const i=r.log||createDebug.log;i.apply(r,e)}debug.namespace=e;debug.enabled=createDebug.enabled(e);debug.useColors=createDebug.useColors();debug.color=selectColor(e);debug.destroy=destroy;debug.extend=extend;if(typeof createDebug.init==="function"){createDebug.init(debug)}createDebug.instances.push(debug);return debug}function destroy(){const e=createDebug.instances.indexOf(this);if(e!==-1){createDebug.instances.splice(e,1);return true}return false}function extend(e,t){const r=createDebug(this.namespace+(typeof t==="undefined"?":":t)+e);r.log=this.log;return r}function enable(e){createDebug.save(e);createDebug.names=[];createDebug.skips=[];let t;const r=(typeof e==="string"?e:"").split(/[\s,]+/);const n=r.length;for(t=0;t"-"+e)].join(",");createDebug.enable("");return e}function enabled(e){if(e[e.length-1]==="*"){return true}let t;let r;for(t=0,r=createDebug.skips.length;t{if(typeof process==="undefined"||process.type==="renderer"||process.browser===true||process.__nwjs){e.exports=r(8222)}else{e.exports=r(5332)}},5332:(e,t,r)=>{const n=r(3867);const s=r(1669);t.init=init;t.log=log;t.formatArgs=formatArgs;t.save=save;t.load=load;t.useColors=useColors;t.colors=[6,2,3,4,5,1];try{const e=r(9318);if(e&&(e.stderr||e).level>=2){t.colors=[20,21,26,27,32,33,38,39,40,41,42,43,44,45,56,57,62,63,68,69,74,75,76,77,78,79,80,81,92,93,98,99,112,113,128,129,134,135,148,149,160,161,162,163,164,165,166,167,168,169,170,171,172,173,178,179,184,185,196,197,198,199,200,201,202,203,204,205,206,207,208,209,214,215,220,221]}}catch(e){}t.inspectOpts=Object.keys(process.env).filter(e=>{return/^debug_/i.test(e)}).reduce((e,t)=>{const r=t.substring(6).toLowerCase().replace(/_([a-z])/g,(e,t)=>{return t.toUpperCase()});let n=process.env[t];if(/^(yes|on|true|enabled)$/i.test(n)){n=true}else if(/^(no|off|false|disabled)$/i.test(n)){n=false}else if(n==="null"){n=null}else{n=Number(n)}e[r]=n;return e},{});function useColors(){return"colors"in t.inspectOpts?Boolean(t.inspectOpts.colors):n.isatty(process.stderr.fd)}function formatArgs(t){const{namespace:r,useColors:n}=this;if(n){const n=this.color;const s="[3"+(n<8?n:"8;5;"+n);const o=` ${s};1m${r} `;t[0]=o+t[0].split("\n").join("\n"+o);t.push(s+"m+"+e.exports.humanize(this.diff)+"")}else{t[0]=getDate()+r+" "+t[0]}}function getDate(){if(t.inspectOpts.hideDate){return""}return(new Date).toISOString()+" "}function log(...e){return process.stderr.write(s.format(...e)+"\n")}function save(e){if(e){process.env.DEBUG=e}else{delete process.env.DEBUG}}function load(){return process.env.DEBUG}function init(e){e.inspectOpts={};const r=Object.keys(t.inspectOpts);for(let n=0;n{var n;try{n=r(8237)("follow-redirects")}catch(e){n=function(){}}e.exports=n},7707:(e,t,r)=>{var n=r(8835);var s=n.URL;var o=r(8605);var i=r(7211);var a=r(2413).Writable;var u=r(2357);var c=r(1133);var f=Object.create(null);["abort","aborted","connect","error","socket","timeout"].forEach(function(e){f[e]=function(t,r,n){this._redirectable.emit(e,t,r,n)}});var l=createErrorType("ERR_FR_REDIRECTION_FAILURE","");var p=createErrorType("ERR_FR_TOO_MANY_REDIRECTS","Maximum number of redirects exceeded");var d=createErrorType("ERR_FR_MAX_BODY_LENGTH_EXCEEDED","Request body larger than maxBodyLength limit");var h=createErrorType("ERR_STREAM_WRITE_AFTER_END","write after end");function RedirectableRequest(e,t){a.call(this);this._sanitizeOptions(e);this._options=e;this._ended=false;this._ending=false;this._redirectCount=0;this._redirects=[];this._requestBodyLength=0;this._requestBodyBuffers=[];if(t){this.on("response",t)}var r=this;this._onNativeResponse=function(e){r._processResponse(e)};this._performRequest()}RedirectableRequest.prototype=Object.create(a.prototype);RedirectableRequest.prototype.write=function(e,t,r){if(this._ending){throw new h}if(!(typeof e==="string"||typeof e==="object"&&"length"in e)){throw new TypeError("data should be a string, Buffer or Uint8Array")}if(typeof t==="function"){r=t;t=null}if(e.length===0){if(r){r()}return}if(this._requestBodyLength+e.length<=this._options.maxBodyLength){this._requestBodyLength+=e.length;this._requestBodyBuffers.push({data:e,encoding:t});this._currentRequest.write(e,t,r)}else{this.emit("error",new d);this.abort()}};RedirectableRequest.prototype.end=function(e,t,r){if(typeof e==="function"){r=e;e=t=null}else if(typeof t==="function"){r=t;t=null}if(!e){this._ended=this._ending=true;this._currentRequest.end(null,null,r)}else{var n=this;var s=this._currentRequest;this.write(e,t,function(){n._ended=true;s.end(null,null,r)});this._ending=true}};RedirectableRequest.prototype.setHeader=function(e,t){this._options.headers[e]=t;this._currentRequest.setHeader(e,t)};RedirectableRequest.prototype.removeHeader=function(e){delete this._options.headers[e];this._currentRequest.removeHeader(e)};RedirectableRequest.prototype.setTimeout=function(e,t){if(t){this.once("timeout",t)}if(this.socket){startTimer(this,e)}else{var r=this;this._currentRequest.once("socket",function(){startTimer(r,e)})}this.once("response",clearTimer);this.once("error",clearTimer);return this};function startTimer(e,t){clearTimeout(e._timeout);e._timeout=setTimeout(function(){e.emit("timeout")},t)}function clearTimer(){clearTimeout(this._timeout)}["abort","flushHeaders","getHeader","setNoDelay","setSocketKeepAlive"].forEach(function(e){RedirectableRequest.prototype[e]=function(t,r){return this._currentRequest[e](t,r)}});["aborted","connection","socket"].forEach(function(e){Object.defineProperty(RedirectableRequest.prototype,e,{get:function(){return this._currentRequest[e]}})});RedirectableRequest.prototype._sanitizeOptions=function(e){if(!e.headers){e.headers={}}if(e.host){if(!e.hostname){e.hostname=e.host}delete e.host}if(!e.pathname&&e.path){var t=e.path.indexOf("?");if(t<0){e.pathname=e.path}else{e.pathname=e.path.substring(0,t);e.search=e.path.substring(t)}}};RedirectableRequest.prototype._performRequest=function(){var e=this._options.protocol;var t=this._options.nativeProtocols[e];if(!t){this.emit("error",new TypeError("Unsupported protocol "+e));return}if(this._options.agents){var r=e.substr(0,e.length-1);this._options.agent=this._options.agents[r]}var s=this._currentRequest=t.request(this._options,this._onNativeResponse);this._currentUrl=n.format(this._options);s._redirectable=this;for(var o in f){if(o){s.on(o,f[o])}}if(this._isRedirect){var i=0;var a=this;var u=this._requestBodyBuffers;(function writeNext(e){if(s===a._currentRequest){if(e){a.emit("error",e)}else if(i=300&&t<400){this._currentRequest.removeAllListeners();this._currentRequest.on("error",noop);this._currentRequest.abort();e.destroy();if(++this._redirectCount>this._options.maxRedirects){this.emit("error",new p);return}if((t===301||t===302)&&this._options.method==="POST"||t===303&&!/^(?:GET|HEAD)$/.test(this._options.method)){this._options.method="GET";this._requestBodyBuffers=[];removeMatchingHeaders(/^content-/i,this._options.headers)}var s=removeMatchingHeaders(/^host$/i,this._options.headers)||n.parse(this._currentUrl).hostname;var o=n.resolve(this._currentUrl,r);c("redirecting to",o);this._isRedirect=true;var i=n.parse(o);Object.assign(this._options,i);if(i.hostname!==s){removeMatchingHeaders(/^authorization$/i,this._options.headers)}if(typeof this._options.beforeRedirect==="function"){var a={headers:e.headers};try{this._options.beforeRedirect.call(null,this._options,a)}catch(e){this.emit("error",e);return}this._sanitizeOptions(this._options)}try{this._performRequest()}catch(e){var u=new l("Redirected request failed: "+e.message);u.cause=e;this.emit("error",u)}}else{e.responseUrl=this._currentUrl;e.redirects=this._redirects;this.emit("response",e);this._requestBodyBuffers=[]}};function wrap(e){var t={maxRedirects:21,maxBodyLength:10*1024*1024};var r={};Object.keys(e).forEach(function(o){var i=o+":";var a=r[i]=e[o];var f=t[o]=Object.create(a);f.request=function(e,o,a){if(typeof e==="string"){var f=e;try{e=urlToOptions(new s(f))}catch(t){e=n.parse(f)}}else if(s&&e instanceof s){e=urlToOptions(e)}else{a=o;o=e;e={protocol:i}}if(typeof o==="function"){a=o;o=null}o=Object.assign({maxRedirects:t.maxRedirects,maxBodyLength:t.maxBodyLength},e,o);o.nativeProtocols=r;u.equal(o.protocol,i,"protocol mismatch");c("options",o);return new RedirectableRequest(o,a)};f.get=function(e,t,r){var n=f.request(e,t,r);n.end();return n}});return t}function noop(){}function urlToOptions(e){var t={protocol:e.protocol,hostname:e.hostname.startsWith("[")?e.hostname.slice(1,-1):e.hostname,hash:e.hash,search:e.search,pathname:e.pathname,path:e.pathname+e.search,href:e.href};if(e.port!==""){t.port=Number(e.port)}return t}function removeMatchingHeaders(e,t){var r;for(var n in t){if(e.test(n)){r=t[n];delete t[n]}}return r}function createErrorType(e,t){function CustomError(e){Error.captureStackTrace(this,this.constructor);this.message=e||t}CustomError.prototype=new Error;CustomError.prototype.constructor=CustomError;CustomError.prototype.name="Error ["+e+"]";CustomError.prototype.code=e;return CustomError}e.exports=wrap({http:o,https:i});e.exports.wrap=wrap},1621:e=>{"use strict";e.exports=((e,t)=>{t=t||process.argv;const r=e.startsWith("-")?"":e.length===1?"-":"--";const n=t.indexOf(r+e);const s=t.indexOf("--");return n!==-1&&(s===-1?true:n{var t=1e3;var r=t*60;var n=r*60;var s=n*24;var o=s*7;var i=s*365.25;e.exports=function(e,t){t=t||{};var r=typeof e;if(r==="string"&&e.length>0){return parse(e)}else if(r==="number"&&isFinite(e)){return t.long?fmtLong(e):fmtShort(e)}throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(e))};function parse(e){e=String(e);if(e.length>100){return}var a=/^(-?(?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)?$/i.exec(e);if(!a){return}var u=parseFloat(a[1]);var c=(a[2]||"ms").toLowerCase();switch(c){case"years":case"year":case"yrs":case"yr":case"y":return u*i;case"weeks":case"week":case"w":return u*o;case"days":case"day":case"d":return u*s;case"hours":case"hour":case"hrs":case"hr":case"h":return u*n;case"minutes":case"minute":case"mins":case"min":case"m":return u*r;case"seconds":case"second":case"secs":case"sec":case"s":return u*t;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return u;default:return undefined}}function fmtShort(e){var o=Math.abs(e);if(o>=s){return Math.round(e/s)+"d"}if(o>=n){return Math.round(e/n)+"h"}if(o>=r){return Math.round(e/r)+"m"}if(o>=t){return Math.round(e/t)+"s"}return e+"ms"}function fmtLong(e){var o=Math.abs(e);if(o>=s){return plural(e,o,s,"day")}if(o>=n){return plural(e,o,n,"hour")}if(o>=r){return plural(e,o,r,"minute")}if(o>=t){return plural(e,o,t,"second")}return e+" ms"}function plural(e,t,r,n){var s=t>=r*1.5;return Math.round(e/r)+" "+n+(s?"s":"")}},1949:(e,t,r)=>{const n=r(4966);const{GitConstructError:s}=r(4732);const{createInstanceConfig:o,folderExists:i}=r(847);const a=Object.create(null);for(let e=r(4732),t=Object.keys(e),n=0;n{const n=r(5301);const{GitExecutor:s}=r(4701);const{Scheduler:o}=r(3421);const{GitLogger:i}=r(7178);const{adhocExecTask:a,configurationErrorTask:u}=r(2815);const{NOOP:c,appendTaskOptions:f,asArray:l,filterArray:p,filterPrimitives:d,filterString:h,filterType:m,folderExists:g,getTrailingOptions:y,trailingFunctionArgument:v,trailingOptionsArgument:b}=r(847);const{branchTask:T,branchLocalTask:_,deleteBranchesTask:C,deleteBranchTask:R}=r(17);const{taskCallback:O}=r(8850);const{checkIsRepoTask:E}=r(221);const{cloneTask:k,cloneMirrorTask:S}=r(3173);const{addConfigTask:w,listConfigTask:x}=r(7597);const{cleanWithOptionsTask:P,isCleanOptionsArray:L}=r(4386);const{initTask:M}=r(6016);const{mergeTask:A}=r(8829);const{moveTask:D}=r(6520);const{pullTask:j}=r(4636);const{pushTagsTask:F,pushTask:I}=r(1435);const{addRemoteTask:G,getRemotesTask:B,listRemotesTask:N,remoteTask:U,removeRemoteTask:q}=r(9866);const{getResetMode:$,resetTask:H}=r(2377);const{statusTask:V}=r(9197);const{addSubModuleTask:z,initSubModuleTask:W,subModuleTask:Y,updateSubModuleTask:K}=r(8772);const{addAnnotatedTagTask:J,addTagTask:Q,tagListTask:X}=r(8540);const{straightThroughStringTask:Z}=r(2815);const{parseCheckIgnore:ee}=r(9926);const te=Symbol("ChainedExecutor");function Git(e){this._executor=new s(e.binary,e.baseDir,new o(e.maxConcurrentProcesses));this._logger=new i}Git.prototype._executor=null;Git.prototype._logger=null;Git.prototype.customBinary=function(e){this._executor.binary=e;return this};Git.prototype.env=function(e,t){if(arguments.length===1&&typeof e==="object"){this._executor.env=e}else{(this._executor.env=this._executor.env||{})[e]=t}return this};Git.prototype.cwd=function(e,t){const r=typeof e!=="string"?u("Git.cwd: workingDirectory must be supplied as a string"):a(()=>{if(!g(e)){throw new Error(`Git.cwd: cannot change to non-directory "${e}"`)}return this._executor.cwd=e});return this._runTask(r,v(arguments)||c)};Git.prototype.outputHandler=function(e){this._executor.outputHandler=e;return this};Git.prototype.init=function(e,t){return this._runTask(M(e===true,this._executor.cwd,y(arguments)),v(arguments))};Git.prototype.status=function(){return this._runTask(V(y(arguments)),v(arguments))};Git.prototype.stashList=function(e,t){var r=v(arguments);var n=(r===t?e:null)||{};var s=n.splitter||requireResponseHandler("ListLogSummary").SPLITTER;var o=["stash","list","--pretty=format:"+requireResponseHandler("ListLogSummary").START_BOUNDARY+"%H %ai %s%d %aN %ae".replace(/\s+/g,s)+requireResponseHandler("ListLogSummary").COMMIT_BOUNDARY];if(Array.isArray(n)){o=o.concat(n)}return this._run(o,r,{parser:Git.responseParser("ListLogSummary",s)})};Git.prototype.stash=function(e,t){return this._run(["stash"].concat(y(arguments)),v(arguments))};function createCloneTask(e,t,r,n){if(typeof r!=="string"){return u(`git.${e}() requires a string 'repoPath'`)}return t(r,m(n,h),y(arguments))}Git.prototype.clone=function(){return this._runTask(createCloneTask("clone",k,...arguments),v(arguments))};Git.prototype.mirror=function(){return this._runTask(createCloneTask("mirror",S,...arguments),v(arguments))};Git.prototype.mv=function(e,t){return this._runTask(D(e,t),v(arguments))};Git.prototype.checkoutLatestTag=function(e){var t=this;return this.pull(function(){t.tags(function(r,n){t.checkout(n.latest,e)})})};Git.prototype.add=function(e){return this._run(["add"].concat(e),v(arguments))};Git.prototype.commit=function(e,t,r,n){var s=["commit"];l(e).forEach(function(e){s.push("-m",e)});l(typeof t==="string"||Array.isArray(t)?t:[]).forEach(e=>s.push(e));s.push(...y(arguments,0,true));return this._run(s,v(arguments),{parser:Git.responseParser("CommitSummary")})};Git.prototype.pull=function(e,t,r,n){return this._runTask(j(m(e,h),m(t,h),y(arguments)),v(arguments))};Git.prototype.fetch=function(e,t,r){const n=["fetch"].concat(y(arguments));if(typeof e==="string"&&typeof t==="string"){n.push(e,t)}return this._run(n,v(arguments),{concatStdErr:true,parser:Git.responseParser("FetchSummary")})};Git.prototype.silent=function(e){this._logger.silent(!!e);return this};Git.prototype.tags=function(e,t){return this._runTask(X(y(arguments)),v(arguments))};Git.prototype.rebase=function(e,t){return this._run(["rebase"].concat(y(arguments)),v(arguments))};Git.prototype.reset=function(e,t){return this._runTask(H($(e),y(arguments)),v(arguments))};Git.prototype.revert=function(e,t,r){const n=v(arguments);if(typeof e!=="string"){return this._runTask(u("Commit must be a string"),n)}return this._run(["revert",...y(arguments,0,true),e],n)};Git.prototype.addTag=function(e,t){const r=typeof e==="string"?Q(e):u("Git.addTag requires a tag name");return this._runTask(r,v(arguments))};Git.prototype.addAnnotatedTag=function(e,t,r){return this._runTask(J(e,t),v(arguments))};Git.prototype.checkout=function(e,t){const r=["checkout",...y(arguments,true)];return this._runTask(Z(r),v(arguments))};Git.prototype.checkoutBranch=function(e,t,r){return this.checkout(["-b",e,t],v(arguments))};Git.prototype.checkoutLocalBranch=function(e,t){return this.checkout(["-b",e],v(arguments))};Git.prototype.deleteLocalBranch=function(e,t,r){return this._runTask(R(e,typeof t==="boolean"?t:false),v(arguments))};Git.prototype.deleteLocalBranches=function(e,t,r){return this._runTask(C(e,typeof t==="boolean"?t:false),v(arguments))};Git.prototype.branch=function(e,t){return this._runTask(T(y(arguments)),v(arguments))};Git.prototype.branchLocal=function(e){return this._runTask(_(),v(arguments))};Git.prototype.addConfig=function(e,t,r,n){return this._runTask(w(e,t,typeof r==="boolean"?r:false),v(arguments))};Git.prototype.listConfig=function(){return this._runTask(x(),v(arguments))};Git.prototype.raw=function(e){const t=!Array.isArray(e);const r=[].slice.call(t?arguments:e,0);for(let e=0;e{const{gitP:n}=r(941);const{esModuleFactory:s,gitInstanceFactory:o,gitExportFactory:i}=r(1949);e.exports=s(i(o,{gitP:n}))},4732:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});var n=r(4386);t.CleanOptions=n.CleanOptions;var s=r(221);t.CheckRepoActions=s.CheckRepoActions;var o=r(2377);t.ResetMode=o.ResetMode;var i=r(1876);t.GitConstructError=i.GitConstructError;var a=r(5757);t.GitError=a.GitError;var u=r(5131);t.GitResponseError=u.GitResponseError;var c=r(740);t.TaskConfigurationError=c.TaskConfigurationError},1876:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});const n=r(5757);class GitConstructError extends n.GitError{constructor(e,t){super(undefined,t);this.config=e}}t.GitConstructError=GitConstructError},5757:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});class GitError extends Error{constructor(e,t){super(t);this.task=e;Object.setPrototypeOf(this,undefined)}}t.GitError=GitError},5131:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});const n=r(5757);class GitResponseError extends n.GitError{constructor(e,t){super(undefined,t||String(e));this.git=e}}t.GitResponseError=GitResponseError},740:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});const n=r(5757);class TaskConfigurationError extends n.GitError{constructor(e){super(undefined,e)}}t.TaskConfigurationError=TaskConfigurationError},7178:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});const n=r(8237);const s=r(847);n.default.formatters.L=(e=>String(s.filterHasLength(e)?e.length:"-"));n.default.formatters.B=(e=>{if(Buffer.isBuffer(e)){return e.toString("utf8")}return s.objectToString(e)});t.log=n.default("simple-git");function prefixedLogger(e,t,r){if(!t||!String(t).replace(/\s*/,"")){return!r?e:(t,...n)=>{e(t,...n);r(t,...n)}}return(n,...s)=>{e(`%s ${n}`,t,...s);if(r){r(n,...s)}}}function childLoggerName(e,t,{namespace:r}){if(typeof e==="string"){return e}const n=t&&t.namespace||"";if(n.startsWith(r)){return n.substr(r.length+1)}return n||r}function createLogger(e,r,n,o=t.log){const i=e&&`[${e}]`||"";const a=[];const u=typeof r==="string"?o.extend(r):r;const c=childLoggerName(s.filterType(r,s.filterString),u,o);const f=((u===null||u===void 0?void 0:u.destroy)||s.NOOP).bind(u);return step(n);function destroy(){f();a.forEach(e=>e.destroy());a.length=0}function child(t){return s.append(a,createLogger(e,u&&u.extend(t)||t))}function sibling(t,r){return s.append(a,createLogger(e,c.replace(/^[^:]+/,t),r,o))}function step(t){const r=t&&`[${t}]`||"";const n=u&&prefixedLogger(u,r)||s.NOOP;const a=prefixedLogger(o,`${i} ${r}`,n);return Object.assign(u?n:a,{key:c,label:e,child:child,sibling:sibling,debug:n,info:a,step:step,destroy:destroy})}}t.createLogger=createLogger;class GitLogger{constructor(e=t.log){this._out=e;this.error=prefixedLogger(e,"[ERROR]");this.warn=prefixedLogger(e,"[WARN]")}silent(e=false){if(e!==this._out.enabled){return}const{namespace:t}=this._out;const r=(process.env.DEBUG||"").split(",").filter(e=>!!e);const o=r.includes(t);const i=r.includes(`-${t}`);if(!e){if(i){s.remove(r,`-${t}`)}else{r.push(t)}}else{if(o){s.remove(r,t)}else{r.push(`-${t}`)}}n.default.enable(r.join(","))}}t.GitLogger=GitLogger},6086:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});const n=r(3755);const s=r(847);const o=/(\S+)\s+\(\S+\s([^)]+)\)/;const i=/^error[^']+'([^']+)'/m;const a=[new s.LineParser(o,(e,[t,r])=>{const s=n.branchDeletionSuccess(t,r);e.all.push(s);e.branches[t]=s}),new s.LineParser(i,(e,[t])=>{const r=n.branchDeletionFailure(t);e.errors.push(r);e.all.push(r);e.branches[t]=r})];t.parseBranchDeletions=(e=>{return s.parseStringResponse(new n.BranchDeletionBatch,a,e)});function hasBranchDeletionError(e,t){return t===s.ExitCodes.ERROR&&i.test(e)}t.hasBranchDeletionError=hasBranchDeletionError},9264:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});const n=r(4446);const s=r(847);const o=[new s.LineParser(/^(\*\s)?\((?:HEAD )?detached (?:from|at) (\S+)\)\s+([a-z0-9]+)\s(.*)$/,(e,[t,r,n,s])=>{e.push(!!t,true,r,n,s)}),new s.LineParser(/^(\*\s)?(\S+)\s+([a-z0-9]+)\s(.*)$/,(e,[t,r,n,s])=>{e.push(!!t,false,r,n,s)})];t.parseBranchSummary=function(e){return s.parseStringResponse(new n.BranchSummaryResult,o,e)}},6412:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});const n=r(1651);const s=r(847);const o=r(5658);const i=[new s.LineParser(/^Auto-merging\s+(.+)$/,(e,[t])=>{e.merges.push(t)}),new s.LineParser(/^CONFLICT\s+\((.+)\): Merge conflict in (.+)$/,(e,[t,r])=>{e.conflicts.push(new n.MergeSummaryConflict(t,r))}),new s.LineParser(/^CONFLICT\s+\((.+\/delete)\): (.+) deleted in (.+) and/,(e,[t,r,s])=>{e.conflicts.push(new n.MergeSummaryConflict(t,r,{deleteRef:s}))}),new s.LineParser(/^CONFLICT\s+\((.+)\):/,(e,[t])=>{e.conflicts.push(new n.MergeSummaryConflict(t,null))}),new s.LineParser(/^Automatic merge failed;\s+(.+)$/,(e,[t])=>{e.result=t})];t.parseMergeResult=((e,r)=>{return Object.assign(t.parseMergeDetail(e,r),o.parsePullResult(e,r))});t.parseMergeDetail=(e=>{return s.parseStringResponse(new n.MergeSummaryDetail,i,e)})},7444:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});const n=r(847);const s=[new n.LineParser(/^Renaming (.+) to (.+)$/,(e,[t,r])=>{e.moves.push({from:t,to:r})})];t.parseMoveResult=function(e){return n.parseStringResponse({moves:[]},s,e)}},5658:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});const n=r(3567);const s=r(847);const o=r(2661);const i=/^\s*(.+?)\s+\|\s+\d+\s*(\+*)(-*)/;const a=/(\d+)\D+((\d+)\D+\(\+\))?(\D+(\d+)\D+\(-\))?/;const u=/^(create|delete) mode \d+ (.+)/;const c=[new s.LineParser(i,(e,[t,r,n])=>{e.files.push(t);if(r){e.insertions[t]=r.length}if(n){e.deletions[t]=n.length}}),new s.LineParser(a,(e,[t,,r,,n])=>{if(r!==undefined||n!==undefined){e.summary.changes=+t||0;e.summary.insertions=+r||0;e.summary.deletions=+n||0;return true}return false}),new s.LineParser(u,(e,[t,r])=>{s.append(e.files,r);s.append(t==="create"?e.created:e.deleted,r)})];t.parsePullDetail=((e,t)=>{return s.parseStringResponse(new n.PullSummary,c,`${e}\n${t}`)});t.parsePullResult=((e,r)=>{return Object.assign(new n.PullSummary,t.parsePullDetail(e,r),o.parseRemoteMessages(e,r))})},8530:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});const n=r(847);const s=r(2661);function pushResultPushedItem(e,t,r){const n=r.includes("deleted");const s=r.includes("tag")||/^refs\/tags/.test(e);const o=!r.includes("new");return{deleted:n,tag:s,branch:!s,new:!o,alreadyUpdated:o,local:e,remote:t}}const o=[new n.LineParser(/^Pushing to (.+)$/,(e,[t])=>{e.repo=t}),new n.LineParser(/^updating local tracking ref '(.+)'/,(e,[t])=>{e.ref=Object.assign(Object.assign({},e.ref||{}),{local:t})}),new n.LineParser(/^[*-=]\s+([^:]+):(\S+)\s+\[(.+)]$/,(e,[t,r,n])=>{e.pushed.push(pushResultPushedItem(t,r,n))}),new n.LineParser(/^Branch '([^']+)' set up to track remote branch '([^']+)' from '([^']+)'/,(e,[t,r,n])=>{e.branch=Object.assign(Object.assign({},e.branch||{}),{local:t,remote:r,remoteName:n})}),new n.LineParser(/^([^:]+):(\S+)\s+([a-z0-9]+)\.\.([a-z0-9]+)$/,(e,[t,r,n,s])=>{e.update={head:{local:t,remote:r},hash:{from:n,to:s}}})];t.parsePushResult=((e,r)=>{const n=t.parsePushDetail(e,r);const o=s.parseRemoteMessages(e,r);return Object.assign(Object.assign({},n),o)});t.parsePushDetail=((e,t)=>{return n.parseStringResponse({pushed:[]},o,`${e}\n${t}`)})},2661:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});const n=r(847);const s=r(3565);const o=[new n.RemoteLineParser(/^remote:\s*(.+)$/,(e,[t])=>{e.remoteMessages.all.push(t.trim());return false}),...s.remoteMessagesObjectParsers,new n.RemoteLineParser([/create a (?:pull|merge) request/i,/\s(https?:\/\/\S+)$/],(e,[t])=>{e.remoteMessages.pullRequestUrl=t}),new n.RemoteLineParser([/found (\d+) vulnerabilities.+\(([^)]+)\)/i,/\s(https?:\/\/\S+)$/],(e,[t,r,s])=>{e.remoteMessages.vulnerabilities={count:n.asNumber(t),summary:r,url:s}})];function parseRemoteMessages(e,t){return n.parseStringResponse({remoteMessages:new RemoteMessageSummary},o,t)}t.parseRemoteMessages=parseRemoteMessages;class RemoteMessageSummary{constructor(){this.all=[]}}t.RemoteMessageSummary=RemoteMessageSummary},3565:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});const n=r(847);function objectEnumerationResult(e){return e.objects=e.objects||{compressing:0,counting:0,enumerating:0,packReused:0,reused:{count:0,delta:0},total:{count:0,delta:0}}}function asObjectCount(e){const t=/^\s*(\d+)/.exec(e);const r=/delta (\d+)/i.exec(e);return{count:n.asNumber(t&&t[1]||"0"),delta:n.asNumber(r&&r[1]||"0")}}t.remoteMessagesObjectParsers=[new n.RemoteLineParser(/^remote:\s*(enumerating|counting|compressing) objects: (\d+),/i,(e,[t,r])=>{const s=t.toLowerCase();const o=objectEnumerationResult(e.remoteMessages);Object.assign(o,{[s]:n.asNumber(r)})}),new n.RemoteLineParser(/^remote:\s*(enumerating|counting|compressing) objects: \d+% \(\d+\/(\d+)\),/i,(e,[t,r])=>{const s=t.toLowerCase();const o=objectEnumerationResult(e.remoteMessages);Object.assign(o,{[s]:n.asNumber(r)})}),new n.RemoteLineParser(/total ([^,]+), reused ([^,]+), pack-reused (\d+)/i,(e,[t,r,s])=>{const o=objectEnumerationResult(e.remoteMessages);o.total=asObjectCount(t);o.reused=asObjectCount(r);o.packReused=n.asNumber(s)})]},3755:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});class BranchDeletionBatch{constructor(){this.all=[];this.branches={};this.errors=[]}get success(){return!this.errors.length}}t.BranchDeletionBatch=BranchDeletionBatch;function branchDeletionSuccess(e,t){return{branch:e,hash:t,success:true}}t.branchDeletionSuccess=branchDeletionSuccess;function branchDeletionFailure(e){return{branch:e,hash:null,success:false}}t.branchDeletionFailure=branchDeletionFailure;function isSingleBranchDeleteFailure(e){return e.success}t.isSingleBranchDeleteFailure=isSingleBranchDeleteFailure},4446:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});class BranchSummaryResult{constructor(){this.all=[];this.branches={};this.current="";this.detached=false}push(e,t,r,n,s){if(e){this.detached=t;this.current=r}this.all.push(r);this.branches[r]={current:e,name:r,commit:n,label:s}}}t.BranchSummaryResult=BranchSummaryResult},9926:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.parseCheckIgnore=(e=>{return e.split(/\n/g).map(e=>e.trim()).filter(e=>!!e)})},5689:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});const n=r(847);class CleanResponse{constructor(e){this.dryRun=e;this.paths=[];this.files=[];this.folders=[]}}t.CleanResponse=CleanResponse;const s=/^[a-z]+\s*/i;const o=/^[a-z]+\s+[a-z]+\s*/i;const i=/\/$/;function cleanSummaryParser(e,t){const r=new CleanResponse(e);const a=e?o:s;n.toLinesWithContent(t).forEach(e=>{const t=e.replace(a,"");r.paths.push(t);(i.test(t)?r.folders:r.files).push(t)});return r}t.cleanSummaryParser=cleanSummaryParser},7219:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});const n=r(847);class ConfigList{constructor(){this.files=[];this.values=Object.create(null)}get all(){if(!this._all){this._all=this.files.reduce((e,t)=>{return Object.assign(e,this.values[t])},{})}return this._all}addFile(e){if(!(e in this.values)){const t=n.last(this.files);this.values[e]=t?Object.create(this.values[t]):{};this.files.push(e)}return this.values[e]}addValue(e,t,r){const n=this.addFile(e);if(!n.hasOwnProperty(t)){n[t]=r}else if(Array.isArray(n[t])){n[t].push(r)}else{n[t]=[n[t],r]}this._all=undefined}}t.ConfigList=ConfigList;function configListParser(e){const t=new ConfigList;const r=e.split("\0");for(let e=0,s=r.length-1;e{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.fromPathRegex=/^(.+) -> (.+)$/;class FileStatusSummary{constructor(e,r,n){this.path=e;this.index=r;this.working_dir=n;if("R"===r+n){const r=t.fromPathRegex.exec(e)||[null,e,e];this.from=r[1]||"";this.path=r[2]||""}}}t.FileStatusSummary=FileStatusSummary},9999:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});const n=r(847);function parseGetRemotes(e){const t={};forEach(e,([e])=>t[e]={name:e});return Object.values(t)}t.parseGetRemotes=parseGetRemotes;function parseGetRemotesVerbose(e){const t={};forEach(e,([e,r,n])=>{if(!t.hasOwnProperty(e)){t[e]={name:e,refs:{fetch:"",push:""}}}if(n&&r){t[e].refs[n.replace(/[^a-z]/g,"")]=r}});return Object.values(t)}t.parseGetRemotesVerbose=parseGetRemotesVerbose;function forEach(e,t){n.forEachLineWithContent(e,e=>t(e.split(/\s+/)))}},8690:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});class InitSummary{constructor(e,t,r,n){this.bare=e;this.path=t;this.existing=r;this.gitDir=n}}t.InitSummary=InitSummary;const r=/^Init.+ repository in (.+)$/;const n=/^Rein.+ in (.+)$/;function parseInit(e,t,s){const o=String(s).trim();let i;if(i=r.exec(o)){return new InitSummary(e,t,false,i[1])}if(i=n.exec(o)){return new InitSummary(e,t,true,i[1])}let a="";const u=o.split(" ");while(u.length){const e=u.shift();if(e==="in"){a=u.join(" ");break}}return new InitSummary(e,t,/^re/i.test(o),a)}t.parseInit=parseInit},1651:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});class MergeSummaryConflict{constructor(e,t=null,r){this.reason=e;this.file=t;this.meta=r}toString(){return`${this.file}:${this.reason}`}}t.MergeSummaryConflict=MergeSummaryConflict;class MergeSummaryDetail{constructor(){this.conflicts=[];this.merges=[];this.result="success"}get failed(){return this.conflicts.length>0}get reason(){return this.result}toString(){if(this.conflicts.length){return`CONFLICTS: ${this.conflicts.join(", ")}`}return"OK"}}t.MergeSummaryDetail=MergeSummaryDetail},3567:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});class PullSummary{constructor(){this.remoteMessages={all:[]};this.created=[];this.deleted=[];this.files=[];this.deletions={};this.insertions={};this.summary={changes:0,deletions:0,insertions:0}}}t.PullSummary=PullSummary},6790:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});const n=r(860);class StatusSummary{constructor(){this.not_added=[];this.conflicted=[];this.created=[];this.deleted=[];this.modified=[];this.renamed=[];this.files=[];this.staged=[];this.ahead=0;this.behind=0;this.current=null;this.tracking=null}isClean(){return!this.files.length}}t.StatusSummary=StatusSummary;t.StatusSummaryParsers={"##":function(e,t){const r=/ahead (\d+)/;const n=/behind (\d+)/;const s=/^(.+?(?=(?:\.{3}|\s|$)))/;const o=/\.{3}(\S*)/;const i=/\son\s([\S]+)$/;let a;a=r.exec(e);t.ahead=a&&+a[1]||0;a=n.exec(e);t.behind=a&&+a[1]||0;a=s.exec(e);t.current=a&&a[1];a=o.exec(e);t.tracking=a&&a[1];a=i.exec(e);t.current=a&&a[1]||t.current},"??":function(e,t){t.not_added.push(e)},A:function(e,t){t.created.push(e)},AM:function(e,t){t.created.push(e)},D:function(e,t){t.deleted.push(e)},M:function(e,t,r){t.modified.push(e);if(r==="M"){t.staged.push(e)}},R:function(e,t){const r=/^(.+) -> (.+)$/.exec(e)||[null,e,e];t.renamed.push({from:String(r[1]),to:String(r[2])})},UU:function(e,t){t.conflicted.push(e)}};t.StatusSummaryParsers.MM=t.StatusSummaryParsers.M;t.StatusSummaryParsers.AA=t.StatusSummaryParsers.UU;t.StatusSummaryParsers.UD=t.StatusSummaryParsers.UU;t.StatusSummaryParsers.DU=t.StatusSummaryParsers.UU;t.StatusSummaryParsers.DD=t.StatusSummaryParsers.UU;t.StatusSummaryParsers.AU=t.StatusSummaryParsers.UU;t.StatusSummaryParsers.UA=t.StatusSummaryParsers.UU;t.parseStatusSummary=function(e){let t;const r=e.trim().split("\n");const s=new StatusSummary;for(let e=0,o=r.length;e1){n+=" "}if(n.length===1&&r[2].length===1){n=" "+n}return{raw:n,code:n.trim(),index:n.charAt(0),workingDir:n.charAt(1),handler:t.StatusSummaryParsers[n.trim()],path:r[3]}}},4539:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});class TagList{constructor(e,t){this.all=e;this.latest=t}}t.TagList=TagList;t.parseTagList=function(e,t=false){const r=e.split("\n").map(trimmed).filter(Boolean);if(!t){r.sort(function(e,t){const r=e.split(".");const n=t.split(".");if(r.length===1||n.length===1){return singleSorted(toNumber(r[0]),toNumber(n[0]))}for(let e=0,t=Math.max(r.length,n.length);ee.indexOf(".")>=0);return new TagList(r,n)};function singleSorted(e,t){const r=isNaN(e);const n=isNaN(t);if(r!==n){return r?1:-1}return r?sorted(e,t):0}function sorted(e,t){return e===t?0:e>t?1:-1}function trimmed(e){return e.trim()}function toNumber(e){if(typeof e==="string"){return parseInt(e.replace(/^\D+/g,""),10)||0}return 0}},8543:function(e,t,r){"use strict";var n=this&&this.__awaiter||function(e,t,r,n){function adopt(e){return e instanceof r?e:new r(function(t){t(e)})}return new(r||(r=Promise))(function(r,s){function fulfilled(e){try{step(n.next(e))}catch(e){s(e)}}function rejected(e){try{step(n["throw"](e))}catch(e){s(e)}}function step(e){e.done?r(e.value):adopt(e.value).then(fulfilled,rejected)}step((n=n.apply(e,t||[])).next())})};Object.defineProperty(t,"__esModule",{value:true});const s=r(3129);const o=r(4732);const i=r(2815);const a=r(6676);const u=r(847);class GitExecutorChain{constructor(e,t){this._executor=e;this._scheduler=t;this._chain=Promise.resolve();this._queue=new a.TasksPendingQueue}get binary(){return this._executor.binary}get outputHandler(){return this._executor.outputHandler}get cwd(){return this._executor.cwd}get env(){return this._executor.env}push(e){this._queue.push(e);return this._chain=this._chain.then(()=>this.attemptTask(e))}attemptTask(e){return n(this,void 0,void 0,function*(){const t=yield this._scheduler.next();const r=()=>this._queue.complete(e);try{const{logger:n}=this._queue.attempt(e);return yield i.isEmptyTask(e)?this.attemptEmptyTask(e,n):this.attemptRemoteTask(e,n)}catch(t){throw this.onFatalException(e,t)}finally{r();t()}})}onFatalException(e,t){const r=t instanceof o.GitError?Object.assign(t,{task:e}):new o.GitError(e,t&&String(t));this._chain=Promise.resolve();this._queue.fatal(r);return r}attemptRemoteTask(e,t){return n(this,void 0,void 0,function*(){const r=yield this.gitResponse(this.binary,e.commands,this.outputHandler,t.step("SPAWN"));const n=yield this.handleTaskData(e,r,t.step("HANDLE"));t(`passing response to task's parser as a %s`,e.format);if(i.isBufferTask(e)){return u.callTaskParser(e.parser,n)}return u.callTaskParser(e.parser,n.asStrings())})}attemptEmptyTask(e,t){return n(this,void 0,void 0,function*(){t(`empty task bypassing child process to call to task's parser`);return e.parser()})}handleTaskData({onError:e,concatStdErr:t},{exitCode:r,stdOut:n,stdErr:s},o){return new Promise((i,a)=>{o(`Preparing to handle process response exitCode=%d stdOut=`,r);if(r&&s.length&&e){o.info(`exitCode=%s handling with custom error handler`);o(`concatenate stdErr to stdOut: %j`,t);return e(r,Buffer.concat([...t?n:[],...s]).toString("utf-8"),e=>{o.info(`custom error handler treated as success`);o(`custom error returned a %s`,u.objectToString(e));i(new u.GitOutputStreams(Buffer.isBuffer(e)?e:Buffer.from(String(e)),Buffer.concat(s)))},a)}if(r&&s.length){o.info(`exitCode=%s treated as error when then child process has written to stdErr`);return a(Buffer.concat(s).toString("utf-8"))}if(t){o(`concatenating stdErr onto stdOut before processing`);o(`stdErr: $O`,s);n.push(...s)}o.info(`retrieving task output complete`);i(new u.GitOutputStreams(Buffer.concat(n),Buffer.concat(s)))})}gitResponse(e,t,r,o){return n(this,void 0,void 0,function*(){const n=o.sibling("output");const i={cwd:this.cwd,env:this.env,windowsHide:true};return new Promise(a=>{const u=[];const c=[];let f=false;function attemptClose(e,t="retry"){if(f||c.length||u.length){o.info(`exitCode=%s event=%s`,e,t);a({stdOut:u,stdErr:c,exitCode:e});f=true;n.destroy()}if(!f){f=true;setTimeout(()=>attemptClose(e,"deferred"),50);o("received %s event before content on stdOut/stdErr",t)}}o.info(`%s %o`,e,t);o("%O",i);const l=s.spawn(e,t,i);l.stdout.on("data",onDataReceived(u,"stdOut",o,n.step("stdOut")));l.stderr.on("data",onDataReceived(c,"stdErr",o,n.step("stdErr")));l.on("error",onErrorReceived(c,o));l.on("close",e=>attemptClose(e,"close"));l.on("exit",e=>attemptClose(e,"exit"));if(r){o(`Passing child process stdOut/stdErr to custom outputHandler`);r(e,l.stdout,l.stderr,[...t])}})})}}t.GitExecutorChain=GitExecutorChain;function onErrorReceived(e,t){return r=>{t(`[ERROR] child process exception %o`,r);e.push(Buffer.from(String(r.stack),"ascii"))}}function onDataReceived(e,t,r,n){return s=>{r(`%s received %L bytes`,t,s);n(`%B`,s);e.push(s)}}},4701:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});const n=r(8543);class GitExecutor{constructor(e="git",t,r){this.binary=e;this.cwd=t;this._scheduler=r;this._chain=new n.GitExecutorChain(this,this._scheduler)}chain(){return new n.GitExecutorChain(this,this._scheduler)}push(e){return this._chain.push(e)}}t.GitExecutor=GitExecutor},941:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});const n=r(5131);const s=["customBinary","env","outputHandler","silent"];const o=["add","addAnnotatedTag","addConfig","addRemote","addTag","binaryCatFile","branch","branchLocal","catFile","checkIgnore","checkIsRepo","checkout","checkoutBranch","checkoutLatestTag","checkoutLocalBranch","clean","clone","commit","cwd","deleteLocalBranch","deleteLocalBranches","diff","diffSummary","exec","fetch","getRemotes","init","listConfig","listRemote","log","merge","mergeFromTo","mirror","mv","pull","push","pushTags","raw","rebase","remote","removeRemote","reset","revert","revparse","rm","rmKeepLocal","show","stash","stashList","status","subModule","submoduleAdd","submoduleInit","submoduleUpdate","tag","tags","updateServerInfo"];const{gitInstanceFactory:i}=r(1949);function gitP(...e){let t;let r=Promise.resolve();try{t=i(...e)}catch(e){r=Promise.reject(e)}function builderReturn(){return n}function chainReturn(){return r}const n=[...s,...o].reduce((e,r)=>{const n=o.includes(r);const s=n?asyncWrapper(r,t):syncWrapper(r,t,e);const i=n?chainReturn:builderReturn;Object.defineProperty(e,r,{enumerable:false,configurable:false,value:t?s:i});return e},{});return n;function asyncWrapper(e,t){return function(...n){if(typeof n[n.length]==="function"){throw new TypeError("Promise interface requires that handlers are not supplied inline, "+"trailing function not allowed in call to "+e)}return r.then(function(){return new Promise(function(r,s){const o=(e,t)=>{if(e){return s(toError(e))}r(t)};n.push(o);t[e].apply(t,n)})})}}function syncWrapper(e,t,r){return(...n)=>{t[e](...n);return r}}}t.gitP=gitP;function toError(e){if(e instanceof Error){return e}if(typeof e==="string"){return new Error(e)}return new n.GitResponseError(e)}},3421:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});const n=r(847);const s=r(9819);const o=r(7178);const i=o.createLogger("","scheduler");const a=(()=>{let e=0;return()=>{e++;const{promise:t,done:r}=s.createDeferred();return{promise:t,done:r,id:e}}})();class Scheduler{constructor(e=2){this.concurrency=e;this.pending=[];this.running=[];i(`Constructed, concurrency=%s`,e)}schedule(){if(!this.pending.length||this.running.length>=this.concurrency){i(`Schedule attempt ignored, pending=%s running=%s concurrency=%s`,this.pending.length,this.running.length,this.concurrency);return}const e=n.append(this.running,this.pending.shift());i(`Attempting id=%s`,e.id);e.done(()=>{i(`Completing id=`,e.id);n.remove(this.running,e);this.schedule()})}next(){const{promise:e,id:t}=n.append(this.pending,a());i(`Scheduling id=%s`,t);this.schedule();return e}}t.Scheduler=Scheduler},6676:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});const n=r(7178);const s=r(4732);class TasksPendingQueue{constructor(e="GitExecutor"){this.logLabel=e;this._queue=new Map}withProgress(e){return this._queue.get(e)}createProgress(e){const t=TasksPendingQueue.getName(e.commands[0]);const r=n.createLogger(this.logLabel,t);return{task:e,logger:r,name:t}}push(e){const t=this.createProgress(e);t.logger("Adding task to the queue, commands = %o",e.commands);this._queue.set(e,t);return t}fatal(e){for(const[t,{logger:r}]of Array.from(this._queue.entries())){if(t===e.task){r.info(`Failed %o`,e);r(`Fatal exception, any as-yet un-started tasks run through this executor will not be attempted`)}else{r.info(`A fatal exception occurred in a previous task, the queue has been purged: %o`,e.message)}this.complete(t)}if(this._queue.size!==0){throw new Error(`Queue size should be zero after fatal: ${this._queue.size}`)}}complete(e){const t=this.withProgress(e);if(t){t.logger.destroy();this._queue.delete(e)}}attempt(e){const t=this.withProgress(e);if(!t){throw new s.GitError(undefined,"TasksPendingQueue: attempt called for an unknown task")}t.logger("Starting task");return t}static getName(e="empty"){return`task:${e}:${++TasksPendingQueue.counter}`}}t.TasksPendingQueue=TasksPendingQueue;TasksPendingQueue.counter=0},8850:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});const n=r(4732);const s=r(847);function taskCallback(e,t,r=s.NOOP){const o=e=>{r(null,e)};const i=t=>{if((t===null||t===void 0?void 0:t.task)===e){if(t instanceof n.GitResponseError){return r(addDeprecationNoticeToError(t))}r(t)}};t.then(o,i)}t.taskCallback=taskCallback;function addDeprecationNoticeToError(e){let t=e=>{console.warn(`simple-git deprecation notice: accessing GitResponseError.${e} should be GitResponseError.git.${e}`);t=s.NOOP};return Object.create(e,Object.getOwnPropertyNames(e.git).reduce(descriptorReducer,{}));function descriptorReducer(r,n){if(n in e){return r}r[n]={enumerable:false,configurable:false,get(){t(n);return e.git[n]}};return r}}},17:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});const n=r(5131);const s=r(6086);const o=r(9264);function containsDeleteBranchCommand(e){const t=["-d","-D","--delete"];return e.some(e=>t.includes(e))}t.containsDeleteBranchCommand=containsDeleteBranchCommand;function branchTask(e){const t=containsDeleteBranchCommand(e);const r=["branch",...e];if(r.length===1){r.push("-a")}if(!r.includes("-v")){r.splice(1,0,"-v")}return{format:"utf-8",commands:r,parser(e,r){if(t){return s.parseBranchDeletions(e,r).all[0]}return o.parseBranchSummary(e,r)}}}t.branchTask=branchTask;function branchLocalTask(){return{format:"utf-8",commands:["branch","-v"],parser(e,t){return o.parseBranchSummary(e,t)}}}t.branchLocalTask=branchLocalTask;function deleteBranchesTask(e,t=false){return{format:"utf-8",commands:["branch","-v",t?"-D":"-d",...e],parser(e,t){return s.parseBranchDeletions(e,t)},onError(e,t,r,n){if(!s.hasBranchDeletionError(t,e)){return n(t)}r(t)},concatStdErr:true}}t.deleteBranchesTask=deleteBranchesTask;function deleteBranchTask(e,t=false){const r={format:"utf-8",commands:["branch","-v",t?"-D":"-d",e],parser(t,r){return s.parseBranchDeletions(t,r).branches[e]},onError(e,t,o,i){if(!s.hasBranchDeletionError(t,e)){return i(t)}throw new n.GitResponseError(r.parser(t,""),t)},concatStdErr:true};return r}t.deleteBranchTask=deleteBranchTask},221:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});const n=r(847);var s;(function(e){e["BARE"]="bare";e["IN_TREE"]="tree";e["IS_REPO_ROOT"]="root"})(s=t.CheckRepoActions||(t.CheckRepoActions={}));const o=(e,t,r,s)=>{if(e===n.ExitCodes.UNCLEAN&&isNotRepoMessage(t)){return r("false")}s(t)};const i=e=>{return e.trim()==="true"};function checkIsRepoTask(e){switch(e){case s.BARE:return checkIsBareRepoTask();case s.IS_REPO_ROOT:return checkIsRepoRootTask()}const t=["rev-parse","--is-inside-work-tree"];return{commands:t,format:"utf-8",onError:o,parser:i}}t.checkIsRepoTask=checkIsRepoTask;function checkIsRepoRootTask(){const e=["rev-parse","--git-dir"];return{commands:e,format:"utf-8",onError:o,parser(e){return/^\.(git)?$/.test(e.trim())}}}t.checkIsRepoRootTask=checkIsRepoRootTask;function checkIsBareRepoTask(){const e=["rev-parse","--is-bare-repository"];return{commands:e,format:"utf-8",onError:o,parser:i}}t.checkIsBareRepoTask=checkIsBareRepoTask;function isNotRepoMessage(e){return/(Not a git repository|Kein Git-Repository)/i.test(e)}},4386:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});const n=r(5689);const s=r(847);const o=r(2815);t.CONFIG_ERROR_INTERACTIVE_MODE="Git clean interactive mode is not supported";t.CONFIG_ERROR_MODE_REQUIRED='Git clean mode parameter ("n" or "f") is required';t.CONFIG_ERROR_UNKNOWN_OPTION="Git clean unknown option found in: ";var i;(function(e){e["DRY_RUN"]="n";e["FORCE"]="f";e["IGNORED_INCLUDED"]="x";e["IGNORED_ONLY"]="X";e["EXCLUDING"]="e";e["QUIET"]="q";e["RECURSIVE"]="d"})(i=t.CleanOptions||(t.CleanOptions={}));const a=new Set(["i",...s.asStringArray(Object.values(i))]);function cleanWithOptionsTask(e,r){const{cleanMode:n,options:s,valid:i}=getCleanOptions(e);if(!n){return o.configurationErrorTask(t.CONFIG_ERROR_MODE_REQUIRED)}if(!i.options){return o.configurationErrorTask(t.CONFIG_ERROR_UNKNOWN_OPTION+JSON.stringify(e))}s.push(...r);if(s.some(isInteractiveMode)){return o.configurationErrorTask(t.CONFIG_ERROR_INTERACTIVE_MODE)}return cleanTask(n,s)}t.cleanWithOptionsTask=cleanWithOptionsTask;function cleanTask(e,t){const r=["clean",`-${e}`,...t];return{commands:r,format:"utf-8",parser(t){return n.cleanSummaryParser(e===i.DRY_RUN,t)}}}t.cleanTask=cleanTask;function isCleanOptionsArray(e){return Array.isArray(e)&&e.every(e=>a.has(e))}t.isCleanOptionsArray=isCleanOptionsArray;function getCleanOptions(e){let t;let r=[];let n={cleanMode:false,options:true};e.replace(/[^a-z]i/g,"").split("").forEach(e=>{if(isCleanMode(e)){t=e;n.cleanMode=true}else{n.options=n.options&&isKnownOption(r[r.length]=`-${e}`)}});return{cleanMode:t,options:r,valid:n}}function isCleanMode(e){return e===i.FORCE||e===i.DRY_RUN}function isKnownOption(e){return/^-[a-z]$/i.test(e)&&a.has(e.charAt(1))}function isInteractiveMode(e){if(/^-[^\-]/.test(e)){return e.indexOf("i")>0}return e==="--interactive"}},3173:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});const n=r(2815);const s=r(847);function cloneTask(e,t,r){const s=["clone",...r];if(typeof e==="string"){s.push(e)}if(typeof t==="string"){s.push(t)}return n.straightThroughStringTask(s)}t.cloneTask=cloneTask;function cloneMirrorTask(e,t,r){s.append(r,"--mirror");return cloneTask(e,t,r)}t.cloneMirrorTask=cloneMirrorTask},7597:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});const n=r(7219);function addConfigTask(e,t,r=false){const n=["config","--local"];if(r){n.push("--add")}n.push(e,t);return{commands:n,format:"utf-8",parser(e){return e}}}t.addConfigTask=addConfigTask;function listConfigTask(){return{commands:["config","--list","--show-origin","--null"],format:"utf-8",parser(e){return n.configListParser(e)}}}t.listConfigTask=listConfigTask},6016:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});const n=r(8690);const s="--bare";function hasBareCommand(e){return e.includes(s)}function initTask(e=false,t,r){const o=["init",...r];if(e&&!hasBareCommand(o)){o.splice(1,0,s)}return{commands:o,concatStdErr:false,format:"utf-8",parser(e){return n.parseInit(o.includes("--bare"),t,e)}}}t.initTask=initTask},8829:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});const n=r(4732);const s=r(6412);const o=r(2815);function mergeTask(e){if(!e.length){return o.configurationErrorTask("Git.merge requires at least one option")}return{commands:["merge",...e],format:"utf-8",parser(e,t){const r=s.parseMergeResult(e,t);if(r.failed){throw new n.GitResponseError(r)}return r}}}t.mergeTask=mergeTask},6520:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});const n=r(7444);const s=r(847);function moveTask(e,t){return{commands:["mv","-v",...s.asArray(e),t],format:"utf-8",parser(e,t){return n.parseMoveResult(e,t)}}}t.moveTask=moveTask},4636:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});const n=r(5658);function pullTask(e,t,r){const s=["pull",...r];if(e&&t){s.splice(1,0,e,t)}return{commands:s,format:"utf-8",parser(e,t){return n.parsePullResult(e,t)}}}t.pullTask=pullTask},1435:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});const n=r(8530);const s=r(847);function pushTagsTask(e={},t){s.append(t,"--tags");return pushTask(e,t)}t.pushTagsTask=pushTagsTask;function pushTask(e={},t){const r=["push",...t];if(e.branch){r.splice(1,0,e.branch)}if(e.remote){r.splice(1,0,e.remote)}s.remove(r,"-v");s.append(r,"--verbose");s.append(r,"--porcelain");return{commands:r,format:"utf-8",parser:n.parsePushResult}}t.pushTask=pushTask},9866:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});const n=r(2815);const s=r(9999);function addRemoteTask(e,t,r=[]){return n.straightThroughStringTask(["remote","add",...r,e,t])}t.addRemoteTask=addRemoteTask;function getRemotesTask(e){const t=["remote"];if(e){t.push("-v")}return{commands:t,format:"utf-8",parser:e?s.parseGetRemotesVerbose:s.parseGetRemotes}}t.getRemotesTask=getRemotesTask;function listRemotesTask(e=[]){const t=[...e];if(t[0]!=="ls-remote"){t.unshift("ls-remote")}return n.straightThroughStringTask(t)}t.listRemotesTask=listRemotesTask;function remoteTask(e=[]){const t=[...e];if(t[0]!=="remote"){t.unshift("remote")}return n.straightThroughStringTask(t)}t.remoteTask=remoteTask;function removeRemoteTask(e){return n.straightThroughStringTask(["remote","remove",e])}t.removeRemoteTask=removeRemoteTask},2377:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});const n=r(2815);var s;(function(e){e["MIXED"]="mixed";e["SOFT"]="soft";e["HARD"]="hard";e["MERGE"]="merge";e["KEEP"]="keep"})(s=t.ResetMode||(t.ResetMode={}));const o=Array.from(Object.values(s));function resetTask(e,t){const r=["reset"];if(isValidResetMode(e)){r.push(`--${e}`)}r.push(...t);return n.straightThroughStringTask(r)}t.resetTask=resetTask;function getResetMode(e){if(isValidResetMode(e)){return e}switch(typeof e){case"string":case"undefined":return s.SOFT}return}t.getResetMode=getResetMode;function isValidResetMode(e){return o.includes(e)}},9197:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});const n=r(6790);function statusTask(e){return{format:"utf-8",commands:["status","--porcelain","-b","-u",...e],parser(e){return n.parseStatusSummary(e)}}}t.statusTask=statusTask},8772:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});const n=r(2815);function addSubModuleTask(e,t){return subModuleTask(["add",e,t])}t.addSubModuleTask=addSubModuleTask;function initSubModuleTask(e){return subModuleTask(["init",...e])}t.initSubModuleTask=initSubModuleTask;function subModuleTask(e){const t=[...e];if(t[0]!=="submodule"){t.unshift("submodule")}return n.straightThroughStringTask(t)}t.subModuleTask=subModuleTask;function updateSubModuleTask(e){return subModuleTask(["update",...e])}t.updateSubModuleTask=updateSubModuleTask},8540:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});const n=r(4539);function tagListTask(e=[]){const t=e.some(e=>/^--sort=/.test(e));return{format:"utf-8",commands:["tag","-l",...e],parser(e){return n.parseTagList(e,t)}}}t.tagListTask=tagListTask;function addTagTask(e){return{format:"utf-8",commands:["tag",e],parser(){return{name:e}}}}t.addTagTask=addTagTask;function addAnnotatedTagTask(e,t){return{format:"utf-8",commands:["tag","-a","-m",t,e],parser(){return{name:e}}}}t.addAnnotatedTagTask=addAnnotatedTagTask},2815:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});const n=r(740);t.EMPTY_COMMANDS=[];function adhocExecTask(e){return{commands:t.EMPTY_COMMANDS,format:"utf-8",parser:e}}t.adhocExecTask=adhocExecTask;function configurationErrorTask(e){return{commands:t.EMPTY_COMMANDS,format:"utf-8",parser(){throw typeof e==="string"?new n.TaskConfigurationError(e):e}}}t.configurationErrorTask=configurationErrorTask;function straightThroughStringTask(e,t=false){return{commands:e,format:"utf-8",parser(e){return t?String(e).trim():e}}}t.straightThroughStringTask=straightThroughStringTask;function isBufferTask(e){return e.format==="buffer"}t.isBufferTask=isBufferTask;function isEmptyTask(e){return!e.commands.length}t.isEmptyTask=isEmptyTask},7366:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});const n=r(3518);function filterType(e,t,r){if(t(e)){return e}return arguments.length>2?r:undefined}t.filterType=filterType;t.filterArray=(e=>{return Array.isArray(e)});function filterPrimitives(e,t){return/number|string|boolean/.test(typeof e)&&(!t||!t.includes(typeof e))}t.filterPrimitives=filterPrimitives;t.filterString=(e=>{return typeof e==="string"});function filterPlainObject(e){return!!e&&n.objectToString(e)==="[object Object]"}t.filterPlainObject=filterPlainObject;function filterFunction(e){return typeof e==="function"}t.filterFunction=filterFunction;t.filterHasLength=(e=>{if(e==null||"number|boolean|function".includes(typeof e)){return false}return Array.isArray(e)||typeof e==="string"||typeof e.length==="number"})},2185:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});var r;(function(e){e[e["SUCCESS"]=0]="SUCCESS";e[e["ERROR"]=1]="ERROR";e[e["UNCLEAN"]=128]="UNCLEAN"})(r=t.ExitCodes||(t.ExitCodes={}))},6578:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});class GitOutputStreams{constructor(e,t){this.stdOut=e;this.stdErr=t}asStrings(){return new GitOutputStreams(this.stdOut.toString("utf8"),this.stdErr.toString("utf8"))}}t.GitOutputStreams=GitOutputStreams},847:(e,t,r)=>{"use strict";function __export(e){for(var r in e)if(!t.hasOwnProperty(r))t[r]=e[r]}Object.defineProperty(t,"__esModule",{value:true});__export(r(7366));__export(r(2185));__export(r(6578));__export(r(9536));__export(r(5218));__export(r(3546));__export(r(1351));__export(r(3518))},9536:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});class LineParser{constructor(e,t){this.matches=[];this.parse=((e,t)=>{this.resetMatches();if(!this._regExp.every((t,r)=>this.addMatch(t,r,e(r)))){return false}return this.useMatches(t,this.prepareMatches())!==false});this._regExp=Array.isArray(e)?e:[e];if(t){this.useMatches=t}}useMatches(e,t){throw new Error(`LineParser:useMatches not implemented`)}resetMatches(){this.matches.length=0}prepareMatches(){return this.matches}addMatch(e,t,r){const n=r&&e.exec(r);if(n){this.pushMatch(t,n)}return!!n}pushMatch(e,t){this.matches.push(...t.slice(1))}}t.LineParser=LineParser;class RemoteLineParser extends LineParser{addMatch(e,t,r){return/^remote:\s/.test(String(r))&&super.addMatch(e,t,r)}pushMatch(e,t){if(e>0||t.length>1){super.pushMatch(e,t)}}}t.RemoteLineParser=RemoteLineParser},5218:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});const r={binary:"git",maxConcurrentProcesses:5};function createInstanceConfig(...e){const t=process.cwd();const n=Object.assign(Object.assign({baseDir:t},r),...e.filter(e=>typeof e==="object"&&e));n.baseDir=n.baseDir||t;return n}t.createInstanceConfig=createInstanceConfig},3546:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});const n=r(7366);const s=r(3518);function appendTaskOptions(e,t=[]){if(!n.filterPlainObject(e)){return t}return Object.keys(e).reduce((t,r)=>{const s=e[r];if(n.filterPrimitives(s,["boolean"])){t.push(r+"="+s)}else{t.push(r)}return t},t)}t.appendTaskOptions=appendTaskOptions;function getTrailingOptions(e,t=0,r=false){const n=[];for(let r=0,s=t<0?e.length:t;r{"use strict";Object.defineProperty(t,"__esModule",{value:true});const n=r(3518);function callTaskParser(e,t){return e(t.stdOut,t.stdErr)}t.callTaskParser=callTaskParser;function parseStringResponse(e,t,r){for(let s=n.toLinesWithContent(r),o=0,i=s.length;o{if(o+e>=i){return}return s[o+e]};t.some(({parse:t})=>t(r,e))}return e}t.parseStringResponse=parseStringResponse},3518:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});const n=r(4751);t.NOOP=(()=>{});function asFunction(e){return typeof e==="function"?e:t.NOOP}t.asFunction=asFunction;function isUserFunction(e){return typeof e==="function"&&e!==t.NOOP}t.isUserFunction=isUserFunction;function splitOn(e,t){const r=e.indexOf(t);if(r<=0){return[e,""]}return[e.substr(0,r),e.substr(r+1)]}t.splitOn=splitOn;function first(e,t=0){return isArrayLike(e)&&e.length>t?e[t]:undefined}t.first=first;function last(e,t=0){if(isArrayLike(e)&&e.length>t){return e[e.length-1-t]}}t.last=last;function isArrayLike(e){return!!(e&&typeof e.length==="number")}function toLinesWithContent(e,t=true){return e.split("\n").reduce((e,r)=>{const n=t?r.trim():r;if(n){e.push(n)}return e},[])}t.toLinesWithContent=toLinesWithContent;function forEachLineWithContent(e,t){return toLinesWithContent(e,true).map(e=>t(e))}t.forEachLineWithContent=forEachLineWithContent;function folderExists(e){return n.exists(e,n.FOLDER)}t.folderExists=folderExists;function append(e,t){if(Array.isArray(e)){if(!e.includes(t)){e.push(t)}}else{e.add(t)}return t}t.append=append;function remove(e,t){if(Array.isArray(e)){const r=e.indexOf(t);if(r>=0){e.splice(r,1)}}else{e.delete(t)}return t}t.remove=remove;t.objectToString=Object.prototype.toString.call.bind(Object.prototype.toString);function asArray(e){return Array.isArray(e)?e:[e]}t.asArray=asArray;function asStringArray(e){return asArray(e).map(String)}t.asStringArray=asStringArray;function asNumber(e,t=0){if(e==null){return t}const r=parseInt(e,10);return isNaN(r)?t:r}t.asNumber=asNumber},921:e=>{e.exports=CommitSummary;function CommitSummary(){this.branch="";this.commit="";this.summary={changes:0,insertions:0,deletions:0};this.author=null}var t=/\[([^\s]+) ([^\]]+)/;var r=/\s*Author:\s(.+)/i;function setBranchFromCommit(e,t){if(t){e.branch=t[1];e.commit=t[2]}}function setSummaryFromCommit(e,t){if(e.branch&&t){e.summary.changes=parseInt(t[1],10)||0;e.summary.insertions=parseInt(t[2],10)||0;e.summary.deletions=parseInt(t[3],10)||0}}function setAuthorFromCommit(e,t){var r=t[1].split("<");var n=r.pop();if(n.indexOf("@")<=0){return}e.author={email:n.substr(0,n.length-1),name:r.join("<").trim()}}CommitSummary.parse=function(e){var n=e.trim().split("\n");var s=new CommitSummary;setBranchFromCommit(s,t.exec(n.shift()));if(r.test(n[0])){setAuthorFromCommit(s,r.exec(n.shift()))}setSummaryFromCommit(s,/(\d+)[^,]*(?:,\s*(\d+)[^,]*)?(?:,\s*(\d+))?/g.exec(n.shift()));return s}},7286:e=>{e.exports=DiffSummary;function DiffSummary(){this.files=[];this.insertions=0;this.deletions=0;this.changed=0}DiffSummary.prototype.insertions=0;DiffSummary.prototype.deletions=0;DiffSummary.prototype.changed=0;DiffSummary.parse=function(e){var t,r;var n=e.trim().split("\n");var s=new DiffSummary;var o=n.pop();if(o){o.trim().split(", ").forEach(function(e){var t=/(\d+)\s([a-z]+)/.exec(e);if(!t){return}if(/files?/.test(t[2])){s.changed=parseInt(t[1],10)}else{s[t[2].replace(/s$/,"")+"s"]=parseInt(t[1],10)}})}while(t=n.shift()){textFileChange(t,s.files)||binaryFileChange(t,s.files)}return s};function textFileChange(e,t){e=e.trim().match(/^(.+)\s+\|\s+(\d+)(\s+[+\-]+)?$/);if(e){var r=(e[3]||"").trim();t.push({file:e[1].trim(),changes:parseInt(e[2],10),insertions:r.replace(/-/g,"").length,deletions:r.replace(/\+/g,"").length,binary:false});return true}}function binaryFileChange(e,t){e=e.match(/^(.+) \|\s+Bin ([0-9.]+) -> ([0-9.]+) ([a-z]+)$/);if(e){t.push({file:e[1].trim(),before:+e[2],after:+e[3],binary:true});return true}}},5169:e=>{"use strict";function FetchSummary(e){this.raw=e;this.remote=null;this.branches=[];this.tags=[]}FetchSummary.parsers=[[/From (.+)$/,function(e,t){e.remote=t[0]}],[/\* \[new branch\]\s+(\S+)\s*\-> (.+)$/,function(e,t){e.branches.push({name:t[0],tracking:t[1]})}],[/\* \[new tag\]\s+(\S+)\s*\-> (.+)$/,function(e,t){e.tags.push({name:t[0],tracking:t[1]})}]];FetchSummary.parse=function(e){var t=new FetchSummary(e);String(e).trim().split("\n").forEach(function(e){var r=e.trim();FetchSummary.parsers.some(function(e){var n=e[0].exec(r);if(n){e[1](t,n.slice(1));return true}})});return t};e.exports=FetchSummary},6507:(e,t,r)=>{e.exports=ListLogSummary;var n=r(7286);function ListLogSummary(e){this.all=e;this.latest=e.length&&e[0]||null;this.total=e.length}ListLogSummary.prototype.all=null;ListLogSummary.prototype.latest=null;ListLogSummary.prototype.total=0;function ListLogLine(e,t){for(var r=0;r1&&!!s[1].trim()){o.diff=n.parse(s[1])}return o}))}},5301:(e,t,r)=>{e.exports={CommitSummary:r(921),DiffSummary:r(7286),FetchSummary:r(5169),ListLogSummary:r(6507)}},9318:(e,t,r)=>{"use strict";const n=r(2087);const s=r(1621);const o=process.env;let i;if(s("no-color")||s("no-colors")||s("color=false")){i=false}else if(s("color")||s("colors")||s("color=true")||s("color=always")){i=true}if("FORCE_COLOR"in o){i=o.FORCE_COLOR.length===0||parseInt(o.FORCE_COLOR,10)!==0}function translateLevel(e){if(e===0){return false}return{level:e,hasBasic:true,has256:e>=2,has16m:e>=3}}function supportsColor(e){if(i===false){return 0}if(s("color=16m")||s("color=full")||s("color=truecolor")){return 3}if(s("color=256")){return 2}if(e&&!e.isTTY&&i!==true){return 0}const t=i?1:0;if(process.platform==="win32"){const e=n.release().split(".");if(Number(process.versions.node.split(".")[0])>=8&&Number(e[0])>=10&&Number(e[2])>=10586){return Number(e[2])>=14931?3:2}return 1}if("CI"in o){if(["TRAVIS","CIRCLECI","APPVEYOR","GITLAB_CI"].some(e=>e in o)||o.CI_NAME==="codeship"){return 1}return t}if("TEAMCITY_VERSION"in o){return/^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(o.TEAMCITY_VERSION)?1:0}if(o.COLORTERM==="truecolor"){return 3}if("TERM_PROGRAM"in o){const e=parseInt((o.TERM_PROGRAM_VERSION||"").split(".")[0],10);switch(o.TERM_PROGRAM){case"iTerm.app":return e>=3?3:2;case"Apple_Terminal":return 2}}if(/-256(color)?$/i.test(o.TERM)){return 2}if(/^screen|^xterm|^vt100|^vt220|^rxvt|color|ansi|cygwin|linux/i.test(o.TERM)){return 1}if("COLORTERM"in o){return 1}if(o.TERM==="dumb"){return t}return t}function getSupportLevel(e){const t=supportsColor(e);return translateLevel(t)}e.exports={supportsColor:getSupportLevel,stdout:getSupportLevel(process.stdout),stderr:getSupportLevel(process.stderr)}},399:function(e,t,r){"use strict";var n=this&&this.__awaiter||function(e,t,r,n){function adopt(e){return e instanceof r?e:new r(function(t){t(e)})}return new(r||(r=Promise))(function(r,s){function fulfilled(e){try{step(n.next(e))}catch(e){s(e)}}function rejected(e){try{step(n["throw"](e))}catch(e){s(e)}}function step(e){e.done?r(e.value):adopt(e.value).then(fulfilled,rejected)}step((n=n.apply(e,t||[])).next())})};var s=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:true});const o=r(2186);const i=s(r(6545));const a=s(r(5622));const u=s(r(1477));const c=a.default.join(process.cwd(),getInput("cwd")||"");const f=u.default({baseDir:c});console.log(`Running in ${c}`);(()=>n(void 0,void 0,void 0,function*(){yield checkInputs().catch(o.setFailed);o.startGroup("Internal logs");o.info("> Staging files...");if(getInput("add")){o.info("> Adding files...");yield add()}else o.info("> No files to add.");if(getInput("remove")){o.info("> Removing files...");yield remove()}else o.info("> No files to remove.");o.info("> Checking for uncommitted changes in the git working tree...");const e=(yield f.diffSummary(["--cached"])).files.length;if(e>0){o.info(`> Found ${e} changed files.`);yield f.addConfig("user.email",getInput("author_email"),undefined,log).addConfig("user.name",getInput("author_name"),undefined,log);o.debug("> Current git config\n"+JSON.stringify((yield f.listConfig()).all,null,2));yield f.fetch(["--tags","--force"],log);o.info("> Switching/creating branch...");yield f.checkout(getInput("branch"),undefined,log).catch(()=>f.checkoutLocalBranch(getInput("branch"),log));o.info("> Pulling from remote...");yield f.fetch(undefined,log).pull(undefined,undefined,{[getInput("pull_stategy")]:null},log);o.info("> Re-staging files...");if(getInput("add"))yield add({ignoreErrors:true});if(getInput("remove"))yield remove({ignoreErrors:true});o.info("> Creating commit...");yield f.commit(getInput("message"),undefined,Object.assign({"--author":`"${getInput("author_name")} <${getInput("author_email")}>"`},getInput("signoff")?{"--signoff":null}:{}),log);if(getInput("tag")){o.info("> Tagging commit...");yield f.tag(getInput("tag").split(" "),log)}else o.info("> No tag info provided.");o.info("> Pushing commit to repo...");yield f.push("origin",getInput("branch"),{"--set-upstream":null},log);if(getInput("tag")){o.info("> Pushing tags to repo...");yield f.pushTags("origin",(e,t)=>log(undefined,e||t)).catch(()=>{o.info("> Tag push failed: deleting remote tag and re-pushing...");return f.push(undefined,undefined,{"--delete":null,origin:null,[getInput("tag").split(" ").filter(e=>!e.startsWith("-"))[0]]:null},log).pushTags("origin",log)})}else o.info("> No tags to push.");o.endGroup();o.info("> Task completed.")}else{o.endGroup();o.info("> Working tree clean. Nothing to commit.")}}))().catch(e=>{o.endGroup();o.setFailed(e)});function checkInputs(){var e,t,r,s,a,u,c,f,l;return n(this,void 0,void 0,function*(){function setInput(e,t){if(t)return process.env[`INPUT_${e.toUpperCase()}`]=t;else return delete process.env[`INPUT_${e.toUpperCase()}`]}function setDefault(e,t){if(!getInput(e))setInput(e,t);return getInput(e)}const n=process.env.GITHUB_EVENT_PATH,p=n&&require(n),d=process.env.GITHUB_TOKEN,h=(e=process.env.GITHUB_EVENT_NAME)===null||e===void 0?void 0:e.includes("pull_request"),m=((r=(t=p===null||p===void 0?void 0:p.pull_request)===null||t===void 0?void 0:t.head)===null||r===void 0?void 0:r.sha)||process.env.GITHUB_SHA,g=h?(a=(s=p===null||p===void 0?void 0:p.pull_request)===null||s===void 0?void 0:s.head)===null||a===void 0?void 0:a.ref:(u=process.env.GITHUB_REF)===null||u===void 0?void 0:u.substring(11);if(!d)o.warning("The GITHUB_TOKEN env variable is missing: the action may not work as expected.");if(!getInput("add")&&!getInput("remove"))throw new Error("Both 'add' and 'remove' are empty, the action has nothing to do.");let y=(c=p===null||p===void 0?void 0:p.head_commit)===null||c===void 0?void 0:c.author;if(m&&!y){o.info("> Unable to get commit from workflow event: trying with the GitHub API...");const e=`https://api.github.com/repos/${process.env.GITHUB_REPOSITORY}/commits/${m}`,t=d?{Authorization:`Bearer ${d}`}:undefined,r=(f=yield i.default.get(e,{headers:t}).catch(t=>{o.startGroup("Request error:");o.info(`> Request URL: ${e}\b${t}`);o.endGroup();return undefined}))===null||f===void 0?void 0:f.data;y=(l=r===null||r===void 0?void 0:r.commit)===null||l===void 0?void 0:l.author}if(y){setDefault("author_name",y.name);setDefault("author_email",y.email)}if(!getInput("author_name")||!getInput("author_email")){const e=!n?"event path":h?m?"fetch commit":"find commit sha":!(p===null||p===void 0?void 0:p.head_commit)?"find commit":"find commit author";o.warning(`Unable to fetch author info: couldn't ${e}.`);setDefault("author_name","Add & Commit Action");setDefault("author_email","actions@github.com")}o.info(`> Using '${getInput("author_name")} <${getInput("author_email")}>' as author.`);setDefault("message",`Commit from GitHub Actions (${process.env.GITHUB_WORKFLOW})`);o.info(`> Using "${getInput("message")}" as commit message.`);const v=setDefault("branch",g||"");if(h)o.info(`> Running for a PR, the action will use '${v}' as ref.`);if(getInput("signoff"))try{const e=JSON.parse(getInput("signoff"));if(typeof e=="boolean"&&!e)setInput("signoff",undefined);o.debug(`Current signoff option: ${getInput("signoff")} (${typeof getInput("signoff")})`)}catch(e){throw new Error(`"${getInput("signoff")}" is not a valid value for the 'signoff' input: only "true" and "false" are allowed.`)}})}function getInput(e){return o.getInput(e)}function log(e,t){if(t)console.log(t);if(e)o.error(e)}function add({logWarning:e=true,ignoreErrors:t=false}={}){if(getInput("add"))return f.add(getInput("add").split(" "),(e,r)=>log(t?null:e,r)).catch(r=>{if(t)return;if(r.message.includes("fatal: pathspec")&&r.message.includes("did not match any files"))e&&o.warning("Add command did not match any file.");else throw r})}function remove({logWarning:e=true,ignoreErrors:t=false}={}){if(getInput("remove"))return f.rm(getInput("remove").split(" "),(e,r)=>log(t?null:e,r)).catch(r=>{if(t)return;if(r.message.includes("fatal: pathspec")&&r.message.includes("did not match any files"))e&&o.warning("Remove command did not match any file.");else throw r})}},696:e=>{"use strict";e.exports=JSON.parse('{"_args":[["axios@0.21.0","/home/runner/work/add-and-commit/add-and-commit"]],"_from":"axios@0.21.0","_id":"axios@0.21.0","_inBundle":false,"_integrity":"sha512-fmkJBknJKoZwem3/IKSSLpkdNXZeBu5Q7GA/aRsr2btgrptmSCxi2oFjZHqGdK9DoTil9PIHlPIZw2EcRJXRvw==","_location":"/axios","_phantomChildren":{},"_requested":{"type":"version","registry":true,"raw":"axios@0.21.0","name":"axios","escapedName":"axios","rawSpec":"0.21.0","saveSpec":null,"fetchSpec":"0.21.0"},"_requiredBy":["/"],"_resolved":"https://registry.npmjs.org/axios/-/axios-0.21.0.tgz","_spec":"0.21.0","_where":"/home/runner/work/add-and-commit/add-and-commit","author":{"name":"Matt Zabriskie"},"browser":{"./lib/adapters/http.js":"./lib/adapters/xhr.js"},"bugs":{"url":"https://github.com/axios/axios/issues"},"bundlesize":[{"path":"./dist/axios.min.js","threshold":"5kB"}],"dependencies":{"follow-redirects":"^1.10.0"},"description":"Promise based HTTP client for the browser and node.js","devDependencies":{"bundlesize":"^0.17.0","coveralls":"^3.0.0","es6-promise":"^4.2.4","grunt":"^1.0.2","grunt-banner":"^0.6.0","grunt-cli":"^1.2.0","grunt-contrib-clean":"^1.1.0","grunt-contrib-watch":"^1.0.0","grunt-eslint":"^20.1.0","grunt-karma":"^2.0.0","grunt-mocha-test":"^0.13.3","grunt-ts":"^6.0.0-beta.19","grunt-webpack":"^1.0.18","istanbul-instrumenter-loader":"^1.0.0","jasmine-core":"^2.4.1","karma":"^1.3.0","karma-chrome-launcher":"^2.2.0","karma-coverage":"^1.1.1","karma-firefox-launcher":"^1.1.0","karma-jasmine":"^1.1.1","karma-jasmine-ajax":"^0.1.13","karma-opera-launcher":"^1.0.0","karma-safari-launcher":"^1.0.0","karma-sauce-launcher":"^1.2.0","karma-sinon":"^1.0.5","karma-sourcemap-loader":"^0.3.7","karma-webpack":"^1.7.0","load-grunt-tasks":"^3.5.2","minimist":"^1.2.0","mocha":"^5.2.0","sinon":"^4.5.0","typescript":"^2.8.1","url-search-params":"^0.10.0","webpack":"^1.13.1","webpack-dev-server":"^1.14.1"},"homepage":"https://github.com/axios/axios","jsdelivr":"dist/axios.min.js","keywords":["xhr","http","ajax","promise","node"],"license":"MIT","main":"index.js","name":"axios","repository":{"type":"git","url":"git+https://github.com/axios/axios.git"},"scripts":{"build":"NODE_ENV=production grunt build","coveralls":"cat coverage/lcov.info | ./node_modules/coveralls/bin/coveralls.js","examples":"node ./examples/server.js","fix":"eslint --fix lib/**/*.js","postversion":"git push && git push --tags","preversion":"npm test","start":"node ./sandbox/server.js","test":"grunt test && bundlesize","version":"npm run build && grunt version && git add -A dist && git add CHANGELOG.md bower.json package.json"},"typings":"./index.d.ts","unpkg":"dist/axios.min.js","version":"0.21.0"}')},2357:e=>{"use strict";e.exports=require("assert")},3129:e=>{"use strict";e.exports=require("child_process")},5747:e=>{"use strict";e.exports=require("fs")},8605:e=>{"use strict";e.exports=require("http")},7211:e=>{"use strict";e.exports=require("https")},2087:e=>{"use strict";e.exports=require("os")},5622:e=>{"use strict";e.exports=require("path")},2413:e=>{"use strict";e.exports=require("stream")},3867:e=>{"use strict";e.exports=require("tty")},8835:e=>{"use strict";e.exports=require("url")},1669:e=>{"use strict";e.exports=require("util")},8761:e=>{"use strict";e.exports=require("zlib")}};var t={};function __webpack_require__(r){if(t[r]){return t[r].exports}var n=t[r]={exports:{}};var s=true;try{e[r].call(n.exports,n,n.exports,__webpack_require__);s=false}finally{if(s)delete t[r]}return n.exports}__webpack_require__.ab=__dirname+"/";return __webpack_require__(399)})(); \ No newline at end of file +module.exports=(()=>{var e={7351:function(e,t,r){"use strict";var n=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var r in e)if(Object.hasOwnProperty.call(e,r))t[r]=e[r];t["default"]=e;return t};Object.defineProperty(t,"__esModule",{value:true});const s=n(r(2087));const o=r(5278);function issueCommand(e,t,r){const n=new Command(e,t,r);process.stdout.write(n.toString()+s.EOL)}t.issueCommand=issueCommand;function issue(e,t=""){issueCommand(e,{},t)}t.issue=issue;const i="::";class Command{constructor(e,t,r){if(!e){e="missing.command"}this.command=e;this.properties=t;this.message=r}toString(){let e=i+this.command;if(this.properties&&Object.keys(this.properties).length>0){e+=" ";let t=true;for(const r in this.properties){if(this.properties.hasOwnProperty(r)){const n=this.properties[r];if(n){if(t){t=false}else{e+=","}e+=`${r}=${escapeProperty(n)}`}}}}e+=`${i}${escapeData(this.message)}`;return e}}function escapeData(e){return o.toCommandValue(e).replace(/%/g,"%25").replace(/\r/g,"%0D").replace(/\n/g,"%0A")}function escapeProperty(e){return o.toCommandValue(e).replace(/%/g,"%25").replace(/\r/g,"%0D").replace(/\n/g,"%0A").replace(/:/g,"%3A").replace(/,/g,"%2C")}},2186:function(e,t,r){"use strict";var n=this&&this.__awaiter||function(e,t,r,n){function adopt(e){return e instanceof r?e:new r(function(t){t(e)})}return new(r||(r=Promise))(function(r,s){function fulfilled(e){try{step(n.next(e))}catch(e){s(e)}}function rejected(e){try{step(n["throw"](e))}catch(e){s(e)}}function step(e){e.done?r(e.value):adopt(e.value).then(fulfilled,rejected)}step((n=n.apply(e,t||[])).next())})};var s=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var r in e)if(Object.hasOwnProperty.call(e,r))t[r]=e[r];t["default"]=e;return t};Object.defineProperty(t,"__esModule",{value:true});const o=r(7351);const i=r(717);const a=r(5278);const u=s(r(2087));const c=s(r(5622));var f;(function(e){e[e["Success"]=0]="Success";e[e["Failure"]=1]="Failure"})(f=t.ExitCode||(t.ExitCode={}));function exportVariable(e,t){const r=a.toCommandValue(t);process.env[e]=r;const n=process.env["GITHUB_ENV"]||"";if(n){const t="_GitHubActionsFileCommandDelimeter_";const n=`${e}<<${t}${u.EOL}${r}${u.EOL}${t}`;i.issueCommand("ENV",n)}else{o.issueCommand("set-env",{name:e},r)}}t.exportVariable=exportVariable;function setSecret(e){o.issueCommand("add-mask",{},e)}t.setSecret=setSecret;function addPath(e){const t=process.env["GITHUB_PATH"]||"";if(t){i.issueCommand("PATH",e)}else{o.issueCommand("add-path",{},e)}process.env["PATH"]=`${e}${c.delimiter}${process.env["PATH"]}`}t.addPath=addPath;function getInput(e,t){const r=process.env[`INPUT_${e.replace(/ /g,"_").toUpperCase()}`]||"";if(t&&t.required&&!r){throw new Error(`Input required and not supplied: ${e}`)}return r.trim()}t.getInput=getInput;function setOutput(e,t){o.issueCommand("set-output",{name:e},t)}t.setOutput=setOutput;function setCommandEcho(e){o.issue("echo",e?"on":"off")}t.setCommandEcho=setCommandEcho;function setFailed(e){process.exitCode=f.Failure;error(e)}t.setFailed=setFailed;function isDebug(){return process.env["RUNNER_DEBUG"]==="1"}t.isDebug=isDebug;function debug(e){o.issueCommand("debug",{},e)}t.debug=debug;function error(e){o.issue("error",e instanceof Error?e.toString():e)}t.error=error;function warning(e){o.issue("warning",e instanceof Error?e.toString():e)}t.warning=warning;function info(e){process.stdout.write(e+u.EOL)}t.info=info;function startGroup(e){o.issue("group",e)}t.startGroup=startGroup;function endGroup(){o.issue("endgroup")}t.endGroup=endGroup;function group(e,t){return n(this,void 0,void 0,function*(){startGroup(e);let r;try{r=yield t()}finally{endGroup()}return r})}t.group=group;function saveState(e,t){o.issueCommand("save-state",{name:e},t)}t.saveState=saveState;function getState(e){return process.env[`STATE_${e}`]||""}t.getState=getState},717:function(e,t,r){"use strict";var n=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var r in e)if(Object.hasOwnProperty.call(e,r))t[r]=e[r];t["default"]=e;return t};Object.defineProperty(t,"__esModule",{value:true});const s=n(r(5747));const o=n(r(2087));const i=r(5278);function issueCommand(e,t){const r=process.env[`GITHUB_${e}`];if(!r){throw new Error(`Unable to find environment variable for file command ${e}`)}if(!s.existsSync(r)){throw new Error(`Missing file at path: ${r}`)}s.appendFileSync(r,`${i.toCommandValue(t)}${o.EOL}`,{encoding:"utf8"})}t.issueCommand=issueCommand},5278:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});function toCommandValue(e){if(e===null||e===undefined){return""}else if(typeof e==="string"||e instanceof String){return e}return JSON.stringify(e)}t.toCommandValue=toCommandValue},4751:(e,t,r)=>{"use strict";function __export(e){for(var r in e)if(!t.hasOwnProperty(r))t[r]=e[r]}Object.defineProperty(t,"__esModule",{value:true});__export(r(2825))},2825:function(e,t,r){"use strict";var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:true});const s=r(5747);const o=n(r(8237));const i=o.default("@kwsites/file-exists");function check(e,t,r){i(`checking %s`,e);try{const n=s.statSync(e);if(n.isFile()&&t){i(`[OK] path represents a file`);return true}if(n.isDirectory()&&r){i(`[OK] path represents a directory`);return true}i(`[FAIL] path represents something other than a file or directory`);return false}catch(e){if(e.code==="ENOENT"){i(`[FAIL] path is not accessible: %o`,e);return false}i(`[FATAL] %o`,e);throw e}}function exists(e,r=t.READABLE){return check(e,(r&t.FILE)>0,(r&t.FOLDER)>0)}t.exists=exists;t.FILE=1;t.FOLDER=2;t.READABLE=t.FILE+t.FOLDER},9819:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.createDeferred=t.deferred=void 0;function deferred(){let e;let t;let r="pending";const n=new Promise((r,n)=>{e=r;t=n});return{promise:n,done(t){if(r==="pending"){r="resolved";e(t)}},fail(e){if(r==="pending"){r="rejected";t(e)}},get fulfilled(){return r!=="pending"},get status(){return r}}}t.deferred=deferred;t.createDeferred=deferred;t.default=deferred},6545:(e,t,r)=>{e.exports=r(2618)},8104:(e,t,r)=>{"use strict";var n=r(328);var s=r(3211);var o=r(1934);var i=r(646);var a=r(8605);var u=r(7211);var c=r(7707).http;var f=r(7707).https;var l=r(8835);var p=r(8761);var d=r(696);var h=r(5226);var m=r(1516);var g=/https:?/;e.exports=function httpAdapter(e){return new Promise(function dispatchHttpRequest(t,r){var y=function resolve(e){t(e)};var v=function reject(e){r(e)};var b=e.data;var T=e.headers;if(!T["User-Agent"]&&!T["user-agent"]){T["User-Agent"]="axios/"+d.version}if(b&&!n.isStream(b)){if(Buffer.isBuffer(b)){}else if(n.isArrayBuffer(b)){b=Buffer.from(new Uint8Array(b))}else if(n.isString(b)){b=Buffer.from(b,"utf-8")}else{return v(h("Data after transformation must be a string, an ArrayBuffer, a Buffer, or a Stream",e))}T["Content-Length"]=b.length}var _=undefined;if(e.auth){var C=e.auth.username||"";var R=e.auth.password||"";_=C+":"+R}var O=o(e.baseURL,e.url);var E=l.parse(O);var k=E.protocol||"http:";if(!_&&E.auth){var S=E.auth.split(":");var w=S[0]||"";var x=S[1]||"";_=w+":"+x}if(_){delete T.Authorization}var P=g.test(k);var L=P?e.httpsAgent:e.httpAgent;var M={path:i(E.path,e.params,e.paramsSerializer).replace(/^\?/,""),method:e.method.toUpperCase(),headers:T,agent:L,agents:{http:e.httpAgent,https:e.httpsAgent},auth:_};if(e.socketPath){M.socketPath=e.socketPath}else{M.hostname=E.hostname;M.port=E.port}var A=e.proxy;if(!A&&A!==false){var D=k.slice(0,-1)+"_proxy";var j=process.env[D]||process.env[D.toUpperCase()];if(j){var F=l.parse(j);var I=process.env.no_proxy||process.env.NO_PROXY;var G=true;if(I){var B=I.split(",").map(function trim(e){return e.trim()});G=!B.some(function proxyMatch(e){if(!e){return false}if(e==="*"){return true}if(e[0]==="."&&E.hostname.substr(E.hostname.length-e.length)===e){return true}return E.hostname===e})}if(G){A={host:F.hostname,port:F.port};if(F.auth){var N=F.auth.split(":");A.auth={username:N[0],password:N[1]}}}}}if(A){M.hostname=A.host;M.host=A.host;M.headers.host=E.hostname+(E.port?":"+E.port:"");M.port=A.port;M.path=k+"//"+E.hostname+(E.port?":"+E.port:"")+M.path;if(A.auth){var U=Buffer.from(A.auth.username+":"+A.auth.password,"utf8").toString("base64");M.headers["Proxy-Authorization"]="Basic "+U}}var q;var $=P&&(A?g.test(A.protocol):true);if(e.transport){q=e.transport}else if(e.maxRedirects===0){q=$?u:a}else{if(e.maxRedirects){M.maxRedirects=e.maxRedirects}q=$?f:c}if(e.maxBodyLength>-1){M.maxBodyLength=e.maxBodyLength}var H=q.request(M,function handleResponse(t){if(H.aborted)return;var r=t;var o=t.req||H;if(t.statusCode!==204&&o.method!=="HEAD"&&e.decompress!==false){switch(t.headers["content-encoding"]){case"gzip":case"compress":case"deflate":r=r.pipe(p.createUnzip());delete t.headers["content-encoding"];break}}var i={status:t.statusCode,statusText:t.statusMessage,headers:t.headers,config:e,request:o};if(e.responseType==="stream"){i.data=r;s(y,v,i)}else{var a=[];r.on("data",function handleStreamData(t){a.push(t);if(e.maxContentLength>-1&&Buffer.concat(a).length>e.maxContentLength){r.destroy();v(h("maxContentLength size of "+e.maxContentLength+" exceeded",e,null,o))}});r.on("error",function handleStreamError(t){if(H.aborted)return;v(m(t,e,null,o))});r.on("end",function handleStreamEnd(){var t=Buffer.concat(a);if(e.responseType!=="arraybuffer"){t=t.toString(e.responseEncoding);if(!e.responseEncoding||e.responseEncoding==="utf8"){t=n.stripBOM(t)}}i.data=t;s(y,v,i)})}});H.on("error",function handleRequestError(t){if(H.aborted&&t.code!=="ERR_FR_TOO_MANY_REDIRECTS")return;v(m(t,e,null,H))});if(e.timeout){H.setTimeout(e.timeout,function handleRequestTimeout(){H.abort();v(h("timeout of "+e.timeout+"ms exceeded",e,"ECONNABORTED",H))})}if(e.cancelToken){e.cancelToken.promise.then(function onCanceled(e){if(H.aborted)return;H.abort();v(e)})}if(n.isStream(b)){b.on("error",function handleStreamError(t){v(m(t,e,null,H))}).pipe(H)}else{H.end(b)}})}},3454:(e,t,r)=>{"use strict";var n=r(328);var s=r(3211);var o=r(1545);var i=r(646);var a=r(1934);var u=r(6455);var c=r(3608);var f=r(5226);e.exports=function xhrAdapter(e){return new Promise(function dispatchXhrRequest(t,r){var l=e.data;var p=e.headers;if(n.isFormData(l)){delete p["Content-Type"]}var d=new XMLHttpRequest;if(e.auth){var h=e.auth.username||"";var m=e.auth.password?unescape(encodeURIComponent(e.auth.password)):"";p.Authorization="Basic "+btoa(h+":"+m)}var g=a(e.baseURL,e.url);d.open(e.method.toUpperCase(),i(g,e.params,e.paramsSerializer),true);d.timeout=e.timeout;d.onreadystatechange=function handleLoad(){if(!d||d.readyState!==4){return}if(d.status===0&&!(d.responseURL&&d.responseURL.indexOf("file:")===0)){return}var n="getAllResponseHeaders"in d?u(d.getAllResponseHeaders()):null;var o=!e.responseType||e.responseType==="text"?d.responseText:d.response;var i={data:o,status:d.status,statusText:d.statusText,headers:n,config:e,request:d};s(t,r,i);d=null};d.onabort=function handleAbort(){if(!d){return}r(f("Request aborted",e,"ECONNABORTED",d));d=null};d.onerror=function handleError(){r(f("Network Error",e,null,d));d=null};d.ontimeout=function handleTimeout(){var t="timeout of "+e.timeout+"ms exceeded";if(e.timeoutErrorMessage){t=e.timeoutErrorMessage}r(f(t,e,"ECONNABORTED",d));d=null};if(n.isStandardBrowserEnv()){var y=(e.withCredentials||c(g))&&e.xsrfCookieName?o.read(e.xsrfCookieName):undefined;if(y){p[e.xsrfHeaderName]=y}}if("setRequestHeader"in d){n.forEach(p,function setRequestHeader(e,t){if(typeof l==="undefined"&&t.toLowerCase()==="content-type"){delete p[t]}else{d.setRequestHeader(t,e)}})}if(!n.isUndefined(e.withCredentials)){d.withCredentials=!!e.withCredentials}if(e.responseType){try{d.responseType=e.responseType}catch(t){if(e.responseType!=="json"){throw t}}}if(typeof e.onDownloadProgress==="function"){d.addEventListener("progress",e.onDownloadProgress)}if(typeof e.onUploadProgress==="function"&&d.upload){d.upload.addEventListener("progress",e.onUploadProgress)}if(e.cancelToken){e.cancelToken.promise.then(function onCanceled(e){if(!d){return}d.abort();r(e);d=null})}if(!l){l=null}d.send(l)})}},2618:(e,t,r)=>{"use strict";var n=r(328);var s=r(7065);var o=r(8178);var i=r(4831);var a=r(8190);function createInstance(e){var t=new o(e);var r=s(o.prototype.request,t);n.extend(r,o.prototype,t);n.extend(r,t);return r}var u=createInstance(a);u.Axios=o;u.create=function create(e){return createInstance(i(u.defaults,e))};u.Cancel=r(8875);u.CancelToken=r(1587);u.isCancel=r(4057);u.all=function all(e){return Promise.all(e)};u.spread=r(4850);e.exports=u;e.exports.default=u},8875:e=>{"use strict";function Cancel(e){this.message=e}Cancel.prototype.toString=function toString(){return"Cancel"+(this.message?": "+this.message:"")};Cancel.prototype.__CANCEL__=true;e.exports=Cancel},1587:(e,t,r)=>{"use strict";var n=r(8875);function CancelToken(e){if(typeof e!=="function"){throw new TypeError("executor must be a function.")}var t;this.promise=new Promise(function promiseExecutor(e){t=e});var r=this;e(function cancel(e){if(r.reason){return}r.reason=new n(e);t(r.reason)})}CancelToken.prototype.throwIfRequested=function throwIfRequested(){if(this.reason){throw this.reason}};CancelToken.source=function source(){var e;var t=new CancelToken(function executor(t){e=t});return{token:t,cancel:e}};e.exports=CancelToken},4057:e=>{"use strict";e.exports=function isCancel(e){return!!(e&&e.__CANCEL__)}},8178:(e,t,r)=>{"use strict";var n=r(328);var s=r(646);var o=r(3214);var i=r(5062);var a=r(4831);function Axios(e){this.defaults=e;this.interceptors={request:new o,response:new o}}Axios.prototype.request=function request(e){if(typeof e==="string"){e=arguments[1]||{};e.url=arguments[0]}else{e=e||{}}e=a(this.defaults,e);if(e.method){e.method=e.method.toLowerCase()}else if(this.defaults.method){e.method=this.defaults.method.toLowerCase()}else{e.method="get"}var t=[i,undefined];var r=Promise.resolve(e);this.interceptors.request.forEach(function unshiftRequestInterceptors(e){t.unshift(e.fulfilled,e.rejected)});this.interceptors.response.forEach(function pushResponseInterceptors(e){t.push(e.fulfilled,e.rejected)});while(t.length){r=r.then(t.shift(),t.shift())}return r};Axios.prototype.getUri=function getUri(e){e=a(this.defaults,e);return s(e.url,e.params,e.paramsSerializer).replace(/^\?/,"")};n.forEach(["delete","get","head","options"],function forEachMethodNoData(e){Axios.prototype[e]=function(t,r){return this.request(a(r||{},{method:e,url:t,data:(r||{}).data}))}});n.forEach(["post","put","patch"],function forEachMethodWithData(e){Axios.prototype[e]=function(t,r,n){return this.request(a(n||{},{method:e,url:t,data:r}))}});e.exports=Axios},3214:(e,t,r)=>{"use strict";var n=r(328);function InterceptorManager(){this.handlers=[]}InterceptorManager.prototype.use=function use(e,t){this.handlers.push({fulfilled:e,rejected:t});return this.handlers.length-1};InterceptorManager.prototype.eject=function eject(e){if(this.handlers[e]){this.handlers[e]=null}};InterceptorManager.prototype.forEach=function forEach(e){n.forEach(this.handlers,function forEachHandler(t){if(t!==null){e(t)}})};e.exports=InterceptorManager},1934:(e,t,r)=>{"use strict";var n=r(1301);var s=r(7189);e.exports=function buildFullPath(e,t){if(e&&!n(t)){return s(e,t)}return t}},5226:(e,t,r)=>{"use strict";var n=r(1516);e.exports=function createError(e,t,r,s,o){var i=new Error(e);return n(i,t,r,s,o)}},5062:(e,t,r)=>{"use strict";var n=r(328);var s=r(9812);var o=r(4057);var i=r(8190);function throwIfCancellationRequested(e){if(e.cancelToken){e.cancelToken.throwIfRequested()}}e.exports=function dispatchRequest(e){throwIfCancellationRequested(e);e.headers=e.headers||{};e.data=s(e.data,e.headers,e.transformRequest);e.headers=n.merge(e.headers.common||{},e.headers[e.method]||{},e.headers);n.forEach(["delete","get","head","post","put","patch","common"],function cleanHeaderConfig(t){delete e.headers[t]});var t=e.adapter||i.adapter;return t(e).then(function onAdapterResolution(t){throwIfCancellationRequested(e);t.data=s(t.data,t.headers,e.transformResponse);return t},function onAdapterRejection(t){if(!o(t)){throwIfCancellationRequested(e);if(t&&t.response){t.response.data=s(t.response.data,t.response.headers,e.transformResponse)}}return Promise.reject(t)})}},1516:e=>{"use strict";e.exports=function enhanceError(e,t,r,n,s){e.config=t;if(r){e.code=r}e.request=n;e.response=s;e.isAxiosError=true;e.toJSON=function toJSON(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:this.config,code:this.code}};return e}},4831:(e,t,r)=>{"use strict";var n=r(328);e.exports=function mergeConfig(e,t){t=t||{};var r={};var s=["url","method","data"];var o=["headers","auth","proxy","params"];var i=["baseURL","transformRequest","transformResponse","paramsSerializer","timeout","timeoutMessage","withCredentials","adapter","responseType","xsrfCookieName","xsrfHeaderName","onUploadProgress","onDownloadProgress","decompress","maxContentLength","maxBodyLength","maxRedirects","transport","httpAgent","httpsAgent","cancelToken","socketPath","responseEncoding"];var a=["validateStatus"];function getMergedValue(e,t){if(n.isPlainObject(e)&&n.isPlainObject(t)){return n.merge(e,t)}else if(n.isPlainObject(t)){return n.merge({},t)}else if(n.isArray(t)){return t.slice()}return t}function mergeDeepProperties(s){if(!n.isUndefined(t[s])){r[s]=getMergedValue(e[s],t[s])}else if(!n.isUndefined(e[s])){r[s]=getMergedValue(undefined,e[s])}}n.forEach(s,function valueFromConfig2(e){if(!n.isUndefined(t[e])){r[e]=getMergedValue(undefined,t[e])}});n.forEach(o,mergeDeepProperties);n.forEach(i,function defaultToConfig2(s){if(!n.isUndefined(t[s])){r[s]=getMergedValue(undefined,t[s])}else if(!n.isUndefined(e[s])){r[s]=getMergedValue(undefined,e[s])}});n.forEach(a,function merge(n){if(n in t){r[n]=getMergedValue(e[n],t[n])}else if(n in e){r[n]=getMergedValue(undefined,e[n])}});var u=s.concat(o).concat(i).concat(a);var c=Object.keys(e).concat(Object.keys(t)).filter(function filterAxiosKeys(e){return u.indexOf(e)===-1});n.forEach(c,mergeDeepProperties);return r}},3211:(e,t,r)=>{"use strict";var n=r(5226);e.exports=function settle(e,t,r){var s=r.config.validateStatus;if(!r.status||!s||s(r.status)){e(r)}else{t(n("Request failed with status code "+r.status,r.config,null,r.request,r))}}},9812:(e,t,r)=>{"use strict";var n=r(328);e.exports=function transformData(e,t,r){n.forEach(r,function transform(r){e=r(e,t)});return e}},8190:(e,t,r)=>{"use strict";var n=r(328);var s=r(6240);var o={"Content-Type":"application/x-www-form-urlencoded"};function setContentTypeIfUnset(e,t){if(!n.isUndefined(e)&&n.isUndefined(e["Content-Type"])){e["Content-Type"]=t}}function getDefaultAdapter(){var e;if(typeof XMLHttpRequest!=="undefined"){e=r(3454)}else if(typeof process!=="undefined"&&Object.prototype.toString.call(process)==="[object process]"){e=r(8104)}return e}var i={adapter:getDefaultAdapter(),transformRequest:[function transformRequest(e,t){s(t,"Accept");s(t,"Content-Type");if(n.isFormData(e)||n.isArrayBuffer(e)||n.isBuffer(e)||n.isStream(e)||n.isFile(e)||n.isBlob(e)){return e}if(n.isArrayBufferView(e)){return e.buffer}if(n.isURLSearchParams(e)){setContentTypeIfUnset(t,"application/x-www-form-urlencoded;charset=utf-8");return e.toString()}if(n.isObject(e)){setContentTypeIfUnset(t,"application/json;charset=utf-8");return JSON.stringify(e)}return e}],transformResponse:[function transformResponse(e){if(typeof e==="string"){try{e=JSON.parse(e)}catch(e){}}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,validateStatus:function validateStatus(e){return e>=200&&e<300}};i.headers={common:{Accept:"application/json, text/plain, */*"}};n.forEach(["delete","get","head"],function forEachMethodNoData(e){i.headers[e]={}});n.forEach(["post","put","patch"],function forEachMethodWithData(e){i.headers[e]=n.merge(o)});e.exports=i},7065:e=>{"use strict";e.exports=function bind(e,t){return function wrap(){var r=new Array(arguments.length);for(var n=0;n{"use strict";var n=r(328);function encode(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}e.exports=function buildURL(e,t,r){if(!t){return e}var s;if(r){s=r(t)}else if(n.isURLSearchParams(t)){s=t.toString()}else{var o=[];n.forEach(t,function serialize(e,t){if(e===null||typeof e==="undefined"){return}if(n.isArray(e)){t=t+"[]"}else{e=[e]}n.forEach(e,function parseValue(e){if(n.isDate(e)){e=e.toISOString()}else if(n.isObject(e)){e=JSON.stringify(e)}o.push(encode(t)+"="+encode(e))})});s=o.join("&")}if(s){var i=e.indexOf("#");if(i!==-1){e=e.slice(0,i)}e+=(e.indexOf("?")===-1?"?":"&")+s}return e}},7189:e=>{"use strict";e.exports=function combineURLs(e,t){return t?e.replace(/\/+$/,"")+"/"+t.replace(/^\/+/,""):e}},1545:(e,t,r)=>{"use strict";var n=r(328);e.exports=n.isStandardBrowserEnv()?function standardBrowserEnv(){return{write:function write(e,t,r,s,o,i){var a=[];a.push(e+"="+encodeURIComponent(t));if(n.isNumber(r)){a.push("expires="+new Date(r).toGMTString())}if(n.isString(s)){a.push("path="+s)}if(n.isString(o)){a.push("domain="+o)}if(i===true){a.push("secure")}document.cookie=a.join("; ")},read:function read(e){var t=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return t?decodeURIComponent(t[3]):null},remove:function remove(e){this.write(e,"",Date.now()-864e5)}}}():function nonStandardBrowserEnv(){return{write:function write(){},read:function read(){return null},remove:function remove(){}}}()},1301:e=>{"use strict";e.exports=function isAbsoluteURL(e){return/^([a-z][a-z\d\+\-\.]*:)?\/\//i.test(e)}},3608:(e,t,r)=>{"use strict";var n=r(328);e.exports=n.isStandardBrowserEnv()?function standardBrowserEnv(){var e=/(msie|trident)/i.test(navigator.userAgent);var t=document.createElement("a");var r;function resolveURL(r){var n=r;if(e){t.setAttribute("href",n);n=t.href}t.setAttribute("href",n);return{href:t.href,protocol:t.protocol?t.protocol.replace(/:$/,""):"",host:t.host,search:t.search?t.search.replace(/^\?/,""):"",hash:t.hash?t.hash.replace(/^#/,""):"",hostname:t.hostname,port:t.port,pathname:t.pathname.charAt(0)==="/"?t.pathname:"/"+t.pathname}}r=resolveURL(window.location.href);return function isURLSameOrigin(e){var t=n.isString(e)?resolveURL(e):e;return t.protocol===r.protocol&&t.host===r.host}}():function nonStandardBrowserEnv(){return function isURLSameOrigin(){return true}}()},6240:(e,t,r)=>{"use strict";var n=r(328);e.exports=function normalizeHeaderName(e,t){n.forEach(e,function processHeader(r,n){if(n!==t&&n.toUpperCase()===t.toUpperCase()){e[t]=r;delete e[n]}})}},6455:(e,t,r)=>{"use strict";var n=r(328);var s=["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"];e.exports=function parseHeaders(e){var t={};var r;var o;var i;if(!e){return t}n.forEach(e.split("\n"),function parser(e){i=e.indexOf(":");r=n.trim(e.substr(0,i)).toLowerCase();o=n.trim(e.substr(i+1));if(r){if(t[r]&&s.indexOf(r)>=0){return}if(r==="set-cookie"){t[r]=(t[r]?t[r]:[]).concat([o])}else{t[r]=t[r]?t[r]+", "+o:o}}});return t}},4850:e=>{"use strict";e.exports=function spread(e){return function wrap(t){return e.apply(null,t)}}},328:(e,t,r)=>{"use strict";var n=r(7065);var s=Object.prototype.toString;function isArray(e){return s.call(e)==="[object Array]"}function isUndefined(e){return typeof e==="undefined"}function isBuffer(e){return e!==null&&!isUndefined(e)&&e.constructor!==null&&!isUndefined(e.constructor)&&typeof e.constructor.isBuffer==="function"&&e.constructor.isBuffer(e)}function isArrayBuffer(e){return s.call(e)==="[object ArrayBuffer]"}function isFormData(e){return typeof FormData!=="undefined"&&e instanceof FormData}function isArrayBufferView(e){var t;if(typeof ArrayBuffer!=="undefined"&&ArrayBuffer.isView){t=ArrayBuffer.isView(e)}else{t=e&&e.buffer&&e.buffer instanceof ArrayBuffer}return t}function isString(e){return typeof e==="string"}function isNumber(e){return typeof e==="number"}function isObject(e){return e!==null&&typeof e==="object"}function isPlainObject(e){if(s.call(e)!=="[object Object]"){return false}var t=Object.getPrototypeOf(e);return t===null||t===Object.prototype}function isDate(e){return s.call(e)==="[object Date]"}function isFile(e){return s.call(e)==="[object File]"}function isBlob(e){return s.call(e)==="[object Blob]"}function isFunction(e){return s.call(e)==="[object Function]"}function isStream(e){return isObject(e)&&isFunction(e.pipe)}function isURLSearchParams(e){return typeof URLSearchParams!=="undefined"&&e instanceof URLSearchParams}function trim(e){return e.replace(/^\s*/,"").replace(/\s*$/,"")}function isStandardBrowserEnv(){if(typeof navigator!=="undefined"&&(navigator.product==="ReactNative"||navigator.product==="NativeScript"||navigator.product==="NS")){return false}return typeof window!=="undefined"&&typeof document!=="undefined"}function forEach(e,t){if(e===null||typeof e==="undefined"){return}if(typeof e!=="object"){e=[e]}if(isArray(e)){for(var r=0,n=e.length;r{t.log=log;t.formatArgs=formatArgs;t.save=save;t.load=load;t.useColors=useColors;t.storage=localstorage();t.colors=["#0000CC","#0000FF","#0033CC","#0033FF","#0066CC","#0066FF","#0099CC","#0099FF","#00CC00","#00CC33","#00CC66","#00CC99","#00CCCC","#00CCFF","#3300CC","#3300FF","#3333CC","#3333FF","#3366CC","#3366FF","#3399CC","#3399FF","#33CC00","#33CC33","#33CC66","#33CC99","#33CCCC","#33CCFF","#6600CC","#6600FF","#6633CC","#6633FF","#66CC00","#66CC33","#9900CC","#9900FF","#9933CC","#9933FF","#99CC00","#99CC33","#CC0000","#CC0033","#CC0066","#CC0099","#CC00CC","#CC00FF","#CC3300","#CC3333","#CC3366","#CC3399","#CC33CC","#CC33FF","#CC6600","#CC6633","#CC9900","#CC9933","#CCCC00","#CCCC33","#FF0000","#FF0033","#FF0066","#FF0099","#FF00CC","#FF00FF","#FF3300","#FF3333","#FF3366","#FF3399","#FF33CC","#FF33FF","#FF6600","#FF6633","#FF9900","#FF9933","#FFCC00","#FFCC33"];function useColors(){if(typeof window!=="undefined"&&window.process&&(window.process.type==="renderer"||window.process.__nwjs)){return true}if(typeof navigator!=="undefined"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/(edge|trident)\/(\d+)/)){return false}return typeof document!=="undefined"&&document.documentElement&&document.documentElement.style&&document.documentElement.style.WebkitAppearance||typeof window!=="undefined"&&window.console&&(window.console.firebug||window.console.exception&&window.console.table)||typeof navigator!=="undefined"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/)&&parseInt(RegExp.$1,10)>=31||typeof navigator!=="undefined"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/)}function formatArgs(t){t[0]=(this.useColors?"%c":"")+this.namespace+(this.useColors?" %c":" ")+t[0]+(this.useColors?"%c ":" ")+"+"+e.exports.humanize(this.diff);if(!this.useColors){return}const r="color: "+this.color;t.splice(1,0,r,"color: inherit");let n=0;let s=0;t[0].replace(/%[a-zA-Z%]/g,e=>{if(e==="%%"){return}n++;if(e==="%c"){s=n}});t.splice(s,0,r)}function log(...e){return typeof console==="object"&&console.log&&console.log(...e)}function save(e){try{if(e){t.storage.setItem("debug",e)}else{t.storage.removeItem("debug")}}catch(e){}}function load(){let e;try{e=t.storage.getItem("debug")}catch(e){}if(!e&&typeof process!=="undefined"&&"env"in process){e=process.env.DEBUG}return e}function localstorage(){try{return localStorage}catch(e){}}e.exports=r(6243)(t);const{formatters:n}=e.exports;n.j=function(e){try{return JSON.stringify(e)}catch(e){return"[UnexpectedJSONParseError]: "+e.message}}},6243:(e,t,r)=>{function setup(e){createDebug.debug=createDebug;createDebug.default=createDebug;createDebug.coerce=coerce;createDebug.disable=disable;createDebug.enable=enable;createDebug.enabled=enabled;createDebug.humanize=r(900);Object.keys(e).forEach(t=>{createDebug[t]=e[t]});createDebug.instances=[];createDebug.names=[];createDebug.skips=[];createDebug.formatters={};function selectColor(e){let t=0;for(let r=0;r{if(t==="%%"){return t}o++;const s=createDebug.formatters[n];if(typeof s==="function"){const n=e[o];t=s.call(r,n);e.splice(o,1);o--}return t});createDebug.formatArgs.call(r,e);const i=r.log||createDebug.log;i.apply(r,e)}debug.namespace=e;debug.enabled=createDebug.enabled(e);debug.useColors=createDebug.useColors();debug.color=selectColor(e);debug.destroy=destroy;debug.extend=extend;if(typeof createDebug.init==="function"){createDebug.init(debug)}createDebug.instances.push(debug);return debug}function destroy(){const e=createDebug.instances.indexOf(this);if(e!==-1){createDebug.instances.splice(e,1);return true}return false}function extend(e,t){const r=createDebug(this.namespace+(typeof t==="undefined"?":":t)+e);r.log=this.log;return r}function enable(e){createDebug.save(e);createDebug.names=[];createDebug.skips=[];let t;const r=(typeof e==="string"?e:"").split(/[\s,]+/);const n=r.length;for(t=0;t"-"+e)].join(",");createDebug.enable("");return e}function enabled(e){if(e[e.length-1]==="*"){return true}let t;let r;for(t=0,r=createDebug.skips.length;t{if(typeof process==="undefined"||process.type==="renderer"||process.browser===true||process.__nwjs){e.exports=r(8222)}else{e.exports=r(5332)}},5332:(e,t,r)=>{const n=r(3867);const s=r(1669);t.init=init;t.log=log;t.formatArgs=formatArgs;t.save=save;t.load=load;t.useColors=useColors;t.colors=[6,2,3,4,5,1];try{const e=r(9318);if(e&&(e.stderr||e).level>=2){t.colors=[20,21,26,27,32,33,38,39,40,41,42,43,44,45,56,57,62,63,68,69,74,75,76,77,78,79,80,81,92,93,98,99,112,113,128,129,134,135,148,149,160,161,162,163,164,165,166,167,168,169,170,171,172,173,178,179,184,185,196,197,198,199,200,201,202,203,204,205,206,207,208,209,214,215,220,221]}}catch(e){}t.inspectOpts=Object.keys(process.env).filter(e=>{return/^debug_/i.test(e)}).reduce((e,t)=>{const r=t.substring(6).toLowerCase().replace(/_([a-z])/g,(e,t)=>{return t.toUpperCase()});let n=process.env[t];if(/^(yes|on|true|enabled)$/i.test(n)){n=true}else if(/^(no|off|false|disabled)$/i.test(n)){n=false}else if(n==="null"){n=null}else{n=Number(n)}e[r]=n;return e},{});function useColors(){return"colors"in t.inspectOpts?Boolean(t.inspectOpts.colors):n.isatty(process.stderr.fd)}function formatArgs(t){const{namespace:r,useColors:n}=this;if(n){const n=this.color;const s="[3"+(n<8?n:"8;5;"+n);const o=` ${s};1m${r} `;t[0]=o+t[0].split("\n").join("\n"+o);t.push(s+"m+"+e.exports.humanize(this.diff)+"")}else{t[0]=getDate()+r+" "+t[0]}}function getDate(){if(t.inspectOpts.hideDate){return""}return(new Date).toISOString()+" "}function log(...e){return process.stderr.write(s.format(...e)+"\n")}function save(e){if(e){process.env.DEBUG=e}else{delete process.env.DEBUG}}function load(){return process.env.DEBUG}function init(e){e.inspectOpts={};const r=Object.keys(t.inspectOpts);for(let n=0;n{var n;try{n=r(8237)("follow-redirects")}catch(e){n=function(){}}e.exports=n},7707:(e,t,r)=>{var n=r(8835);var s=n.URL;var o=r(8605);var i=r(7211);var a=r(2413).Writable;var u=r(2357);var c=r(1133);var f=Object.create(null);["abort","aborted","connect","error","socket","timeout"].forEach(function(e){f[e]=function(t,r,n){this._redirectable.emit(e,t,r,n)}});var l=createErrorType("ERR_FR_REDIRECTION_FAILURE","");var p=createErrorType("ERR_FR_TOO_MANY_REDIRECTS","Maximum number of redirects exceeded");var d=createErrorType("ERR_FR_MAX_BODY_LENGTH_EXCEEDED","Request body larger than maxBodyLength limit");var h=createErrorType("ERR_STREAM_WRITE_AFTER_END","write after end");function RedirectableRequest(e,t){a.call(this);this._sanitizeOptions(e);this._options=e;this._ended=false;this._ending=false;this._redirectCount=0;this._redirects=[];this._requestBodyLength=0;this._requestBodyBuffers=[];if(t){this.on("response",t)}var r=this;this._onNativeResponse=function(e){r._processResponse(e)};this._performRequest()}RedirectableRequest.prototype=Object.create(a.prototype);RedirectableRequest.prototype.write=function(e,t,r){if(this._ending){throw new h}if(!(typeof e==="string"||typeof e==="object"&&"length"in e)){throw new TypeError("data should be a string, Buffer or Uint8Array")}if(typeof t==="function"){r=t;t=null}if(e.length===0){if(r){r()}return}if(this._requestBodyLength+e.length<=this._options.maxBodyLength){this._requestBodyLength+=e.length;this._requestBodyBuffers.push({data:e,encoding:t});this._currentRequest.write(e,t,r)}else{this.emit("error",new d);this.abort()}};RedirectableRequest.prototype.end=function(e,t,r){if(typeof e==="function"){r=e;e=t=null}else if(typeof t==="function"){r=t;t=null}if(!e){this._ended=this._ending=true;this._currentRequest.end(null,null,r)}else{var n=this;var s=this._currentRequest;this.write(e,t,function(){n._ended=true;s.end(null,null,r)});this._ending=true}};RedirectableRequest.prototype.setHeader=function(e,t){this._options.headers[e]=t;this._currentRequest.setHeader(e,t)};RedirectableRequest.prototype.removeHeader=function(e){delete this._options.headers[e];this._currentRequest.removeHeader(e)};RedirectableRequest.prototype.setTimeout=function(e,t){if(t){this.once("timeout",t)}if(this.socket){startTimer(this,e)}else{var r=this;this._currentRequest.once("socket",function(){startTimer(r,e)})}this.once("response",clearTimer);this.once("error",clearTimer);return this};function startTimer(e,t){clearTimeout(e._timeout);e._timeout=setTimeout(function(){e.emit("timeout")},t)}function clearTimer(){clearTimeout(this._timeout)}["abort","flushHeaders","getHeader","setNoDelay","setSocketKeepAlive"].forEach(function(e){RedirectableRequest.prototype[e]=function(t,r){return this._currentRequest[e](t,r)}});["aborted","connection","socket"].forEach(function(e){Object.defineProperty(RedirectableRequest.prototype,e,{get:function(){return this._currentRequest[e]}})});RedirectableRequest.prototype._sanitizeOptions=function(e){if(!e.headers){e.headers={}}if(e.host){if(!e.hostname){e.hostname=e.host}delete e.host}if(!e.pathname&&e.path){var t=e.path.indexOf("?");if(t<0){e.pathname=e.path}else{e.pathname=e.path.substring(0,t);e.search=e.path.substring(t)}}};RedirectableRequest.prototype._performRequest=function(){var e=this._options.protocol;var t=this._options.nativeProtocols[e];if(!t){this.emit("error",new TypeError("Unsupported protocol "+e));return}if(this._options.agents){var r=e.substr(0,e.length-1);this._options.agent=this._options.agents[r]}var s=this._currentRequest=t.request(this._options,this._onNativeResponse);this._currentUrl=n.format(this._options);s._redirectable=this;for(var o in f){if(o){s.on(o,f[o])}}if(this._isRedirect){var i=0;var a=this;var u=this._requestBodyBuffers;(function writeNext(e){if(s===a._currentRequest){if(e){a.emit("error",e)}else if(i=300&&t<400){this._currentRequest.removeAllListeners();this._currentRequest.on("error",noop);this._currentRequest.abort();e.destroy();if(++this._redirectCount>this._options.maxRedirects){this.emit("error",new p);return}if((t===301||t===302)&&this._options.method==="POST"||t===303&&!/^(?:GET|HEAD)$/.test(this._options.method)){this._options.method="GET";this._requestBodyBuffers=[];removeMatchingHeaders(/^content-/i,this._options.headers)}var s=removeMatchingHeaders(/^host$/i,this._options.headers)||n.parse(this._currentUrl).hostname;var o=n.resolve(this._currentUrl,r);c("redirecting to",o);this._isRedirect=true;var i=n.parse(o);Object.assign(this._options,i);if(i.hostname!==s){removeMatchingHeaders(/^authorization$/i,this._options.headers)}if(typeof this._options.beforeRedirect==="function"){var a={headers:e.headers};try{this._options.beforeRedirect.call(null,this._options,a)}catch(e){this.emit("error",e);return}this._sanitizeOptions(this._options)}try{this._performRequest()}catch(e){var u=new l("Redirected request failed: "+e.message);u.cause=e;this.emit("error",u)}}else{e.responseUrl=this._currentUrl;e.redirects=this._redirects;this.emit("response",e);this._requestBodyBuffers=[]}};function wrap(e){var t={maxRedirects:21,maxBodyLength:10*1024*1024};var r={};Object.keys(e).forEach(function(o){var i=o+":";var a=r[i]=e[o];var f=t[o]=Object.create(a);f.request=function(e,o,a){if(typeof e==="string"){var f=e;try{e=urlToOptions(new s(f))}catch(t){e=n.parse(f)}}else if(s&&e instanceof s){e=urlToOptions(e)}else{a=o;o=e;e={protocol:i}}if(typeof o==="function"){a=o;o=null}o=Object.assign({maxRedirects:t.maxRedirects,maxBodyLength:t.maxBodyLength},e,o);o.nativeProtocols=r;u.equal(o.protocol,i,"protocol mismatch");c("options",o);return new RedirectableRequest(o,a)};f.get=function(e,t,r){var n=f.request(e,t,r);n.end();return n}});return t}function noop(){}function urlToOptions(e){var t={protocol:e.protocol,hostname:e.hostname.startsWith("[")?e.hostname.slice(1,-1):e.hostname,hash:e.hash,search:e.search,pathname:e.pathname,path:e.pathname+e.search,href:e.href};if(e.port!==""){t.port=Number(e.port)}return t}function removeMatchingHeaders(e,t){var r;for(var n in t){if(e.test(n)){r=t[n];delete t[n]}}return r}function createErrorType(e,t){function CustomError(e){Error.captureStackTrace(this,this.constructor);this.message=e||t}CustomError.prototype=new Error;CustomError.prototype.constructor=CustomError;CustomError.prototype.name="Error ["+e+"]";CustomError.prototype.code=e;return CustomError}e.exports=wrap({http:o,https:i});e.exports.wrap=wrap},1621:e=>{"use strict";e.exports=((e,t)=>{t=t||process.argv;const r=e.startsWith("-")?"":e.length===1?"-":"--";const n=t.indexOf(r+e);const s=t.indexOf("--");return n!==-1&&(s===-1?true:n{var t=1e3;var r=t*60;var n=r*60;var s=n*24;var o=s*7;var i=s*365.25;e.exports=function(e,t){t=t||{};var r=typeof e;if(r==="string"&&e.length>0){return parse(e)}else if(r==="number"&&isFinite(e)){return t.long?fmtLong(e):fmtShort(e)}throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(e))};function parse(e){e=String(e);if(e.length>100){return}var a=/^(-?(?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)?$/i.exec(e);if(!a){return}var u=parseFloat(a[1]);var c=(a[2]||"ms").toLowerCase();switch(c){case"years":case"year":case"yrs":case"yr":case"y":return u*i;case"weeks":case"week":case"w":return u*o;case"days":case"day":case"d":return u*s;case"hours":case"hour":case"hrs":case"hr":case"h":return u*n;case"minutes":case"minute":case"mins":case"min":case"m":return u*r;case"seconds":case"second":case"secs":case"sec":case"s":return u*t;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return u;default:return undefined}}function fmtShort(e){var o=Math.abs(e);if(o>=s){return Math.round(e/s)+"d"}if(o>=n){return Math.round(e/n)+"h"}if(o>=r){return Math.round(e/r)+"m"}if(o>=t){return Math.round(e/t)+"s"}return e+"ms"}function fmtLong(e){var o=Math.abs(e);if(o>=s){return plural(e,o,s,"day")}if(o>=n){return plural(e,o,n,"hour")}if(o>=r){return plural(e,o,r,"minute")}if(o>=t){return plural(e,o,t,"second")}return e+" ms"}function plural(e,t,r,n){var s=t>=r*1.5;return Math.round(e/r)+" "+n+(s?"s":"")}},1949:(e,t,r)=>{const n=r(4966);const{GitConstructError:s}=r(4732);const{createInstanceConfig:o,folderExists:i}=r(847);const a=Object.create(null);for(let e=r(4732),t=Object.keys(e),n=0;n{const n=r(5301);const{GitExecutor:s}=r(4701);const{Scheduler:o}=r(3421);const{GitLogger:i}=r(7178);const{adhocExecTask:a,configurationErrorTask:u}=r(2815);const{NOOP:c,appendTaskOptions:f,asArray:l,filterArray:p,filterPrimitives:d,filterString:h,filterType:m,folderExists:g,getTrailingOptions:y,trailingFunctionArgument:v,trailingOptionsArgument:b}=r(847);const{branchTask:T,branchLocalTask:_,deleteBranchesTask:C,deleteBranchTask:R}=r(17);const{taskCallback:O}=r(8850);const{checkIsRepoTask:E}=r(221);const{cloneTask:k,cloneMirrorTask:S}=r(3173);const{addConfigTask:w,listConfigTask:x}=r(7597);const{cleanWithOptionsTask:P,isCleanOptionsArray:L}=r(4386);const{initTask:M}=r(6016);const{mergeTask:A}=r(8829);const{moveTask:D}=r(6520);const{pullTask:j}=r(4636);const{pushTagsTask:F,pushTask:I}=r(1435);const{addRemoteTask:G,getRemotesTask:B,listRemotesTask:N,remoteTask:U,removeRemoteTask:q}=r(9866);const{getResetMode:$,resetTask:H}=r(2377);const{statusTask:V}=r(9197);const{addSubModuleTask:z,initSubModuleTask:W,subModuleTask:Y,updateSubModuleTask:K}=r(8772);const{addAnnotatedTagTask:J,addTagTask:Q,tagListTask:X}=r(8540);const{straightThroughStringTask:Z}=r(2815);const{parseCheckIgnore:ee}=r(9926);const te=Symbol("ChainedExecutor");function Git(e){this._executor=new s(e.binary,e.baseDir,new o(e.maxConcurrentProcesses));this._logger=new i}Git.prototype._executor=null;Git.prototype._logger=null;Git.prototype.customBinary=function(e){this._executor.binary=e;return this};Git.prototype.env=function(e,t){if(arguments.length===1&&typeof e==="object"){this._executor.env=e}else{(this._executor.env=this._executor.env||{})[e]=t}return this};Git.prototype.cwd=function(e,t){const r=typeof e!=="string"?u("Git.cwd: workingDirectory must be supplied as a string"):a(()=>{if(!g(e)){throw new Error(`Git.cwd: cannot change to non-directory "${e}"`)}return this._executor.cwd=e});return this._runTask(r,v(arguments)||c)};Git.prototype.outputHandler=function(e){this._executor.outputHandler=e;return this};Git.prototype.init=function(e,t){return this._runTask(M(e===true,this._executor.cwd,y(arguments)),v(arguments))};Git.prototype.status=function(){return this._runTask(V(y(arguments)),v(arguments))};Git.prototype.stashList=function(e,t){var r=v(arguments);var n=(r===t?e:null)||{};var s=n.splitter||requireResponseHandler("ListLogSummary").SPLITTER;var o=["stash","list","--pretty=format:"+requireResponseHandler("ListLogSummary").START_BOUNDARY+"%H %ai %s%d %aN %ae".replace(/\s+/g,s)+requireResponseHandler("ListLogSummary").COMMIT_BOUNDARY];if(Array.isArray(n)){o=o.concat(n)}return this._run(o,r,{parser:Git.responseParser("ListLogSummary",s)})};Git.prototype.stash=function(e,t){return this._run(["stash"].concat(y(arguments)),v(arguments))};function createCloneTask(e,t,r,n){if(typeof r!=="string"){return u(`git.${e}() requires a string 'repoPath'`)}return t(r,m(n,h),y(arguments))}Git.prototype.clone=function(){return this._runTask(createCloneTask("clone",k,...arguments),v(arguments))};Git.prototype.mirror=function(){return this._runTask(createCloneTask("mirror",S,...arguments),v(arguments))};Git.prototype.mv=function(e,t){return this._runTask(D(e,t),v(arguments))};Git.prototype.checkoutLatestTag=function(e){var t=this;return this.pull(function(){t.tags(function(r,n){t.checkout(n.latest,e)})})};Git.prototype.add=function(e){return this._run(["add"].concat(e),v(arguments))};Git.prototype.commit=function(e,t,r,n){var s=["commit"];l(e).forEach(function(e){s.push("-m",e)});l(typeof t==="string"||Array.isArray(t)?t:[]).forEach(e=>s.push(e));s.push(...y(arguments,0,true));return this._run(s,v(arguments),{parser:Git.responseParser("CommitSummary")})};Git.prototype.pull=function(e,t,r,n){return this._runTask(j(m(e,h),m(t,h),y(arguments)),v(arguments))};Git.prototype.fetch=function(e,t,r){const n=["fetch"].concat(y(arguments));if(typeof e==="string"&&typeof t==="string"){n.push(e,t)}return this._run(n,v(arguments),{concatStdErr:true,parser:Git.responseParser("FetchSummary")})};Git.prototype.silent=function(e){this._logger.silent(!!e);return this};Git.prototype.tags=function(e,t){return this._runTask(X(y(arguments)),v(arguments))};Git.prototype.rebase=function(e,t){return this._run(["rebase"].concat(y(arguments)),v(arguments))};Git.prototype.reset=function(e,t){return this._runTask(H($(e),y(arguments)),v(arguments))};Git.prototype.revert=function(e,t,r){const n=v(arguments);if(typeof e!=="string"){return this._runTask(u("Commit must be a string"),n)}return this._run(["revert",...y(arguments,0,true),e],n)};Git.prototype.addTag=function(e,t){const r=typeof e==="string"?Q(e):u("Git.addTag requires a tag name");return this._runTask(r,v(arguments))};Git.prototype.addAnnotatedTag=function(e,t,r){return this._runTask(J(e,t),v(arguments))};Git.prototype.checkout=function(e,t){const r=["checkout",...y(arguments,true)];return this._runTask(Z(r),v(arguments))};Git.prototype.checkoutBranch=function(e,t,r){return this.checkout(["-b",e,t],v(arguments))};Git.prototype.checkoutLocalBranch=function(e,t){return this.checkout(["-b",e],v(arguments))};Git.prototype.deleteLocalBranch=function(e,t,r){return this._runTask(R(e,typeof t==="boolean"?t:false),v(arguments))};Git.prototype.deleteLocalBranches=function(e,t,r){return this._runTask(C(e,typeof t==="boolean"?t:false),v(arguments))};Git.prototype.branch=function(e,t){return this._runTask(T(y(arguments)),v(arguments))};Git.prototype.branchLocal=function(e){return this._runTask(_(),v(arguments))};Git.prototype.addConfig=function(e,t,r,n){return this._runTask(w(e,t,typeof r==="boolean"?r:false),v(arguments))};Git.prototype.listConfig=function(){return this._runTask(x(),v(arguments))};Git.prototype.raw=function(e){const t=!Array.isArray(e);const r=[].slice.call(t?arguments:e,0);for(let e=0;e{const{gitP:n}=r(941);const{esModuleFactory:s,gitInstanceFactory:o,gitExportFactory:i}=r(1949);e.exports=s(i(o,{gitP:n}))},4732:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});var n=r(4386);t.CleanOptions=n.CleanOptions;var s=r(221);t.CheckRepoActions=s.CheckRepoActions;var o=r(2377);t.ResetMode=o.ResetMode;var i=r(1876);t.GitConstructError=i.GitConstructError;var a=r(5757);t.GitError=a.GitError;var u=r(5131);t.GitResponseError=u.GitResponseError;var c=r(740);t.TaskConfigurationError=c.TaskConfigurationError},1876:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});const n=r(5757);class GitConstructError extends n.GitError{constructor(e,t){super(undefined,t);this.config=e}}t.GitConstructError=GitConstructError},5757:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});class GitError extends Error{constructor(e,t){super(t);this.task=e;Object.setPrototypeOf(this,undefined)}}t.GitError=GitError},5131:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});const n=r(5757);class GitResponseError extends n.GitError{constructor(e,t){super(undefined,t||String(e));this.git=e}}t.GitResponseError=GitResponseError},740:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});const n=r(5757);class TaskConfigurationError extends n.GitError{constructor(e){super(undefined,e)}}t.TaskConfigurationError=TaskConfigurationError},7178:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});const n=r(8237);const s=r(847);n.default.formatters.L=(e=>String(s.filterHasLength(e)?e.length:"-"));n.default.formatters.B=(e=>{if(Buffer.isBuffer(e)){return e.toString("utf8")}return s.objectToString(e)});t.log=n.default("simple-git");function prefixedLogger(e,t,r){if(!t||!String(t).replace(/\s*/,"")){return!r?e:(t,...n)=>{e(t,...n);r(t,...n)}}return(n,...s)=>{e(`%s ${n}`,t,...s);if(r){r(n,...s)}}}function childLoggerName(e,t,{namespace:r}){if(typeof e==="string"){return e}const n=t&&t.namespace||"";if(n.startsWith(r)){return n.substr(r.length+1)}return n||r}function createLogger(e,r,n,o=t.log){const i=e&&`[${e}]`||"";const a=[];const u=typeof r==="string"?o.extend(r):r;const c=childLoggerName(s.filterType(r,s.filterString),u,o);const f=((u===null||u===void 0?void 0:u.destroy)||s.NOOP).bind(u);return step(n);function destroy(){f();a.forEach(e=>e.destroy());a.length=0}function child(t){return s.append(a,createLogger(e,u&&u.extend(t)||t))}function sibling(t,r){return s.append(a,createLogger(e,c.replace(/^[^:]+/,t),r,o))}function step(t){const r=t&&`[${t}]`||"";const n=u&&prefixedLogger(u,r)||s.NOOP;const a=prefixedLogger(o,`${i} ${r}`,n);return Object.assign(u?n:a,{key:c,label:e,child:child,sibling:sibling,debug:n,info:a,step:step,destroy:destroy})}}t.createLogger=createLogger;class GitLogger{constructor(e=t.log){this._out=e;this.error=prefixedLogger(e,"[ERROR]");this.warn=prefixedLogger(e,"[WARN]")}silent(e=false){if(e!==this._out.enabled){return}const{namespace:t}=this._out;const r=(process.env.DEBUG||"").split(",").filter(e=>!!e);const o=r.includes(t);const i=r.includes(`-${t}`);if(!e){if(i){s.remove(r,`-${t}`)}else{r.push(t)}}else{if(o){s.remove(r,t)}else{r.push(`-${t}`)}}n.default.enable(r.join(","))}}t.GitLogger=GitLogger},6086:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});const n=r(3755);const s=r(847);const o=/(\S+)\s+\(\S+\s([^)]+)\)/;const i=/^error[^']+'([^']+)'/m;const a=[new s.LineParser(o,(e,[t,r])=>{const s=n.branchDeletionSuccess(t,r);e.all.push(s);e.branches[t]=s}),new s.LineParser(i,(e,[t])=>{const r=n.branchDeletionFailure(t);e.errors.push(r);e.all.push(r);e.branches[t]=r})];t.parseBranchDeletions=(e=>{return s.parseStringResponse(new n.BranchDeletionBatch,a,e)});function hasBranchDeletionError(e,t){return t===s.ExitCodes.ERROR&&i.test(e)}t.hasBranchDeletionError=hasBranchDeletionError},9264:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});const n=r(4446);const s=r(847);const o=[new s.LineParser(/^(\*\s)?\((?:HEAD )?detached (?:from|at) (\S+)\)\s+([a-z0-9]+)\s(.*)$/,(e,[t,r,n,s])=>{e.push(!!t,true,r,n,s)}),new s.LineParser(/^(\*\s)?(\S+)\s+([a-z0-9]+)\s(.*)$/,(e,[t,r,n,s])=>{e.push(!!t,false,r,n,s)})];t.parseBranchSummary=function(e){return s.parseStringResponse(new n.BranchSummaryResult,o,e)}},6412:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});const n=r(1651);const s=r(847);const o=r(5658);const i=[new s.LineParser(/^Auto-merging\s+(.+)$/,(e,[t])=>{e.merges.push(t)}),new s.LineParser(/^CONFLICT\s+\((.+)\): Merge conflict in (.+)$/,(e,[t,r])=>{e.conflicts.push(new n.MergeSummaryConflict(t,r))}),new s.LineParser(/^CONFLICT\s+\((.+\/delete)\): (.+) deleted in (.+) and/,(e,[t,r,s])=>{e.conflicts.push(new n.MergeSummaryConflict(t,r,{deleteRef:s}))}),new s.LineParser(/^CONFLICT\s+\((.+)\):/,(e,[t])=>{e.conflicts.push(new n.MergeSummaryConflict(t,null))}),new s.LineParser(/^Automatic merge failed;\s+(.+)$/,(e,[t])=>{e.result=t})];t.parseMergeResult=((e,r)=>{return Object.assign(t.parseMergeDetail(e,r),o.parsePullResult(e,r))});t.parseMergeDetail=(e=>{return s.parseStringResponse(new n.MergeSummaryDetail,i,e)})},7444:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});const n=r(847);const s=[new n.LineParser(/^Renaming (.+) to (.+)$/,(e,[t,r])=>{e.moves.push({from:t,to:r})})];t.parseMoveResult=function(e){return n.parseStringResponse({moves:[]},s,e)}},5658:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});const n=r(3567);const s=r(847);const o=r(2661);const i=/^\s*(.+?)\s+\|\s+\d+\s*(\+*)(-*)/;const a=/(\d+)\D+((\d+)\D+\(\+\))?(\D+(\d+)\D+\(-\))?/;const u=/^(create|delete) mode \d+ (.+)/;const c=[new s.LineParser(i,(e,[t,r,n])=>{e.files.push(t);if(r){e.insertions[t]=r.length}if(n){e.deletions[t]=n.length}}),new s.LineParser(a,(e,[t,,r,,n])=>{if(r!==undefined||n!==undefined){e.summary.changes=+t||0;e.summary.insertions=+r||0;e.summary.deletions=+n||0;return true}return false}),new s.LineParser(u,(e,[t,r])=>{s.append(e.files,r);s.append(t==="create"?e.created:e.deleted,r)})];t.parsePullDetail=((e,t)=>{return s.parseStringResponse(new n.PullSummary,c,`${e}\n${t}`)});t.parsePullResult=((e,r)=>{return Object.assign(new n.PullSummary,t.parsePullDetail(e,r),o.parseRemoteMessages(e,r))})},8530:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});const n=r(847);const s=r(2661);function pushResultPushedItem(e,t,r){const n=r.includes("deleted");const s=r.includes("tag")||/^refs\/tags/.test(e);const o=!r.includes("new");return{deleted:n,tag:s,branch:!s,new:!o,alreadyUpdated:o,local:e,remote:t}}const o=[new n.LineParser(/^Pushing to (.+)$/,(e,[t])=>{e.repo=t}),new n.LineParser(/^updating local tracking ref '(.+)'/,(e,[t])=>{e.ref=Object.assign(Object.assign({},e.ref||{}),{local:t})}),new n.LineParser(/^[*-=]\s+([^:]+):(\S+)\s+\[(.+)]$/,(e,[t,r,n])=>{e.pushed.push(pushResultPushedItem(t,r,n))}),new n.LineParser(/^Branch '([^']+)' set up to track remote branch '([^']+)' from '([^']+)'/,(e,[t,r,n])=>{e.branch=Object.assign(Object.assign({},e.branch||{}),{local:t,remote:r,remoteName:n})}),new n.LineParser(/^([^:]+):(\S+)\s+([a-z0-9]+)\.\.([a-z0-9]+)$/,(e,[t,r,n,s])=>{e.update={head:{local:t,remote:r},hash:{from:n,to:s}}})];t.parsePushResult=((e,r)=>{const n=t.parsePushDetail(e,r);const o=s.parseRemoteMessages(e,r);return Object.assign(Object.assign({},n),o)});t.parsePushDetail=((e,t)=>{return n.parseStringResponse({pushed:[]},o,`${e}\n${t}`)})},2661:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});const n=r(847);const s=r(3565);const o=[new n.RemoteLineParser(/^remote:\s*(.+)$/,(e,[t])=>{e.remoteMessages.all.push(t.trim());return false}),...s.remoteMessagesObjectParsers,new n.RemoteLineParser([/create a (?:pull|merge) request/i,/\s(https?:\/\/\S+)$/],(e,[t])=>{e.remoteMessages.pullRequestUrl=t}),new n.RemoteLineParser([/found (\d+) vulnerabilities.+\(([^)]+)\)/i,/\s(https?:\/\/\S+)$/],(e,[t,r,s])=>{e.remoteMessages.vulnerabilities={count:n.asNumber(t),summary:r,url:s}})];function parseRemoteMessages(e,t){return n.parseStringResponse({remoteMessages:new RemoteMessageSummary},o,t)}t.parseRemoteMessages=parseRemoteMessages;class RemoteMessageSummary{constructor(){this.all=[]}}t.RemoteMessageSummary=RemoteMessageSummary},3565:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});const n=r(847);function objectEnumerationResult(e){return e.objects=e.objects||{compressing:0,counting:0,enumerating:0,packReused:0,reused:{count:0,delta:0},total:{count:0,delta:0}}}function asObjectCount(e){const t=/^\s*(\d+)/.exec(e);const r=/delta (\d+)/i.exec(e);return{count:n.asNumber(t&&t[1]||"0"),delta:n.asNumber(r&&r[1]||"0")}}t.remoteMessagesObjectParsers=[new n.RemoteLineParser(/^remote:\s*(enumerating|counting|compressing) objects: (\d+),/i,(e,[t,r])=>{const s=t.toLowerCase();const o=objectEnumerationResult(e.remoteMessages);Object.assign(o,{[s]:n.asNumber(r)})}),new n.RemoteLineParser(/^remote:\s*(enumerating|counting|compressing) objects: \d+% \(\d+\/(\d+)\),/i,(e,[t,r])=>{const s=t.toLowerCase();const o=objectEnumerationResult(e.remoteMessages);Object.assign(o,{[s]:n.asNumber(r)})}),new n.RemoteLineParser(/total ([^,]+), reused ([^,]+), pack-reused (\d+)/i,(e,[t,r,s])=>{const o=objectEnumerationResult(e.remoteMessages);o.total=asObjectCount(t);o.reused=asObjectCount(r);o.packReused=n.asNumber(s)})]},3755:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});class BranchDeletionBatch{constructor(){this.all=[];this.branches={};this.errors=[]}get success(){return!this.errors.length}}t.BranchDeletionBatch=BranchDeletionBatch;function branchDeletionSuccess(e,t){return{branch:e,hash:t,success:true}}t.branchDeletionSuccess=branchDeletionSuccess;function branchDeletionFailure(e){return{branch:e,hash:null,success:false}}t.branchDeletionFailure=branchDeletionFailure;function isSingleBranchDeleteFailure(e){return e.success}t.isSingleBranchDeleteFailure=isSingleBranchDeleteFailure},4446:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});class BranchSummaryResult{constructor(){this.all=[];this.branches={};this.current="";this.detached=false}push(e,t,r,n,s){if(e){this.detached=t;this.current=r}this.all.push(r);this.branches[r]={current:e,name:r,commit:n,label:s}}}t.BranchSummaryResult=BranchSummaryResult},9926:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.parseCheckIgnore=(e=>{return e.split(/\n/g).map(e=>e.trim()).filter(e=>!!e)})},5689:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});const n=r(847);class CleanResponse{constructor(e){this.dryRun=e;this.paths=[];this.files=[];this.folders=[]}}t.CleanResponse=CleanResponse;const s=/^[a-z]+\s*/i;const o=/^[a-z]+\s+[a-z]+\s*/i;const i=/\/$/;function cleanSummaryParser(e,t){const r=new CleanResponse(e);const a=e?o:s;n.toLinesWithContent(t).forEach(e=>{const t=e.replace(a,"");r.paths.push(t);(i.test(t)?r.folders:r.files).push(t)});return r}t.cleanSummaryParser=cleanSummaryParser},7219:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});const n=r(847);class ConfigList{constructor(){this.files=[];this.values=Object.create(null)}get all(){if(!this._all){this._all=this.files.reduce((e,t)=>{return Object.assign(e,this.values[t])},{})}return this._all}addFile(e){if(!(e in this.values)){const t=n.last(this.files);this.values[e]=t?Object.create(this.values[t]):{};this.files.push(e)}return this.values[e]}addValue(e,t,r){const n=this.addFile(e);if(!n.hasOwnProperty(t)){n[t]=r}else if(Array.isArray(n[t])){n[t].push(r)}else{n[t]=[n[t],r]}this._all=undefined}}t.ConfigList=ConfigList;function configListParser(e){const t=new ConfigList;const r=e.split("\0");for(let e=0,s=r.length-1;e{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.fromPathRegex=/^(.+) -> (.+)$/;class FileStatusSummary{constructor(e,r,n){this.path=e;this.index=r;this.working_dir=n;if("R"===r+n){const r=t.fromPathRegex.exec(e)||[null,e,e];this.from=r[1]||"";this.path=r[2]||""}}}t.FileStatusSummary=FileStatusSummary},9999:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});const n=r(847);function parseGetRemotes(e){const t={};forEach(e,([e])=>t[e]={name:e});return Object.values(t)}t.parseGetRemotes=parseGetRemotes;function parseGetRemotesVerbose(e){const t={};forEach(e,([e,r,n])=>{if(!t.hasOwnProperty(e)){t[e]={name:e,refs:{fetch:"",push:""}}}if(n&&r){t[e].refs[n.replace(/[^a-z]/g,"")]=r}});return Object.values(t)}t.parseGetRemotesVerbose=parseGetRemotesVerbose;function forEach(e,t){n.forEachLineWithContent(e,e=>t(e.split(/\s+/)))}},8690:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});class InitSummary{constructor(e,t,r,n){this.bare=e;this.path=t;this.existing=r;this.gitDir=n}}t.InitSummary=InitSummary;const r=/^Init.+ repository in (.+)$/;const n=/^Rein.+ in (.+)$/;function parseInit(e,t,s){const o=String(s).trim();let i;if(i=r.exec(o)){return new InitSummary(e,t,false,i[1])}if(i=n.exec(o)){return new InitSummary(e,t,true,i[1])}let a="";const u=o.split(" ");while(u.length){const e=u.shift();if(e==="in"){a=u.join(" ");break}}return new InitSummary(e,t,/^re/i.test(o),a)}t.parseInit=parseInit},1651:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});class MergeSummaryConflict{constructor(e,t=null,r){this.reason=e;this.file=t;this.meta=r}toString(){return`${this.file}:${this.reason}`}}t.MergeSummaryConflict=MergeSummaryConflict;class MergeSummaryDetail{constructor(){this.conflicts=[];this.merges=[];this.result="success"}get failed(){return this.conflicts.length>0}get reason(){return this.result}toString(){if(this.conflicts.length){return`CONFLICTS: ${this.conflicts.join(", ")}`}return"OK"}}t.MergeSummaryDetail=MergeSummaryDetail},3567:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});class PullSummary{constructor(){this.remoteMessages={all:[]};this.created=[];this.deleted=[];this.files=[];this.deletions={};this.insertions={};this.summary={changes:0,deletions:0,insertions:0}}}t.PullSummary=PullSummary},6790:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});const n=r(860);class StatusSummary{constructor(){this.not_added=[];this.conflicted=[];this.created=[];this.deleted=[];this.modified=[];this.renamed=[];this.files=[];this.staged=[];this.ahead=0;this.behind=0;this.current=null;this.tracking=null}isClean(){return!this.files.length}}t.StatusSummary=StatusSummary;t.StatusSummaryParsers={"##":function(e,t){const r=/ahead (\d+)/;const n=/behind (\d+)/;const s=/^(.+?(?=(?:\.{3}|\s|$)))/;const o=/\.{3}(\S*)/;const i=/\son\s([\S]+)$/;let a;a=r.exec(e);t.ahead=a&&+a[1]||0;a=n.exec(e);t.behind=a&&+a[1]||0;a=s.exec(e);t.current=a&&a[1];a=o.exec(e);t.tracking=a&&a[1];a=i.exec(e);t.current=a&&a[1]||t.current},"??":function(e,t){t.not_added.push(e)},A:function(e,t){t.created.push(e)},AM:function(e,t){t.created.push(e)},D:function(e,t){t.deleted.push(e)},M:function(e,t,r){t.modified.push(e);if(r==="M"){t.staged.push(e)}},R:function(e,t){const r=/^(.+) -> (.+)$/.exec(e)||[null,e,e];t.renamed.push({from:String(r[1]),to:String(r[2])})},UU:function(e,t){t.conflicted.push(e)}};t.StatusSummaryParsers.MM=t.StatusSummaryParsers.M;t.StatusSummaryParsers.AA=t.StatusSummaryParsers.UU;t.StatusSummaryParsers.UD=t.StatusSummaryParsers.UU;t.StatusSummaryParsers.DU=t.StatusSummaryParsers.UU;t.StatusSummaryParsers.DD=t.StatusSummaryParsers.UU;t.StatusSummaryParsers.AU=t.StatusSummaryParsers.UU;t.StatusSummaryParsers.UA=t.StatusSummaryParsers.UU;t.parseStatusSummary=function(e){let t;const r=e.trim().split("\n");const s=new StatusSummary;for(let e=0,o=r.length;e1){n+=" "}if(n.length===1&&r[2].length===1){n=" "+n}return{raw:n,code:n.trim(),index:n.charAt(0),workingDir:n.charAt(1),handler:t.StatusSummaryParsers[n.trim()],path:r[3]}}},4539:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});class TagList{constructor(e,t){this.all=e;this.latest=t}}t.TagList=TagList;t.parseTagList=function(e,t=false){const r=e.split("\n").map(trimmed).filter(Boolean);if(!t){r.sort(function(e,t){const r=e.split(".");const n=t.split(".");if(r.length===1||n.length===1){return singleSorted(toNumber(r[0]),toNumber(n[0]))}for(let e=0,t=Math.max(r.length,n.length);ee.indexOf(".")>=0);return new TagList(r,n)};function singleSorted(e,t){const r=isNaN(e);const n=isNaN(t);if(r!==n){return r?1:-1}return r?sorted(e,t):0}function sorted(e,t){return e===t?0:e>t?1:-1}function trimmed(e){return e.trim()}function toNumber(e){if(typeof e==="string"){return parseInt(e.replace(/^\D+/g,""),10)||0}return 0}},8543:function(e,t,r){"use strict";var n=this&&this.__awaiter||function(e,t,r,n){function adopt(e){return e instanceof r?e:new r(function(t){t(e)})}return new(r||(r=Promise))(function(r,s){function fulfilled(e){try{step(n.next(e))}catch(e){s(e)}}function rejected(e){try{step(n["throw"](e))}catch(e){s(e)}}function step(e){e.done?r(e.value):adopt(e.value).then(fulfilled,rejected)}step((n=n.apply(e,t||[])).next())})};Object.defineProperty(t,"__esModule",{value:true});const s=r(3129);const o=r(4732);const i=r(2815);const a=r(6676);const u=r(847);class GitExecutorChain{constructor(e,t){this._executor=e;this._scheduler=t;this._chain=Promise.resolve();this._queue=new a.TasksPendingQueue}get binary(){return this._executor.binary}get outputHandler(){return this._executor.outputHandler}get cwd(){return this._executor.cwd}get env(){return this._executor.env}push(e){this._queue.push(e);return this._chain=this._chain.then(()=>this.attemptTask(e))}attemptTask(e){return n(this,void 0,void 0,function*(){const t=yield this._scheduler.next();const r=()=>this._queue.complete(e);try{const{logger:n}=this._queue.attempt(e);return yield i.isEmptyTask(e)?this.attemptEmptyTask(e,n):this.attemptRemoteTask(e,n)}catch(t){throw this.onFatalException(e,t)}finally{r();t()}})}onFatalException(e,t){const r=t instanceof o.GitError?Object.assign(t,{task:e}):new o.GitError(e,t&&String(t));this._chain=Promise.resolve();this._queue.fatal(r);return r}attemptRemoteTask(e,t){return n(this,void 0,void 0,function*(){const r=yield this.gitResponse(this.binary,e.commands,this.outputHandler,t.step("SPAWN"));const n=yield this.handleTaskData(e,r,t.step("HANDLE"));t(`passing response to task's parser as a %s`,e.format);if(i.isBufferTask(e)){return u.callTaskParser(e.parser,n)}return u.callTaskParser(e.parser,n.asStrings())})}attemptEmptyTask(e,t){return n(this,void 0,void 0,function*(){t(`empty task bypassing child process to call to task's parser`);return e.parser()})}handleTaskData({onError:e,concatStdErr:t},{exitCode:r,stdOut:n,stdErr:s},o){return new Promise((i,a)=>{o(`Preparing to handle process response exitCode=%d stdOut=`,r);if(r&&s.length&&e){o.info(`exitCode=%s handling with custom error handler`);o(`concatenate stdErr to stdOut: %j`,t);return e(r,Buffer.concat([...t?n:[],...s]).toString("utf-8"),e=>{o.info(`custom error handler treated as success`);o(`custom error returned a %s`,u.objectToString(e));i(new u.GitOutputStreams(Buffer.isBuffer(e)?e:Buffer.from(String(e)),Buffer.concat(s)))},a)}if(r&&s.length){o.info(`exitCode=%s treated as error when then child process has written to stdErr`);return a(Buffer.concat(s).toString("utf-8"))}if(t){o(`concatenating stdErr onto stdOut before processing`);o(`stdErr: $O`,s);n.push(...s)}o.info(`retrieving task output complete`);i(new u.GitOutputStreams(Buffer.concat(n),Buffer.concat(s)))})}gitResponse(e,t,r,o){return n(this,void 0,void 0,function*(){const n=o.sibling("output");const i={cwd:this.cwd,env:this.env,windowsHide:true};return new Promise(a=>{const u=[];const c=[];let f=false;function attemptClose(e,t="retry"){if(f||c.length||u.length){o.info(`exitCode=%s event=%s`,e,t);a({stdOut:u,stdErr:c,exitCode:e});f=true;n.destroy()}if(!f){f=true;setTimeout(()=>attemptClose(e,"deferred"),50);o("received %s event before content on stdOut/stdErr",t)}}o.info(`%s %o`,e,t);o("%O",i);const l=s.spawn(e,t,i);l.stdout.on("data",onDataReceived(u,"stdOut",o,n.step("stdOut")));l.stderr.on("data",onDataReceived(c,"stdErr",o,n.step("stdErr")));l.on("error",onErrorReceived(c,o));l.on("close",e=>attemptClose(e,"close"));l.on("exit",e=>attemptClose(e,"exit"));if(r){o(`Passing child process stdOut/stdErr to custom outputHandler`);r(e,l.stdout,l.stderr,[...t])}})})}}t.GitExecutorChain=GitExecutorChain;function onErrorReceived(e,t){return r=>{t(`[ERROR] child process exception %o`,r);e.push(Buffer.from(String(r.stack),"ascii"))}}function onDataReceived(e,t,r,n){return s=>{r(`%s received %L bytes`,t,s);n(`%B`,s);e.push(s)}}},4701:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});const n=r(8543);class GitExecutor{constructor(e="git",t,r){this.binary=e;this.cwd=t;this._scheduler=r;this._chain=new n.GitExecutorChain(this,this._scheduler)}chain(){return new n.GitExecutorChain(this,this._scheduler)}push(e){return this._chain.push(e)}}t.GitExecutor=GitExecutor},941:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});const n=r(5131);const s=["customBinary","env","outputHandler","silent"];const o=["add","addAnnotatedTag","addConfig","addRemote","addTag","binaryCatFile","branch","branchLocal","catFile","checkIgnore","checkIsRepo","checkout","checkoutBranch","checkoutLatestTag","checkoutLocalBranch","clean","clone","commit","cwd","deleteLocalBranch","deleteLocalBranches","diff","diffSummary","exec","fetch","getRemotes","init","listConfig","listRemote","log","merge","mergeFromTo","mirror","mv","pull","push","pushTags","raw","rebase","remote","removeRemote","reset","revert","revparse","rm","rmKeepLocal","show","stash","stashList","status","subModule","submoduleAdd","submoduleInit","submoduleUpdate","tag","tags","updateServerInfo"];const{gitInstanceFactory:i}=r(1949);function gitP(...e){let t;let r=Promise.resolve();try{t=i(...e)}catch(e){r=Promise.reject(e)}function builderReturn(){return n}function chainReturn(){return r}const n=[...s,...o].reduce((e,r)=>{const n=o.includes(r);const s=n?asyncWrapper(r,t):syncWrapper(r,t,e);const i=n?chainReturn:builderReturn;Object.defineProperty(e,r,{enumerable:false,configurable:false,value:t?s:i});return e},{});return n;function asyncWrapper(e,t){return function(...n){if(typeof n[n.length]==="function"){throw new TypeError("Promise interface requires that handlers are not supplied inline, "+"trailing function not allowed in call to "+e)}return r.then(function(){return new Promise(function(r,s){const o=(e,t)=>{if(e){return s(toError(e))}r(t)};n.push(o);t[e].apply(t,n)})})}}function syncWrapper(e,t,r){return(...n)=>{t[e](...n);return r}}}t.gitP=gitP;function toError(e){if(e instanceof Error){return e}if(typeof e==="string"){return new Error(e)}return new n.GitResponseError(e)}},3421:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});const n=r(847);const s=r(9819);const o=r(7178);const i=o.createLogger("","scheduler");const a=(()=>{let e=0;return()=>{e++;const{promise:t,done:r}=s.createDeferred();return{promise:t,done:r,id:e}}})();class Scheduler{constructor(e=2){this.concurrency=e;this.pending=[];this.running=[];i(`Constructed, concurrency=%s`,e)}schedule(){if(!this.pending.length||this.running.length>=this.concurrency){i(`Schedule attempt ignored, pending=%s running=%s concurrency=%s`,this.pending.length,this.running.length,this.concurrency);return}const e=n.append(this.running,this.pending.shift());i(`Attempting id=%s`,e.id);e.done(()=>{i(`Completing id=`,e.id);n.remove(this.running,e);this.schedule()})}next(){const{promise:e,id:t}=n.append(this.pending,a());i(`Scheduling id=%s`,t);this.schedule();return e}}t.Scheduler=Scheduler},6676:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});const n=r(7178);const s=r(4732);class TasksPendingQueue{constructor(e="GitExecutor"){this.logLabel=e;this._queue=new Map}withProgress(e){return this._queue.get(e)}createProgress(e){const t=TasksPendingQueue.getName(e.commands[0]);const r=n.createLogger(this.logLabel,t);return{task:e,logger:r,name:t}}push(e){const t=this.createProgress(e);t.logger("Adding task to the queue, commands = %o",e.commands);this._queue.set(e,t);return t}fatal(e){for(const[t,{logger:r}]of Array.from(this._queue.entries())){if(t===e.task){r.info(`Failed %o`,e);r(`Fatal exception, any as-yet un-started tasks run through this executor will not be attempted`)}else{r.info(`A fatal exception occurred in a previous task, the queue has been purged: %o`,e.message)}this.complete(t)}if(this._queue.size!==0){throw new Error(`Queue size should be zero after fatal: ${this._queue.size}`)}}complete(e){const t=this.withProgress(e);if(t){t.logger.destroy();this._queue.delete(e)}}attempt(e){const t=this.withProgress(e);if(!t){throw new s.GitError(undefined,"TasksPendingQueue: attempt called for an unknown task")}t.logger("Starting task");return t}static getName(e="empty"){return`task:${e}:${++TasksPendingQueue.counter}`}}t.TasksPendingQueue=TasksPendingQueue;TasksPendingQueue.counter=0},8850:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});const n=r(4732);const s=r(847);function taskCallback(e,t,r=s.NOOP){const o=e=>{r(null,e)};const i=t=>{if((t===null||t===void 0?void 0:t.task)===e){if(t instanceof n.GitResponseError){return r(addDeprecationNoticeToError(t))}r(t)}};t.then(o,i)}t.taskCallback=taskCallback;function addDeprecationNoticeToError(e){let t=e=>{console.warn(`simple-git deprecation notice: accessing GitResponseError.${e} should be GitResponseError.git.${e}`);t=s.NOOP};return Object.create(e,Object.getOwnPropertyNames(e.git).reduce(descriptorReducer,{}));function descriptorReducer(r,n){if(n in e){return r}r[n]={enumerable:false,configurable:false,get(){t(n);return e.git[n]}};return r}}},17:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});const n=r(5131);const s=r(6086);const o=r(9264);function containsDeleteBranchCommand(e){const t=["-d","-D","--delete"];return e.some(e=>t.includes(e))}t.containsDeleteBranchCommand=containsDeleteBranchCommand;function branchTask(e){const t=containsDeleteBranchCommand(e);const r=["branch",...e];if(r.length===1){r.push("-a")}if(!r.includes("-v")){r.splice(1,0,"-v")}return{format:"utf-8",commands:r,parser(e,r){if(t){return s.parseBranchDeletions(e,r).all[0]}return o.parseBranchSummary(e,r)}}}t.branchTask=branchTask;function branchLocalTask(){return{format:"utf-8",commands:["branch","-v"],parser(e,t){return o.parseBranchSummary(e,t)}}}t.branchLocalTask=branchLocalTask;function deleteBranchesTask(e,t=false){return{format:"utf-8",commands:["branch","-v",t?"-D":"-d",...e],parser(e,t){return s.parseBranchDeletions(e,t)},onError(e,t,r,n){if(!s.hasBranchDeletionError(t,e)){return n(t)}r(t)},concatStdErr:true}}t.deleteBranchesTask=deleteBranchesTask;function deleteBranchTask(e,t=false){const r={format:"utf-8",commands:["branch","-v",t?"-D":"-d",e],parser(t,r){return s.parseBranchDeletions(t,r).branches[e]},onError(e,t,o,i){if(!s.hasBranchDeletionError(t,e)){return i(t)}throw new n.GitResponseError(r.parser(t,""),t)},concatStdErr:true};return r}t.deleteBranchTask=deleteBranchTask},221:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});const n=r(847);var s;(function(e){e["BARE"]="bare";e["IN_TREE"]="tree";e["IS_REPO_ROOT"]="root"})(s=t.CheckRepoActions||(t.CheckRepoActions={}));const o=(e,t,r,s)=>{if(e===n.ExitCodes.UNCLEAN&&isNotRepoMessage(t)){return r("false")}s(t)};const i=e=>{return e.trim()==="true"};function checkIsRepoTask(e){switch(e){case s.BARE:return checkIsBareRepoTask();case s.IS_REPO_ROOT:return checkIsRepoRootTask()}const t=["rev-parse","--is-inside-work-tree"];return{commands:t,format:"utf-8",onError:o,parser:i}}t.checkIsRepoTask=checkIsRepoTask;function checkIsRepoRootTask(){const e=["rev-parse","--git-dir"];return{commands:e,format:"utf-8",onError:o,parser(e){return/^\.(git)?$/.test(e.trim())}}}t.checkIsRepoRootTask=checkIsRepoRootTask;function checkIsBareRepoTask(){const e=["rev-parse","--is-bare-repository"];return{commands:e,format:"utf-8",onError:o,parser:i}}t.checkIsBareRepoTask=checkIsBareRepoTask;function isNotRepoMessage(e){return/(Not a git repository|Kein Git-Repository)/i.test(e)}},4386:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});const n=r(5689);const s=r(847);const o=r(2815);t.CONFIG_ERROR_INTERACTIVE_MODE="Git clean interactive mode is not supported";t.CONFIG_ERROR_MODE_REQUIRED='Git clean mode parameter ("n" or "f") is required';t.CONFIG_ERROR_UNKNOWN_OPTION="Git clean unknown option found in: ";var i;(function(e){e["DRY_RUN"]="n";e["FORCE"]="f";e["IGNORED_INCLUDED"]="x";e["IGNORED_ONLY"]="X";e["EXCLUDING"]="e";e["QUIET"]="q";e["RECURSIVE"]="d"})(i=t.CleanOptions||(t.CleanOptions={}));const a=new Set(["i",...s.asStringArray(Object.values(i))]);function cleanWithOptionsTask(e,r){const{cleanMode:n,options:s,valid:i}=getCleanOptions(e);if(!n){return o.configurationErrorTask(t.CONFIG_ERROR_MODE_REQUIRED)}if(!i.options){return o.configurationErrorTask(t.CONFIG_ERROR_UNKNOWN_OPTION+JSON.stringify(e))}s.push(...r);if(s.some(isInteractiveMode)){return o.configurationErrorTask(t.CONFIG_ERROR_INTERACTIVE_MODE)}return cleanTask(n,s)}t.cleanWithOptionsTask=cleanWithOptionsTask;function cleanTask(e,t){const r=["clean",`-${e}`,...t];return{commands:r,format:"utf-8",parser(t){return n.cleanSummaryParser(e===i.DRY_RUN,t)}}}t.cleanTask=cleanTask;function isCleanOptionsArray(e){return Array.isArray(e)&&e.every(e=>a.has(e))}t.isCleanOptionsArray=isCleanOptionsArray;function getCleanOptions(e){let t;let r=[];let n={cleanMode:false,options:true};e.replace(/[^a-z]i/g,"").split("").forEach(e=>{if(isCleanMode(e)){t=e;n.cleanMode=true}else{n.options=n.options&&isKnownOption(r[r.length]=`-${e}`)}});return{cleanMode:t,options:r,valid:n}}function isCleanMode(e){return e===i.FORCE||e===i.DRY_RUN}function isKnownOption(e){return/^-[a-z]$/i.test(e)&&a.has(e.charAt(1))}function isInteractiveMode(e){if(/^-[^\-]/.test(e)){return e.indexOf("i")>0}return e==="--interactive"}},3173:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});const n=r(2815);const s=r(847);function cloneTask(e,t,r){const s=["clone",...r];if(typeof e==="string"){s.push(e)}if(typeof t==="string"){s.push(t)}return n.straightThroughStringTask(s)}t.cloneTask=cloneTask;function cloneMirrorTask(e,t,r){s.append(r,"--mirror");return cloneTask(e,t,r)}t.cloneMirrorTask=cloneMirrorTask},7597:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});const n=r(7219);function addConfigTask(e,t,r=false){const n=["config","--local"];if(r){n.push("--add")}n.push(e,t);return{commands:n,format:"utf-8",parser(e){return e}}}t.addConfigTask=addConfigTask;function listConfigTask(){return{commands:["config","--list","--show-origin","--null"],format:"utf-8",parser(e){return n.configListParser(e)}}}t.listConfigTask=listConfigTask},6016:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});const n=r(8690);const s="--bare";function hasBareCommand(e){return e.includes(s)}function initTask(e=false,t,r){const o=["init",...r];if(e&&!hasBareCommand(o)){o.splice(1,0,s)}return{commands:o,concatStdErr:false,format:"utf-8",parser(e){return n.parseInit(o.includes("--bare"),t,e)}}}t.initTask=initTask},8829:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});const n=r(4732);const s=r(6412);const o=r(2815);function mergeTask(e){if(!e.length){return o.configurationErrorTask("Git.merge requires at least one option")}return{commands:["merge",...e],format:"utf-8",parser(e,t){const r=s.parseMergeResult(e,t);if(r.failed){throw new n.GitResponseError(r)}return r}}}t.mergeTask=mergeTask},6520:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});const n=r(7444);const s=r(847);function moveTask(e,t){return{commands:["mv","-v",...s.asArray(e),t],format:"utf-8",parser(e,t){return n.parseMoveResult(e,t)}}}t.moveTask=moveTask},4636:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});const n=r(5658);function pullTask(e,t,r){const s=["pull",...r];if(e&&t){s.splice(1,0,e,t)}return{commands:s,format:"utf-8",parser(e,t){return n.parsePullResult(e,t)}}}t.pullTask=pullTask},1435:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});const n=r(8530);const s=r(847);function pushTagsTask(e={},t){s.append(t,"--tags");return pushTask(e,t)}t.pushTagsTask=pushTagsTask;function pushTask(e={},t){const r=["push",...t];if(e.branch){r.splice(1,0,e.branch)}if(e.remote){r.splice(1,0,e.remote)}s.remove(r,"-v");s.append(r,"--verbose");s.append(r,"--porcelain");return{commands:r,format:"utf-8",parser:n.parsePushResult}}t.pushTask=pushTask},9866:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});const n=r(2815);const s=r(9999);function addRemoteTask(e,t,r=[]){return n.straightThroughStringTask(["remote","add",...r,e,t])}t.addRemoteTask=addRemoteTask;function getRemotesTask(e){const t=["remote"];if(e){t.push("-v")}return{commands:t,format:"utf-8",parser:e?s.parseGetRemotesVerbose:s.parseGetRemotes}}t.getRemotesTask=getRemotesTask;function listRemotesTask(e=[]){const t=[...e];if(t[0]!=="ls-remote"){t.unshift("ls-remote")}return n.straightThroughStringTask(t)}t.listRemotesTask=listRemotesTask;function remoteTask(e=[]){const t=[...e];if(t[0]!=="remote"){t.unshift("remote")}return n.straightThroughStringTask(t)}t.remoteTask=remoteTask;function removeRemoteTask(e){return n.straightThroughStringTask(["remote","remove",e])}t.removeRemoteTask=removeRemoteTask},2377:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});const n=r(2815);var s;(function(e){e["MIXED"]="mixed";e["SOFT"]="soft";e["HARD"]="hard";e["MERGE"]="merge";e["KEEP"]="keep"})(s=t.ResetMode||(t.ResetMode={}));const o=Array.from(Object.values(s));function resetTask(e,t){const r=["reset"];if(isValidResetMode(e)){r.push(`--${e}`)}r.push(...t);return n.straightThroughStringTask(r)}t.resetTask=resetTask;function getResetMode(e){if(isValidResetMode(e)){return e}switch(typeof e){case"string":case"undefined":return s.SOFT}return}t.getResetMode=getResetMode;function isValidResetMode(e){return o.includes(e)}},9197:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});const n=r(6790);function statusTask(e){return{format:"utf-8",commands:["status","--porcelain","-b","-u",...e],parser(e){return n.parseStatusSummary(e)}}}t.statusTask=statusTask},8772:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});const n=r(2815);function addSubModuleTask(e,t){return subModuleTask(["add",e,t])}t.addSubModuleTask=addSubModuleTask;function initSubModuleTask(e){return subModuleTask(["init",...e])}t.initSubModuleTask=initSubModuleTask;function subModuleTask(e){const t=[...e];if(t[0]!=="submodule"){t.unshift("submodule")}return n.straightThroughStringTask(t)}t.subModuleTask=subModuleTask;function updateSubModuleTask(e){return subModuleTask(["update",...e])}t.updateSubModuleTask=updateSubModuleTask},8540:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});const n=r(4539);function tagListTask(e=[]){const t=e.some(e=>/^--sort=/.test(e));return{format:"utf-8",commands:["tag","-l",...e],parser(e){return n.parseTagList(e,t)}}}t.tagListTask=tagListTask;function addTagTask(e){return{format:"utf-8",commands:["tag",e],parser(){return{name:e}}}}t.addTagTask=addTagTask;function addAnnotatedTagTask(e,t){return{format:"utf-8",commands:["tag","-a","-m",t,e],parser(){return{name:e}}}}t.addAnnotatedTagTask=addAnnotatedTagTask},2815:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});const n=r(740);t.EMPTY_COMMANDS=[];function adhocExecTask(e){return{commands:t.EMPTY_COMMANDS,format:"utf-8",parser:e}}t.adhocExecTask=adhocExecTask;function configurationErrorTask(e){return{commands:t.EMPTY_COMMANDS,format:"utf-8",parser(){throw typeof e==="string"?new n.TaskConfigurationError(e):e}}}t.configurationErrorTask=configurationErrorTask;function straightThroughStringTask(e,t=false){return{commands:e,format:"utf-8",parser(e){return t?String(e).trim():e}}}t.straightThroughStringTask=straightThroughStringTask;function isBufferTask(e){return e.format==="buffer"}t.isBufferTask=isBufferTask;function isEmptyTask(e){return!e.commands.length}t.isEmptyTask=isEmptyTask},7366:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});const n=r(3518);function filterType(e,t,r){if(t(e)){return e}return arguments.length>2?r:undefined}t.filterType=filterType;t.filterArray=(e=>{return Array.isArray(e)});function filterPrimitives(e,t){return/number|string|boolean/.test(typeof e)&&(!t||!t.includes(typeof e))}t.filterPrimitives=filterPrimitives;t.filterString=(e=>{return typeof e==="string"});function filterPlainObject(e){return!!e&&n.objectToString(e)==="[object Object]"}t.filterPlainObject=filterPlainObject;function filterFunction(e){return typeof e==="function"}t.filterFunction=filterFunction;t.filterHasLength=(e=>{if(e==null||"number|boolean|function".includes(typeof e)){return false}return Array.isArray(e)||typeof e==="string"||typeof e.length==="number"})},2185:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});var r;(function(e){e[e["SUCCESS"]=0]="SUCCESS";e[e["ERROR"]=1]="ERROR";e[e["UNCLEAN"]=128]="UNCLEAN"})(r=t.ExitCodes||(t.ExitCodes={}))},6578:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});class GitOutputStreams{constructor(e,t){this.stdOut=e;this.stdErr=t}asStrings(){return new GitOutputStreams(this.stdOut.toString("utf8"),this.stdErr.toString("utf8"))}}t.GitOutputStreams=GitOutputStreams},847:(e,t,r)=>{"use strict";function __export(e){for(var r in e)if(!t.hasOwnProperty(r))t[r]=e[r]}Object.defineProperty(t,"__esModule",{value:true});__export(r(7366));__export(r(2185));__export(r(6578));__export(r(9536));__export(r(5218));__export(r(3546));__export(r(1351));__export(r(3518))},9536:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});class LineParser{constructor(e,t){this.matches=[];this.parse=((e,t)=>{this.resetMatches();if(!this._regExp.every((t,r)=>this.addMatch(t,r,e(r)))){return false}return this.useMatches(t,this.prepareMatches())!==false});this._regExp=Array.isArray(e)?e:[e];if(t){this.useMatches=t}}useMatches(e,t){throw new Error(`LineParser:useMatches not implemented`)}resetMatches(){this.matches.length=0}prepareMatches(){return this.matches}addMatch(e,t,r){const n=r&&e.exec(r);if(n){this.pushMatch(t,n)}return!!n}pushMatch(e,t){this.matches.push(...t.slice(1))}}t.LineParser=LineParser;class RemoteLineParser extends LineParser{addMatch(e,t,r){return/^remote:\s/.test(String(r))&&super.addMatch(e,t,r)}pushMatch(e,t){if(e>0||t.length>1){super.pushMatch(e,t)}}}t.RemoteLineParser=RemoteLineParser},5218:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});const r={binary:"git",maxConcurrentProcesses:5};function createInstanceConfig(...e){const t=process.cwd();const n=Object.assign(Object.assign({baseDir:t},r),...e.filter(e=>typeof e==="object"&&e));n.baseDir=n.baseDir||t;return n}t.createInstanceConfig=createInstanceConfig},3546:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});const n=r(7366);const s=r(3518);function appendTaskOptions(e,t=[]){if(!n.filterPlainObject(e)){return t}return Object.keys(e).reduce((t,r)=>{const s=e[r];if(n.filterPrimitives(s,["boolean"])){t.push(r+"="+s)}else{t.push(r)}return t},t)}t.appendTaskOptions=appendTaskOptions;function getTrailingOptions(e,t=0,r=false){const n=[];for(let r=0,s=t<0?e.length:t;r{"use strict";Object.defineProperty(t,"__esModule",{value:true});const n=r(3518);function callTaskParser(e,t){return e(t.stdOut,t.stdErr)}t.callTaskParser=callTaskParser;function parseStringResponse(e,t,r){for(let s=n.toLinesWithContent(r),o=0,i=s.length;o{if(o+e>=i){return}return s[o+e]};t.some(({parse:t})=>t(r,e))}return e}t.parseStringResponse=parseStringResponse},3518:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});const n=r(4751);t.NOOP=(()=>{});function asFunction(e){return typeof e==="function"?e:t.NOOP}t.asFunction=asFunction;function isUserFunction(e){return typeof e==="function"&&e!==t.NOOP}t.isUserFunction=isUserFunction;function splitOn(e,t){const r=e.indexOf(t);if(r<=0){return[e,""]}return[e.substr(0,r),e.substr(r+1)]}t.splitOn=splitOn;function first(e,t=0){return isArrayLike(e)&&e.length>t?e[t]:undefined}t.first=first;function last(e,t=0){if(isArrayLike(e)&&e.length>t){return e[e.length-1-t]}}t.last=last;function isArrayLike(e){return!!(e&&typeof e.length==="number")}function toLinesWithContent(e,t=true){return e.split("\n").reduce((e,r)=>{const n=t?r.trim():r;if(n){e.push(n)}return e},[])}t.toLinesWithContent=toLinesWithContent;function forEachLineWithContent(e,t){return toLinesWithContent(e,true).map(e=>t(e))}t.forEachLineWithContent=forEachLineWithContent;function folderExists(e){return n.exists(e,n.FOLDER)}t.folderExists=folderExists;function append(e,t){if(Array.isArray(e)){if(!e.includes(t)){e.push(t)}}else{e.add(t)}return t}t.append=append;function remove(e,t){if(Array.isArray(e)){const r=e.indexOf(t);if(r>=0){e.splice(r,1)}}else{e.delete(t)}return t}t.remove=remove;t.objectToString=Object.prototype.toString.call.bind(Object.prototype.toString);function asArray(e){return Array.isArray(e)?e:[e]}t.asArray=asArray;function asStringArray(e){return asArray(e).map(String)}t.asStringArray=asStringArray;function asNumber(e,t=0){if(e==null){return t}const r=parseInt(e,10);return isNaN(r)?t:r}t.asNumber=asNumber},921:e=>{e.exports=CommitSummary;function CommitSummary(){this.branch="";this.commit="";this.summary={changes:0,insertions:0,deletions:0};this.author=null}var t=/\[([^\s]+) ([^\]]+)/;var r=/\s*Author:\s(.+)/i;function setBranchFromCommit(e,t){if(t){e.branch=t[1];e.commit=t[2]}}function setSummaryFromCommit(e,t){if(e.branch&&t){e.summary.changes=parseInt(t[1],10)||0;e.summary.insertions=parseInt(t[2],10)||0;e.summary.deletions=parseInt(t[3],10)||0}}function setAuthorFromCommit(e,t){var r=t[1].split("<");var n=r.pop();if(n.indexOf("@")<=0){return}e.author={email:n.substr(0,n.length-1),name:r.join("<").trim()}}CommitSummary.parse=function(e){var n=e.trim().split("\n");var s=new CommitSummary;setBranchFromCommit(s,t.exec(n.shift()));if(r.test(n[0])){setAuthorFromCommit(s,r.exec(n.shift()))}setSummaryFromCommit(s,/(\d+)[^,]*(?:,\s*(\d+)[^,]*)?(?:,\s*(\d+))?/g.exec(n.shift()));return s}},7286:e=>{e.exports=DiffSummary;function DiffSummary(){this.files=[];this.insertions=0;this.deletions=0;this.changed=0}DiffSummary.prototype.insertions=0;DiffSummary.prototype.deletions=0;DiffSummary.prototype.changed=0;DiffSummary.parse=function(e){var t,r;var n=e.trim().split("\n");var s=new DiffSummary;var o=n.pop();if(o){o.trim().split(", ").forEach(function(e){var t=/(\d+)\s([a-z]+)/.exec(e);if(!t){return}if(/files?/.test(t[2])){s.changed=parseInt(t[1],10)}else{s[t[2].replace(/s$/,"")+"s"]=parseInt(t[1],10)}})}while(t=n.shift()){textFileChange(t,s.files)||binaryFileChange(t,s.files)}return s};function textFileChange(e,t){e=e.trim().match(/^(.+)\s+\|\s+(\d+)(\s+[+\-]+)?$/);if(e){var r=(e[3]||"").trim();t.push({file:e[1].trim(),changes:parseInt(e[2],10),insertions:r.replace(/-/g,"").length,deletions:r.replace(/\+/g,"").length,binary:false});return true}}function binaryFileChange(e,t){e=e.match(/^(.+) \|\s+Bin ([0-9.]+) -> ([0-9.]+) ([a-z]+)$/);if(e){t.push({file:e[1].trim(),before:+e[2],after:+e[3],binary:true});return true}}},5169:e=>{"use strict";function FetchSummary(e){this.raw=e;this.remote=null;this.branches=[];this.tags=[]}FetchSummary.parsers=[[/From (.+)$/,function(e,t){e.remote=t[0]}],[/\* \[new branch\]\s+(\S+)\s*\-> (.+)$/,function(e,t){e.branches.push({name:t[0],tracking:t[1]})}],[/\* \[new tag\]\s+(\S+)\s*\-> (.+)$/,function(e,t){e.tags.push({name:t[0],tracking:t[1]})}]];FetchSummary.parse=function(e){var t=new FetchSummary(e);String(e).trim().split("\n").forEach(function(e){var r=e.trim();FetchSummary.parsers.some(function(e){var n=e[0].exec(r);if(n){e[1](t,n.slice(1));return true}})});return t};e.exports=FetchSummary},6507:(e,t,r)=>{e.exports=ListLogSummary;var n=r(7286);function ListLogSummary(e){this.all=e;this.latest=e.length&&e[0]||null;this.total=e.length}ListLogSummary.prototype.all=null;ListLogSummary.prototype.latest=null;ListLogSummary.prototype.total=0;function ListLogLine(e,t){for(var r=0;r1&&!!s[1].trim()){o.diff=n.parse(s[1])}return o}))}},5301:(e,t,r)=>{e.exports={CommitSummary:r(921),DiffSummary:r(7286),FetchSummary:r(5169),ListLogSummary:r(6507)}},9318:(e,t,r)=>{"use strict";const n=r(2087);const s=r(1621);const o=process.env;let i;if(s("no-color")||s("no-colors")||s("color=false")){i=false}else if(s("color")||s("colors")||s("color=true")||s("color=always")){i=true}if("FORCE_COLOR"in o){i=o.FORCE_COLOR.length===0||parseInt(o.FORCE_COLOR,10)!==0}function translateLevel(e){if(e===0){return false}return{level:e,hasBasic:true,has256:e>=2,has16m:e>=3}}function supportsColor(e){if(i===false){return 0}if(s("color=16m")||s("color=full")||s("color=truecolor")){return 3}if(s("color=256")){return 2}if(e&&!e.isTTY&&i!==true){return 0}const t=i?1:0;if(process.platform==="win32"){const e=n.release().split(".");if(Number(process.versions.node.split(".")[0])>=8&&Number(e[0])>=10&&Number(e[2])>=10586){return Number(e[2])>=14931?3:2}return 1}if("CI"in o){if(["TRAVIS","CIRCLECI","APPVEYOR","GITLAB_CI"].some(e=>e in o)||o.CI_NAME==="codeship"){return 1}return t}if("TEAMCITY_VERSION"in o){return/^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(o.TEAMCITY_VERSION)?1:0}if(o.COLORTERM==="truecolor"){return 3}if("TERM_PROGRAM"in o){const e=parseInt((o.TERM_PROGRAM_VERSION||"").split(".")[0],10);switch(o.TERM_PROGRAM){case"iTerm.app":return e>=3?3:2;case"Apple_Terminal":return 2}}if(/-256(color)?$/i.test(o.TERM)){return 2}if(/^screen|^xterm|^vt100|^vt220|^rxvt|color|ansi|cygwin|linux/i.test(o.TERM)){return 1}if("COLORTERM"in o){return 1}if(o.TERM==="dumb"){return t}return t}function getSupportLevel(e){const t=supportsColor(e);return translateLevel(t)}e.exports={supportsColor:getSupportLevel,stdout:getSupportLevel(process.stdout),stderr:getSupportLevel(process.stderr)}},399:function(e,t,r){"use strict";var n=this&&this.__awaiter||function(e,t,r,n){function adopt(e){return e instanceof r?e:new r(function(t){t(e)})}return new(r||(r=Promise))(function(r,s){function fulfilled(e){try{step(n.next(e))}catch(e){s(e)}}function rejected(e){try{step(n["throw"](e))}catch(e){s(e)}}function step(e){e.done?r(e.value):adopt(e.value).then(fulfilled,rejected)}step((n=n.apply(e,t||[])).next())})};var s=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:true});const o=r(2186);const i=s(r(6545));const a=s(r(5622));const u=s(r(1477));const c=a.default.join(process.cwd(),getInput("cwd")||"");const f=u.default({baseDir:c});console.log(`Running in ${c}`);(()=>n(void 0,void 0,void 0,function*(){yield checkInputs().catch(o.setFailed);o.startGroup("Internal logs");o.info("> Staging files...");if(getInput("add")){o.info("> Adding files...");yield add()}else o.info("> No files to add.");if(getInput("remove")){o.info("> Removing files...");yield remove()}else o.info("> No files to remove.");o.info("> Checking for uncommitted changes in the git working tree...");const e=(yield f.diffSummary(["--cached"])).files.length;if(e>0){o.info(`> Found ${e} changed files.`);yield f.addConfig("user.email",getInput("author_email"),undefined,log).addConfig("user.name",getInput("author_name"),undefined,log);o.debug("> Current git config\n"+JSON.stringify((yield f.listConfig()).all,null,2));yield f.fetch(["--tags","--force"],log);o.info("> Switching/creating branch...");yield f.checkout(getInput("branch"),undefined,log).catch(()=>f.checkoutLocalBranch(getInput("branch"),log));o.info("> Pulling from remote...");yield f.fetch(undefined,log).pull(undefined,undefined,{[getInput("pull_strategy")]:null},log);o.info("> Re-staging files...");if(getInput("add"))yield add({ignoreErrors:true});if(getInput("remove"))yield remove({ignoreErrors:true});o.info("> Creating commit...");yield f.commit(getInput("message"),undefined,Object.assign({"--author":`"${getInput("author_name")} <${getInput("author_email")}>"`},getInput("signoff")?{"--signoff":null}:{}),log);if(getInput("tag")){o.info("> Tagging commit...");yield f.tag(getInput("tag").split(" "),log)}else o.info("> No tag info provided.");o.info("> Pushing commit to repo...");yield f.push("origin",getInput("branch"),{"--set-upstream":null},log);if(getInput("tag")){o.info("> Pushing tags to repo...");yield f.pushTags("origin",(e,t)=>log(undefined,e||t)).catch(()=>{o.info("> Tag push failed: deleting remote tag and re-pushing...");return f.push(undefined,undefined,{"--delete":null,origin:null,[getInput("tag").split(" ").filter(e=>!e.startsWith("-"))[0]]:null},log).pushTags("origin",log)})}else o.info("> No tags to push.");o.endGroup();o.info("> Task completed.")}else{o.endGroup();o.info("> Working tree clean. Nothing to commit.")}}))().catch(e=>{o.endGroup();o.setFailed(e)});function checkInputs(){var e,t,r,s,a,u,c,f,l;return n(this,void 0,void 0,function*(){function setInput(e,t){if(t)return process.env[`INPUT_${e.toUpperCase()}`]=t;else return delete process.env[`INPUT_${e.toUpperCase()}`]}function setDefault(e,t){if(!getInput(e))setInput(e,t);return getInput(e)}const n=process.env.GITHUB_EVENT_PATH,p=n&&require(n),d=process.env.GITHUB_TOKEN,h=(e=process.env.GITHUB_EVENT_NAME)===null||e===void 0?void 0:e.includes("pull_request"),m=((r=(t=p===null||p===void 0?void 0:p.pull_request)===null||t===void 0?void 0:t.head)===null||r===void 0?void 0:r.sha)||process.env.GITHUB_SHA,g=h?(a=(s=p===null||p===void 0?void 0:p.pull_request)===null||s===void 0?void 0:s.head)===null||a===void 0?void 0:a.ref:(u=process.env.GITHUB_REF)===null||u===void 0?void 0:u.substring(11);if(!d)o.warning("The GITHUB_TOKEN env variable is missing: the action may not work as expected.");if(!getInput("add")&&!getInput("remove"))throw new Error("Both 'add' and 'remove' are empty, the action has nothing to do.");let y=(c=p===null||p===void 0?void 0:p.head_commit)===null||c===void 0?void 0:c.author;if(m&&!y){o.info("> Unable to get commit from workflow event: trying with the GitHub API...");const e=`https://api.github.com/repos/${process.env.GITHUB_REPOSITORY}/commits/${m}`,t=d?{Authorization:`Bearer ${d}`}:undefined,r=(f=yield i.default.get(e,{headers:t}).catch(t=>{o.startGroup("Request error:");o.info(`> Request URL: ${e}\b${t}`);o.endGroup();return undefined}))===null||f===void 0?void 0:f.data;y=(l=r===null||r===void 0?void 0:r.commit)===null||l===void 0?void 0:l.author}if(y){setDefault("author_name",y.name);setDefault("author_email",y.email)}if(!getInput("author_name")||!getInput("author_email")){const e=!n?"event path":h?m?"fetch commit":"find commit sha":!(p===null||p===void 0?void 0:p.head_commit)?"find commit":"find commit author";o.warning(`Unable to fetch author info: couldn't ${e}.`);setDefault("author_name","Add & Commit Action");setDefault("author_email","actions@github.com")}o.info(`> Using '${getInput("author_name")} <${getInput("author_email")}>' as author.`);setDefault("message",`Commit from GitHub Actions (${process.env.GITHUB_WORKFLOW})`);o.info(`> Using "${getInput("message")}" as commit message.`);const v=setDefault("branch",g||"");if(h)o.info(`> Running for a PR, the action will use '${v}' as ref.`);if(getInput("signoff"))try{const e=JSON.parse(getInput("signoff"));if(typeof e=="boolean"&&!e)setInput("signoff",undefined);o.debug(`Current signoff option: ${getInput("signoff")} (${typeof getInput("signoff")})`)}catch(e){throw new Error(`"${getInput("signoff")}" is not a valid value for the 'signoff' input: only "true" and "false" are allowed.`)}})}function getInput(e){return o.getInput(e)}function log(e,t){if(t)console.log(t);if(e)o.error(e)}function add({logWarning:e=true,ignoreErrors:t=false}={}){if(getInput("add"))return f.add(getInput("add").split(" "),(e,r)=>log(t?null:e,r)).catch(r=>{if(t)return;if(r.message.includes("fatal: pathspec")&&r.message.includes("did not match any files"))e&&o.warning("Add command did not match any file.");else throw r})}function remove({logWarning:e=true,ignoreErrors:t=false}={}){if(getInput("remove"))return f.rm(getInput("remove").split(" "),(e,r)=>log(t?null:e,r)).catch(r=>{if(t)return;if(r.message.includes("fatal: pathspec")&&r.message.includes("did not match any files"))e&&o.warning("Remove command did not match any file.");else throw r})}},696:e=>{"use strict";e.exports=JSON.parse('{"_args":[["axios@0.21.0","/Users/dustinbrown/Desktop/liquidata-inc/related/add-and-commit"]],"_from":"axios@0.21.0","_id":"axios@0.21.0","_inBundle":false,"_integrity":"sha512-fmkJBknJKoZwem3/IKSSLpkdNXZeBu5Q7GA/aRsr2btgrptmSCxi2oFjZHqGdK9DoTil9PIHlPIZw2EcRJXRvw==","_location":"/axios","_phantomChildren":{},"_requested":{"type":"version","registry":true,"raw":"axios@0.21.0","name":"axios","escapedName":"axios","rawSpec":"0.21.0","saveSpec":null,"fetchSpec":"0.21.0"},"_requiredBy":["/"],"_resolved":"https://registry.npmjs.org/axios/-/axios-0.21.0.tgz","_spec":"0.21.0","_where":"/Users/dustinbrown/Desktop/liquidata-inc/related/add-and-commit","author":{"name":"Matt Zabriskie"},"browser":{"./lib/adapters/http.js":"./lib/adapters/xhr.js"},"bugs":{"url":"https://github.com/axios/axios/issues"},"bundlesize":[{"path":"./dist/axios.min.js","threshold":"5kB"}],"dependencies":{"follow-redirects":"^1.10.0"},"description":"Promise based HTTP client for the browser and node.js","devDependencies":{"bundlesize":"^0.17.0","coveralls":"^3.0.0","es6-promise":"^4.2.4","grunt":"^1.0.2","grunt-banner":"^0.6.0","grunt-cli":"^1.2.0","grunt-contrib-clean":"^1.1.0","grunt-contrib-watch":"^1.0.0","grunt-eslint":"^20.1.0","grunt-karma":"^2.0.0","grunt-mocha-test":"^0.13.3","grunt-ts":"^6.0.0-beta.19","grunt-webpack":"^1.0.18","istanbul-instrumenter-loader":"^1.0.0","jasmine-core":"^2.4.1","karma":"^1.3.0","karma-chrome-launcher":"^2.2.0","karma-coverage":"^1.1.1","karma-firefox-launcher":"^1.1.0","karma-jasmine":"^1.1.1","karma-jasmine-ajax":"^0.1.13","karma-opera-launcher":"^1.0.0","karma-safari-launcher":"^1.0.0","karma-sauce-launcher":"^1.2.0","karma-sinon":"^1.0.5","karma-sourcemap-loader":"^0.3.7","karma-webpack":"^1.7.0","load-grunt-tasks":"^3.5.2","minimist":"^1.2.0","mocha":"^5.2.0","sinon":"^4.5.0","typescript":"^2.8.1","url-search-params":"^0.10.0","webpack":"^1.13.1","webpack-dev-server":"^1.14.1"},"homepage":"https://github.com/axios/axios","jsdelivr":"dist/axios.min.js","keywords":["xhr","http","ajax","promise","node"],"license":"MIT","main":"index.js","name":"axios","repository":{"type":"git","url":"git+https://github.com/axios/axios.git"},"scripts":{"build":"NODE_ENV=production grunt build","coveralls":"cat coverage/lcov.info | ./node_modules/coveralls/bin/coveralls.js","examples":"node ./examples/server.js","fix":"eslint --fix lib/**/*.js","postversion":"git push && git push --tags","preversion":"npm test","start":"node ./sandbox/server.js","test":"grunt test && bundlesize","version":"npm run build && grunt version && git add -A dist && git add CHANGELOG.md bower.json package.json"},"typings":"./index.d.ts","unpkg":"dist/axios.min.js","version":"0.21.0"}')},2357:e=>{"use strict";e.exports=require("assert")},3129:e=>{"use strict";e.exports=require("child_process")},5747:e=>{"use strict";e.exports=require("fs")},8605:e=>{"use strict";e.exports=require("http")},7211:e=>{"use strict";e.exports=require("https")},2087:e=>{"use strict";e.exports=require("os")},5622:e=>{"use strict";e.exports=require("path")},2413:e=>{"use strict";e.exports=require("stream")},3867:e=>{"use strict";e.exports=require("tty")},8835:e=>{"use strict";e.exports=require("url")},1669:e=>{"use strict";e.exports=require("util")},8761:e=>{"use strict";e.exports=require("zlib")}};var t={};function __webpack_require__(r){if(t[r]){return t[r].exports}var n=t[r]={exports:{}};var s=true;try{e[r].call(n.exports,n,n.exports,__webpack_require__);s=false}finally{if(s)delete t[r]}return n.exports}__webpack_require__.ab=__dirname+"/";return __webpack_require__(399)})(); \ No newline at end of file diff --git a/src/inputs.ts b/src/inputs.ts index b1c90027f..f9d72bb7c 100644 --- a/src/inputs.ts +++ b/src/inputs.ts @@ -1,3 +1,3 @@ // WARNING: this file is auto-generated by scripts/inputs.ts (npm run inputs), any manual edit will be overwritten. -export type Input = 'add' | 'author_name' | 'author_email' | 'branch' | 'cwd' | 'message' | 'pull_stategy' | 'remove' | 'signoff' | 'tag' +export type Input = 'add' | 'author_name' | 'author_email' | 'branch' | 'cwd' | 'message' | 'pull_strategy' | 'remove' | 'signoff' | 'tag' diff --git a/src/main.ts b/src/main.ts index 8b83b8393..a40647c1d 100644 --- a/src/main.ts +++ b/src/main.ts @@ -46,7 +46,7 @@ console.log(`Running in ${baseDir}`); await git .fetch(undefined, log) .pull(undefined, undefined, { - [getInput('pull_stategy')]: null + [getInput('pull_strategy')]: null }, log) info('> Re-staging files...')