https://github.com/comfy-org/node-diff
https://github.com/comfy-org/node-diff
Last synced: 11 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/comfy-org/node-diff
- Owner: Comfy-Org
- Created: 2024-12-30T23:37:44.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2024-12-31T00:58:23.000Z (over 1 year ago)
- Last Synced: 2025-02-10T12:18:27.496Z (over 1 year ago)
- Language: Python
- Size: 14.6 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# node-diff
A Github Action for diffing custom nodes.
## Description
This action checks out your PR branch and your main branch and compares the custom nodes defined in `NODE_CLASS_MAPPINGS` for backwards incompatible changes.
This helps you develop custom nodes that don't break existing workflows.
## Features
- [x] Checks `RETURN_TYPES`
- [ ] Checks `INPUT_TYPES`
## Usage
Just add this to your custom node repo: `.github/workflows/validate.yml`
```
name: Validate backwards compatibility
on:
pull_request:
branches:
- master
- main
jobs:
validate:
runs-on: ubuntu-latest
steps:
- uses: comfy-org/node-diff@main
```
If you use a branch other than `main` as your base branch, add that here:
```
steps:
- uses: comfy-org/node-diff@main
with:
base_ref: 'master'
```