Skip to content

Added scopes support to the configuration#161

Open
philocalyst wants to merge 7 commits intocococonscious:mainfrom
philocalyst:main
Open

Added scopes support to the configuration#161
philocalyst wants to merge 7 commits intocococonscious:mainfrom
philocalyst:main

Conversation

@philocalyst
Copy link

I think in the future this should be the default approach as it's more declarative, and works cleanly on repositories without conventinoal commit... commit history

@cococonscious cococonscious mentioned this pull request Dec 10, 2025
@codecov
Copy link

codecov bot commented Dec 10, 2025

Codecov Report

✅ All modified and coverable lines are covered by tests.

Files with missing lines Coverage Δ
src/lib/config.rs 100.00% <100.00%> (ø)
src/lib/questions.rs 97.35% <100.00%> (+0.16%) ⬆️
🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

Copy link
Owner

@cococonscious cococonscious left a comment

Choose a reason for hiding this comment

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

Looks good, there's just a small feature I want with this, as commented.
By the way, what would you think about also adding a configuration for enforcing the preconfigured scopes?

#[derive(Clone, Debug, Deserialize, PartialEq, Eq)]
pub struct CommitScope {
pub name: String,
pub description: Option<String>,
Copy link
Owner

Choose a reason for hiding this comment

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

I think a description is a good idea, it would also help with differentiating preconfigured and detected types at a glance, but to do that the description would need to be visible in the multiselect prompt, perhaps display it something like " - "?

@cococonscious
Copy link
Owner

@philocalyst I think you've accidentally overridden your scope configuration changes with the gix ones

@philocalyst
Copy link
Author

philocalyst commented Dec 19, 2025 via email

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.

2 participants