+1, with some conditions about the details of PIP 198 that are listed below:

Would it be possible to improve the proposal in a way that the valid prefixes 
for type and component are in a file in the repository and the possible checker 
would use this file as the source of truth? Tison already pointed out in a 
Slack discussion that such a GHA exists which uses a yaml file.

I also hope that the prefixes are as short as possible since there's a general 
recommendation to keep a commit title under 50 characters as I have explained 
in https://lists.apache.org/thread/67fqbo25oq75wrpsq5s4xw9rr55mlbms . I know 
it's not a hard limit, but it does harm readability of the commit log in many 
tools if prefixes use up a majority of the title length. 

So as long as the prefixes are short and easy, I'm fine with this proposal. 

I would have hoped that the proposal would have been more like the Angular 
commit message format, 
https://github.com/angular/angular/blob/main/CONTRIBUTING.md#-commit-message-format
 . I like the short prefixes and how the "component" is "scope" and maps to a 
npm module. 

In our case, the scope (we are calling this "component") could map directly to 
the Maven artifactId by droping the "pulsar-" prefix. That would prevent making 
up new names for the components that are different from existing names. 
for example: artifactId: pulsar-broker, use "broker"
artifactId: pulsar-io-kafke, use "io-kafka"
There would be some exceptions in the apache/pulsar repository for the cpp 
client. That could be client-cpp (from directory name "pulsar-client-cpp" by 
dropping the "pulsar-" prefix). 

Another concern that I had was about duplicating the information with labels. 
Tison explained to my that the automation could add the labels based on the 
title and the user wouldn't have to add duplicate information if such a 
solution exists.

Summary:
I hope that PIP 198 could be revisited with the proposed way to map the 
component name directly from the Maven artifactId. Another request is to 
shorten the type (use "feat" instead of "feature", etc.) to save characters. 
I hope we could get rid of the brackets too and simply use a similar format as 
Angular does.

-Lari

On 2022/08/04 08:12:21 Yu wrote:
> Hi team,
> 
> It has been 4 months since we discussed the [Guideline] Pulsar PR Naming
> Convention [1].
> 
> Nowadays, when reading the PR list [2], you’ll find more and more people
> follow and get used to this rule.
> 
> It improves collaboration efficiency, that is great!
> 
> This makes us think about moving the rule forward, that is, standardizing
> PR title naming using GitHub Actions, which is a more efficient way.
> 
> So we'd like to start a vote on PIP 198: Standardize PR Naming Convention
> using GitHub Actions [3].
> 
> 
> This proposal contains:
> 
> - Why do this?
> 
> - How do this?
> 
> - Pre-discussions and other thoughts
> 
> Feel free to comment, thank you!
> 
> [1] https://lists.apache.org/thread/sk9ops3t94jmzc5tndk08y9khf7pj6so
> 
> [2] https://github.com/apache/pulsar/pulls
> 
> [3]
> https://docs.google.com/document/d/1sJlUNAHnYAbvu9UtEgCrn_oVTnVc1M5nHC19x1bFab4/edit?pli=1#
> 
> 
> Yu, Max, mangoGoForward
> 

Reply via email to