File tree Expand file tree Collapse file tree 2 files changed +5
-2
lines changed Expand file tree Collapse file tree 2 files changed +5
-2
lines changed Original file line number Diff line number Diff line change @@ -108,8 +108,8 @@ func (app *App) watchTargets() (err error) {
108
108
for i , t := range app .targets {
109
109
zap .L ().Debug ("assigned target" , zap .String ("url" , t .RepoURL ))
110
110
targetRepos [i ] = gitwatch.Repository {
111
- URL : t .RepoURL ,
112
- // Branch: t.Branch, // TODO: branches
111
+ URL : t .RepoURL ,
112
+ Branch : t .Branch ,
113
113
Directory : t .Name ,
114
114
}
115
115
}
Original file line number Diff line number Diff line change @@ -21,6 +21,9 @@ type Target struct {
21
21
// The repository URL to watch for changes, either http or ssh.
22
22
RepoURL string `required:"true" json:"url"`
23
23
24
+ // The git branch to use
25
+ Branch string `json:"branch"`
26
+
24
27
// The command to run on each new Git commit
25
28
Up []string `required:"true" json:"up"`
26
29
You can’t perform that action at this time.
0 commit comments