@@ -15,16 +15,17 @@ var (
15
15
)
16
16
17
17
type RepositoryWithDetails struct {
18
- Owner string
19
- Name string
20
- FullName string
21
- Description string
22
- RepoURL string
23
- DefaultBranch string
24
- Parent string
25
- ParentDeleted bool
26
- Private bool
27
- BehindBy int
18
+ Owner string
19
+ Name string
20
+ FullName string
21
+ Description string
22
+ RepoURL string
23
+ DefaultBranch string
24
+ Parent string
25
+ ParentFullName string
26
+ ParentDeleted bool
27
+ Private bool
28
+ BehindBy int
28
29
}
29
30
30
31
func GetForks (ctx context.Context , client * github.Client ) ([]* RepositoryWithDetails , error ) {
@@ -103,16 +104,17 @@ func SyncBranchWithUpstreamRepo(client *github.Client, repo *RepositoryWithDetai
103
104
104
105
func buildDetails (repo * github.Repository , commit * github.CommitsComparison , code int ) * RepositoryWithDetails {
105
106
return & RepositoryWithDetails {
106
- Owner : repo .GetOwner ().GetLogin (),
107
- Name : repo .GetName (),
108
- FullName : repo .GetFullName (),
109
- Description : repo .GetDescription (),
110
- RepoURL : repo .GetURL (),
111
- DefaultBranch : repo .GetDefaultBranch (),
112
- Parent : repo .GetParent ().GetFullName (),
113
- ParentDeleted : code == http .StatusNotFound ,
114
- Private : repo .GetPrivate (),
115
- BehindBy : commit .GetBehindBy (),
107
+ Owner : repo .GetOwner ().GetLogin (),
108
+ Name : repo .GetName (),
109
+ FullName : repo .GetFullName (),
110
+ Description : repo .GetDescription (),
111
+ RepoURL : repo .GetURL (),
112
+ DefaultBranch : repo .GetDefaultBranch (),
113
+ Parent : repo .GetParent ().GetOwner ().GetLogin (),
114
+ ParentFullName : repo .GetParent ().GetFullName (),
115
+ ParentDeleted : code == http .StatusNotFound ,
116
+ Private : repo .GetPrivate (),
117
+ BehindBy : commit .GetBehindBy (),
116
118
}
117
119
}
118
120
0 commit comments