[webkit-changes] [WebKit/WebKit] ab87e1: [webkitscmpy] Add commit message parser

Brianna Fan noreply at github.com
Tue Jan 7 14:54:52 PST 2025


  Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: ab87e1500e6b16c7bf7375f2cbcf8372d85e2378
      https://github.com/WebKit/WebKit/commit/ab87e1500e6b16c7bf7375f2cbcf8372d85e2378
  Author: Brianna Fan <bfan2 at apple.com>
  Date:   2025-01-07 (Tue, 07 Jan 2025)

  Changed paths:
    A Tools/Scripts/libraries/webkitscmpy/webkitscmpy/commit_parser.py

  Log Message:
  -----------
  [webkitscmpy] Add commit message parser
https://bugs.webkit.org/show_bug.cgi?id=285525
rdar://142479234

Reviewed by Jonathan Bedard.

Add CommitMessageParser which will separate a commit message
into its components (title, review, description, tests, modified).

This enables revising the changelog when amending while keeping
the user's comments.

* Tools/Scripts/libraries/webkitscmpy/webkitscmpy/commit_parser.py: Added.
(ParseState):
(CommitMessageParser):
(CommitMessageParser.__init__):
(CommitMessageParser.parse_file):
(CommitMessageParser._parse_modified_files_lines):
(CommitMessageParser.apply_comments_to_modified_files_lines):
(delete_trailing_blank_lines):

Canonical link: https://commits.webkit.org/288565@main



To unsubscribe from these emails, change your notification settings at https://github.com/WebKit/WebKit/settings/notifications


More information about the webkit-changes mailing list