Skip to content

Commit

Permalink
Support dots in branch name
Browse files Browse the repository at this point in the history
Reference: #177
commit-id:d15eee74
  • Loading branch information
kwapik authored and Eitan Joffe committed Jan 19, 2022
1 parent 1606b8f commit 464cc51
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion github/githubclient/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -172,7 +172,7 @@ type client struct {
api *githubv4.Client
}

var BranchNameRegex = regexp.MustCompile(`pr/[a-zA-Z0-9_\-]+/([a-zA-Z0-9_\-/]+)/([a-f0-9]{8})$`)
var BranchNameRegex = regexp.MustCompile(`pr/[a-zA-Z0-9_\-]+/([a-zA-Z0-9_\-/\.]+)/([a-f0-9]{8})$`)

func (c *client) GetInfo(ctx context.Context, gitcmd git.GitInterface) *github.GitHubInfo {
if c.config.User.LogGitHubCalls {
Expand Down

0 comments on commit 464cc51

Please sign in to comment.