(content)
| 11 | const SKIP_SOURCES = new Set(['merge', 'squash', 'commit']); |
| 12 | |
| 13 | function getFirstMeaningfulLine(content) { |
| 14 | const lines = content.split(/\r?\n/); |
| 15 | for (const line of lines) { |
| 16 | const trimmed = line.trim(); |
| 17 | if (!trimmed || trimmed.startsWith('#')) { |
| 18 | continue; |
| 19 | } |
| 20 | return trimmed; |
| 21 | } |
| 22 | return ''; |
| 23 | } |
| 24 | |
| 25 | function main() { |
| 26 | const messageFilePath = process.argv[2]; |