-
Notifications
You must be signed in to change notification settings - Fork 141
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
[Improvement][Style] add autolink to issues in PR title and commit msg #551
Comments
@kaijchen @zuston @jerqi @felixcheung WDYT? |
Can we use the apache style like |
|
No. The asf doesn't expose the configurations to external resource except JIRA which is already been closed for public registration. I'd like to use |
I would suggest omit issue id in the title, and just add it in the PR description.
The PR title could be Modules:
Types:
|
The point to add issue id in the title is that we can links to issues and commits in Github's ecosystem. In most cases, only title is displayed for commits. Another benefit to include issue id in PR title(included in commit title automatically) is the commit is also linked to the issue. |
My point is, by just looking at the issue id, you don't get any information. Just click the 3 dots, you could see it the description. |
It's ok for me. |
also cc @xianjingfeng which was pointed to a wrong one. |
It's OK for me, thanks for your effort. @advancedxy |
It's OK for me. |
Seems the following format is preferred now?
|
It's preferred to use conventional commits. But I don't think all the committers are ready for this. Let's keep it as a personal preference for a while? If everyone agrees with conventional commits, we can also enforces this. |
How about combine issue ID and semantic commit message ?
For example:
|
### What changes were proposed in this pull request? Update flaky test template and pr template. ### Why are the changes needed? 1. Flaky test template * Title is not consistent with other templates. * Default parent issue is invalid. 2. PR template * Make the instructions shorter to read. * Let PR author remove the instructions so they will read (hopefully). * Update instructions, and add example for PR title. (Resolves #551) ### Does this PR introduce _any_ user-facing change? No. ### How was this patch tested? No need.
…pache#588) ### What changes were proposed in this pull request? Update flaky test template and pr template. ### Why are the changes needed? 1. Flaky test template * Title is not consistent with other templates. * Default parent issue is invalid. 2. PR template * Make the instructions shorter to read. * Let PR author remove the instructions so they will read (hopefully). * Update instructions, and add example for PR title. (Resolves apache#551) ### Does this PR introduce _any_ user-facing change? No. ### How was this patch tested? No need.
Code of Conduct
Search before asking
What would you like to be improved?
It's common and considered best practice to be able to click links to corresponding issues/PRs/tickets in the commit msg. To achieve this features, Github's autolinked references and links1 are used.
For example, Spark uses this feature to autolink Jiras.
![image](https://user-images.githubusercontent.com/807537/216869357-205d4cfb-7a37-47a4-beba-fef632399e57.png)
Since Uniffle are using Github Issues to track issues/request/improvements, etc. The issue is effective the same as the Jira ticket.
I'd like to propose an suggestion to improve the code context experience: add autolink to issues in PR title and commit msg.
How should we improve?
ISSUE
There's an exception rule for this: PR title prefixed with [Minor]/[MINOR] can be excused for this enforcement check.
Are you willing to submit PR?
Footnotes
https://docs.github.com/en/get-started/writing-on-github/working-with-advanced-formatting/autolinked-references-and-urls ↩
The text was updated successfully, but these errors were encountered: