diff options
| author | Dax <[email protected]> | 2025-08-12 00:34:34 -0400 |
|---|---|---|
| committer | GitHub <[email protected]> | 2025-08-12 00:34:34 -0400 |
| commit | 3d9c5b4adf5a7e1a49fb3c0f3a7a30f2d35fa244 (patch) | |
| tree | a696344506468e1c2a50b59ee80feaa015496c92 /.github | |
| parent | a3064e2c32808813023ecbadc8ff8ab642f5a55a (diff) | |
| download | opencode-3d9c5b4adf5a7e1a49fb3c0f3a7a30f2d35fa244.tar.gz opencode-3d9c5b4adf5a7e1a49fb3c0f3a7a30f2d35fa244.zip | |
Update guidelines-check.yml
Diffstat (limited to '.github')
| -rw-r--r-- | .github/workflows/guidelines-check.yml | 41 |
1 files changed, 0 insertions, 41 deletions
diff --git a/.github/workflows/guidelines-check.yml b/.github/workflows/guidelines-check.yml index 3582be7c3..e69de29bb 100644 --- a/.github/workflows/guidelines-check.yml +++ b/.github/workflows/guidelines-check.yml @@ -1,41 +0,0 @@ -name: Guidelines Check - -on: - pull_request: - types: [opened, synchronize] - -jobs: - check-guidelines: - runs-on: ubuntu-latest - permissions: - contents: read - pull-requests: write - id-token: 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 }} - run: | - opencode run -m anthropic/claude-sonnet-4-20250514 "A new pull request has been created: '${{ github.event.pull_request.title }}' - - PR description: - ${{ github.event.pull_request.body }} - - Please check all the code changes in this pull request against the guidelines in AGENTS.md file in this repository. - - For each violation you find, create a file comment using the gh CLI. Use this exact format for each violation: - - \`\`\`bash - gh pr review ${{ github.event.pull_request.number }} --comment-body 'This violates the AGENTS.md guideline: [specific rule]. Consider: [suggestion]' --file 'path/to/file.ts' --line [line_number] - \`\`\` - - Only create comments for actual violations. If the code follows all guidelines, don't run any gh commands." |
