Skip to content

Commit

Permalink
🎨 检查库名和包名的一致性
Browse files Browse the repository at this point in the history
  • Loading branch information
88250 committed Nov 27, 2024
1 parent e64c638 commit 5afb507
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion actions/check/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -278,6 +278,9 @@ func checkRepo(

attrsCheckResult.Name.Pass = attrsCheckResult.Name.Unique &&
attrsCheckResult.Name.Valid
if attrsCheckResult.Name.Value != repoName {
attrsCheckResult.Name.Pass = false
}

attrsCheckResult.Pass = attrsCheckResult.Name.Pass &&
attrsCheckResult.Version.Pass &&
Expand Down Expand Up @@ -713,6 +716,5 @@ func checkManifestAttrs(fileURL string) (attrsCheckResult *Attrs, err error) {
attrsCheckResult.URL.Pass = true
}
}

return
}

0 comments on commit 5afb507

Please sign in to comment.