Skip to content

feat: Checkout tags as well as branches when cloning into scratch#1482

Open
tpoliaw wants to merge 2 commits intomainfrom
checkout-tag
Open

feat: Checkout tags as well as branches when cloning into scratch#1482
tpoliaw wants to merge 2 commits intomainfrom
checkout-tag

Conversation

@tpoliaw
Copy link
Copy Markdown
Contributor

@tpoliaw tpoliaw commented Apr 10, 2026

The branch field in the config file can now be set to the value of a
tag. While it could be confusing to use 'branch' for both, it mirrors
the behaviour of the --branch flag when cloning repositories with the
git CLI.

In a slight change in behaviour, the branch field is now only used when
first cloning a repository - if it already exists in the scratch area it
will be left in the same state. This is to avoid the ambiguity of how
tags should behave when the repo has been modified since being cloned.

@tpoliaw tpoliaw requested a review from a team as a code owner April 10, 2026 14:00
@codecov
Copy link
Copy Markdown

codecov bot commented Apr 10, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 95.19%. Comparing base (65b7e75) to head (d0178b1).

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #1482      +/-   ##
==========================================
- Coverage   95.21%   95.19%   -0.02%     
==========================================
  Files          43       43              
  Lines        3132     3123       -9     
==========================================
- Hits         2982     2973       -9     
  Misses        150      150              

☔ 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.

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.

1 participant