PI Action
Version updated for https://github.com/cv/pi-action to version v1.4.0.
- This action is used across all versions by ? repositories.
Go to the GitHub Marketplace to find the latest changes.
Action Summary
The pi-action GitHub Action integrates with the pi coding agent to automate responses and tasks on issues and pull requests, triggered by customizable phrases (default: @pi). It supports security-focused usage by restricting access to trusted users, enables automation workflows with bot allowlists, and provides features like code reviews with PR diffs and enforcing commit conventions. This action simplifies collaboration and automates repetitive developer tasks directly within GitHub workflows.
Release notes
Features
- Customizable prompt templates: Use placeholder variables like
{{title}},{{task}},{{diff}}to customize how GitHub context is presented to the agent - Real-time tool execution logging: See live feedback as the agent runs bash commands, reads/writes files
- New documentation: Added
examples/prompt-templates.mdwith ready-to-use templates for code review, triage, security review, and more
Usage
- uses: cv/pi-action@v1.4.0
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
prompt_template: |
# Task for {{type_display}} #{{number}}
**Title:** {{title}}
**Task:** {{task}}
See examples/prompt-templates.md for more templates.