File tree 2 files changed +5
-1
lines changed 2 files changed +5
-1
lines changed Original file line number Diff line number Diff line change @@ -12,6 +12,7 @@ type Repository interface {
12
12
CheckWorkspaceChanges ()
13
13
Commit (message string )
14
14
Amend (message string )
15
+ BranchName () string
15
16
}
16
17
17
18
type TemplateManager interface {
@@ -59,7 +60,9 @@ func (cmfInstance *cmf) CommitChanges() {
59
60
cmfFile , _ = cmfInstance .fs .GetFileFromVirtualFS (defaultYamlFile )
60
61
}
61
62
62
- extra := map [string ]string {}
63
+ extra := map [string ]string {
64
+ "BRANCH_NAME" : cmfInstance .repository .BranchName (),
65
+ }
63
66
message , _ := cmfInstance .templateManager .Run (cmfFile , extra )
64
67
cmfInstance .repository .Commit (message )
65
68
}
Original file line number Diff line number Diff line change @@ -17,6 +17,7 @@ type Git interface {
17
17
CheckWorkspaceChanges ()
18
18
Commit (message string )
19
19
Amend (message string )
20
+ BranchName () string
20
21
}
21
22
22
23
func commit (cmdGit * exec.Cmd , message ... interface {}) {
You can’t perform that action at this time.
0 commit comments