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

ci: PRs titles must have a conventional commit prefix #2677

Merged
merged 2 commits into from
Oct 13, 2023

Conversation

rootulp
Copy link
Collaborator

@rootulp rootulp commented Oct 13, 2023

Closes #1539 by validating that PR titles have a conventional commit prefix

Testing

  1. should fail lint PR rootulp/celestia-app#42
  2. test: should pass lint PR rootulp/celestia-app#43

@rootulp rootulp self-assigned this Oct 13, 2023
@rootulp rootulp added the CI item that directly relates to or modify the CI label Oct 13, 2023
@rootulp rootulp marked this pull request as ready for review October 13, 2023 16:18
@rootulp rootulp enabled auto-merge (squash) October 13, 2023 19:00
Copy link
Contributor

@staheri14 staheri14 left a comment

Choose a reason for hiding this comment

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

Great! I'm curious to know whether the scope is mandatory for the title, or if just having the title and subject is enough?

Drawing inspiration from the description provided in https://github.com/amannn/action-semantic-pull-request for scope definition:

feat(ui): Add `Button` component
^    ^    ^
|    |    |__ Subject
|    |_______ Scope
|____________ Type

@rootulp
Copy link
Collaborator Author

rootulp commented Oct 13, 2023

Scope isn't mandatory for the PR title b/c rootulp#43 passed CI

@staheri14
Copy link
Contributor

Scope isn't mandatory for the PR title b/c rootulp#43 passed CI

Thanks for testing this out! 👍

@rootulp rootulp merged commit 4702ba2 into celestiaorg:main Oct 13, 2023
25 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
CI item that directly relates to or modify the CI
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Explore enforcing conventional commits
3 participants