We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c11da41 commit 04a1ce0Copy full SHA for 04a1ce0
backport/backport.go
@@ -4,16 +4,13 @@ import (
4
"context"
5
"fmt"
6
"log/slog"
7
- "regexp"
8
"strings"
9
"time"
10
11
"github.com/google/go-github/v50/github"
12
"github.com/grafana/grafana-github-actions-go/pkg/ghutil"
13
)
14
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
-
17
type BackportOpts struct {
18
// PullRequestNumber is the integer ID of the pull request being backported
19
PullRequestNumber int
0 commit comments