You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We use HEAD requests to a path on github.com to determine whether there are FSH folders in a repo. If the repo is empty, these requests will return 200 even though nothing is there.
To resolve, Util.github_repo_exists should be modified to make sure the repo isn't empty.
The text was updated successfully, but these errors were encountered:
Actually using the API to get the list of branches may mitigate this in practice, but regardless it should be cleaned up so Util.github_path_exists does what it says on the tin.
If you use the GH API $org/repos call to get the list of repos from an org, you can look at the size property of the repo. It will be 0 if it is an empty repo. You may also want to consider the archived and disabled flags.
We use
HEAD
requests to a path on github.com to determine whether there are FSH folders in a repo. If the repo is empty, these requests will return200
even though nothing is there.To resolve,
Util.github_repo_exists
should be modified to make sure the repo isn't empty.The text was updated successfully, but these errors were encountered: