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

fix: Kustomization migration assumes git creds is needed when repo is public #7

Open
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

MateSousa
Copy link

@MateSousa MateSousa commented Jul 15, 2023

#6

The IsPrivateRepository function is added to the utils.go file. This function checks if a given repository is public or private by utilizing the GitHub API. It takes a repository string as input, splits it to extract the owner and name, and then uses the GitHub client to fetch the repository information. The function returns a boolean value indicating whether the repository is private or not, along with any error that may occur during the API call.
@MateSousa MateSousa changed the title 📦 chore(go.mod): github.com/google/go-github/v53 fix: Kustomization migration assumes git creds is needed when repo is public Jul 15, 2023
@mitchross
Copy link

Can you merge this? I need this functionality. Thanks!

@MateSousa
Copy link
Author

@mitchross we need wait for a review .
@christianh814 can you help us?

Copy link
Member

@nitishfy nitishfy left a comment

Choose a reason for hiding this comment

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

With this PR getting merged, can you verify if this issue still exists?

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.

3 participants