Skip to content

Commit

Permalink
fix: re-order change types
Browse files Browse the repository at this point in the history
  • Loading branch information
alex-way committed Mar 8, 2024
1 parent c9e271b commit 0b5f0b1
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 10 deletions.
4 changes: 2 additions & 2 deletions docs/src/content/docs/recipes/customizing-changelogs.md
Original file line number Diff line number Diff line change
Expand Up @@ -121,9 +121,9 @@ Now, when running a [`CreateChangeFile`] step (for example, with `knope document

```text
? What type of change is this?
major
minor
patch
minor
major
> note
[↑↓ to move, enter to select, type to filter]
```
4 changes: 2 additions & 2 deletions docs/src/content/docs/tutorials/releasing-basic-projects.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -199,9 +199,9 @@ The terms are from [semantic versioning], so `minor` is what you'll want for a n

```
? What type of change is this?
major
> minor
patch
> minor
major
[↑↓ to move, enter to select, type to filter]
```

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -154,9 +154,9 @@ Next, select `patch` as the change type for each:
> Which packages does this change affect? pizza, calzone
> What type of change is this for pizza? patch
? What type of change is this for calzone?
major
minor
> patch
minor
major
[↑↓ to move, enter to select, type to filter]
```

Expand Down
8 changes: 4 additions & 4 deletions src/step/releases/package.rs
Original file line number Diff line number Diff line change
Expand Up @@ -230,16 +230,16 @@ impl Default for ChangelogSections {
fn default() -> Self {
let mut changelog_sections = IndexMap::new();
changelog_sections.insert(
ChangelogSectionSource::CustomChangeType(CustomChangeType::from("major")),
ChangeLogSectionName::from("Breaking Changes"),
ChangelogSectionSource::CustomChangeType(CustomChangeType::from("patch")),
ChangeLogSectionName::from("Fixes"),
);
changelog_sections.insert(
ChangelogSectionSource::CustomChangeType(CustomChangeType::from("minor")),
ChangeLogSectionName::from("Features"),
);
changelog_sections.insert(
ChangelogSectionSource::CustomChangeType(CustomChangeType::from("patch")),
ChangeLogSectionName::from("Fixes"),
ChangelogSectionSource::CustomChangeType(CustomChangeType::from("major")),
ChangeLogSectionName::from("Breaking Changes"),
);
changelog_sections.insert(CommitFooter::from("Changelog-Note").into(), "Notes".into());
Self(changelog_sections)
Expand Down

0 comments on commit 0b5f0b1

Please sign in to comment.