diff --git a/.github/workflows/ai-assist.yml b/.github/workflows/ai-assist.yml index a7bbdd1..6842895 100644 --- a/.github/workflows/ai-assist.yml +++ b/.github/workflows/ai-assist.yml @@ -8,8 +8,8 @@ on: types: [ submitted ] jobs: assistant: - # See: https://github.com/sei-protocol/uci/releases/tag/v0.0.12 - uses: sei-protocol/uci/.github/workflows/ai-assistant.yml@258d2c3216d54872b33ac07430d23c847fc239ca + # See: https://github.com/sei-protocol/uci/releases/tag/v0.0.27 + uses: sei-protocol/uci/.github/workflows/ai-assistant.yml@a3e422db031508ff0b2adf2e66e5a2860a8858e2 permissions: contents: read pull-requests: write @@ -17,6 +17,6 @@ jobs: id-token: write secrets: inherit with: - # See: https://github.com/sei-protocol/uci/releases/tag/v0.0.12 - uci-ref: 258d2c3216d54872b33ac07430d23c847fc239ca + # See: https://github.com/sei-protocol/uci/releases/tag/v0.0.27 + uci-ref: a3e422db031508ff0b2adf2e66e5a2860a8858e2 allowed-team: 'sei-protocol/sei-core' diff --git a/.github/workflows/ai-review.yml b/.github/workflows/ai-review.yml index 9f952d1..f4e0817 100644 --- a/.github/workflows/ai-review.yml +++ b/.github/workflows/ai-review.yml @@ -1,11 +1,23 @@ name: AI Review on: pull_request: - types: [ opened, ready_for_review, synchronize, reopened ] + # `labeled`/`unlabeled` let adding or removing the `ai: skip-review` or `ai: nitpick` + # label take effect right away rather than on the next push. UCI ignores those two + # events for every other label. + types: [ opened, ready_for_review, synchronize, reopened, labeled, unlabeled ] + # UCI reviews a PR automatically only once. After that, an active member of `allowed-team` + # asks for another review by commenting exactly `@seidroid review`. + issue_comment: + types: [ created ] + pull_request_review_comment: + types: [ created ] + pull_request_review: + types: [ submitted ] jobs: ai-review: - # See: https://github.com/sei-protocol/uci/releases/tag/v0.0.12 - uses: sei-protocol/uci/.github/workflows/ai-review.yml@258d2c3216d54872b33ac07430d23c847fc239ca + if: github.event_name != 'issue_comment' || github.event.issue.pull_request != null + # See: https://github.com/sei-protocol/uci/releases/tag/v0.0.27 + uses: sei-protocol/uci/.github/workflows/ai-review.yml@a3e422db031508ff0b2adf2e66e5a2860a8858e2 permissions: contents: read pull-requests: write @@ -13,6 +25,7 @@ jobs: id-token: write secrets: inherit with: - # See: https://github.com/sei-protocol/uci/releases/tag/v0.0.12 - uci-ref: 258d2c3216d54872b33ac07430d23c847fc239ca + # See: https://github.com/sei-protocol/uci/releases/tag/v0.0.27 + uci-ref: a3e422db031508ff0b2adf2e66e5a2860a8858e2 + allowed-team: 'sei-protocol/sei-core' enable-cursor: false # Disabled for now to avoid duplicate review if Cursor Bugbot is enabled on the repo.