Skip to content

Commit db682ea

Browse files
committed
Skip duplicates check
1 parent 1978f50 commit db682ea

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

dvcurator/github_projectv2.py

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,7 @@ def get_repo(token, search, repo=None):
104104
:rtype: string
105105
"""
106106
import dvcurator.hosts
107-
print("Checking for existing github projects...")
107+
print("Currently skipping duplicates check for existing github projects...")
108108
query = """
109109
query ($org: String!, $repo: String!, $query: String!) {
110110
repository(owner: $org, name: $repo) {
@@ -127,11 +127,11 @@ def get_repo(token, search, repo=None):
127127
params = {"org": repo_components[0], "repo": repo_components[1], "query": search}
128128
response = gql_query(query, token, params)
129129

130-
if (len(response['repository']['projectsV2']['nodes']) > 0):
131-
print("Error: existing github project detected!")
132-
return None
133-
else:
134-
return response['repository']['id']
130+
#if (len(response['repository']['projectsV2']['nodes']) > 0):
131+
# print("Error: existing github project detected!")
132+
# return None
133+
#else:
134+
return response['repository']['id']
135135

136136

137137
# This function is used to set each generated ticket to "todo" status

0 commit comments

Comments
 (0)