diff --git a/gato/github/gql_queries.py b/gato/github/gql_queries.py index c136327..c965b96 100644 --- a/gato/github/gql_queries.py +++ b/gato/github/gql_queries.py @@ -1,5 +1,3 @@ -from gato.models import Repository - class GqlQueries(): """Constructs graphql queries for use with the GitHub GraphQL api. """ diff --git a/gato/workflow_parser/composite_parser.py b/gato/workflow_parser/composite_parser.py index 6b98b2e..7976ec1 100644 --- a/gato/workflow_parser/composite_parser.py +++ b/gato/workflow_parser/composite_parser.py @@ -1,5 +1,4 @@ import yaml -import re from yaml import CSafeLoader diff --git a/gato/workflow_parser/utility.py b/gato/workflow_parser/utility.py index 77638b6..ac27913 100644 --- a/gato/workflow_parser/utility.py +++ b/gato/workflow_parser/utility.py @@ -1,5 +1,3 @@ -import re - from gato.configuration import ConfigurationManager from gato.workflow_parser.expression_parser import ExpressionParser from gato.workflow_parser.expression_evaluator import ExpressionEvaluator diff --git a/gato/workflow_parser/workflow_parser.py b/gato/workflow_parser/workflow_parser.py index 3679929..79ff9fc 100644 --- a/gato/workflow_parser/workflow_parser.py +++ b/gato/workflow_parser/workflow_parser.py @@ -143,8 +143,11 @@ def backtrack_gate(self, needs_name): """Attempts to find if a job needed by a specific job has a gate check. """ for job in self.jobs: - if job.job_name == needs_name and job.has_gate == True: + if job.job_name == needs_name and job.has_gate: return True + # If the job it needs does't have a gate, then check if it does. + elif job.job_name == needs_name and not job.has_gate: + return self.backtrack_gate(job.needs) return False