You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardexpand all lines: README.md
+12-1
Original file line number
Diff line number
Diff line change
@@ -13,7 +13,8 @@ Managing Kubernetes configurations across multiple environments and PRs can be c
13
13
## Features
14
14
15
15
- Automatically builds Kustomize configurations from both PR branches
16
-
- Generates a diff between base and head configurations
16
+
- Generates a diff showing what would actually change upon merge (not just differences between branches)
17
+
- Intelligently handles parallel changes to base and feature branches
17
18
- Configurable root directory and search depth for Kustomize files
18
19
- Commits must meet [Conventional Commits](https://www.conventionalcommits.org/en/v1.0.0/)
19
20
- Automated with GitHub Actions ([commit-lint](https://github.com/conventional-changelog/commitlint/#what-is-commitlint))
@@ -22,6 +23,16 @@ Managing Kubernetes configurations across multiple environments and PRs can be c
22
23
- Commits must be signed with [Developer Certificate of Origin (DCO)](https://developercertificate.org/)
23
24
- Automated with GitHub App ([DCO](https://github.com/apps/dco))
24
25
26
+
## How It Works
27
+
Unlike simple diff tools, this action:
28
+
29
+
1. Builds Kustomize output from the base branch
30
+
1. Creates a temporary merge of the head branch into base (simulating the actual PR merge)
31
+
1. Builds Kustomize output from the merged state
32
+
1. Compares these outputs to show exactly what would change after merging
33
+
34
+
This approach correctly handles cases where changes have been made to the base branch in parallel to the feature branch, avoiding misleading diffs that incorrectly suggest changes would be reverted.
0 commit comments