Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: refresh before testing label #3398

Merged
merged 2 commits into from
Dec 13, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 11 additions & 0 deletions conda_forge_tick/events/pr_events.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,17 @@
pr_json = LazyJson(f"pr_json/{uid}.json")

with pr_json:
if pr_json.get("state", None) != "closed":
pr_data = refresh_pr(copy.deepcopy(pr_json.data), dry_run=dry_run)
if pr_data is not None:
if (

Check warning on line 22 in conda_forge_tick/events/pr_events.py

View check run for this annotation

Codecov / codecov/patch

conda_forge_tick/events/pr_events.py#L19-L22

Added lines #L19 - L22 were not covered by tests
"Last-Modified" in pr_json
and "Last-Modified" in pr_data
and pr_json["Last-Modified"] != pr_data["Last-Modified"]
):
print("refreshed PR data", flush=True)
pr_json.update(pr_data)

Check warning on line 28 in conda_forge_tick/events/pr_events.py

View check run for this annotation

Codecov / codecov/patch

conda_forge_tick/events/pr_events.py#L27-L28

Added lines #L27 - L28 were not covered by tests

if pr_json.get("state", None) != "closed":
pr_data = close_out_labels(copy.deepcopy(pr_json.data), dry_run=dry_run)
if pr_data is not None:
Expand Down
Loading