chore: Update action directory [ignore]

This commit is contained in:
Ardalan Amini committed 2020-10-18 02:11:31 +03:30
1 parent 444948c4a2
commit b60b7712a2
2 files changed
+2 -2

No files matched your search

+1 -1
View File
@@ -1,2 +1,2 @@
require('./sourcemap-register.js');module.exports=(()=>{var __webpack_modules__={412:function(e,t){"use strict";var r=this&&this.__awaiter||function(e,t,r,s){function adopt(e){return e instanceof r?e:new r(function(t){t(e)})}return new(r||(r=Promise))(function(r,o){function fulfilled(e){try{step(s.next(e))}catch(e){o(e)}}function rejected(e){try{step(s["throw"](e))}catch(e){o(e)}}function step(e){e.done?r(e.value):adopt(e.value).then(fulfilled,rejected)}step((s=s.apply(e,t||[])).next())})};var s=this&&this.__asyncValues||function(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t=e[Symbol.asyncIterator],r;return t?t.call(e):(e=typeof __values==="function"?__values(e):e[Symbol.iterator](),r={},verb("next"),verb("throw"),verb("return"),r[Symbol.asyncIterator]=function(){return this},r);function verb(t){r[t]=e[t]&&function(r){return new Promise(function(s,o){r=e[t](r),settle(s,o,r.done,r.value)})}}function settle(e,t,r,s){Promise.resolve(s).then(function(t){e({value:t,done:r})},t)}};var o=this&&this.__rest||function(e,t){var r={};for(var s in e)if(Object.prototype.hasOwnProperty.call(e,s)&&t.indexOf(s)<0)r[s]=e[s];if(e!=null&&typeof Object.getOwnPropertySymbols==="function")for(var o=0,s=Object.getOwnPropertySymbols(e);o<s.length;o++){if(t.indexOf(s[o])<0&&Object.prototype.propertyIsEnumerable.call(e,s[o]))r[s[o]]=e[s[o]]}return r};Object.defineProperty(t,"__esModule",{value:true});t.generate=void 0;function generate(e,t,a,u,l){var p,d;var f,m,g;return r(this,void 0,void 0,function*(){t=t.map(e=>{var t;return(t=c[e])!==null&&t!==void 0?t:e});const r=`https://github.com/${a}/${u}`;const h={};try{e:for(var T=s(e.paginate.iterator(e.repos.listCommits,{per_page:100,owner:a,repo:u})),w;w=yield T.next(),!w.done;){const{data:e}=w.value;for(let t of e){const{sha:e}=t,s=o(t,["sha"]);if(e===l)break e;const a=s.commit.message.split("\n")[0];let[,u,p,d,T]=n.exec(a)||[];if(!d)continue;u=trim(u);u=(f=c[u])!==null&&f!==void 0?f:c.other;p=p?trim(p):"";T=trim(T);if(T!=="breaking")T=undefined;d=trim(d).replace(i,(e,t)=>`[${e}](${r}/pull/${t})`);if(T)d=d.replace(new RegExp(` ?\\[${T}\\]$`),"");d=`${d} ([${e.slice(0,8)}](${r}/commit/${e}))`;if(T)d+=` **[${T}]**`;h[u]=(m=h[u])!==null&&m!==void 0?m:{};h[u][p]=(g=h[u][p])!==null&&g!==void 0?g:[];h[u][p].push(d)}}}catch(e){p={error:e}}finally{try{if(w&&!w.done&&(d=T.return))yield d.call(T)}finally{if(p)throw p.error}}return Object.values(c).filter(e=>!t.includes(e)).sort().reduce((e,t)=>{const r=h[t];if(r==null)return e;e.push(`### ${t}`,"");const s=Object.keys(r).sort();for(const t of s){const s=r[t];const o=t.length===0;if(!o)e.push(`* **${t}:**`);const n=o?"":" ";for(const t of s){e.push(n+"* "+t)}}e.push("");return e},[]).join("\n")})}t.generate=generate;function trim(e){if(e==null)return e;return e.trim().replace(/ {2,}/g," ")}const n=/^([^)]*)(?:\(([^)]*?)\)|):(.*?(?:\[([^\]]+?)\]|))\s*$/;const i=/#([1-9]\d*)/g;const c={breaking:"Breaking Changes",build:"Build System / Dependencies",ci:"Continuous Integration",chore:"Chores",docs:"Documentation Changes",feat:"New Features",fix:"Bug Fixes",other:"Other Changes",perf:"Performance Improvements",refactor:"Refactors",revert:"Reverts",style:"Code Style Changes",test:"Tests"}},283:function(e,t,r){"use strict";var s=this&&this.__awaiter||function(e,t,r,s){function adopt(e){return e instanceof r?e:new r(function(t){t(e)})}return new(r||(r=Promise))(function(r,o){function fulfilled(e){try{step(s.next(e))}catch(e){o(e)}}function rejected(e){try{step(s["throw"](e))}catch(e){o(e)}}function step(e){e.done?r(e.value):adopt(e.value).then(fulfilled,rejected)}step((s=s.apply(e,t||[])).next())})};Object.defineProperty(t,"__esModule",{value:true});const o=r(186);const n=r(438);const i=r(412);function run(){return s(this,void 0,void 0,function*(){try{const e=o.getInput("token",{required:true});const t=o.getInput("exclude",{required:false}).split(",");const r=n.getOctokit(e);const{repo:{owner:s,repo:c},sha:a}=n.context;const{data:u}=yield r.repos.listTags({owner:s,repo:c,per_page:2});let l;if(u.length>0){if(a===u[0].commit.sha){if(u.length>1)l=u[1].commit.sha}else l=u[0].commit.sha}const p=yield i.generate(r,t,s,c,l);o.info(p);o.setOutput("changelog",p)}catch(e){o.setFailed(e.message)}})}run()},351:function(e,t,r){"use strict";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=s(r(87));const n=r(278);function issueCommand(e,t,r){const s=new Command(e,t,r);process.stdout.write(s.toString()+o.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 thisLine truncated
require('./sourcemap-register.js');module.exports=(()=>{var __webpack_modules__={412:function(e,t){"use strict";var r=this&&this.__awaiter||function(e,t,r,s){function adopt(e){return e instanceof r?e:new r(function(t){t(e)})}return new(r||(r=Promise))(function(r,o){function fulfilled(e){try{step(s.next(e))}catch(e){o(e)}}function rejected(e){try{step(s["throw"](e))}catch(e){o(e)}}function step(e){e.done?r(e.value):adopt(e.value).then(fulfilled,rejected)}step((s=s.apply(e,t||[])).next())})};var s=this&&this.__asyncValues||function(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t=e[Symbol.asyncIterator],r;return t?t.call(e):(e=typeof __values==="function"?__values(e):e[Symbol.iterator](),r={},verb("next"),verb("throw"),verb("return"),r[Symbol.asyncIterator]=function(){return this},r);function verb(t){r[t]=e[t]&&function(r){return new Promise(function(s,o){r=e[t](r),settle(s,o,r.done,r.value)})}}function settle(e,t,r,s){Promise.resolve(s).then(function(t){e({value:t,done:r})},t)}};var o=this&&this.__rest||function(e,t){var r={};for(var s in e)if(Object.prototype.hasOwnProperty.call(e,s)&&t.indexOf(s)<0)r[s]=e[s];if(e!=null&&typeof Object.getOwnPropertySymbols==="function")for(var o=0,s=Object.getOwnPropertySymbols(e);o<s.length;o++){if(t.indexOf(s[o])<0&&Object.prototype.propertyIsEnumerable.call(e,s[o]))r[s[o]]=e[s[o]]}return r};Object.defineProperty(t,"__esModule",{value:true});t.generate=void 0;function generate(e,t,a,u,l){var p,d;var f,m,h;return r(this,void 0,void 0,function*(){t=t.map(e=>{var t;return(t=c[e])!==null&&t!==void 0?t:e});const r=`https://github.com/${a}/${u}`;const g={};try{e:for(var T=s(e.paginate.iterator(e.repos.listCommits,{per_page:100,owner:a,repo:u})),w;w=yield T.next(),!w.done;){const{data:e}=w.value;for(let t of e){const{sha:e}=t,s=o(t,["sha"]);if(e===l)break e;const a=s.commit.message.split("\n")[0];let[,u,p,d,T]=n.exec(a)||[];if(!d)continue;T=trim(T);if(T==="ignore")continue;u=trim(u);u=(f=c[u])!==null&&f!==void 0?f:c.other;p=p?trim(p):"";d=trim(d).replace(i,(e,t)=>`[${e}](${r}/pull/${t})`);g[u]=(m=g[u])!==null&&m!==void 0?m:{};g[u][p]=(h=g[u][p])!==null&&h!==void 0?h:[];const w=g[u][p].findIndex(e=>e.title===d);if(w===-1)g[u][p].push({title:d,commits:[e]});else g[u][p][w].commits.push(e)}}}catch(e){p={error:e}}finally{try{if(w&&!w.done&&(d=T.return))yield d.call(T)}finally{if(p)throw p.error}}return Object.values(c).filter(e=>!t.includes(e)).sort().reduce((e,t)=>{const s=g[t];if(s==null)return e;e.push(`### ${t}`,"");const o=Object.keys(s).sort();for(const t of o){const o=s[t];const n=t.length===0;if(!n)e.push(`* **${t}:**`);const i=n?"":" ";for(const{title:t,commits:s}of o){e.push(`${i}* ${t} (${s.map(e=>`[${e.slice(0,8)}](${r}/commit/${e})`).join(",")})`)}}e.push("");return e},[]).join("\n")})}t.generate=generate;function trim(e){if(e==null)return e;return e.trim().replace(/ {2,}/g," ")}const n=/^([^)]*)(?:\(([^)]*?)\)|):(.*?)(?:\[([^\]]+?)\]|)\s*$/;const i=/#([1-9]\d*)/g;const c={breaking:"Breaking Changes",build:"Build System / Dependencies",ci:"Continuous Integration",chore:"Chores",docs:"Documentation Changes",feat:"New Features",fix:"Bug Fixes",other:"Other Changes",perf:"Performance Improvements",refactor:"Refactors",revert:"Reverts",style:"Code Style Changes",test:"Tests"}},283:function(e,t,r){"use strict";var s=this&&this.__awaiter||function(e,t,r,s){function adopt(e){return e instanceof r?e:new r(function(t){t(e)})}return new(r||(r=Promise))(function(r,o){function fulfilled(e){try{step(s.next(e))}catch(e){o(e)}}function rejected(e){try{step(s["throw"](e))}catch(e){o(e)}}function step(e){e.done?r(e.value):adopt(e.value).then(fulfilled,rejected)}step((s=s.apply(e,t||[])).next())})};Object.defineProperty(t,"__esModule",{value:true});const o=r(186);const n=r(438);const i=r(412);function run(){return s(this,void 0,void 0,function*(){try{const e=o.getInput("token",{required:true});const t=o.getInput("exclude",{required:false}).split(",");const r=n.getOctokit(e);const{repo:{owner:s,repo:c},sha:a}=n.context;const{data:u}=yield r.repos.listTags({owner:s,repo:c,per_page:2});let l;if(u.length>0){if(a===u[0].commit.sha){if(u.length>1)l=u[1].commit.sha}else l=u[0].commit.sha}const p=yield i.generate(r,t,s,c,l);o.info(p);o.setOutput("changelog",p)}catch(e){o.setFailed(e.message)}})}run()},351:function(e,t,r){"use strict";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=s(r(87));const n=r(278);function issueCommand(e,t,r){const s=new Command(e,t,r);process.stdout.write(s.toString()+o.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(Line truncated
//# sourceMappingURL=index.js.map