github: don't return releases on wrong branch

if a branch is specified, but a release cannot be found on that branch, return an error instead of simply the latest release

Signed-off-by: unilock <unilock@fennet.rentals>
This commit is contained in:
unilock
2023-05-31 20:54:35 -04:00
parent 01945213d7
commit c96a6a30ad
2 changed files with 11 additions and 5 deletions

View File

@@ -7,6 +7,7 @@ import (
"github.com/packwiz/packwiz/core"
)
// TODO: allow setting github api key via env variable
const ghApiServer = "api.github.com"
type ghApiClient struct {