Skip to content

Commit

Permalink
feat(no-qualifier): Landbot project variable (#63)
Browse files Browse the repository at this point in the history
* Landbot check if project already exist

* update to is None
  • Loading branch information
juanjogarciatorres43 authored May 21, 2024
1 parent 3a8469a commit 42a6a24
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions src/firefighter/raid/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -100,10 +100,11 @@ def create_issue( # noqa: PLR0912, PLR0913, C901, PLR0917
description_addendum
)
description += description_addendum_str
feature_team = FeatureTeam.objects.filter(name=suggested_team_routing).get()
project = (
feature_team.jira_project_key if feature_team else RAID_JIRA_PROJECT_KEY
)
if project is None:
feature_team = FeatureTeam.objects.filter(name=suggested_team_routing).get()
project = (
feature_team.jira_project_key if feature_team else RAID_JIRA_PROJECT_KEY
)
issue = self.jira.create_issue(
project=project,
summary=summary,
Expand Down

0 comments on commit 42a6a24

Please sign in to comment.