1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
# CodeTether Code Review — Example Workflow
#
# Add this file to .github/workflows/ in any repo to get
# AI-powered code review on every pull request.
#
# Setup (2 minutes):
# 1. Sign up at https://codetether.run
# 2. Go to Settings → API Tokens → Create Token
# 3. Add CODETETHER_TOKEN as a repo secret in GitHub
# 4. Copy this file to .github/workflows/codetether-review.yml
# 5. Done — every PR gets an AI review.
name: CodeTether Review
on:
pull_request:
types:
concurrency:
group: codetether-review-${{ github.event.pull_request.number }}
cancel-in-progress: true
permissions:
contents: read
pull-requests: write
jobs:
review:
runs-on: ubuntu-latest
timeout-minutes: 10
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- name: CodeTether Review
uses: rileyseaburg/codetether-agent@main
with:
token: ${{ secrets.CODETETHER_TOKEN }}
# extra_prompt: "Focus on security issues"
# ── Advanced: self-hosted with your own LLM keys ──
# review-byok:
# runs-on: ubuntu-latest
# steps:
# - uses: actions/checkout@v4
# with:
# fetch-depth: 0
# - name: CodeTether Review (BYOK)
# uses: rileyseaburg/codetether-agent@main
# with:
# token: ${{ secrets.CODETETHER_TOKEN }}
# mode: "local"
# api_key: ${{ secrets.OPENAI_API_KEY }}
# model: "gpt-4o"