diff --git a/living_documentation_generator/github_projects.py b/living_documentation_generator/github_projects.py index d199c93..e066521 100644 --- a/living_documentation_generator/github_projects.py +++ b/living_documentation_generator/github_projects.py @@ -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( @@ -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) @@ -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: diff --git a/living_documentation_generator/utils/utils.py b/living_documentation_generator/utils/utils.py index b61e994..f9181b9 100644 --- a/living_documentation_generator/utils/utils.py +++ b/living_documentation_generator/utils/utils.py @@ -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: