feat(CENG-689) Add generic upstream support#164
Merged
BartoszBlizniak merged 2 commits intomasterfrom Feb 13, 2026
Merged
Conversation
There was a problem hiding this comment.
Pull request overview
This PR adds support for Generic upstream repositories to the Terraform provider, allowing users to configure generic upstream sources like Gradle distributions. The changes include updating the cloudsmith-api-go dependency from v0.0.50 to v0.0.54, implementing Generic upstream CRUD operations, adding comprehensive test coverage, updating documentation, and fixing a bug in the team resource where the description field now correctly uses nullableString instead of optionalString.
Changes:
- Added Generic upstream support with all CRUD operations (Create, Read, Update, Delete)
- Updated cloudsmith-api-go dependency to v0.0.54 to support Generic upstream API
- Fixed team resource description field to use
nullableStringfor proper API compatibility
Reviewed changes
Copilot reviewed 5 out of 6 changed files in this pull request and generated no comments.
Show a summary per file
| File | Description |
|---|---|
| go.mod | Updated cloudsmith-api-go dependency from v0.0.50 to v0.0.54 |
| go.sum | Added checksums for cloudsmith-api-go v0.0.54 |
| docs/resources/repository_upstream.md | Added Generic upstream documentation with example and updated parameter table |
| cloudsmith/resource_team.go | Fixed description field to use nullableString instead of optionalString for proper nullable handling |
| cloudsmith/resource_repository_upstream.go | Added Generic constant, UpstreamPrefix constant, Generic upstream CRUD operations, and schema definition for upstream_prefix field |
| cloudsmith/resource_repository_upstream_test.go | Added comprehensive test coverage for Generic upstream with basic, update, and import scenarios |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
apoclyps
approved these changes
Feb 13, 2026
colinmoynes
approved these changes
Feb 13, 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.
Add
Genericupstream support to the provider.Example usage: