MCPcopy Index your code
hub / github.com/getsentry/sentry-javascript / flushCurrentEntry

Function flushCurrentEntry

scripts/generate-changelog.ts:83–98  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

81 };
82
83 const flushCurrentEntry = (): void => {
84 if (currentEntry.length === 0 || !currentType) return;
85
86 // Remove trailing empty lines from the entry
87 while (currentEntry.length > 0 && !currentEntry[currentEntry.length - 1]?.trim()) {
88 currentEntry.pop();
89 }
90
91 if (currentEntry.length === 0) return;
92
93 const entry = createEntry(currentEntry.join('\n'), currentType);
94 addEntry(entry);
95
96 currentEntry = [];
97 currentType = null;
98 };
99
100 const processDetailsContent = (): void => {
101 for (const line of detailsContent) {

Callers 1

parseChangelogFunction · 0.85

Calls 2

createEntryFunction · 0.85
addEntryFunction · 0.85

Tested by

no test coverage detected