mirror of
https://github.com/Heretek-AI/opencode-rea.git
synced 2026-11-07 10:56:10 -10:00
Fix 'failed to fetch workflow' parse error: ocr.yml referenced a local reusable workflow path (./.github/workflows/ocr-review.yml) that does not exist in this repo. Point at Heretek-AI/.github org reusable workflow pinned to main HEAD (a440b485).
42 lines
1.1 KiB
YAML
42 lines
1.1 KiB
YAML
name: OpenCodeReview
|
|
|
|
concurrency:
|
|
group: >-
|
|
${{
|
|
(
|
|
github.event_name == 'pull_request_target'
|
|
|| (
|
|
github.event_name == 'issue_comment'
|
|
&& github.event.issue.pull_request
|
|
&& github.event.comment.user.type != 'Bot'
|
|
&& (
|
|
github.event.comment.author_association == 'MEMBER'
|
|
|| github.event.comment.author_association == 'OWNER'
|
|
|| github.event.comment.author_association == 'COLLABORATOR'
|
|
)
|
|
&& (
|
|
startsWith(github.event.comment.body, '/open-code-review')
|
|
|| startsWith(github.event.comment.body, '@open-code-review')
|
|
)
|
|
)
|
|
)
|
|
&& format('ocr-{0}', github.event.pull_request.number || github.event.issue.number)
|
|
|| format('noop-{0}', github.run_id)
|
|
}}
|
|
cancel-in-progress: true
|
|
|
|
on:
|
|
pull_request_target:
|
|
types: [opened, synchronize, reopened]
|
|
issue_comment:
|
|
types: [created]
|
|
|
|
permissions:
|
|
contents: read
|
|
pull-requests: write
|
|
|
|
jobs:
|
|
review:
|
|
uses: Heretek-AI/.github/.github/workflows/ocr-review.yml@a440b485d779b9177b1602c4d4f7f58cff0483a2 # main
|
|
secrets: inherit
|