Skip to content

Markdownlint script not checking against fork branches properly

Sometimes the markdownlint job doesn't scan the changed files because it's not capturing the branch name correctly.

Examples:

  1. https://gitlab.com/archish27/handbook/-/jobs/7765170436#L55 likely because this is a fork archish27/handbook:main. It likely had main as the source branch.
  2. https://gitlab.com/gitlab-com/content-sites/handbook/-/jobs/7757533870#L57 josephjose/handbook:josephjose-main-patch-6148, most likely thinking the branch is josephjose-main-patch-6148.
To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information