Skip to content

[ALL-5963] ci: adopt run-gemini-cli PR review - #37

Open
marshallrobinson wants to merge 3 commits into
masterfrom
ci/gemini-pr-review
Open

marshallrobinson wants to merge 3 commits into
masterfrom
ci/gemini-pr-review

Conversation

@marshallrobinson

Copy link
Copy Markdown
Collaborator

Adds the org's automated PR reviewer (run-gemini-cli on Vertex) to forgeApp — a thin caller that uses: UGS-GIO/ugs-gha-pr-review/.github/workflows/review.yml@v1 plus a repo-tailored GEMINI.md rubric. No per-repo secrets (org Actions vars are set). Auto-reviews non-draft PRs from org members/collaborators; anyone else can opt in with /review. Part of the org-wide rollout (umbrella ALL-5570).

@github-actions github-actions Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Review Summary

I have reviewed the changes introduced in this pull request and found them to be correct, secure, and aligned with repository standards.

What was checked:

  1. GitHub Actions Workflow (.github/workflows/pr-review.yml):

    • Trigger Conditions: The pull_request types and the issue_comment trigger are correctly defined.
    • Safety Condition: The conditional statement github.event_name != 'issue_comment' || github.event.issue.pull_request != null properly ensures that the workflow only runs on pull request comments and not standard issue comments.
    • Permissions: The permissions block restricts scopes appropriately (contents: read) while providing the required capabilities (id-token: write, pull-requests: write, issues: write) for Vertex/OIDC integration and automated reviewing.
    • Reusable Workflow: The workflow references the correct organization-level reusable review workflow (UGS-GIO/ugs-gha-pr-review/.github/workflows/review.yml@v1) and correctly passes secrets via secrets: inherit.
  2. PR Review Rubric (GEMINI.md):

    • The review guide is tailored well to this dormant legacy application, focusing on minimizing modernizations, preventing hardcoded credentials/tokens in client-side JS/HTML, avoiding DOM/XSS injection on feature popups, and ensuring fetch/query failures fail loud.

No defects or security issues were found. The configuration is ready to be merged.

@github-actions github-actions Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Checked .github/workflows/pr-review.yml and GEMINI.md; no issues were found.

@github-actions github-actions Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No issues found.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant