We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 94d807d commit dacb516Copy full SHA for dacb516
src/proxy/processors/push-action/scanDiff.ts
@@ -35,8 +35,10 @@ type Match = {
35
const getDiffViolations = (diff: string, organization: string): Match[] | string | null => {
36
// Commit diff is empty, i.e. '', null or undefined
37
if (!diff) {
38
- console.log('No commit diff...');
39
- return 'No commit diff...';
+ console.log('No commit diff found, but this may be legitimate (empty diff)');
+ // Empty diff is not necessarily a violation - could be legitimate
40
+ // (e.g., cherry-pick with no changes, reverts, etc.)
41
+ return null;
42
}
43
44
// Validation for configured block pattern(s) check...
0 commit comments