summaryrefslogtreecommitdiffhomepage
path: root/.github/workflows
diff options
context:
space:
mode:
authorAiden Cline <[email protected]>2025-11-18 00:53:08 -0600
committerAiden Cline <[email protected]>2025-11-18 00:53:08 -0600
commitde35c3fb84829faeb3ba44413d326ad50a845df4 (patch)
tree1ec2361e4cbea0b988870b5c389f2ce668d19149 /.github/workflows
parent4359719f9a2329b4ff0f862eb3191ec9efe616b5 (diff)
downloadopencode-de35c3fb84829faeb3ba44413d326ad50a845df4.tar.gz
opencode-de35c3fb84829faeb3ba44413d326ad50a845df4.zip
ci: ignore
Diffstat (limited to '.github/workflows')
-rw-r--r--.github/workflows/guidelines-check.yml53
1 files changed, 0 insertions, 53 deletions
diff --git a/.github/workflows/guidelines-check.yml b/.github/workflows/guidelines-check.yml
deleted file mode 100644
index b4da51c93..000000000
--- a/.github/workflows/guidelines-check.yml
+++ /dev/null
@@ -1,53 +0,0 @@
-name: Guidelines Check
-
-on:
- # Disabled - uncomment to re-enable
- # pull_request_target:
- # types: [opened, synchronize]
-
-jobs:
- check-guidelines:
- runs-on: ubuntu-latest
- permissions:
- contents: read
- pull-requests: write
- steps:
- - name: Checkout repository
- uses: actions/checkout@v4
- with:
- fetch-depth: 1
-
- - name: Install opencode
- run: curl -fsSL https://opencode.ai/install | bash
-
- - name: Check PR guidelines compliance
- env:
- ANTHROPIC_API_KEY: ${{ secrets.ANTHROPIC_API_KEY }}
- GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- OPENCODE_PERMISSION: '{ "bash": { "gh*": "allow", "gh pr review*": "deny", "*": "deny" } }'
- run: |
- opencode run -m anthropic/claude-sonnet-4-20250514 "A new pull request has been created: '${{ github.event.pull_request.title }}'
-
- <pr-number>
- ${{ github.event.pull_request.number }}
- </pr-number>
-
- <pr-description>
- ${{ github.event.pull_request.body }}
- </pr-description>
-
- Please check all the code changes in this pull request against the guidelines in AGENTS.md file in this repository. Diffs are important but make sure you read the entire file to get proper context. Make it clear the suggestions are merely suggestions and the human can decide what to do
-
- Use the gh cli to create comments on the files for the violations. Try to leave the comment on the exact line number. If you have a suggested fix include it in a suggestion code block.
-
- Command MUST be like this.
- ```
- gh api \
- --method POST \
- -H "Accept: application/vnd.github+json" \
- -H "X-GitHub-Api-Version: 2022-11-28" \
- /repos/${{ github.repository }}/pulls/${{ github.event.pull_request.number }}/comments \
- -f 'body=[summary of issue]' -f 'commit_id=${{ github.event.pull_request.head.sha }}' -f 'path=[path-to-file]' -F "line=[line]" -f 'side=RIGHT'
- ```
-
- Only create comments for actual violations. If the code follows all guidelines, don't run any gh commands."