Skip to content

Commit 04a1ce0

Browse files
committed
remove unused regex
1 parent c11da41 commit 04a1ce0

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

backport/backport.go

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,16 +4,13 @@ import (
44
"context"
55
"fmt"
66
"log/slog"
7-
"regexp"
87
"strings"
98
"time"
109

1110
"github.com/google/go-github/v50/github"
1211
"github.com/grafana/grafana-github-actions-go/pkg/ghutil"
1312
)
1413

15-
var semverRegex = regexp.MustCompile(`^(?P<major>0|[1-9]\d*)\.(?P<minor>0|[1-9]\d*)\.(?P<patch>x|0|[1-9]\d*)(?:-(?P<prerelease>(?:0|[1-9]\d*|\d*[a-zA-Z-][0-9a-zA-Z-]*)(?:\.(?:0|[1-9]\d*|\d*[a-zA-Z-][0-9a-zA-Z-]*))*))?(?:\+(?P<buildmetadata>[0-9a-zA-Z-]+(?:\.[0-9a-zA-Z-]+)*))?$`)
16-
1714
type BackportOpts struct {
1815
// PullRequestNumber is the integer ID of the pull request being backported
1916
PullRequestNumber int

0 commit comments

Comments
 (0)