leogdion / PackageListValidator

A tool for validating the SwiftPM Library/Swift Package Index master package list.
MIT License
1 stars 0 forks source link

Validation script and default branches #2

Closed leogdion closed 4 years ago

leogdion commented 4 years ago

as noted by @daveverwer:

/cc @leogdion

I wonder if there's an easy way to make the validation script work with default branches as there was another pull request today that came in with two packages that do not use master.

The GitHub API to get repository details does return a default_branch property which is probably the quickest and easiest way to figure out the correct raw URL to the Package.swift.

No rush for this, but I wanted to log it

referenced in daveverwer/SwiftPMLibrary #271

daveverwer commented 4 years ago

Closing in favour of #15