From 75921f205e321a8e4a53a9462bc83511b436d586 Mon Sep 17 00:00:00 2001 From: jerensl <54782057+jerensl@users.noreply.github.com> Date: Wed, 30 Oct 2024 15:31:30 +0800 Subject: [PATCH] ci: remove unnecesary struct Signed-off-by: jerensl <54782057+jerensl@users.noreply.github.com> --- utils/utils.go | 13 ------------- 1 file changed, 13 deletions(-) diff --git a/utils/utils.go b/utils/utils.go index acd642ff..7c62df50 100644 --- a/utils/utils.go +++ b/utils/utils.go @@ -240,19 +240,6 @@ func GetLatestReleaseTagsSorted(org string, repo string) ([]string, error) { return versions, nil } -type Commit struct { - SHA string `json:"sha"` - URL string `json:"url"` -} - -type ReleaseTags struct { - Name string `json:"name"` - Commit Commit `json:"commit"` - TarballURL string `json:"tarball_url"` - ZipballURL string `json:"zipball_url"` - NodeID string `json:"node_id"` -} - // Gets release tag from github for a given org name, repo name(in that org) and tag func GetLatestReleaseTagCommitSHA(org string, repo string) (string, error) { url := fmt.Sprintf("https://github.com/%s/%s/tags", org, repo)