DefaultIgnorePatterns returns the default list of ignore patterns These patterns match commit messages auto-generated by git commands like merge, revert, fixup, squash, etc.
()
| 16 | // These patterns match commit messages auto-generated by git commands |
| 17 | // like merge, revert, fixup, squash, etc. |
| 18 | func DefaultIgnorePatterns() []string { |
| 19 | return []string{ |
| 20 | // GitHub / GitLab merge |
| 21 | `^Merge pull request #\d+`, |
| 22 | `^Merge .+ into .+`, |
| 23 | `^Merge branch '.+'`, |
| 24 | `^Merge tag '.+'`, |
| 25 | `^Merge remote-tracking branch '.+'`, |
| 26 | |
| 27 | // Azure DevOps / Bitbucket merge |
| 28 | `^Merged .+ (in|into) .+`, |
| 29 | `^Merged PR #?\d+`, |
| 30 | |
| 31 | // Revert and Reapply |
| 32 | `^(R|r)evert `, |
| 33 | `^(R|r)eapply `, |
| 34 | |
| 35 | // Fixup, Amend, Squash (git commit --fixup/--squash) |
| 36 | `^(amend|fixup|squash)! `, |
| 37 | |
| 38 | // Automatic merges |
| 39 | `^Automatic merge`, |
| 40 | `^Auto-merged .+ into .+`, |
| 41 | |
| 42 | // Initial commit |
| 43 | `^Initial commit$`, |
| 44 | } |
| 45 | } |
| 46 | |
| 47 | // DefaultTypeEnums returns the default list of type enums |
| 48 | func DefaultTypeEnums() []interface{} { |
no outgoing calls