DX | 20-07-2026 | Release#192
Merged
Merged
Conversation
… support for variant branches in Entry and Query classes - Entry Variants Branch Support - Added support for passing an optional `branch` parameter to the `.Variant()` method in both `Entry` and `Query` classes. - If the branch parameter is null or empty, it automatically falls back to the Stack's configured branch or "main". - Added comprehensive unit and integration tests for Entry and Query variant branch logic.
chore: back-merge master into development
Back merge
… utilities - Extract duplicated branch-resolution logic into a private ResolveBranch() method in both Entry and Query, eliminating inline ternary repetition - Add DefaultBranch = "main" constant shared across Variant overloads - Promote Query._Headers to internal visibility to remove reflection in unit tests - Introduce UnitTestHelpers.GetMockClient() shared helper, removing duplicate private factory methods from EntryUnitTests and QueryUnitTests - Strengthen integration test assertions: use ThrowsAnyAsync and assert that exception message contains "branch" rather than just checking non-null - Replace hard-coded "development" branch strings with TestDataHelper.BranchUid - Bump contentstack.utils dependency from 2.0.0 to 2.0.1 Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
feat: Add support for variant branches in Entry and Query classes
🔒 Security Scan Results
⏱️ SLA Breach Summary
✅ BUILD PASSED - All security checks passed |
cs-raj
approved these changes
Jul 20, 2026
harshitha-cstk
approved these changes
Jul 20, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
No description provided.