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

feat: always treat PR title as the default commit message #200

Merged
merged 1 commit into from
Sep 12, 2023

Conversation

mdjermanovic
Copy link
Member

Refs eslint/eslint#17555

Updates the logic related to commit messages to always treat the PR title as the default commit message. The change is made in the following plugins:

  • commit-message: it will always validate the PR title and add labels based on the tag from the PR title.
  • release-monitor: it will set the pending status based on the tag from the PR title.

Note: release-monitor still expects the old tags, so currently it basically disallows merging any PRs. I didn't fix that now. I think we should revisit our rules for merging PRs after releases, so I'll open an issue to discuss that and fix this plugin in a separate PR.

expect(nockScope.isDone()).toBeTruthy();
expect(nockScope2.isDone()).toBeTruthy();
expect(labelsScope.isDone()).toBeFalsy();
});

test("Posts success status if the commit message is longer than 72 chars after the newline", async () => {
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think this test wouldn't make sense with PR titles, so I've just deleted it.

Copy link
Contributor

@snitin315 snitin315 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, thanks! I will leave it open for others to review.

Copy link
Member

@nzakas nzakas left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@nzakas nzakas merged commit 7473faf into main Sep 12, 2023
2 checks passed
@nzakas nzakas deleted the always-pr-title branch September 12, 2023 14:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants