Skip to content

Commit 97e45f2

Browse files
ReenigneArcherdscho
authored andcommitted
chore: order inputs by type
1 parent 668f251 commit 97e45f2

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

index.js

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,14 +22,19 @@ const parseDurationInMilliseconds = (text) => {
2222

2323
const run = async () => {
2424
try {
25-
let issueTitlePrefix = core.getInput('prefix')
26-
issueTitlePrefix = issueTitlePrefix ? issueTitlePrefix + ' ' : ''
25+
// boolean inputs
2726
let dryRun = core.getInput('dry-run')
2827
if (dryRun) dryRun = dryRun === 'true'
2928
let aggregate = core.getInput('aggregate')
3029
if (aggregate) aggregate = aggregate === 'true'
30+
31+
// integer inputs
3132
let characterLimit = core.getInput('character-limit')
3233
if (characterLimit) characterLimit = parseInt(characterLimit)
34+
35+
// string inputs
36+
let issueTitlePrefix = core.getInput('prefix')
37+
issueTitlePrefix = issueTitlePrefix ? issueTitlePrefix + ' ' : ''
3338
const titlePattern = core.getInput('title-pattern')
3439
const contentPattern = core.getInput('content-pattern')
3540

0 commit comments

Comments
 (0)