Skip to content

Commit

Permalink
refactor: move gitoutput pattern to gitoutput
Browse files Browse the repository at this point in the history
  • Loading branch information
HandOfGod94 committed Oct 23, 2023
1 parent e9a0d3f commit f0fd4fa
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
3 changes: 0 additions & 3 deletions pkg/jira_changelog/git/commit_populator.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ import (
"context"
"fmt"
"os/exec"
"regexp"
"time"
)

Expand All @@ -14,8 +13,6 @@ type Commit struct {
Sha string
}

var gitoutputPattern = regexp.MustCompile(`^\((\d+)\)\s+\{(\w+)\}\s*(.*)`)

type commitPopulator struct {
fromRef string
toRef string
Expand Down
3 changes: 3 additions & 0 deletions pkg/jira_changelog/git/git_output.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,16 @@ package git

import (
"fmt"
"regexp"
"strconv"
"strings"
"time"

"golang.org/x/exp/slog"
)

var gitoutputPattern = regexp.MustCompile(`^\((\d+)\)\s+\{(\w+)\}\s*(.*)`)

type GitOutput string

func (gt GitOutput) Commits() ([]Commit, error) {
Expand Down

0 comments on commit f0fd4fa

Please sign in to comment.