Skip to content

Commit

Permalink
fixup
Browse files Browse the repository at this point in the history
  • Loading branch information
ericLemanissier committed Sep 4, 2024
1 parent 72b1e69 commit 27504a4
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions main.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
import os
import json
import copy
import urllib.parse
import asyncio
import logging
from datetime import datetime
Expand Down Expand Up @@ -115,10 +114,7 @@ async def _add_package(package: str, repo: str, ref: str, pr: str = "0") -> None
for pr in self.prs.values():
pr_number = str(pr["number"])
for package in pr['libs']:
if not pr["head"]["repo"]:
logging.warning("no repo detected for pr #%s", pr_number)
continue
tasks.append(_add_package(package, f'{self.owner}/{self.repo}', f"pull/{pr_number}/merge", pr_number))
tasks.append(_add_package(package, f'{self.owner}/{self.repo}', pr["merge_commit_sha"], pr_number))

await asyncio.gather(*tasks)

Expand Down

0 comments on commit 27504a4

Please sign in to comment.