Before we begin: I'm a newbie, so my apologies
Quick description:
I have a Jira plugin that can track current state of the specified repository in the selected git provider, e.g. GitHub (tracking commits, branches etc.) and display it in JIRA issue view
I need to check if the repository I'm adding to the plugin is private or public. If private, I need to request credentials for it.
Is there a way to check this condition in Java (e.g. via JGit) ?
P.S. I'm adding repo to my plugin through it's HTTPS link