Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update/20240624 #6

Merged
merged 19 commits into from
Jun 24, 2024
Merged

Update/20240624 #6

merged 19 commits into from
Jun 24, 2024

Conversation

krogon
Copy link
Owner

@krogon krogon commented Jun 24, 2024

@krogon krogon added the minor label Jun 24, 2024
gopkg.in/yaml.v3 v3.0.1 // indirect
)

replace github.com/k-phoen/semver-release-action => github.com/krogon/semver-release-action v1.3.2-0.20210326053057-7d547fe0e0a5

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🚫 [golangci] reported by reviewdog 🐶
replacement are not allowed: github.com/k-phoen/semver-release-action (gomoddirectives)

@@ -6,7 +6,7 @@ import (
"strconv"
"strings"

version "github.com/blang/semver"
version "github.com/blang/semver/v4"

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🚫 [golangci] reported by reviewdog 🐶
import 'github.com/blang/semver/v4' is not allowed from list 'Main' (depguard)

@@ -6,7 +6,7 @@ import (

"github.com/K-Phoen/semver-release-action/internal/pkg/action"
"github.com/K-Phoen/semver-release-action/internal/pkg/semver"
"github.com/google/go-github/github"
"github.com/google/go-github/v45/github"

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🚫 [golangci] reported by reviewdog 🐶
import 'github.com/google/go-github/v45/github' is not allowed from list 'Main' (depguard)

"strings"

"github.com/K-Phoen/semver-release-action/internal/pkg/action"
"github.com/blang/semver"
"github.com/google/go-github/github"
"github.com/blang/semver/v4"

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🚫 [golangci] reported by reviewdog 🐶
import 'github.com/blang/semver/v4' is not allowed from list 'Main' (depguard)

"github.com/blang/semver"
"github.com/google/go-github/github"
"github.com/blang/semver/v4"
"github.com/google/go-github/v45/github"

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🚫 [golangci] reported by reviewdog 🐶
import 'github.com/google/go-github/v45/github' is not allowed from list 'Main' (depguard)

@@ -6,7 +6,7 @@ import (
"strings"

"github.com/K-Phoen/semver-release-action/internal/pkg/action"
"github.com/google/go-github/v28/github"
"github.com/google/go-github/v45/github"

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🚫 [golangci] reported by reviewdog 🐶
import 'github.com/google/go-github/v45/github' is not allowed from list 'Main' (depguard)

@@ -33,18 +43,26 @@
owner := parts[0]
repo := parts[1]

refs, response, err := client.Git.ListRefs(ctx, owner, repo, &github.ReferenceListOptions{
Type: "tag",
refs, response, err := client.Git.ListMatchingRefs(ctx, owner, repo, &github.ReferenceListOptions{

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🚫 [golangci] reported by reviewdog 🐶
github.ReferenceListOptions is missing field ListOptions (exhaustruct)

Use: "latest-tag [REPOSITORY] [GH_TOKEN]",
Args: cobra.ExactArgs(2),
Use: "latest-tag [REPOSITORY] [GH_TOKEN] [TAG_FORMAT]",
Args: cobra.ExactArgs(3),

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🚫 [golangci] reported by reviewdog 🐶
Magic number: 3, in detected (mnd)

version, err := semver.ParseTolerant(strings.Replace(*ref.Ref, "refs/tags/", "", 1))
versionStr := strings.Replace(*ref.Ref, "refs/tags/", "", 1)
formatValid, _ := regexp.MatchString(tagFormatRegex, versionStr)
if !formatValid {

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🚫 [golangci] reported by reviewdog 🐶
only one cuddle assignment allowed before if statement (wsl)

if !formatValid {
continue
}
version, err := semver.ParseTolerant(versionStr)

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🚫 [golangci] reported by reviewdog 🐶
assignments should only be cuddled with other assignments (wsl)

@krogon krogon merged commit ae370d2 into master Jun 24, 2024
4 of 5 checks passed
@krogon krogon deleted the update/20240624 branch June 24, 2024 22:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants