mirror of
https://github.com/darksaid98/auto-changelog.git
synced 2026-12-02 06:28:53 +00:00
chore: Update action directory
This commit is contained in:
3 files changed
+3
-3
No files matched your search
+1
-1
@@ -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;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 this.properties){ifLine 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,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
|
||||
//# sourceMappingURL=index.js.map
|
||||
+1
-1
@@ -1 +1 @@
|
||||
{"version":3,"sources":["../webpack:/auto-changelog/dist/changelog.js","../webpack:/auto-changelog/dist/index.js","../webpack:/auto-changelog/node_modules/@actions/core/lib/command.js","../webpack:/auto-changelog/node_modules/@actions/core/lib/core.js","../webpack:/auto-changelog/node_modules/@actions/core/lib/file-command.js","../webpack:/auto-changelog/node_modules/@actions/core/lib/utils.js","../webpack:/auto-changelog/node_modules/@actions/github/lib/context.js","../webpack:/auto-changelog/node_modules/@actions/github/lib/github.js","../webpack:/auto-changelog/node_modules/@actions/github/lib/internal/utils.js","../webpack:/auto-changelog/node_modules/@actions/github/lib/utils.js","../webpack:/auto-changelog/node_modules/@actions/http-client/index.js","../webpack:/auto-changelog/node_modules/@actions/http-client/proxy.js","../webpack:/auto-changelog/node_modules/@octokit/auth-token/dist-node/index.js","../webpack:/auto-changelog/node_modules/@octokit/core/dist-node/index.js","../webpack:/auto-changelog/node_modules/@octokit/endpoint/dist-node/index.js","../webpack:/auto-changelog/node_modules/@octokit/graphql/dist-node/index.js","../webpack:/auto-changelog/node_modules/@octokit/plugin-paginate-rest/dist-node/index.js","../webpack:/auto-changelog/node_modules/@octokit/plugin-rest-endpoint-methods/dist-node/index.js","../webpack:/auto-changelog/node_modules/@octokit/request-error/dist-node/index.js","../webpack:/auto-changelog/node_modules/@octokit/request/dist-node/index.js","../webpack:/auto-changelog/node_modules/before-after-hook/index.js","../webpack:/auto-changelog/node_modules/before-after-hook/lib/add.js","../webpack:/auto-changelog/node_modules/before-after-hook/lib/register.js","../webpack:/auto-changelog/node_modules/before-after-hook/lib/remove.js","../webpack:/auto-changelog/node_modules/deprecation/dist-node/index.js","../webpack:/auto-changelog/node_modules/is-plain-object/dist/is-plain-object.js","../webpack:/auto-changelog/node_modules/node-fetch/lib/index.js","../webpack:/auto-changelog/node_modules/once/once.js","../webpack:/auto-changelog/node_modules/tunnel/index.js","../webpack:/auto-changelog/node_modules/tunnel/lib/tunnel.js","../webpack:/auto-changelog/node_modules/universal-user-agent/dist-node/index.js","../webpack:/auto-changelog/node_modules/wrappy/wrappy.js","../webpack:/auto-changelog/node_modules/@vercel/ncc/dist/ncc/@@notfound.js","../webpack:/auto-changelog/external \"assert\"","../webpack:/auto-changelog/external \"events\"","../webpack:/auto-changelog/external \"fs\"","../webpack:/auto-changelog/external \"http\"","../webpack:/auto-changelog/external \"https\"","../webpack:/auto-changelog/external \"net\"","../webpack:/auto-changelog/external \"os\"","../webpack:/auto-changelog/external \"path\"","../webpack:/auto-changelog/external \"stream\"","../webpack:/auto-changelog/external \"tls\"","../webpack:/auto-changelog/external \"url\"","../webpack:/auto-changelog/external \"util\"","../webpack:/auto-changelog/external \"zlib\"","../webpack:/auto-changelog/webpack/bootstrap","../webpack:/auto-changelog/webpack/runtime/compat","../webpack:/auto-changelog/webpack/startup"],"names":["__awaiter","this","thisArg","_arguments","P","generator","adopt","value","resolve","Promise","reject","fulfilled","step","next","e","rejected","result","done","then","apply","__asyncValues","o","Symbol","asyncIterator","TypeError","m","i","call","__values","iterator","verb","n","v","settle","d","__rest","s","t","p","Object","prototype","hasOwnProperty","indexOf","getOwnPropertySymbols","length","propertyIsEnumerable","defineProperty","exports","generate","octokit","exclude","owner","repo","tagRef","e_1","_a","_b","_c","_d","map","type","TYPES","repoUrl","commits","paginator","_e","paginate","repos","listCommits","per_page","_f","data","_g","sha","commit","message","category","title","flag","COMMIT_REGEX","exec","trim","other","undefined","replace","PR_REGEX","match","pull","RegExp","slice","push","e_1_1","error","return","values","filter","includes","sort","reduce","changelog","typeGroup","categories","keys","categoryGroup","defaultCategory","baseLine","join","breaking","build","ci","chore","docs","feat","fix","perf","refactor","revert","style","test","core_1","__webpack_require__","github_1","changelog_1","run","token","getInput","required","split","getOctokit","context","tags","listTags","info","setOutput","setFailed","__importStar","mod","__esModule","k","os","utils_1","issueCommand","command","properties","cmd","Command","process","stdout","write","toString","EOL","issue","name","CMD_STRING","[object Object]","cmdStr","first","key","val","escapeProperty","escapeData","toCommandValue","command_1","file_command_1","path","ExitCode","exportVariable","convertedVal","env","filePath","delimiter","commandValue","setSecret","secret","addPath","inputPath","options","toUpperCase","Error","setCommandEcho","enabled","exitCode","Failure","isDebug","debug","warning","startGroup","endGroup","group","fn","Line truncated
|
||||
{"version":3,"sources":["../webpack:/auto-changelog/dist/changelog.js","../webpack:/auto-changelog/dist/index.js","../webpack:/auto-changelog/node_modules/@actions/core/lib/command.js","../webpack:/auto-changelog/node_modules/@actions/core/lib/core.js","../webpack:/auto-changelog/node_modules/@actions/core/lib/file-command.js","../webpack:/auto-changelog/node_modules/@actions/core/lib/utils.js","../webpack:/auto-changelog/node_modules/@actions/github/lib/context.js","../webpack:/auto-changelog/node_modules/@actions/github/lib/github.js","../webpack:/auto-changelog/node_modules/@actions/github/lib/internal/utils.js","../webpack:/auto-changelog/node_modules/@actions/github/lib/utils.js","../webpack:/auto-changelog/node_modules/@actions/http-client/index.js","../webpack:/auto-changelog/node_modules/@actions/http-client/proxy.js","../webpack:/auto-changelog/node_modules/@octokit/auth-token/dist-node/index.js","../webpack:/auto-changelog/node_modules/@octokit/core/dist-node/index.js","../webpack:/auto-changelog/node_modules/@octokit/endpoint/dist-node/index.js","../webpack:/auto-changelog/node_modules/@octokit/graphql/dist-node/index.js","../webpack:/auto-changelog/node_modules/@octokit/plugin-paginate-rest/dist-node/index.js","../webpack:/auto-changelog/node_modules/@octokit/plugin-rest-endpoint-methods/dist-node/index.js","../webpack:/auto-changelog/node_modules/@octokit/request-error/dist-node/index.js","../webpack:/auto-changelog/node_modules/@octokit/request/dist-node/index.js","../webpack:/auto-changelog/node_modules/before-after-hook/index.js","../webpack:/auto-changelog/node_modules/before-after-hook/lib/add.js","../webpack:/auto-changelog/node_modules/before-after-hook/lib/register.js","../webpack:/auto-changelog/node_modules/before-after-hook/lib/remove.js","../webpack:/auto-changelog/node_modules/deprecation/dist-node/index.js","../webpack:/auto-changelog/node_modules/is-plain-object/dist/is-plain-object.js","../webpack:/auto-changelog/node_modules/node-fetch/lib/index.js","../webpack:/auto-changelog/node_modules/once/once.js","../webpack:/auto-changelog/node_modules/tunnel/index.js","../webpack:/auto-changelog/node_modules/tunnel/lib/tunnel.js","../webpack:/auto-changelog/node_modules/universal-user-agent/dist-node/index.js","../webpack:/auto-changelog/node_modules/wrappy/wrappy.js","../webpack:/auto-changelog/node_modules/@vercel/ncc/dist/ncc/@@notfound.js","../webpack:/auto-changelog/external \"assert\"","../webpack:/auto-changelog/external \"events\"","../webpack:/auto-changelog/external \"fs\"","../webpack:/auto-changelog/external \"http\"","../webpack:/auto-changelog/external \"https\"","../webpack:/auto-changelog/external \"net\"","../webpack:/auto-changelog/external \"os\"","../webpack:/auto-changelog/external \"path\"","../webpack:/auto-changelog/external \"stream\"","../webpack:/auto-changelog/external \"tls\"","../webpack:/auto-changelog/external \"url\"","../webpack:/auto-changelog/external \"util\"","../webpack:/auto-changelog/external \"zlib\"","../webpack:/auto-changelog/webpack/bootstrap","../webpack:/auto-changelog/webpack/runtime/compat","../webpack:/auto-changelog/webpack/startup"],"names":["__awaiter","this","thisArg","_arguments","P","generator","adopt","value","resolve","Promise","reject","fulfilled","step","next","e","rejected","result","done","then","apply","__asyncValues","o","Symbol","asyncIterator","TypeError","m","i","call","__values","iterator","verb","n","v","settle","d","__rest","s","t","p","Object","prototype","hasOwnProperty","indexOf","getOwnPropertySymbols","length","propertyIsEnumerable","defineProperty","exports","generate","octokit","exclude","owner","repo","tagRef","e_1","_a","_b","_c","_d","map","type","TYPES","repoUrl","commits","paginator","_e","paginate","repos","listCommits","per_page","_f","data","_g","sha","commit","message","split","category","title","flag","COMMIT_REGEX","exec","trim","other","undefined","replace","PR_REGEX","match","pull","RegExp","slice","push","e_1_1","error","return","values","filter","includes","sort","reduce","changelog","typeGroup","categories","keys","categoryGroup","defaultCategory","baseLine","join","breaking","build","ci","chore","docs","feat","fix","perf","refactor","revert","style","test","core_1","__webpack_require__","github_1","changelog_1","run","token","getInput","required","getOctokit","context","tags","listTags","info","setOutput","setFailed","__importStar","mod","__esModule","k","os","utils_1","issueCommand","command","properties","cmd","Command","process","stdout","write","toString","EOL","issue","name","CMD_STRING","[object Object]","cmdStr","first","key","val","escapeProperty","escapeData","toCommandValue","command_1","file_command_1","path","ExitCode","exportVariable","convertedVal","env","filePath","delimiter","commandValue","setSecret","secret","addPath","inputPath","options","toUpperCase","Error","setCommandEcho","enabled","exitCode","Failure","isDebug","debug","warning","startGroup","endGroup","group","fn","Line truncated
|
||||
+1
-1
@@ -1,4 +1,4 @@
|
||||
import { GitHub } from "@actions/github/lib/utils";
|
||||
import type { GitHub } from "@actions/github/lib/utils";
|
||||
|
||||
export async function generate(
|
||||
octokit: InstanceType<typeof GitHub>,
|
||||
|
||||
Reference in new issue
Block a user