Skip to content

Commit

Permalink
Minor fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
barseghyanartur committed Jan 6, 2020
1 parent cb5bebd commit f8fb2e6
Showing 1 changed file with 15 additions and 4 deletions.
19 changes: 15 additions & 4 deletions src/matyan/renderers/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -97,14 +97,18 @@ def render_changelog(self,
if 'title' not in ticket_data:
continue

if branch_type != BRANCH_TYPE_OTHER:
if branch_type != BRANCH_TYPE_OTHER and 'title' in ticket_data:
# Ticket name `append_ticket_title`
self.append_ticket_title(
ticket_number,
ticket_data['title']
)

if fetch_description and ticket_data['description']:
if (
fetch_description
and 'description' in ticket_data
and ticket_data['description']
):
# Description quote `append_ticket_description`
self.append_ticket_description(
ticket_data['description']
Expand Down Expand Up @@ -166,14 +170,21 @@ def render_releases_changelog(self,
# LOGGER.warning(ticket_number)
# LOGGER.warning(ticket_data)

if branch_type != BRANCH_TYPE_OTHER:
if (
branch_type != BRANCH_TYPE_OTHER
and 'title' in ticket_data
):
# Ticket name `append_ticket_title`
self.append_ticket_title(
ticket_number,
ticket_data['title']
)

if fetch_description and ticket_data['description']:
if (
fetch_description
and 'description' in ticket_data
and ticket_data['description']
):
# Description quote `append_ticket_description`
self.append_ticket_description(
ticket_data['description']
Expand Down

0 comments on commit f8fb2e6

Please sign in to comment.