Add branch field in search result for each file (#854)

rkapoor10-patch-1
Shubham Agrawal 2023-12-01 08:23:23 +00:00 committed by Harness
parent d85ed52bc5
commit d5176982f5
1 changed files with 6 additions and 5 deletions

View File

@ -39,11 +39,12 @@ type (
}
FileMatch struct {
FileName string `json:"file_name"`
RepoID int64 `json:"-"`
RepoPath string `json:"repo_path"`
Language string `json:"language"`
Matches []Match `json:"matches"`
FileName string `json:"file_name"`
RepoID int64 `json:"-"`
RepoPath string `json:"repo_path"`
RepoBranch string `json:"repo_branch"`
Language string `json:"language"`
Matches []Match `json:"matches"`
}
// Match holds the per line data.