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:
parent
6da21e2428
commit
f274fea126
@ -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))
|
||||
|
||||
|
@ -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(
|
||||
[
|
||||
|
Loading…
Reference in New Issue
Block a user