To get started visit Telnyx Inference documentation
- Add a secret for actions on your github repository with your Telnyx Api Key at TELNYX_API_KEY
- Create the following file on your repository
.github/workflows/review_pr.yml
name: PR Review
on:
pull_request:
types: [opened, synchronize, reopened]
permissions:
pull-requests: write
jobs:
review:
runs-on: ubuntu-latest
steps:
- name: PR Review
uses: team-telnyx/reviewpr@main
with:
telnyx_api_key: ${{ secrets.TELNYX_API_KEY }}
model_name: 'meta-llama/Meta-Llama-3.1-8B-Instruct'
custom_message: 'Optional: Your custom review prompt here'
The model_name
and custom_message
are optional.
If you don't provide a custom_message
, the action will use a default review prompt.
And done! The next time a PR is opened, it will be automatically reviewed by Telnyx Inference.