Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
AdnaneKhan committed Apr 23, 2024
1 parent 37ad435 commit 373681a
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 6 deletions.
2 changes: 0 additions & 2 deletions gato/github/gql_queries.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
from gato.models import Repository

class GqlQueries():
"""Constructs graphql queries for use with the GitHub GraphQL api.
"""
Expand Down
1 change: 0 additions & 1 deletion gato/workflow_parser/composite_parser.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import yaml
import re

from yaml import CSafeLoader

Expand Down
2 changes: 0 additions & 2 deletions gato/workflow_parser/utility.py
Original file line number Diff line number Diff line change
@@ -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
Expand Down
5 changes: 4 additions & 1 deletion gato/workflow_parser/workflow_parser.py
Original file line number Diff line number Diff line change
Expand Up @@ -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


Expand Down

0 comments on commit 373681a

Please sign in to comment.