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

remove unnecessary push when rendering to local path #272

Merged
merged 1 commit into from
Mar 27, 2024

Conversation

krancour
Copy link
Member

No description provided.

Copy link

netlify bot commented Mar 27, 2024

Deploy Preview for docs-kargo-render-akuity-io ready!

Name Link
🔨 Latest commit 0c83ba3
🔍 Latest deploy log https://app.netlify.com/sites/docs-kargo-render-akuity-io/deploys/66043605e9b7cb00070d4dcc
😎 Deploy Preview https://deploy-preview-272.bookkeeper.akuity.io
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

Comment on lines +113 to +119
if localTargetBranchExists {
logger.Debug("target branch exists locally")
if err = rc.repo.Checkout(rc.request.TargetBranch); err != nil {
return fmt.Errorf("error checking out target branch: %w", err)
}
logger.Debug("checked out target branch")
} else {
Copy link
Member Author

@krancour krancour Mar 27, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Added for good measure; instead of blindly creating an orphan branch.

Comment on lines +127 to +129
if rc.request.LocalOutPath != "" {
return nil // There's no need to push the new branch to the remote
}
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is the important bit.

Copy link

codecov bot commented Mar 27, 2024

Codecov Report

Attention: Patch coverage is 25.00000% with 27 lines in your changes are missing coverage. Please review.

Project coverage is 27.75%. Comparing base (7af36ba) to head (0c83ba3).

Files Patch % Lines
branches.go 0.00% 23 Missing ⚠️
pkg/git/git.go 69.23% 3 Missing and 1 partial ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main     #272      +/-   ##
==========================================
+ Coverage   27.72%   27.75%   +0.03%     
==========================================
  Files          22       22              
  Lines        2103     2133      +30     
==========================================
+ Hits          583      592       +9     
- Misses       1441     1461      +20     
- Partials       79       80       +1     

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

Copy link
Contributor

@hiddeco hiddeco left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Based on my current (new-found) understanding of how this (should) work(s). This appears to address the issue.

@krancour krancour merged commit 62c613f into akuity:main Mar 27, 2024
12 of 13 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants