[all-commits] [llvm/llvm-project] fc3eed: [Github] Reformat strings for code format action (...

Aiden Grossman via All-commits all-commits at lists.llvm.org
Thu Dec 21 22:49:18 PST 2023


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: fc3eed1bce0322fcfd9726b9f2ba747cb9c63802
      https://github.com/llvm/llvm-project/commit/fc3eed1bce0322fcfd9726b9f2ba747cb9c63802
  Author: Aiden Grossman <agrossman154 at yahoo.com>
  Date:   2023-12-21 (Thu, 21 Dec 2023)

  Changed paths:
    M llvm/utils/git/code-format-helper.py

  Log Message:
  -----------
  [Github] Reformat strings for code format action (#75764)

Before this patch, there was a regression in comment formatting due to
some code formatting in bd3e8eb6e325081bf7cfbe93652aa825de3170e5. This
was fixed in 428660cfb986dd0a59cd2a16972c5f7109080522. Github interprets
a tab before a string as starting code formatting. The message that
indicted the code formatting in a PR had been fixed was refactored to a
python multi-line string, but with a tab in front, causing these
messages to be rendered as code blocks in Github, instead of as
intended. This patch builds upon the original fix to reformat the
strings so that they fit within ~80 character lines and are simpler to
modify in the future, hopefully removing traps like the one that caused
the original issue.




More information about the All-commits mailing list