mirror of
https://github.com/OPM/ResInsight.git
synced 2026-11-01 16:43:03 -06:00
The peter-evans/create-pull-request action fails for fork PRs because it tries to fetch a branch that only exists in the fork. Add conditional logic to handle fork PRs differently: - Fork PRs: Run black --check --diff and fail if formatting issues exist - Same-repo PRs and pushes: Keep existing behavior (run black, create fix PR)