Skip to content

Commit

Permalink
Merge branch 'github:main' into main
Browse files Browse the repository at this point in the history
  • Loading branch information
gilberthl-mh authored Jun 25, 2024
2 parents 8589735 + 2af47be commit 62f5290
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 5 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ jobs:
- uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7
- name: Push Docker Image
if: ${{ success() }}
uses: docker/build-push-action@c382f710d39a5bb4e430307530a720f50c2d3318
uses: docker/build-push-action@31159d49c0d4756269a0940a750801a1ea5d7003
with:
context: .
file: ./Dockerfile
Expand Down
2 changes: 1 addition & 1 deletion requirements-test.txt
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,4 @@ pylint==3.2.3
pytest==8.2.2
pytest-cov==5.0.0
types-pytz==2024.1.0.20240417
types-requests==2.32.0.20240602
types-requests==2.32.0.20240622
12 changes: 9 additions & 3 deletions time_to_ready_for_review.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,8 +37,14 @@ def get_time_to_ready_for_review(
return None

events = issue.issue.events(number=50)
for event in events:
if event.event == "ready_for_review":
return event.created_at
try:
for event in events:
if event.event == "ready_for_review":
return event.created_at
except TypeError as e:
print(
f"An error occurred processing review events. Perhaps issue contains a ghost user. {e}"
)
return None

return None

0 comments on commit 62f5290

Please sign in to comment.