breaking: Rename token input to github-token

This commit is contained in:
Ardalan Amini committed 2022-03-04 20:02:31 +03:30
1 parent 14b75da465
commit 1c2ccf6402
7 files changed
+11 -11

No files matched your search

+1 -1
View File
@@ -27,8 +27,8 @@ jobs:
- uses: actions/checkout@v3
- name: Changelog
id: changelog
uses: ardalanamini/auto-changelog@master
id: changelog
- name: Create Release
uses: softprops/action-gh-release@v1
+1 -1
View File
@@ -61,7 +61,7 @@ jobs:
- name: Changelog
uses: ./
with:
token: ${{ secrets.GITHUB_TOKEN }}
github-token: ${{ secrets.GITHUB_TOKEN }}
commit-types: |
feat: Feature
default-commit-type: Default Type
+3 -3
View File
@@ -8,7 +8,7 @@ Automatic Changelog generator
- [Usage](#usage)
- [Inputs](#inputs)
- [Github Token](#token)
- [Github Token](#github-token)
- [Commit Types](#commit-types)
- [Default Commit Type](#default-commit-type)
- [Outputs](#outputs)
@@ -41,7 +41,7 @@ type(category): description [flag]
### Inputs
#### `token`
#### `github-token`
**(Optional)**
@@ -115,7 +115,7 @@ Using with custom inputs:
uses: ardalanamini/auto-changelog@v1
id: changelog
with:
token: ${{ github.token }}
github-token: ${{ github.token }}
commit-types: |
breaking: Breaking Changes
feat: New Features
+3 -3
View File
@@ -10,14 +10,14 @@ branding:
inputs:
token:
github-token:
description: 'Github token'
required: true
default: ${{ github.token }}
commit-types:
description: 'Commit types'
required: false
required: true
default: |
breaking: Breaking Changes
feat: New Features
@@ -36,7 +36,7 @@ inputs:
default-commit-type:
description: 'Default commit type to be used when the commit message matches none of the defined types'
required: false
required: true
default: 'Other Changes'
outputs:
+1 -1
View File
@@ -1,4 +1,4 @@
require('./sourcemap-register.js');(()=>{var __webpack_modules__={7412:function(e,t,a){"use strict";var r=this&&this.__awaiter||function(e,t,a,r){function adopt(e){return e instanceof a?e:new a((function(t){t(e)}))}return new(a||(a=Promise))((function(a,s){function fulfilled(e){try{step(r.next(e))}catch(e){s(e)}}function rejected(e){try{step(r["throw"](e))}catch(e){s(e)}}function step(e){e.done?a(e.value):adopt(e.value).then(fulfilled,rejected)}step((r=r.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],a;return t?t.call(e):(e=typeof __values==="function"?__values(e):e[Symbol.iterator](),a={},verb("next"),verb("throw"),verb("return"),a[Symbol.asyncIterator]=function(){return this},a);function verb(t){a[t]=e[t]&&function(a){return new Promise((function(r,s){a=e[t](a),settle(r,s,a.done,a.value)}))}}function settle(e,t,a,r){Promise.resolve(r).then((function(t){e({value:t,done:a})}),t)}};var i=this&&this.__rest||function(e,t){var a={};for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0)a[r]=e[r];if(e!=null&&typeof Object.getOwnPropertySymbols==="function")for(var s=0,r=Object.getOwnPropertySymbols(e);s<r.length;s++){if(t.indexOf(r[s])<0&&Object.prototype.propertyIsEnumerable.call(e,r[s]))a[r[s]]=e[r[s]]}return a};Object.defineProperty(t,"__esModule",{value:true});t.generate=void 0;const n=a(1912);function generate(e){var t,a;var p,o,d;return r(this,void 0,void 0,(function*(){const{octokit:r,owner:l,repo:m,sha:c,tagRef:u,inputs:h}=e;const{commitTypes:g,defaultCommitType:v}=h;const w=`https://github.com/${l}/${m}`;const y={};try{e:for(var b=s(r.paginate.iterator(r.rest.repos.listCommits,{per_page:100,owner:l,repo:m,sha:c})),_;_=yield b.next(),!_.done;){const{data:e}=_.value;for(let t of e){const{sha:e}=t,a=i(t,["sha"]);if(e===u)break e;const r=a.commit.message.split("\n")[0];let[,s,l,m,c]=n.COMMIT_REGEX.exec(r)||[];if(!m)continue;c=trim(c);if(c==="ignore")continue;s=trim(s);s=(p=g[s])!==null&&p!==void 0?p:v;l=l?trim(l):"";m=trim(m).replace(n.PR_REGEX,((e,t)=>`[${e}](${w}/pull/${t})`));y[s]=(o=y[s])!==null&&o!==void 0?o:{};y[s][l]=(d=y[s][l])!==null&&d!==void 0?d:[];const h=y[s][l].findIndex((e=>e.title===m));if(h===-1)y[s][l].push({title:m,commits:[e]});else y[s][l][h].commits.push(e)}}}catch(e){t={error:e}}finally{try{if(_&&!_.done&&(a=b.return))yield a.call(b)}finally{if(t)throw t.error}}const E=unique([...Object.values(g),v]);return E.reduce(((e,t)=>{const a=y[t];if(a==null)return e;e.push(`### ${t}`,"");const r=Object.keys(a).sort();for(const t of r){const r=a[t];const s=t.length===0;if(!s)e.push(`* **${t}:**`);const i=s?"":" ";for(const{title:t,commits:a}of r){e.push(`${i}* ${t} (${a.map((e=>`[${e.slice(0,8)}](${w}/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," ")}function unique(e){return[...new Set(e)]}},1912:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.PR_REGEX=t.COMMIT_REGEX=void 0;t.COMMIT_REGEX=/^([^)]*)(?:\(([^)]*?)\)|):(.*?)(?:\[([^\]]+?)\]|)\s*$/;t.PR_REGEX=/#([1-9]\d*)/g},7331:function(e,t,a){"use strict";var r=this&&this.__awaiter||function(e,t,a,r){function adopt(e){return e instanceof a?e:new a((function(t){t(e)}))}return new(a||(a=Promise))((function(a,s){function fulfilled(e){try{step(r.next(e))}catch(e){s(e)}}function rejected(e){try{step(r["throw"](e))}catch(e){s(e)}}function step(e){e.done?a(e.value):adopt(e.value).then(fulfilled,rejected)}step((r=r.apply(e,t||[])).next())}))};var s=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:true});t.getInputs=t.getToken=void 0;const i=a(2186);const n=s(a(918));const p=s(a(4603));function getToken(){return(0,i.getInput)("token",{required:true})}t.getToken=getToken;function getInputs(){return r(this,void 0,void 0,(function*(){const e=p.default.parse((0,i.getInput)("commit-types",{required:true}));const t=(0,i.getInput)("default-commit-type",{required:true});return n.default.object().keys({commitTypes:n.default.object().pattern(n.default.string(),n.default.string()).required(),defaultCommitType:n.default.string().required()}).validateAsync({commitTypes:e,defaultCommitType:t})}))}t.getInputs=getInputs},9283:function(e,t,a){"use strict";var r=this&&this.__awaiter||function(e,t,a,r){function adopt(e){return e instanceof a?e:new a((function(t){t(e)}))}return new(a||(a=Promise))((function(a,s){function fulfilled(e){try{step(r.next(e))}catch(e){s(e)}}function rejected(e){try{step(r["throw"](e))}catch(e){s(e)}}function step(e){e.done?a(e.value):adopt(e.value).then(fulfilled,rejected)}step((r=r.apply(e,t||[])).next())}))};Object.defineProperty(t,"__esModule",{value:true});const s=a(2186);const i=a(5438);const n=a(7412);const p=a(7331);function run(){return r(this,void 0,void 0,(function*Line truncated
require('./sourcemap-register.js');(()=>{var __webpack_modules__={7412:function(e,t,a){"use strict";var r=this&&this.__awaiter||function(e,t,a,r){function adopt(e){return e instanceof a?e:new a((function(t){t(e)}))}return new(a||(a=Promise))((function(a,s){function fulfilled(e){try{step(r.next(e))}catch(e){s(e)}}function rejected(e){try{step(r["throw"](e))}catch(e){s(e)}}function step(e){e.done?a(e.value):adopt(e.value).then(fulfilled,rejected)}step((r=r.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],a;return t?t.call(e):(e=typeof __values==="function"?__values(e):e[Symbol.iterator](),a={},verb("next"),verb("throw"),verb("return"),a[Symbol.asyncIterator]=function(){return this},a);function verb(t){a[t]=e[t]&&function(a){return new Promise((function(r,s){a=e[t](a),settle(r,s,a.done,a.value)}))}}function settle(e,t,a,r){Promise.resolve(r).then((function(t){e({value:t,done:a})}),t)}};var i=this&&this.__rest||function(e,t){var a={};for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0)a[r]=e[r];if(e!=null&&typeof Object.getOwnPropertySymbols==="function")for(var s=0,r=Object.getOwnPropertySymbols(e);s<r.length;s++){if(t.indexOf(r[s])<0&&Object.prototype.propertyIsEnumerable.call(e,r[s]))a[r[s]]=e[r[s]]}return a};Object.defineProperty(t,"__esModule",{value:true});t.generate=void 0;const n=a(1912);function generate(e){var t,a;var p,o,d;return r(this,void 0,void 0,(function*(){const{octokit:r,owner:l,repo:m,sha:c,tagRef:u,inputs:h}=e;const{commitTypes:g,defaultCommitType:v}=h;const w=`https://github.com/${l}/${m}`;const y={};try{e:for(var b=s(r.paginate.iterator(r.rest.repos.listCommits,{per_page:100,owner:l,repo:m,sha:c})),_;_=yield b.next(),!_.done;){const{data:e}=_.value;for(let t of e){const{sha:e}=t,a=i(t,["sha"]);if(e===u)break e;const r=a.commit.message.split("\n")[0];let[,s,l,m,c]=n.COMMIT_REGEX.exec(r)||[];if(!m)continue;c=trim(c);if(c==="ignore")continue;s=trim(s);s=(p=g[s])!==null&&p!==void 0?p:v;l=l?trim(l):"";m=trim(m).replace(n.PR_REGEX,((e,t)=>`[${e}](${w}/pull/${t})`));y[s]=(o=y[s])!==null&&o!==void 0?o:{};y[s][l]=(d=y[s][l])!==null&&d!==void 0?d:[];const h=y[s][l].findIndex((e=>e.title===m));if(h===-1)y[s][l].push({title:m,commits:[e]});else y[s][l][h].commits.push(e)}}}catch(e){t={error:e}}finally{try{if(_&&!_.done&&(a=b.return))yield a.call(b)}finally{if(t)throw t.error}}const E=unique([...Object.values(g),v]);return E.reduce(((e,t)=>{const a=y[t];if(a==null)return e;e.push(`### ${t}`,"");const r=Object.keys(a).sort();for(const t of r){const r=a[t];const s=t.length===0;if(!s)e.push(`* **${t}:**`);const i=s?"":" ";for(const{title:t,commits:a}of r){e.push(`${i}* ${t} (${a.map((e=>`[${e.slice(0,8)}](${w}/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," ")}function unique(e){return[...new Set(e)]}},1912:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.PR_REGEX=t.COMMIT_REGEX=void 0;t.COMMIT_REGEX=/^([^)]*)(?:\(([^)]*?)\)|):(.*?)(?:\[([^\]]+?)\]|)\s*$/;t.PR_REGEX=/#([1-9]\d*)/g},7331:function(e,t,a){"use strict";var r=this&&this.__awaiter||function(e,t,a,r){function adopt(e){return e instanceof a?e:new a((function(t){t(e)}))}return new(a||(a=Promise))((function(a,s){function fulfilled(e){try{step(r.next(e))}catch(e){s(e)}}function rejected(e){try{step(r["throw"](e))}catch(e){s(e)}}function step(e){e.done?a(e.value):adopt(e.value).then(fulfilled,rejected)}step((r=r.apply(e,t||[])).next())}))};var s=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:true});t.getInputs=t.getToken=void 0;const i=a(2186);const n=s(a(918));const p=s(a(4603));function getToken(){return(0,i.getInput)("github-token",{required:true})}t.getToken=getToken;function getInputs(){return r(this,void 0,void 0,(function*(){const e=p.default.parse((0,i.getInput)("commit-types",{required:true}));const t=(0,i.getInput)("default-commit-type",{required:true});return n.default.object().keys({commitTypes:n.default.object().pattern(n.default.string(),n.default.string()).required(),defaultCommitType:n.default.string().required()}).validateAsync({commitTypes:e,defaultCommitType:t})}))}t.getInputs=getInputs},9283:function(e,t,a){"use strict";var r=this&&this.__awaiter||function(e,t,a,r){function adopt(e){return e instanceof a?e:new a((function(t){t(e)}))}return new(a||(a=Promise))((function(a,s){function fulfilled(e){try{step(r.next(e))}catch(e){s(e)}}function rejected(e){try{step(r["throw"](e))}catch(e){s(e)}}function step(e){e.done?a(e.value):adopt(e.value).then(fulfilled,rejected)}step((r=r.apply(e,t||[])).next())}))};Object.defineProperty(t,"__esModule",{value:true});const s=a(2186);const i=a(5438);const n=a(7412);const p=a(7331);function run(){return r(this,void 0,void 0,(fuLine truncated
/*!
* is-plain-object <https://github.com/jonschlinkert/is-plain-object>
*
+1 -1
View File
@@ -1 +1 @@
{"version":3,"sources":["../webpack:/auto-changelog/dist/changelog.js","../webpack:/auto-changelog/dist/constants.js","../webpack:/auto-changelog/dist/context.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/oidc-utils.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/auth.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/@hapi/hoek/lib/applyToDefaults.js","../webpack:/auto-changelog/node_modules/@hapi/hoek/lib/assert.js","../webpack:/auto-changelog/node_modules/@hapi/hoek/lib/clone.js","../webpack:/auto-changelog/node_modules/@hapi/hoek/lib/deepEqual.js","../webpack:/auto-changelog/node_modules/@hapi/hoek/lib/error.js","../webpack:/auto-changelog/node_modules/@hapi/hoek/lib/escapeHtml.js","../webpack:/auto-changelog/node_modules/@hapi/hoek/lib/escapeRegex.js","../webpack:/auto-changelog/node_modules/@hapi/hoek/lib/ignore.js","../webpack:/auto-changelog/node_modules/@hapi/hoek/lib/merge.js","../webpack:/auto-changelog/node_modules/@hapi/hoek/lib/reach.js","../webpack:/auto-changelog/node_modules/@hapi/hoek/lib/stringify.js","../webpack:/auto-changelog/node_modules/@hapi/hoek/lib/types.js","../webpack:/auto-changelog/node_modules/@hapi/hoek/lib/utils.js","../webpack:/auto-changelog/node_modules/@hapi/topo/lib/index.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/@sideway/address/lib/domain.js","../webpack:/auto-changelog/node_modules/@sideway/address/lib/email.js","../webpack:/auto-changelog/node_modules/@sideway/address/lib/errors.js","../webpack:/auto-changelog/node_modules/@sideway/address/lib/ip.js","../webpack:/auto-changelog/node_modules/@sideway/address/lib/tlds.js","../webpack:/auto-changelog/node_modules/@sideway/address/lib/uri.js","../webpack:/auto-changelog/node_modules/@sideway/formula/lib/index.js","../webpack:/auto-changelog/node_modules/@sideway/pinpoint/lib/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/joi/lib/annotate.js","../webpack:/auto-changelog/node_modules/joi/lib/base.js","../webpack:/auto-changelog/node_modules/joi/lib/cache.js","../webpack:/auto-changelog/node_modules/joi/lib/common.js","../webpack:/auto-changelog/node_modules/joi/lib/compile.js","../webpack:/auto-changelog/node_modules/joi/lib/errors.js","../webpack:/auto-changelog/node_modules/joi/lib/extend.js","../webpack:/auto-changelog/node_modules/joi/lib/index.js","../webpack:/auto-changelog/node_modules/joi/lib/manifest.js","../webpack:/auto-changelog/node_modules/joi/lib/messages.js","../webpack:/auto-changelog/node_modules/joi/lib/modify.js","../webpack:/auto-changelog/node_modules/joi/lib/ref.js","../webpack:/auto-changelog/node_modules/joi/lib/schemas.js","../webpack:/auto-changelog/node_modules/joi/lib/state.js","../webpack:/auto-changelog/node_modules/joi/lib/template.js","../webpack:/auto-changelog/node_modules/joi/lib/trace.js","../webpack:/auto-changelog/node_modules/joi/lib/types/alternatives.js","../webpack:/auto-changelog/node_modules/joi/lib/types/any.js","../webpack:/auto-changelog/node_modules/joi/lib/types/array.js","../webpack:/auto-changelog/node_modules/joi/lib/types/binary.js","../webpack:/auto-changelog/node_modules/joi/lib/types/boolLine truncated
{"version":3,"sources":["../webpack:/auto-changelog/dist/changelog.js","../webpack:/auto-changelog/dist/constants.js","../webpack:/auto-changelog/dist/context.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/oidc-utils.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/auth.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/@hapi/hoek/lib/applyToDefaults.js","../webpack:/auto-changelog/node_modules/@hapi/hoek/lib/assert.js","../webpack:/auto-changelog/node_modules/@hapi/hoek/lib/clone.js","../webpack:/auto-changelog/node_modules/@hapi/hoek/lib/deepEqual.js","../webpack:/auto-changelog/node_modules/@hapi/hoek/lib/error.js","../webpack:/auto-changelog/node_modules/@hapi/hoek/lib/escapeHtml.js","../webpack:/auto-changelog/node_modules/@hapi/hoek/lib/escapeRegex.js","../webpack:/auto-changelog/node_modules/@hapi/hoek/lib/ignore.js","../webpack:/auto-changelog/node_modules/@hapi/hoek/lib/merge.js","../webpack:/auto-changelog/node_modules/@hapi/hoek/lib/reach.js","../webpack:/auto-changelog/node_modules/@hapi/hoek/lib/stringify.js","../webpack:/auto-changelog/node_modules/@hapi/hoek/lib/types.js","../webpack:/auto-changelog/node_modules/@hapi/hoek/lib/utils.js","../webpack:/auto-changelog/node_modules/@hapi/topo/lib/index.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/@sideway/address/lib/domain.js","../webpack:/auto-changelog/node_modules/@sideway/address/lib/email.js","../webpack:/auto-changelog/node_modules/@sideway/address/lib/errors.js","../webpack:/auto-changelog/node_modules/@sideway/address/lib/ip.js","../webpack:/auto-changelog/node_modules/@sideway/address/lib/tlds.js","../webpack:/auto-changelog/node_modules/@sideway/address/lib/uri.js","../webpack:/auto-changelog/node_modules/@sideway/formula/lib/index.js","../webpack:/auto-changelog/node_modules/@sideway/pinpoint/lib/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/joi/lib/annotate.js","../webpack:/auto-changelog/node_modules/joi/lib/base.js","../webpack:/auto-changelog/node_modules/joi/lib/cache.js","../webpack:/auto-changelog/node_modules/joi/lib/common.js","../webpack:/auto-changelog/node_modules/joi/lib/compile.js","../webpack:/auto-changelog/node_modules/joi/lib/errors.js","../webpack:/auto-changelog/node_modules/joi/lib/extend.js","../webpack:/auto-changelog/node_modules/joi/lib/index.js","../webpack:/auto-changelog/node_modules/joi/lib/manifest.js","../webpack:/auto-changelog/node_modules/joi/lib/messages.js","../webpack:/auto-changelog/node_modules/joi/lib/modify.js","../webpack:/auto-changelog/node_modules/joi/lib/ref.js","../webpack:/auto-changelog/node_modules/joi/lib/schemas.js","../webpack:/auto-changelog/node_modules/joi/lib/state.js","../webpack:/auto-changelog/node_modules/joi/lib/template.js","../webpack:/auto-changelog/node_modules/joi/lib/trace.js","../webpack:/auto-changelog/node_modules/joi/lib/types/alternatives.js","../webpack:/auto-changelog/node_modules/joi/lib/types/any.js","../webpack:/auto-changelog/node_modules/joi/lib/types/array.js","../webpack:/auto-changelog/node_modules/joi/lib/types/binary.js","../webpack:/auto-changelog/node_modules/joi/lib/types/boolLine truncated
+1 -1
View File
@@ -4,7 +4,7 @@ import YAML from "yaml";
import { ActionInputsI, TypesI } from "./constants";
export function getToken(): string {
return getInput("token", { required: true });
return getInput("github-token", { required: true });
}
export async function getInputs(): Promise<ActionInputsI> {