File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
backend/application/core/api Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -248,12 +248,12 @@ def _get_origin_cloud_resource_url(observation: Observation) -> Optional[str]:
248248 and observation .origin_cloud_account_subscription_project
249249 and observation .origin_cloud_resource
250250 ):
251- if observation .origin_cloud_resource_type .lower () == "githubrepository" :
251+ if "repository" in observation .origin_cloud_resource_type .lower ():
252252 return (
253253 f"https://github.com/{ observation .origin_cloud_account_subscription_project } /"
254254 + f"{ observation .origin_cloud_resource } "
255255 )
256- if observation .origin_cloud_resource_type .lower () == "githuborganization" :
256+ if "organization" in observation .origin_cloud_resource_type .lower ():
257257 return f"https://github.com/{ observation .origin_cloud_resource } "
258258 return None
259259
You can’t perform that action at this time.
0 commit comments