jfrog / froggit-go

Froggit-Go is a universal Go library, allowing to perform actions on VCS providers.
https://pkg.go.dev/github.com/jfrog/froggit-go
Apache License 2.0
44 stars 17 forks source link

How to interact with and manage the remote repo or vcs provider via ssh key instead of user/pass? #47

Open atljoseph opened 2 years ago

atljoseph commented 2 years ago

Cool library! Got a question not addressed in the docs or the source…

Setup: I use Bitbucket cloud. Seeing that the example requires a username and password for interacting with the “remote”. Seeing there is a way to add ash keys to repos, which seems to be configuring some access on the “remote”.

Question: Curious if there is a way to interact with the “remote” via a specific ssh key that is present on my computer instead of username and password. Not seeing that reflected in the documentation.

Also, there is a comment typo in the file defining how bitbucket cloud will fulfill the interface. List open pull requests seems to have the same comment as create pull request.

Thanks!

atljoseph commented 2 years ago

Might use by this in a script that bumps and self-aligns repo/mod dependency versions across multiple repos.

yahavi commented 2 years ago

@atljoseph thanks for using the Froggit Go library. We love code contributions! Would you consider adding this feature with a pull request?