forked from redhat-performance/tooling-curator
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Adds an additional field to each repo dictionary in the JSON consisting of top 3 contributor's GitHub id and the URL - which can both be used to render contacts on the frontend. This partially implements redhat-performance#5 Signed-off-by: Sai Sindhur Malleni <[email protected]>
- Loading branch information
Showing
5 changed files
with
46 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,24 @@ | ||
package types | ||
|
||
type Repo struct { | ||
Org string `json:"org"` | ||
Name string `json:"name"` | ||
Description string `json:"description"` | ||
URL string `json:"url"` | ||
Labels []string `json:"labels"` | ||
Org string `json:"org"` | ||
Name string `json:"name"` | ||
Description string `json:"description"` | ||
URL string `json:"url"` | ||
Labels []string `json:"labels"` | ||
Contacts []Contact `json:"contacts"` | ||
} | ||
|
||
type RepoData struct { | ||
Repos []Repo `json:"repos"` | ||
} | ||
|
||
type Contact struct { | ||
Username string `json:"username"` | ||
URL string `json:"htmlurl"` | ||
} | ||
|
||
type ContactData struct { | ||
Contacts []Contact `json:"contact"` | ||
} | ||
|