Skip to content

Commit 5217741

Browse files
committed
Output GitHub properties for repos and pull requests
These were missing and are needed for relying less on hardcoded keys and moving towards a property-based system. Signed-off-by: Juan Antonio Osorio <[email protected]>
1 parent 9f35e1c commit 5217741

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

internal/providers/github/properties/pull_request.go

+1
Original file line numberDiff line numberDiff line change
@@ -212,5 +212,6 @@ func PullRequestV1FromProperties(props *properties.Properties) (*pbinternal.Pull
212212
Action: props.GetProperty(PullPropertyAction).GetString(),
213213
BaseCloneUrl: props.GetProperty(PullPropertyBaseCloneURL).GetString(),
214214
TargetCloneUrl: props.GetProperty(PullPropertyTargetCloneURL).GetString(),
215+
Properties: props.ToProtoStruct(),
215216
}, nil
216217
}

internal/providers/github/properties/repository.go

+1
Original file line numberDiff line numberDiff line change
@@ -225,6 +225,7 @@ func RepoV1FromProperties(repoProperties *properties.Properties) (*minderv1.Repo
225225
IsFork: isFork,
226226
DefaultBranch: repoProperties.GetProperty(RepoPropertyDefaultBranch).GetString(),
227227
License: repoProperties.GetProperty(RepoPropertyLicense).GetString(),
228+
Properties: repoProperties.ToProtoStruct(),
228229
}
229230

230231
return pbRepo, nil

0 commit comments

Comments
 (0)