We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 23308b9 commit 2af8488Copy full SHA for 2af8488
jupyterlab_gitplus/handlers.py
@@ -16,6 +16,7 @@
16
17
18
GITHUB_ENDPOINT = 'https://github.com/'
19
+GITHUB_REMOTE_DOMAIN = 'github.com'
20
REVIEWNB_ENDPOINT = 'https://app.reviewnb.com/'
21
22
@@ -36,7 +37,7 @@ def post(self):
36
37
try:
38
repo = Repo(file['path'], search_parent_directories=True)
39
- if GITHUB_ENDPOINT not in repo.remotes.origin.url:
40
+ if GITHUB_REMOTE_DOMAIN not in repo.remotes.origin.url:
41
logger.info('File is not a part of GitHub repository: ' + file['path'])
42
elif repo.working_dir not in unique_paths:
43
unique_paths.add(repo.working_dir)
0 commit comments