en un clic
review-dependabot
// Review all open dependabot PRs in the repo, check CI status, and approve+merge those that pass. Invoke with /review-dependabot.
// Review all open dependabot PRs in the repo, check CI status, and approve+merge those that pass. Invoke with /review-dependabot.
Prepare version bump PRs and releases for mod-arch-library. Use when the user asks to prepare a release, bump version, create a release PR, or publish packages.
Review code for design token violations, SCSS convention drift, and theme wrapper compliance. Compares source files against pf-tokens-SSOT.json, MUI-default-theme-object.json, and the project's styling rules. Use when the user asks to review code, audit styling, check token usage, or review a PR for convention compliance.
| name | review-dependabot |
| description | Review all open dependabot PRs in the repo, check CI status, and approve+merge those that pass. Invoke with /review-dependabot. |
| user_invocable | true |
Bulk-review and approve open Dependabot pull requests on opendatahub-io/mod-arch-library.
Use the GitHub MCP tool to list open PRs authored by dependabot[bot]:
gh pr list --repo opendatahub-io/mod-arch-library --state open --author "app/dependabot" --json number,title,url,statusCheckRollup,mergeable,reviews
If there are no Dependabot PRs open, inform the user and stop.
For every PR returned in Step 1, inspect the CI check results:
gh pr checks <PR_NUMBER> --repo opendatahub-io/mod-arch-library
Classify each PR into one of these buckets:
| Status | Condition |
|---|---|
| Ready | All required checks passed and PR is mergeable |
| Pending | One or more checks are still running |
| Failing | One or more checks have failed |
Present a summary table to the user:
| # | PR | Status | Details |
|---|-----|--------|---------|
| 1 | #171 chore(deps): bump flatted | Ready | All checks passed |
| 2 | #167 chore(deps-dev): bump undici | Failing | "Run Tests" failed |
| 3 | #180 chore(deps): bump eslint | Pending | 2/4 checks complete |
Before taking action, present the list of Ready PRs and ask the user to confirm:
The following Dependabot PRs have all checks passing and are ready to approve:
- #171 chore(deps): bump flatted from 3.3.3 to 3.4.2
- ...
Should I proceed with adding
/lgtmand/approveto these PRs?
Do NOT approve or comment on any PR without explicit user confirmation.
For each confirmed PR, add a single comment containing both commands:
/lgtm
/approve
Use the GitHub MCP tool to add the comment:
gh pr comment <PR_NUMBER> --repo opendatahub-io/mod-arch-library --body "/lgtm
/approve"
After processing, provide a final summary:
## Results
| PR | Action | Result |
|----|--------|--------|
| #171 | Approved | Comment added |
| #167 | Skipped | CI failing |
| #180 | Skipped | CI pending |
/review-dependabot later./lgtm and /approve commands for merge automation.