Commit faf7c98e authored by Maxime Roussin-Bélanger's avatar Maxime Roussin-Bélanger Committed by Sander van Harmelen

Add search API (#335)

* Add search API

* Refactor the SearchService a bit…
parent dfc0d4f7
......@@ -296,6 +296,7 @@ type Client struct {
Repositories *RepositoriesService
RepositoryFiles *RepositoryFilesService
Runners *RunnersService
Search *SearchService
Services *ServicesService
Session *SessionService
Settings *SettingsService
......@@ -384,6 +385,7 @@ func newClient(httpClient *http.Client, tokenType tokenType, token string) *Clie
c.RepositoryFiles = &RepositoryFilesService{client: c}
c.Runners = &RunnersService{client: c}
c.Services = &ServicesService{client: c}
c.Search = &SearchService{client: c}
c.Session = &SessionService{client: c}
c.Settings = &SettingsService{client: c}
c.Sidekiq = &SidekiqService{client: c}
......
......@@ -46,6 +46,8 @@ type Note struct {
Name string `json:"name"`
State string `json:"state"`
CreatedAt *time.Time `json:"created_at"`
AvatarURL string `json:"avatar_url"`
WebURL string `json:"web_url"`
} `json:"author"`
System bool `json:"system"`
ExpiresAt *time.Time `json:"expires_at"`
......
This diff is collapsed.
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment