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

workflow: only verify commit message on main&minor branch #11544

Closed
wants to merge 1 commit into from

Conversation

sxzz
Copy link
Member

@sxzz sxzz commented Aug 7, 2024

For other branches, the commit message is set by the PR title before merging.

Copy link

github-actions bot commented Aug 7, 2024

Size Report

Bundles

File Size Gzip Brotli
runtime-dom.global.prod.js 90.2 kB (-8.09 kB) 34.6 kB (-2.71 kB) 31.2 kB (-2.37 kB)
vue.global.prod.js 147 kB (-9.05 kB) 54.1 kB (-2.97 kB) 48.1 kB (-2.64 kB)

Usages

Name Size Gzip Brotli
createApp 49.7 kB (-4.29 kB) 19.5 kB (-1.43 kB) 17.8 kB (-1.31 kB)
createSSRApp 53.2 kB (-4.64 kB) 21 kB (-1.56 kB) 19.1 kB (-1.41 kB)
defineCustomElement 51.9 kB (-6.61 kB) 20.2 kB (-2.15 kB) 18.5 kB (-1.9 kB)
overall 63.2 kB (-4.34 kB) 24.5 kB (-1.45 kB) 22.3 kB (-1.32 kB)

@yyx990803
Copy link
Member

I think it's still nice to enforce consistency since some commits on minor don't go through PRs.

@yyx990803 yyx990803 closed this Aug 7, 2024
async function main() {
const { stdout: branch } = await exec('git', ['branch', '--show-current'])
// only verify commit message on main and minor branches
if (branch !== 'main' && branch !== 'minor') {
Copy link
Member Author

Choose a reason for hiding this comment

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

@yyx990803 so, only verify on main and minor branches

Copy link
Member

@edison1105 edison1105 Aug 8, 2024

Choose a reason for hiding this comment

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

I fully understand the intention behind this PR. However, I want to emphasize that verifying commit messages is not a burden for contributors, as they are already aware of the content of their changes. Additionally, this practice can help them develop good commit habits, which is particularly beneficial in collaborative development with multiple people.

@yyx990803 yyx990803 reopened this Aug 7, 2024
@sxzz sxzz changed the title workflow: only verify commit message on main branch workflow: only verify commit message on main&minor branch Aug 7, 2024
@yyx990803 yyx990803 closed this Aug 8, 2024
@edison1105 edison1105 deleted the chore/verify-commit branch October 21, 2024 07:35
@edison1105 edison1105 restored the chore/verify-commit branch October 21, 2024 08:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants