Skip to content

tools: fix commit-lint GH Actions CI

In #40740, I tried to make a change to the commit-lint job for it to lint only one commit per PR. However, because I'm clearly lacking some git expertise, I did it completely wrong: instead of validating the first commit of the PR, it's now validating the.. last commit that landed on master before the CI starts. This PR aims to fix that.

I'm doing git reset HEAD^2 to land to the last commit in the PR, there might be a more elegant way to target the commit we're after without doing a git reset, but also it's not a very expensive operation so it may be just fine.

Merge request reports

Loading