History

assure changelog picks up safety bumps as well (#222)

Sebastian Thiel committed 5 years ago

Commit f2a497b1 parent 7496ba32 files · +14 −2Browse files

Showing the changes to cargo-smart-release/src/command (1 of 2 files). Show all

Unified · Split

cargo-smart-release/src/command/changelog.rs+1−2
@@ -5,7 +5,6 @@ use crate::{ · 4 unmodified lines
55 changelog::write::{Components, Linkables},
66 command::changelog::Options,
77 git,
8− traverse::dependency,
98 utils::{package_by_name, will},
109 version::BumpSpec,
1110 ChangeLog,
@@ -28,7 +27,7 @@ pub fn changelog(opts: Options, crates: Vec<String>) -> anyhow::Result<()> { · 16 unmodified lines
2827 let bump_only_when_needed = true;
2928 crate::traverse::dependencies(&ctx, add_production_crates, bump_only_when_needed)?
3029 .into_iter()
31− .filter_map(|d| matches!(d.mode, dependency::Mode::ToBePublished { .. }).then(|| d.package))
30+ .filter_map(|d| d.mode.has_version_adjustment().then(|| d.package))
3231 .collect()
3332 } else {
3433 ctx.crate_names

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t