mirror of
https://github.com/jesseduffield/lazygit.git
synced 2025-05-21 22:43:27 +02:00
Cleanup: reformat to make the test setup code easier to read
- break it to separate lines - use backticks for pattern so we need less quoting - don't unnecessarily quote forward slash in pattern
This commit is contained in:
parent
e29ddf46d2
commit
87d5da511e
@ -10,7 +10,12 @@ var CommitWithPrefix = NewIntegrationTest(NewIntegrationTestArgs{
|
|||||||
ExtraCmdArgs: []string{},
|
ExtraCmdArgs: []string{},
|
||||||
Skip: false,
|
Skip: false,
|
||||||
SetupConfig: func(cfg *config.AppConfig) {
|
SetupConfig: func(cfg *config.AppConfig) {
|
||||||
cfg.GetUserConfig().Git.CommitPrefixes = map[string]config.CommitPrefixConfig{"repo": {Pattern: "^\\w+\\/(\\w+-\\w+).*", Replace: "[$1]: "}}
|
cfg.GetUserConfig().Git.CommitPrefixes = map[string]config.CommitPrefixConfig{
|
||||||
|
"repo": {
|
||||||
|
Pattern: `^\w+/(\w+-\w+).*`,
|
||||||
|
Replace: "[$1]: ",
|
||||||
|
},
|
||||||
|
}
|
||||||
},
|
},
|
||||||
SetupRepo: func(shell *Shell) {
|
SetupRepo: func(shell *Shell) {
|
||||||
shell.NewBranch("feature/TEST-001")
|
shell.NewBranch("feature/TEST-001")
|
||||||
|
Loading…
x
Reference in New Issue
Block a user