You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When no trailer was configured in git configuration, TRAILERS_BY_REGEX
remained empty. This caused the subsequent match condition to always
evaluate to true, leading to incorrect footer sorting regardless of
their content. To address this issue, the update ensures that when the
configuration is empty, default terms are used to initialize
TRAILERS_BY_REGEX. The sorting mechanism is then adjusted to prioritize
other footers, configured trailers, and the change-id.
Co-authored-by: EricccTaiwan <[email protected]>
Change-Id: I6df5438b7ec6c85f5438f869b44cd14589c03339
Refactor commit trailer regex
Refactor commit trailer regex by renaming default_trailers_by to
DEFAULT_TRAILERS_BY to follow the naming convention for global
variables.Then refine build_commit_trailer_regex by reusing the array.
Co-authored-by: EricccTaiwan <[email protected]>
Change-Id: I7c7e9367f59a6da0ff84605904d08343ad558f42
0 commit comments