Using the action in your GitHub workflow is simple:
- name: Run iFlow CLI
uses: iflow-ai/iflow-cli-action@v2.0.0
with:
prompt: "Analyze this codebase"
api_key: ${{ secrets.IFLOW_API_KEY }}
name: '🏷️ iFLOW CLI Automated Issue Triage'
on:
issues:
types: [opened, reopened]
jobs:
triage-issue:
runs-on: 'ubuntu-latest'
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: 'Run iFlow CLI Issue Triage'
uses: iflow-ai/iflow-cli-action@v2.0.0
with:
api_key: ${{ secrets.IFLOW_API_KEY }}
prompt: |
Triage the following issue:
Issue Title: "${{ github.event.issue.title }}"
Issue Body: "${{ github.event.issue.body }}"
precmd: |
npm install
git fetch origin main
settings_json: |
{
"theme": "Dark",
"selectedAuthType": "iflow",
"apiKey": "${{ secrets.IFLOW_API_KEY }}",
"baseUrl": "https://custom-api.example.com/v1"
}
Connect to external tools and services using Model Context Protocol
Enhance your GitHub workflows with AI-powered automation
"Leverage the power of AI to automate your development workflows"
For more information, visit:
https://github.com/iflow-ai/iflow-cli-action