Diffy icon

Diffy

Interact with Diffy AI Code Review API

Rule → Create Repo Rule

AI-generated

Summary

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'

Discussion