Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: github adapter only applies to URLs formatted as expected (#1708)
- fixes part of #1607 In the absence of other hints (e.g. a Controller object associated to another plugin), all URLs from `github.com` were being processed by the `GithubPlugin`, to create a Github Data Portal adapter. With this PR, `GithubPlugin` only handles the URL if it has the expected format "https://github.com/user_or_org/repo", and "https://github.com/user_or_org", otherwise it is passed other to be treated as a plain URL. I also made some refactorings along the way, to have more readable and less nested code. As tests github portal are currently skipped, I checked manually that I have not broken this functionality.
- Loading branch information