Skip to content

Commit da81228

Browse files
authored
fix: support git-defined default bot (#86)
1 parent 2e7c1a3 commit da81228

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/git_draft/__main__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -175,7 +175,7 @@ async def run() -> None: # noqa: PLR0912 PLR0915
175175
bot_config = None
176176
bot_name = opts.bot or repo.default_bot()
177177
if bot_name:
178-
bot_configs = [c for c in config.bots if c.name == opts.bot]
178+
bot_configs = [c for c in config.bots if c.name == bot_name]
179179
if len(bot_configs) != 1:
180180
raise ValueError(f"Found {len(bot_configs)} matching bots")
181181
bot_config = bot_configs[0]

0 commit comments

Comments
 (0)