Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

tools: fix commit-lint GH Actions CI #40845

Closed
wants to merge 9 commits into from

Conversation

aduh95
Copy link
Contributor

@aduh95 aduh95 commented Nov 17, 2021

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.

@nodejs-github-bot nodejs-github-bot added the meta Issues and PRs related to the general management of the project. label Nov 17, 2021
@aduh95 aduh95 added the author ready PRs that have at least one approval, no pending requests for changes, and a CI started. label Nov 23, 2021
jasnell pushed a commit that referenced this pull request Nov 25, 2021
PR-URL: #40845
Reviewed-By: James M Snell <jasnell@gmail.com>
@jasnell
Copy link
Member

jasnell commented Nov 25, 2021

Landed in 27b1088

@jasnell jasnell closed this Nov 25, 2021
targos pushed a commit that referenced this pull request Nov 26, 2021
PR-URL: #40845
Reviewed-By: James M Snell <jasnell@gmail.com>
@aduh95 aduh95 deleted the fix-commit-lint-ci branch December 3, 2021 15:37
danielleadams pushed a commit that referenced this pull request Jan 30, 2022
PR-URL: #40845
Reviewed-By: James M Snell <jasnell@gmail.com>
danielleadams pushed a commit that referenced this pull request Feb 1, 2022
PR-URL: #40845
Reviewed-By: James M Snell <jasnell@gmail.com>
@danielleadams danielleadams mentioned this pull request Feb 1, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
author ready PRs that have at least one approval, no pending requests for changes, and a CI started. meta Issues and PRs related to the general management of the project.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants