con un clic
review-pr
// Review a golem GitHub pull request for correctness, style, and compliance with contribution conventions.
// Review a golem GitHub pull request for correctness, style, and compliance with contribution conventions.
| name | review-pr |
| description | Review a golem GitHub pull request for correctness, style, and compliance with contribution conventions. |
Review a golem pull request. The PR number is provided as the argument (e.g. /review-pr 1234).
gh pr view <NUMBER> --json number,title,body,headRefName,baseRefName,author,files,additions,deletions
gh pr diff <NUMBER>
Also fetch any linked issue if one is referenced in the PR body:
gh issue view <ISSUE_NUMBER>
Verify the following:
master (not main or a feature branch).#123 or Fixes #123). For simple typo fixes this is optional.## New Functions## New features## Breaking changes## Bug fix## Internal changesmaintainerCanModify: true).Read the diff carefully and check:
Correctness
golem conventions
inst/shinyexample/ or use the appropriate add_* / use_* helpers in R/.bootstrap_*.R (no direct library() or hard-require of suggested packages).make_dev() or use existing wrappers (cat_dev(), print_dev(), etc.).get_golem_config() / the YAML helpers, not by reading inst/golem-config.yml directly.snake_case naming convention and be exported via @export roxygen tag.add_module() and respect the mod_<name>.R naming convention.Code style
air. If unformatted lines are present, flag them.library() calls inside package functions.system.file() or fs helpers.Documentation
@title, @param, @return, @examples (or @noRd for internals).devtools::document() must have been run (check that .Rd files and NAMESPACE are updated in the diff).Tests
tests/testthat/.perform_inside_a_new_golem() or run_quietly_in_a_dummy_golem() for isolation when they create files or golem projects.expect_snapshot()) are acceptable for output-heavy functions.If the branch can be checked out, run:
Rscript -e "devtools::test()"
Rscript -e "devtools::check()"
Report any failures.
Produce a structured review with these sections:
Metadata
Code review
Verdict One of:
If requesting changes, be specific: reference file names, line numbers from the diff, and what needs to change.
End-to-end builder for golem Shiny applications. Routes to the relevant reference based on the user's intent (create the app, add modules, add functions, run tests, check the package, validate namespacing). Triggers on: - "build a golem app" - "work on my golem app" - "scaffold a golem app" - "evolve a golem app" Do not trigger on: - when the user is not working inside a golem app and is not creating one - when the user is building a Shiny app without golem
Validate that all module input/output IDs are properly namespaced. Triggers on: - "check my modules for missing ns" - "find missing ns in modules" - "validate module namespaces" Do not trigger on: - when the user is not working inside a golem app
Run a full R CMD check on the golem package and report errors, warnings, and notes.
Regenerate documentation (NAMESPACE and Rd files) then format the code with air.
Run the golem package test suite and summarize the results.