Skip to content

Commit

Permalink
Update branch index naming
Browse files Browse the repository at this point in the history
  • Loading branch information
Willy-JL committed Aug 15, 2024
1 parent fd60cdc commit 4228add
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
6 changes: 3 additions & 3 deletions indexer/src/channels.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
description="Less frequent, more stable releases",
)
branch_channel = Channel(
id="branch-",
title="Unstable Branch ",
description="Work in progress, unstable branch ",
id="wip-{branch}",
title="Unstable Branch '{branch}'",
description="Work in progress, unstable branch '{branch}'",
)
6 changes: 3 additions & 3 deletions indexer/src/parsers.py
Original file line number Diff line number Diff line change
Expand Up @@ -147,9 +147,9 @@ def parse_github_channels(
if not os.path.isdir(branch_dir) or len(os.listdir(branch_dir)) <= 1:
continue
channel = copy.deepcopy(branch_channel)
channel.id += branch
channel.title += branch
channel.description += branch
channel.id = channel.id.format(branch=branch)
channel.title = channel.title.format(branch=branch)
channel.description = channel.description.format(branch=branch)
json.add_channel(
parse_dev_channel(channel, directory, file_parser, indexer_github, branch)
)
Expand Down

0 comments on commit 4228add

Please sign in to comment.