Skip to content

Commit 7fc6711

Browse files
authored
Add README.md
1 parent 195af21 commit 7fc6711

File tree

1 file changed

+38
-0
lines changed

1 file changed

+38
-0
lines changed

README.md

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
# node-diff
2+
3+
A Github Action for diffing custom nodes.
4+
5+
## Description
6+
7+
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.
8+
9+
This helps you develop custom nodes that don't break existing workflows.
10+
11+
## Usage
12+
13+
Just add this to your custom node repo: `.github/workflows/validate.yml`
14+
15+
```
16+
name: Validate backwards compatibility
17+
18+
on:
19+
pull_request:
20+
branches:
21+
- master
22+
- main
23+
24+
jobs:
25+
validate:
26+
runs-on: ubuntu-latest
27+
steps:
28+
- uses: comfy-org/node-diff@main
29+
```
30+
31+
If you use a branch other than `main` as your base branch, add that here:
32+
33+
```
34+
steps:
35+
- uses: comfy-org/node-diff@main
36+
with:
37+
base_ref: 'master'
38+
```

0 commit comments

Comments
 (0)