Skip to content

Commit

Permalink
Skip duplicates check
Browse files Browse the repository at this point in the history
  • Loading branch information
adam3smith committed Aug 31, 2024
1 parent 1978f50 commit db682ea
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions dvcurator/github_projectv2.py
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ def get_repo(token, search, repo=None):
:rtype: string
"""
import dvcurator.hosts
print("Checking for existing github projects...")
print("Currently skipping duplicates check for existing github projects...")
query = """
query ($org: String!, $repo: String!, $query: String!) {
repository(owner: $org, name: $repo) {
Expand All @@ -127,11 +127,11 @@ def get_repo(token, search, repo=None):
params = {"org": repo_components[0], "repo": repo_components[1], "query": search}
response = gql_query(query, token, params)

if (len(response['repository']['projectsV2']['nodes']) > 0):
print("Error: existing github project detected!")
return None
else:
return response['repository']['id']
#if (len(response['repository']['projectsV2']['nodes']) > 0):
# print("Error: existing github project detected!")
# return None
#else:
return response['repository']['id']


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

0 comments on commit db682ea

Please sign in to comment.