-
Notifications
You must be signed in to change notification settings - Fork 5.5k
feat(ci): Add scopes to conventional-commit-check.yml #26212
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
Merged
Merged
Changes from all commits
Commits
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -334,15 +334,15 @@ We follow the [Conventional Commits](https://www.conventionalcommits.org/) speci | |
|
|
||
| Note: Each PR/commit should have a single primary type. If your changes span multiple categories, choose the most significant one or consider splitting into separate PRs. | ||
|
|
||
| **Scope (optional):** The area of code affected. Common scopes include: | ||
| **Scope (optional):** The area of code affected. Valid scopes are defined in [.github/workflows/conventional-commit-check.yml](.github/workflows/conventional-commit-check.yml). Common scopes include: | ||
|
|
||
| * `parser` - SQL parser and grammar | ||
| * `analyzer` - Query analysis and validation | ||
| * `planner` - Query planning, optimization, and rules (including CBO) | ||
| * `spi` - Service Provider Interface changes | ||
| * `scheduler` - Task scheduling and execution | ||
| * `protocol` - Wire protocol and serialization | ||
| * `connector` - Changes to connector functionality | ||
| * `connector` - Changes to broader connector functionality or conector SPI | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Typo "conector".
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Raised a PR for that, thanks |
||
| * `resource` - Resource management (memory manager, resource groups) | ||
| * `security` - Authentication and authorization | ||
| * `function` - Built-in functions and operators | ||
|
|
@@ -356,7 +356,7 @@ Note: Each PR/commit should have a single primary type. If your changes span mul | |
| * `docs` - Documentation | ||
| * `build` - Build system and dependencies | ||
|
|
||
| Additionally, any connector name (e.g., `hive`, `iceberg`, `delta`, `kafka`) or plugin name (e.g., `session-property-manager`, `access-control`, `event-listener`) can be used as a scope. | ||
| Additionally, any connector name (e.g., `hive`, `iceberg`, `delta`, `kafka`) or plugin name (e.g., `session-property-manager`, `access-control`, `event-listener`) can be used as a scope. These scopes should use the format `plugin-<name>` (e.g., `plugin-iceberg`, `plugin-password-authenticator`). | ||
|
|
||
| **Description:** | ||
| * Must start with a capital letter | ||
|
|
@@ -370,10 +370,11 @@ Additionally, any connector name (e.g., `hive`, `iceberg`, `delta`, `kafka`) or | |
| * Use to indicate any change that is not backward compatible as defined in the [Backward Compatibility Guidelines](presto-docs/src/main/sphinx/develop/release-process.rst#backward-compatibility-guidelines) | ||
|
|
||
| **Examples:** | ||
| * `feat(connector): Add support for dynamic catalog registration` | ||
| * `feat(connector): Add support for dynamic catalog registration` (new feature for connectors) | ||
| * `fix: Resolve memory leak in query executor` | ||
| * `docs(api): Update REST API documentation` | ||
| * `feat!: Remove deprecated configuration options` (breaking change) | ||
| * `feat(plugin-iceberg): Add support for Iceberg table properties` (new feature in Iceberg, **NOTE: connectors are plugins**) | ||
|
|
||
| ### Single Commit PRs | ||
| * **All PRs must be merged as a single commit** using GitHub's "Squash and merge" feature | ||
|
|
||
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I wonder if we should have some
native-subset of scopes.Looks like you altogether changed your mind (compared to the original commit for the commit check).
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes, before I made it so you had to provide a scope, but I already see lots of made up and random scopes, so I think it would be beneficial to provide one if a scope is provided.
Perhaps
nativeandnative-pos? What other scopes might there be with anativeprefix?There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Oops. What does
native-posmean?There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Presto on Spark