Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
GitHub source - Do not error on empty repository (#125)
The Catalog Importer's GitHub "Source" is able to read from all repositories of an organisation, searching each repo's tree for files matching specified file path patterns. If a repository contains no matching files, no error is thrown. If a repository is empty, it makes sense for the same optimistic behaviour to be followed. Though GitHub's `Response` type embeds the HTTP Response, we can't rely on the 409 alone (The [API docs](https://docs.github.com/en/rest/git/trees?apiVersion=2022-11-28) describe 409 broadly as "conflict"), so I've opted to string match Issue #68
- Loading branch information