Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
25 changes: 25 additions & 0 deletions .github/workflows/ai-review.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
name: AI Review

on:
pull_request:
types: [opened, reopened, synchronize, edited, ready_for_review]
push:
branches: [master]
workflow_dispatch:
inputs:
pr_number:
description: PR number to review (leave blank to review a commit)
required: false
commit_sha:
description: Commit SHA to review (leave blank when using PR number)
required: false

jobs:
ai-review:
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Could we add an explicit permissions: block in the caller workflow? In workflow_call, the called workflow permissions are capped by the caller token permissions. If this repo/org default is read-only, the called workflow can fail when it tries to publish commit comments/reviews.

uses: jitsucom/github-workflows/.github/workflows/ai-review.yml@1.28.20260529
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

This uses: pin is a mutable tag. If the upstream tag is moved, this repo will execute different workflow code without any change in this repository. For supply-chain safety and reproducibility, pin to an immutable commit SHA (optionally keep the tag in a comment for readability).

secrets: inherit
with:
review_instructions: >-
Focus on concurrency safety, connection and resource handling, and MongoDB wire-protocol correctness. Skip style nitpicks.
pr_number: ${{ inputs.pr_number }}
commit_sha: ${{ inputs.commit_sha }}
Loading