Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions release_notes_generator/builder/builder.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
"""
This module contains the ReleaseNotesBuilder class which is responsible for building of the release notes.
"""

import logging

from itertools import chain
Expand Down
1 change: 1 addition & 0 deletions release_notes_generator/chapters/base_chapters.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
"""
This module contains the BaseChapters class which is responsible for representing the base chapters.
"""

from abc import ABC, abstractmethod
from typing import Optional
from datetime import datetime
Expand Down
1 change: 1 addition & 0 deletions release_notes_generator/chapters/custom_chapters.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@
This module contains the CustomChapters class which is responsible for representing the custom chapters in the release
notes.
"""

import logging
from typing import Any, Iterable

Expand Down
1 change: 1 addition & 0 deletions release_notes_generator/chapters/service_chapters.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@
This module contains the ServiceChapters class which is responsible for representing the service chapters in the release
notes.
"""

import logging
from typing import Optional, cast

Expand Down
1 change: 1 addition & 0 deletions release_notes_generator/data/miner.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
"""
This module contains logic for mining data from GitHub, including issues, pull requests, commits, and releases.
"""

import logging
import sys
import traceback
Expand Down
12 changes: 4 additions & 8 deletions release_notes_generator/data/utils/bulk_sub_issue_collector.py
Original file line number Diff line number Diff line change
Expand Up @@ -113,8 +113,7 @@ def scan_sub_issues_for_parents(self, parents_to_check: list[str]) -> list[str]:
alias_maps[alias] = (org, repo, parent_num)
after = cursors[(org, repo, parent_num)]
after_part = f', after: "{after}"' if after else ""
issue_blocks.append(
f"""{alias}: issue(number: {parent_num}) {{
issue_blocks.append(f"""{alias}: issue(number: {parent_num}) {{
number
subIssues(first: {self._cfg.per_page}{after_part}) {{
nodes {{
Expand All @@ -125,15 +124,12 @@ def scan_sub_issues_for_parents(self, parents_to_check: list[str]) -> list[str]:
}}
pageInfo {{ hasNextPage endCursor }}
}}
}}"""
)
}}""")
if issue_blocks:
repo_alias = f"r{r_idx}"
repo_blocks.append(
f"""{repo_alias}: repository(owner: "{org}", name: "{repo}") {{
repo_blocks.append(f"""{repo_alias}: repository(owner: "{org}", name: "{repo}") {{
{' '.join(issue_blocks)}
}}"""
)
}}""")

if not repo_blocks:
break
Expand Down
1 change: 1 addition & 0 deletions release_notes_generator/model/chapter.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
"""
This module contains the Chapter class which is responsible for representing a chapter in the release notes.
"""

from typing import Optional


Expand Down
1 change: 1 addition & 0 deletions release_notes_generator/record/factory/record_factory.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
"""
This module contains the RecordFactory base class used to generate records.
"""

import abc
import logging

Expand Down
2 changes: 1 addition & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ pytest-mock==3.15.1
responses==0.25.8
pylint==4.0.4
requests==2.32.5
black==25.12.0
black==26.1.0
PyYAML==6.0.3
semver==3.0.4
mypy==1.19.1
Expand Down