Skip to content

Github Action to Review PRs using Telnyx Inference

Notifications You must be signed in to change notification settings

team-telnyx/reviewpr

Use this GitHub action with your project
Add this Action to an existing workflow or create a new one
View on Marketplace

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 

Repository files navigation

Getting Started

To get started visit Telnyx Inference documentation

How to add it to my project?

  1. Add a secret for actions on your github repository with your Telnyx Api Key at TELNYX_API_KEY
  2. 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.