fix(api): 🐛 Fix a totally unintentional typo in API interaction code

This commit is contained in:
Radek Golan 2024-04-24 12:04:32 +02:00
parent 3cf6999ede
commit 996fc1484f

View File

@ -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"]: