feat(changelog): adicionar funcionalidades de leitura de atualizações

- Atualiza a data de geração do changelog
- Adiciona nova entrada de changelog com funcionalidades para marcar atualizações como lidas
- Melhora a lógica de geração de changelog para suportar o formato "type(scope): message"
This commit is contained in:
Felipe Coutinho
2025-12-08 15:17:10 +00:00
parent b7fcba77b7
commit ed2b7070eb
2 changed files with 12 additions and 12 deletions

View File

@@ -103,9 +103,9 @@ function generateChangelog() {
// Parseia conventional commits
const entries: ChangelogEntry[] = commits
.map((commit) => {
// Match conventional commit format: type: message
// Match conventional commit format: type: message or type(scope): message
const match = commit.message.match(
/^(feat|fix|perf|docs|style|refactor|test|chore):\s*(.+)$/
/^(feat|fix|perf|docs|style|refactor|test|chore)(\(.+\))?:\s*(.+)$/
);
if (!match) {
@@ -113,7 +113,7 @@ function generateChangelog() {
return null;
}
const [, type, title] = match;
const [, type, , title] = match;
return {
id: commit.hash,