Skip to content
This repository has been archived by the owner on Jun 16, 2021. It is now read-only.

Commit

Permalink
✨ two new types: rollforward, run-build; override test
Browse files Browse the repository at this point in the history
💥️  BREAKING CHANGE: Removal of theme prop (all Gitmoji), move to TS
  • Loading branch information
JeromeFitz committed May 10, 2021
1 parent 01a5d0b commit 905ed37
Show file tree
Hide file tree
Showing 5 changed files with 78 additions and 23 deletions.
27 changes: 8 additions & 19 deletions changelog.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,26 +4,15 @@ const config = require('./dist/themes/gitmoji.js').default
const OVERRIDE_TEST = false

const typesCustom = {
rollforward: {
override: {
branch: false,
code: ':fast-forward:',
commit: 'rollforward',
description: 'Set Rollforward Version from Existing Store (manual override).',
emoji: '⏩️',
entity: '🏷',
name: 'rollforward',
section: 'Set Rollforward Version from Existing Store (manual override).',
semver: null,
},
'run-build': {
branch: false,
code: ':rocket:',
commit: 'run-build',
description: 'Commit type to ensure build is run (manual override).',
emoji: '🚀️',
entity: '🏷',
name: 'run-build',
section: 'Commit type to ensure build is run (manual override).',
code: ':sunrise_over_mountains:',
commit: 'override',
description: 'Custom type => override.',
emoji: '🌄️',
entity: '&#1F304;',
name: 'override',
section: 'Custom type => override.',
semver: null,
},
}
Expand Down
22 changes: 22 additions & 0 deletions data/gitmoji/index.json
Original file line number Diff line number Diff line change
Expand Up @@ -572,6 +572,28 @@
"section": "Work on code related to authorization, roles and permissions.",
"semver": "patch"
},
"rollforward": {
"branch": false,
"code": ":fast_forward:",
"commit": "rollforward",
"description": "Create rollforward version.",
"emoji": "⏩️",
"entity": "&#23E9;",
"name": "rollforward",
"section": "Create rollforward version.",
"semver": null
},
"run-build": {
"branch": false,
"code": ":rocket:",
"commit": "run-build",
"description": "Custom type for CI/CD to hook into run build override.",
"emoji": "🚀️",
"entity": "&#1F680;",
"name": "run-build",
"section": "Custom type for CI/CD to hook into run build override.",
"semver": null
},
"security": {
"branch": false,
"code": ":lock:",
Expand Down
22 changes: 22 additions & 0 deletions scripts/gitmoji/gitmojiRewrite.js
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,28 @@ const types = {
section: 'Changes that don’t modify src or test files',
semver: null,
},
rollforward: {
branch: false,
code: ':fast_forward:',
commit: 'rollforward',
description: 'Create rollforward version.',
emoji: '⏩️',
entity: '&#23E9;',
name: 'rollforward',
section: 'Create rollforward version.',
semver: null,
},
'run-build': {
branch: false,
code: ':rocket:',
commit: 'run-build',
description: 'Custom type for CI/CD to hook into run build override.',
emoji: '🚀️',
entity: '&#1F680;',
name: 'run-build',
section: 'Custom type for CI/CD to hook into run build override.',
semver: null,
},
}

const gitmoji = async () => {
Expand Down
4 changes: 2 additions & 2 deletions scripts/gitmoji/gitmojiTheme.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,11 +12,11 @@ const commit = {
after: {
emoji: ' ',
branchName: ' ',
scope: ')',
scope: ') ',
},
before: {
emoji: '',
branchName: ' ',
branchName: '',
scope: '(',
},
format: '{emoji}{scope}{branchName}{subject}',
Expand Down
26 changes: 24 additions & 2 deletions src/themes/gitmoji.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,11 @@ const gitmoji = {
after: {
emoji: ' ',
branchName: ' ',
scope: ')',
scope: ') ',
},
before: {
emoji: '',
branchName: ' ',
branchName: '',
scope: '(',
},
format: '{emoji}{scope}{branchName}{subject}',
Expand Down Expand Up @@ -604,6 +604,28 @@ const gitmoji = {
section: 'Work on code related to authorization, roles and permissions.',
semver: 'patch',
},
rollforward: {
branch: false,
code: ':fast_forward:',
commit: 'rollforward',
description: 'Create rollforward version.',
emoji: '⏩️',
entity: '&#23E9;',
name: 'rollforward',
section: 'Create rollforward version.',
semver: null,
},
'run-build': {
branch: false,
code: ':rocket:',
commit: 'run-build',
description: 'Custom type for CI/CD to hook into run build override.',
emoji: '🚀️',
entity: '&#1F680;',
name: 'run-build',
section: 'Custom type for CI/CD to hook into run build override.',
semver: null,
},
security: {
branch: false,
code: ':lock:',
Expand Down

0 comments on commit 905ed37

Please sign in to comment.