From 996fc1484f689eed701cd2ace718803a3264289f Mon Sep 17 00:00:00 2001 From: Radek Golan Date: Wed, 24 Apr 2024 12:04:32 +0200 Subject: [PATCH] fix(api): :bug: Fix a totally unintentional typo in API interaction code --- src/discord_notifier/__main__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/discord_notifier/__main__.py b/src/discord_notifier/__main__.py index 3ad8ba9..f0d2740 100644 --- a/src/discord_notifier/__main__.py +++ b/src/discord_notifier/__main__.py @@ -64,7 +64,7 @@ webhook.add_embed(DiscordEmbed( try: if not success: with APISession(urljoin(environ["PLUGIN_WOODPECKER_URL"], "/api")) as client: - client.headers.setdefault("Authorization", f"Bearer {environ["PLUGIN_WOODPECKER_TOKAN"]}") + client.headers.setdefault("Authorization", f"Bearer {environ["PLUGIN_WOODPECKER_TOKEN"]}") pipeline_url = urlparse(environ["CI_PIPELINE_URL"]).path pipeline_info = client.get(pipeline_url).json() for workflow in pipeline_info["workflows"]: