Skip to content

Commit 000f190

Browse files
fix(main): Added a conditional to show a ticket in the title (#40)
1 parent 62ad4c1 commit 000f190

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

package-lock.json

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -235,7 +235,7 @@ function build_commit_string(commit_state: z.infer<typeof CommitState>, config:
235235
commit_string += ': '
236236
}
237237

238-
if (commit_state.ticket) {
238+
if (commit_state.ticket && config.check_ticket.add_to_title) {
239239
commit_string += colorize ? color.magenta(commit_state.ticket) + ' ' : commit_state.ticket + ' '
240240
}
241241

0 commit comments

Comments
 (0)