Actions48
- Review Actions
- Repository Actions
- Context Actions
- Knowledge Graph Actions
- Metrics Actions
- Rule Actions
- Agent Actions
- Pattern Actions
- Admin Actions
Rule → Create Repo Rule
AI-generatedSummary
Creates a repo-specific rule in Diffy AI Code Review.
Inputs
- repoId (required) — The repository ID
- ruleContent (required) — The rule definition
- ruleName — Name/title for the rule
Output shape
API response from Diffy containing the created rule object.
Returned data shape is determined by the Diffy API; not explicitly documented in this node's source.
Examples
Example 1: Create a new rule for repository ID 42 with content 'no TODO comments' and name 'Comment Guidelines'.
repoId: 42, ruleContent: 'no TODO comments', ruleName: 'Comment Guidelines'
