Skip to content

refactor: share the discovery collection and print bump types through Display - #1313

Merged
BryanFRD merged 1 commit into
mainfrom
refactor/discovery-and-strategy-display
Oct 10, 2026
Merged

BryanFRD merged 1 commit into
mainfrom
refactor/discovery-and-strategy-display

Conversation

@BryanFRD

Copy link
Copy Markdown
Contributor

Closes #1312

  • discover and discover_node go through one collect_sorted
  • api_check and plan_interactive use BumpType's Display instead of Debug plus lowercase, same output

No behaviour change.

@BryanFRD
BryanFRD enabled auto-merge (squash) October 10, 2026 15:23

@ferrfleet ferrfleet Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

The BumpType Display impl (src/conventional_commits.rs:14) prints the same lowercase strings the old Debug + to_lowercase() produced, so the output is unchanged. collect_sorted keeps the same filter, sort and dedup behaviour for both entry points.

Nit: src/api_check/tests.rs:72 still builds commit_bump with format!("{commit_bump:?}").to_lowercase(). Switch it to commit_bump.to_string() so the test fixture uses the same path as build_report.

@BryanFRD
BryanFRD merged commit f267a1d into main Oct 10, 2026
32 checks passed
@BryanFRD
BryanFRD deleted the refactor/discovery-and-strategy-display branch October 10, 2026 15:25
ferrflow Bot added a commit that referenced this pull request Oct 10, 2026
## [7.30.1] - 2026-10-10

### Refactoring

- refactor: share the discovery collection and print bump types through Display (#1313)
- refactor(config): derive Default for PackageConfig and drop the repeated literals (#1311)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Small leftovers: duplicated discovery collection and Debug-lowercase bump names

1 participant