Skip to content

Commit

Permalink
feat: 新增 emojis 图形,修改 discard 判断位置
Browse files Browse the repository at this point in the history
  • Loading branch information
ITxiaohao committed Jul 19, 2019
1 parent c6cf227 commit c7f39c1
Showing 1 changed file with 15 additions and 15 deletions.
30 changes: 15 additions & 15 deletions writer-opts.js
Original file line number Diff line number Diff line change
Expand Up @@ -62,29 +62,29 @@ function getWriterOpts() {

if (emojis) {
if (commit.type === `feat`) {
commit.type = `:sparkles: Features`
commit.type = ` Features`
} else if (commit.type === `fix`) {
commit.type = `:bug: Bug Fixes`
commit.type = `🐛 Bug Fixes`
} else if (commit.type === `perf`) {
commit.type = `:zap: Performance Improvements`
commit.type = ` Performance Improvements`
} else if (commit.type === `revert`) {
commit.type = `:rewind: Reverts`
} else if (discard) {
return
commit.type = `⏪ Reverts`
} else if (commit.type === `docs`) {
commit.type = `:memo: Documentation`
commit.type = `📝 Documentation`
} else if (commit.type === `style`) {
commit.type = `:lipstick: Styles`
commit.type = `💄 Styles`
} else if (commit.type === `refactor`) {
commit.type = `:recycle: Code Refactoring`
commit.type = ` Code Refactoring`
} else if (commit.type === `test`) {
commit.type = `:white_check_mark: Tests`
commit.type = ` Tests`
} else if (commit.type === `build`) {
commit.type = `:construction_worker: Build System`
commit.type = `👷‍ Build System`
} else if (commit.type === `ci`) {
commit.type = `:wrench: Continuous Integration`
commit.type = `🔧 Continuous Integration`
} else if (commit.type === 'chore') {
commit.type = ':ticket: Chores'
commit.type = '🎫 Chores'
} else if (discard) {
return
}
} else {
if (commit.type === `feat`) {
Expand All @@ -95,8 +95,6 @@ function getWriterOpts() {
commit.type = `Performance Improvements`
} else if (commit.type === `revert`) {
commit.type = `Reverts`
} else if (discard) {
return
} else if (commit.type === `docs`) {
commit.type = `Documentation`
} else if (commit.type === `style`) {
Expand All @@ -111,6 +109,8 @@ function getWriterOpts() {
commit.type = `Continuous Integration`
} else if (commit.type === 'chore') {
commit.type = 'Chores'
} else if (discard) {
return
}
}

Expand Down

0 comments on commit c7f39c1

Please sign in to comment.