Skip to content

Commit

Permalink
fix: typo
Browse files Browse the repository at this point in the history
  • Loading branch information
snaka committed Sep 20, 2024
1 parent e29b66f commit a683c02
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions semver.go
Original file line number Diff line number Diff line change
Expand Up @@ -34,9 +34,9 @@ func (sv *semv) GuessNext(labels []string) *semv {
var isMajor, isMinor bool
for _, l := range labels {
switch l {
case autoLableName + ":major", autoLableName + "/major":
case autoLabelName + ":major", autoLabelName + "/major":
isMajor = true
case autoLableName + ":minor", autoLableName + "/minor":
case autoLabelName + ":minor", autoLabelName + "/minor":
isMinor = true
}
}
Expand Down
6 changes: 3 additions & 3 deletions tagpr.go
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ const (
defaultReleaseBranch = "main"
autoCommitMessage = "[tagpr] prepare for the next release"
autoChangelogMessage = "[tagpr] update CHANGELOG.md"
autoLableName = "tagpr"
autoLabelName = "tagpr"
branchPrefix = "tagpr-from-"
)

Expand Down Expand Up @@ -111,7 +111,7 @@ func isTagPR(pr *github.PullRequest) bool {
return false
}
for _, label := range pr.Labels {
if label.GetName() == autoLableName {
if label.GetName() == autoLabelName {
return true
}
}
Expand Down Expand Up @@ -473,7 +473,7 @@ OUT:
showGHError(err, resp)
return err
}
addingLabels = append(addingLabels, autoLableName)
addingLabels = append(addingLabels, autoLabelName)
_, resp, err = tp.gh.Issues.AddLabelsToIssue(
ctx, tp.owner, tp.repo, *pr.Number, addingLabels)
if err != nil {
Expand Down

0 comments on commit a683c02

Please sign in to comment.