-
List open PRs and inspect author, title, draft state, and mergeability:
gh pr list --repo grafana/alloy-scenarios --state open \
--json number,title,author,isDraft,mergeable,mergeStateStatus
-
Filter to PRs where author.login == "app/renovate-sh-app",
isDraft == false, and the title matches ^chore\(deps\):.
-
For each candidate, confirm checks are green and a review is actually
required/missing before approving:
gh pr view <number> --repo grafana/alloy-scenarios \
--json number,title,reviewDecision,statusCheckRollup,mergeable,mergeStateStatus
Skip the PR if any required check is not SUCCESS/COMPLETED, or if
mergeable is not MERGEABLE.
-
Approve, then merge with squash and branch cleanup:
gh pr review <number> --repo grafana/alloy-scenarios --approve \
-b "Approving automated dependency update."
gh pr merge <number> --repo grafana/alloy-scenarios --squash --delete-branch
-
After processing every candidate, verify the merges landed:
gh pr list --repo grafana/alloy-scenarios --state merged --limit 20 \
--json number,title,mergedAt