(new_time, description)
| 106 | author = pr["author"]["login"] |
| 107 | |
| 108 | def update_last(new_time, description): |
| 109 | if isinstance(new_time, str): |
| 110 | new_time = datetime.datetime.strptime(new_time, GIT_DATE_FORMAT) |
| 111 | if new_time is None: |
| 112 | print(f" time not found: {description}") |
| 113 | return |
| 114 | nonlocal last_action |
| 115 | if last_action is None or new_time > last_action[0]: |
| 116 | last_action = (new_time, description) |
| 117 | |
| 118 | def check_obj(obj, name): |
| 119 | update_last(obj["publishedAt"], f"{name} publishedAt: {obj}") |