File tree Expand file tree Collapse file tree 1 file changed +24
-1
lines changed Expand file tree Collapse file tree 1 file changed +24
-1
lines changed Original file line number Diff line number Diff line change @@ -224,4 +224,27 @@ jobs:
224224 labels = get_issue_labels(num)
225225
226226 if decision_raw in ("accept","accepted","approve","approved"):
227- if
227+ if "Accepted" in labels:
228+ add_comment_once(num, ACCEPT_MSG.format(name=candidate), ACCEPT_MARKER)
229+ counts["accept_commented"] += 1
230+ else:
231+ print(f"Row {idx}: issue #{num} lacks 'Accepted' label; skipping.")
232+ counts["skipped"] += 1
233+
234+ elif decision_raw in ("reject","rejected","decline","declined"):
235+ if "Rejected" in labels:
236+ add_comment_once(num, REJECT_MSG.format(name=candidate), REJECT_MARKER)
237+ counts["reject_commented"] += 1
238+ else:
239+ print(f"Row {idx}: issue #{num} lacks 'Rejected' label; skipping.")
240+ counts["skipped"] += 1
241+ else:
242+ print(f"Row {idx}: unknown decision '{decision_raw}'; skipping.")
243+ counts["skipped"] += 1
244+ except FileNotFoundError:
245+ print(f"decision.csv not found at: {dec_csv}", file=sys.stderr); sys.exit(1)
246+
247+ print(f"Decisions: accept_commented={counts['accept_commented']}, reject_commented={counts['reject_commented']}, skipped={counts['skipped']} (rows={counts['rows']})")
248+ if dry_run: print("DRY-RUN complete (no changes were made).")
249+ PY
250+
You can’t perform that action at this time.
0 commit comments