Skip to content

Commit

Permalink
- Fix issue.
Browse files Browse the repository at this point in the history
  • Loading branch information
miroslavpojer committed Jun 25, 2024
1 parent 6eb1cde commit 597507b
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/release_notes/model/record.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import logging
from typing import Optional

from github_integration.github_manager import GithubManager
Expand Down Expand Up @@ -167,9 +168,10 @@ def to_chapter_row(self, row_format="", increment_in_chapters=True):

def contains_labels(self, labels: list[str]) -> bool:
if self.is_issue:
logging.debug(f"Check labels - Issue: {labels} for record nr {self.__gh_issue.number}, title {self.__gh_issue.title}")
return self.__gh_issue.contains_labels(labels)
else:
# print(f"Check labels - PR: {self.__pulls[0].labels} for {labels}")
print(f"Check labels - PR: {labels} for record nr {self.__pulls[0].number}, title {self.__pulls[0].title}")
return self.__pulls[0].contains_labels(labels)

def increment_present_in_chapters(self):
Expand Down

0 comments on commit 597507b

Please sign in to comment.