Skip to content

Commit

Permalink
Bug fix for integration CI testing.
Browse files Browse the repository at this point in the history
  • Loading branch information
MobiTikula committed Sep 2, 2024
1 parent 4b7c7a7 commit e4cd4f4
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
3 changes: 3 additions & 0 deletions living_documentation_generator/github_projects.py
Original file line number Diff line number Diff line change
Expand Up @@ -106,6 +106,7 @@ def get_repository_projects(self, repository: Repository, projects_title_filter:
)

projects_from_repo_response = self.__send_graphql_query(projects_from_repo_query)
print(projects_from_repo_response)

if projects_from_repo_response is None:
logger.warning(
Expand Down Expand Up @@ -141,6 +142,7 @@ def get_repository_projects(self, repository: Repository, projects_title_filter:
project_number=project_number,
)
field_option_response = self.__send_graphql_query(project_field_options_query)
print(field_option_response)

# Create the GitHub project instance and add it to the output list
project = GithubProject().loads(project_json, repository, field_option_response)
Expand Down Expand Up @@ -177,6 +179,7 @@ def get_project_issues(self, project: GithubProject) -> list[ProjectIssue]:
)

project_issues_response = self.__send_graphql_query(issues_from_project_query)
print(project_issues_response)

# Return empty list, if project has no issues attached
if not project_issues_response:
Expand Down
6 changes: 3 additions & 3 deletions living_documentation_generator/utils/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -95,9 +95,9 @@ def set_action_output(name: str, value: str, default_output_path: str = "default
@param default_output_path: The default file path to which the output is written if the
@return: None
"""
output_file = os.getenv('GITHUB_OUTPUT', default_output_path)
with open(output_file, 'a') as f:
f.write(f'{name}={value}\n')
output_file = os.getenv("GITHUB_OUTPUT", default_output_path)
with open(output_file, "a") as f:
f.write(f"{name}={value}\n")


def set_action_failed(message: str) -> None:
Expand Down

0 comments on commit e4cd4f4

Please sign in to comment.