Skip to content

Commit 9999f74

Browse files
fix: remove stray 'local' in main loop causing crash loop
The 'local' keyword on line 525 was outside any function (in the main while-true loop), causing bash to exit with 'local: can only be used in a function'. This prevented the service from reaching the poll cycle, so new PR reviews (like PRR 4028914289) were never picked up. Remove the 'local' keyword — pr_author is a plain variable in the top-level script scope. Co-authored-by: Shelley <shelley@exe.dev>
1 parent 7ca4339 commit 9999f74

1 file changed

Lines changed: 0 additions & 1 deletion

File tree

modules/gh-pm/bin/gh-pm

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -522,7 +522,6 @@ while true; do
522522
pr_count="$(echo "$prs_json" | jq 'length')"
523523
for (( i=0; i<pr_count; i++ )); do
524524
item="$(echo "$prs_json" | jq ".[$i]")"
525-
local pr_author
526525
pr_author="$(echo "$item" | jq -r '.author.login // ""')"
527526
if [[ "$pr_author" == "$GH_PM_USER" ]]; then
528527
# Authored PR — check for review feedback and CI failures

0 commit comments

Comments
 (0)