0
0
mirror of https://github.com/PostHog/posthog.git synced 2024-12-01 12:21:02 +01:00

update plugins repo url (#8359)

* update plugins repo url

* Update posthog/api/plugin.py

* Update posthog/plugins/test/mock.py
This commit is contained in:
Yakko Majuri 2022-01-31 13:05:05 +00:00 committed by GitHub
parent 6da21e2428
commit f274fea126
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View File

@ -183,7 +183,7 @@ class PluginViewSet(StructuredViewSetMixin, viewsets.ModelViewSet):
@action(methods=["GET"], detail=False)
def repository(self, request: request.Request, **kwargs):
url = "https://raw.githubusercontent.com/PostHog/plugin-repository/main/repository.json"
url = "https://raw.githubusercontent.com/PostHog/integrations-repository/main/plugins.json"
plugins = requests.get(url)
return Response(json.loads(plugins.text))

View File

@ -138,7 +138,7 @@ def mocked_plugin_requests_get(*args, **kwargs):
if args[0] == "https://registry.npmjs.org/posthog-helloworld-plugin/-/posthog-helloworld-plugin-0.0.0.tgz":
return MockBase64Response(HELLO_WORLD_PLUGIN_NPM_TGZ[1], 200)
if args[0] == "https://raw.githubusercontent.com/PostHog/plugin-repository/main/repository.json":
if args[0] == "https://raw.githubusercontent.com/PostHog/integrations-repository/main/plugins.json":
return MockTextResponse(
json.dumps(
[