Skip to content

dvc commit: add skip option (s) to interactive prompt#10976

Open
Western-1 wants to merge 3 commits intotreeverse:mainfrom
Western-1:feature/commit-skip-option
Open

dvc commit: add skip option (s) to interactive prompt#10976
Western-1 wants to merge 3 commits intotreeverse:mainfrom
Western-1:feature/commit-skip-option

Conversation

@Western-1
Copy link

Description

This PR adds a skip (s) option to the interactive prompt during dvc commit.
Previously, users could only confirm (y) or abort (n), which cancelled the entire process.
Now, users can skip specific stages while continuing to commit others in the queue.

Implementation details:

  • Replaced prompt.confirm with ui.prompt to support multiple choices (y, n, s).
  • Added logic to commit function to handle the skip (s) action by continuing the loop.

Related Issue

Fixes #10974

Type of changes

  • New feature (non-breaking change which adds functionality)

Checklist

@github-project-automation github-project-automation bot moved this to Backlog in DVC Jan 21, 2026
@codecov
Copy link

codecov bot commented Jan 21, 2026

Codecov Report

❌ Patch coverage is 80.72289% with 48 lines in your changes missing coverage. Please review.
✅ Project coverage is 91.00%. Comparing base (2431ec6) to head (ce37c5b).
⚠️ Report is 188 commits behind head on main.

Files with missing lines Patch % Lines
dvc/repo/commit.py 46.66% 45 Missing and 3 partials ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main   #10976      +/-   ##
==========================================
+ Coverage   90.68%   91.00%   +0.31%     
==========================================
  Files         504      505       +1     
  Lines       39795    41108    +1313     
  Branches     3141     3258     +117     
==========================================
+ Hits        36087    37409    +1322     
- Misses       3042     3062      +20     
+ Partials      666      637      -29     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@Western-1 Western-1 marked this pull request as draft January 21, 2026 09:33
@Western-1 Western-1 marked this pull request as ready for review January 21, 2026 10:28
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.

dvc commit should support skip stages

1 participant