Skip to content

Commit 34b7ce0

Browse files
committed
build: update revert pattern in changelog generator
This change will handle github reverts such as #19736 (cherry picked from commit b3ed8aa)
1 parent e1e273f commit 34b7ce0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

scripts/changelog.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,7 @@ export default async function(args: ChangelogOptions, logger: logging.Logger) {
103103
headerPattern: /^(\w*)(?:\(([^)]*)\))?: (.*)$/,
104104
headerCorrespondence: ['type', 'scope', 'subject'],
105105
noteKeywords: ['BREAKING CHANGE'],
106-
revertPattern: /^revert:\s([\s\S]*?)\s*This reverts commit (\w*)\./,
106+
revertPattern: /^revert:?\s([\s\S]*?)\s*This reverts commit (\w*)\./i,
107107
revertCorrespondence: [`header`, `hash`],
108108
}),
109109
)

0 commit comments

Comments
 (0)