mirror of
https://github.com/anomalyco/opencode.git
synced 2026-04-29 04:59:51 +00:00
ci: fix dup pr action
This commit is contained in:
parent
88c306efd2
commit
80235f325e
2 changed files with 81 additions and 3 deletions
6
.github/workflows/duplicate-prs.yml
vendored
6
.github/workflows/duplicate-prs.yml
vendored
|
|
@ -30,8 +30,8 @@ jobs:
|
|||
- name: Setup Bun
|
||||
uses: ./.github/actions/setup-bun
|
||||
|
||||
- name: Install opencode
|
||||
run: curl -fsSL https://opencode.ai/install | bash
|
||||
- name: Install dependencies
|
||||
run: bun install
|
||||
|
||||
- name: Build prompt
|
||||
env:
|
||||
|
|
@ -53,7 +53,7 @@ jobs:
|
|||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||
PR_NUMBER: ${{ github.event.pull_request.number }}
|
||||
run: |
|
||||
COMMENT=$(opencode run --agent duplicate-pr --print -f pr_info.txt "Check the attached file for PR details and search for duplicates")
|
||||
COMMENT=$(bun script/duplicate-pr.ts -f pr_info.txt "Check the attached file for PR details and search for duplicates")
|
||||
|
||||
gh pr comment "$PR_NUMBER" --body "_The following comment was made by an LLM, it may be inaccurate:_
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue