Skip to content

Commit

Permalink
test(changelog): add cases for docs: prefix (#167)
Browse files Browse the repository at this point in the history
  • Loading branch information
beeb committed Jun 10, 2023
1 parent 5dc5fb7 commit 3a717e2
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions git-cliff-core/src/changelog.rs
Original file line number Diff line number Diff line change
Expand Up @@ -263,6 +263,14 @@ mod test {
scope: Some(String::from("documentation")),
skip: None,
},
CommitParser {
message: Regex::new("docs:").ok(),
body: None,
group: Some(String::from("Documentation")),
default_scope: None,
scope: Some(String::from("documentation")),
skip: None,
},
CommitParser {
message: Regex::new(r#"match\((.*)\):.*"#).ok(),
body: None,
Expand Down Expand Up @@ -318,6 +326,10 @@ mod test {
String::from("qw3rty"),
String::from("doc: update docs"),
),
Commit::new(
String::from("0bc123"),
String::from("docs: add some documentation"),
),
Commit::new(
String::from("0jkl12"),
String::from("chore(app): do nothing"),
Expand Down Expand Up @@ -418,6 +430,7 @@ mod test {
### Documentation
#### documentation
- update docs
- add some documentation
### Matched (group)
#### group
Expand Down Expand Up @@ -527,6 +540,7 @@ chore(deps): fix broken deps
### Documentation
#### documentation
- update docs
- add some documentation
### Matched (group)
#### group
Expand Down

0 comments on commit 3a717e2

Please sign in to comment.