Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: Allow unknown commit types #1

Merged
merged 1 commit into from
Feb 28, 2019
Merged

feat: Allow unknown commit types #1

merged 1 commit into from
Feb 28, 2019

Conversation

ffflorian
Copy link

Taking over from lob#46.


This PR will

  • add a flag to allow unknown commit types.

Reason

Sometimes you want to use other commit types in your repository (e.g. run-fix to mark fixes concerning only the current feature run). These should not all be grouped into "Other changes" then.

Result

Commits with unknown types will then be each grouped into Other changes (<commit type>).

Example

New Features
  • docs: Add docs (fd616edf)
Other Changes (run-fix)
  • docs: Fixed typo (658297e9)

@@ -4,7 +4,7 @@ var Bluebird = require('bluebird');
var CP = Bluebird.promisifyAll(require('child_process'));

var SEPARATOR = '===END===';
var COMMIT_PATTERN = /^(\w*)(?:\(([^)]*?)\)|):(.*?(?:\[([^\]]+?)\]|))\s*$/;
var COMMIT_PATTERN = /^([^)]*)(?:\(([^)]*?)\)|):(.*?(?:\[([^\]]+?)\]|))\s*$/;
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This change is needed to make sure unknown commit types like run-fix(core): Implement something works.

@ffflorian ffflorian merged commit 4918cd9 into wireapp:master Feb 28, 2019
@ffflorian ffflorian deleted the feat/allow-unknown branch June 25, 2019 20:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
1 participant