We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2e7c1a3 commit da81228Copy full SHA for da81228
src/git_draft/__main__.py
@@ -175,7 +175,7 @@ async def run() -> None: # noqa: PLR0912 PLR0915
175
bot_config = None
176
bot_name = opts.bot or repo.default_bot()
177
if bot_name:
178
- bot_configs = [c for c in config.bots if c.name == opts.bot]
+ bot_configs = [c for c in config.bots if c.name == bot_name]
179
if len(bot_configs) != 1:
180
raise ValueError(f"Found {len(bot_configs)} matching bots")
181
bot_config = bot_configs[0]
0 commit comments