Skip to content

Commit

Permalink
Fix bug in flattening label filters
Browse files Browse the repository at this point in the history
  • Loading branch information
webbnh committed Nov 5, 2024
1 parent ec7892d commit 1751d78
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions sync2jira/upstream_issue.py
Original file line number Diff line number Diff line change
Expand Up @@ -245,9 +245,10 @@ def generate_github_items(api_method, upstream, config):
.get('github', {})\
.get(upstream, {})

if 'labels' in params:
labels = params.get('labels')
if isinstance(labels, list):
# We have to flatten the labels list to a comma-separated string
params['labels'] = ','.join(params['labels'])
params['labels'] = ','.join(labels)

url = 'https://api.github.com/repos/' + upstream + '/' + api_method
if params:
Expand Down

0 comments on commit 1751d78

Please sign in to comment.