Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Exporter: omit git_provider only for well-known Git URLs #3216

Merged
merged 1 commit into from
Feb 8, 2024

Conversation

alexott
Copy link
Contributor

@alexott alexott commented Feb 5, 2024

Changes

The git_provider field is marked as computed because we're detecting it for well-known Git providers (GitHub, Azure DevOps, ...). But because of this it was omitted from the generated code even for other Git providers. This PR fixes this issue.

Tests

  • make test run locally
  • relevant change in docs/ folder
  • covered with integration tests in internal/acceptance
  • relevant acceptance tests are passing
  • using Go SDK

The `git_provider` field is marked as `computed` because we're detecting it for well-known
Git providers (GitHub, Azure DevOps, ...).  But because of this it was omitted from the
generated code even for other Git providers.  This PR fixes this issue.
@alexott alexott requested review from a team as code owners February 5, 2024 16:25
@alexott alexott requested review from hectorcast-db and removed request for a team February 5, 2024 16:25
@codecov-commenter
Copy link

Codecov Report

All modified and coverable lines are covered by tests ✅

Comparison is base (662a0bd) 83.60% compared to head (38b1fee) 83.58%.

Additional details and impacted files

Impacted file tree graph

@@            Coverage Diff             @@
##             main    #3216      +/-   ##
==========================================
- Coverage   83.60%   83.58%   -0.03%     
==========================================
  Files         169      169              
  Lines       15094    15098       +4     
==========================================
  Hits        12619    12619              
- Misses       1735     1737       +2     
- Partials      740      742       +2     
Files Coverage Δ
exporter/importables.go 78.76% <100.00%> (+0.06%) ⬆️

... and 2 files with indirect coverage changes

@alexott alexott added the exporter TF configuration generator label Feb 7, 2024
@tanmay-db tanmay-db added this pull request to the merge queue Feb 8, 2024
Merged via the queue into main with commit f0f5c37 Feb 8, 2024
5 checks passed
@tanmay-db tanmay-db deleted the export-dont-omit-git-provider branch February 8, 2024 13:43
@edwardfeng-db edwardfeng-db mentioned this pull request Feb 8, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
exporter TF configuration generator
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants