Skip to content

Commit ef473d9

Browse files
authored
fix+doc: do not update pinnings and log actions (#3253)
1 parent 58e23dc commit ef473d9

File tree

2 files changed

+8
-1
lines changed

2 files changed

+8
-1
lines changed

autotick-bot/install_bot_code.sh

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,8 @@ git config --global user.name regro-cf-autotick-bot
3333
git config --global user.email [email protected]
3434
git config --global pull.rebase false
3535

36-
conda update conda-forge-pinning --yes
36+
# we pin everything now so no need to update this
37+
# conda update conda-forge-pinning --yes
3738

3839
cd cf-scripts
3940

conda_forge_tick/events/pr_events.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,22 +40,26 @@ def react_to_pr(uid: str, dry_run: bool = False) -> None:
4040
with pr_json:
4141
pr_data = close_out_labels(pr_json, dry_run=dry_run)
4242
if not dry_run and pr_data is not None and pr_data != pr_json.data:
43+
print("closed PR due to bot-rerun label", flush=True)
4344
updated_pr = True
4445
pr_json.update(pr_data)
4546

4647
with pr_json:
4748
pr_data = refresh_pr(pr_json, dry_run=dry_run)
4849
if not dry_run and pr_data is not None and pr_data != pr_json.data:
50+
print("refreshed PR data", flush=True)
4951
updated_pr = True
5052
pr_json.update(pr_data)
5153

5254
with pr_json:
5355
pr_data = close_out_dirty_prs(pr_json, dry_run=dry_run)
5456
if not dry_run and pr_data is not None and pr_data != pr_json.data:
57+
print("closed PR due to merge conflicts", flush=True)
5558
updated_pr = True
5659
pr_json.update(pr_data)
5760

5861
if not dry_run and updated_pr:
62+
print("pushed PR update", flush=True)
5963
gh = github_client()
6064
repo = gh.get_repo("regro/cf-graph-countyfair")
6165
fpath = get_sharded_path(f"pr_json/{uid}.json")
@@ -67,3 +71,5 @@ def react_to_pr(uid: str, dry_run: bool = False) -> None:
6771
dumps(pr_json.data),
6872
cnts.sha,
6973
)
74+
else:
75+
print("no changes to push", flush=True)

0 commit comments

Comments
 (0)