fix(api): 🐛 Fix a totally unintentional typo in API interaction code
This commit is contained in:
parent
3cf6999ede
commit
996fc1484f
@ -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"]:
|
||||
|
Loading…
x
Reference in New Issue
Block a user