Skip to content

Update commit-commit output when failed or success #29

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

Closed
2 tasks done
shenxianpeng opened this issue Nov 24, 2022 · 1 comment · Fixed by #192
Closed
2 tasks done

Update commit-commit output when failed or success #29

shenxianpeng opened this issue Nov 24, 2022 · 1 comment · Fixed by #192
Labels
enhancement New feature or request help wanted Extra attention is needed

Comments

@shenxianpeng
Copy link
Contributor

shenxianpeng commented Nov 24, 2022

Maybe?

  • combine multi errors into one error
  • print success msg when executed without errors?
@shenxianpeng shenxianpeng added the documentation Improvements or additions to documentation label Nov 24, 2022
@shenxianpeng shenxianpeng changed the title Print success msg when execute without errors update commit-commit output when failed or success Feb 1, 2023
@shenxianpeng
Copy link
Contributor Author

shenxianpeng commented Mar 11, 2024

Current results

Commit rejected by Commit-Check.                                  
                                                                  
  (c).-.(c)    (c).-.(c)    (c).-.(c)    (c).-.(c)    (c).-.(c)  
   / ._. \      / ._. \      / ._. \      / ._. \      / ._. \   
 __\( C )/__  __\( H )/__  __\( E )/__  __\( C )/__  __\( K )/__ 
(_.-/'-'\-._)(_.-/'-'\-._)(_.-/'-'\-._)(_.-/'-'\-._)(_.-/'-'\-._)
   || E ||      || R ||      || R ||      || O ||      || R ||   
 _.' '-' '._  _.' '-' '._  _.' '-' '._  _.' '-' '._  _.' '-' '._ 
(.-./`\.-.)(.-./`\.-.)(.-./`\.-.)(.-./`\.-.)(.-./`\.-.)
 ``````````
                                                                  
Commit rejected.                                                  
                                                                  
Type message check failed => Update main.yaml

 
It doesn't match regex: ^(build|chore|ci|docs|feat|fix|perf|refactor|revert|style|test){1}(\([\w\-\.]+\))?(!)?: ([\w ])+([\s\S]*)|(Merge).*|(fixup!.*)

The commit message should be structured as follows:

<type>[optional scope]: <description>
[optional body]
[optional footer(s)]

More details please refer to https://www.conventionalcommits.org
Suggest: please check your commit message whether matches above regex 

Commit rejected by Commit-Check.                                  
                                                                  
  (c).-.(c)    (c).-.(c)    (c).-.(c)    (c).-.(c)    (c).-.(c)  
   / ._. \      / ._. \      / ._. \      / ._. \      / ._. \   
 __\( C )/__  __\( H )/__  __\( E )/__  __\( C )/__  __\( K )/__ 
(_.-/'-'\-._)(_.-/'-'\-._)(_.-/'-'\-._)(_.-/'-'\-._)(_.-/'-'\-._)
   || E ||      || R ||      || R ||      || O ||      || R ||   
 _.' '-' '._  _.' '-' '._  _.' '-' '._  _.' '-' '._  _.' '-' '._ 
(.-./`-´\.-.)(.-./`-´\.-.)(.-./`-´\.-.)(.-./`-´\.-.)(.-./`-´\.-.)
 `-´     `-´  `-´     `-´  `-´     `-´  `-´     `-´  `-´     `-´ 
                                                                  
Commit rejected.                                                  
                                                                  
Type commit_signoff check failed => d4559c2a077730f904f2529789acfdcca149c86b 
It doesn't match regex: Signed-off-by:.*[A-Za-z0-9]\s+<[\w\.]+@([\w-]+\.)+[\w-]{2,4}>

Signed-off-by not found in latest commit
Suggest: run command `git commit -m "conventional commit message" --signoff` 

Expected results something like that

Commit rejected by Commit-Check.                                  
                                                                  
  (c).-.(c)    (c).-.(c)    (c).-.(c)    (c).-.(c)    (c).-.(c)  
   / ._. \      / ._. \      / ._. \      / ._. \      / ._. \   
 __\( C )/__  __\( H )/__  __\( E )/__  __\( C )/__  __\( K )/__ 
(_.-/'-'\-._)(_.-/'-'\-._)(_.-/'-'\-._)(_.-/'-'\-._)(_.-/'-'\-._)
   || E ||      || R ||      || R ||      || O ||      || R ||   
 _.' '-' '._  _.' '-' '._  _.' '-' '._  _.' '-' '._  _.' '-' '._ 
(.-./`\.-.)(.-./`\.-.)(.-./`\.-.)(.-./`\.-.)(.-./`\.-.)
 ``````````
                                                                  
Commit rejected.                                                  
                                                                  
(1) Type message check failed => Update main.yaml

 
It doesn't match regex: ^(build|chore|ci|docs|feat|fix|perf|refactor|revert|style|test){1}(\([\w\-\.]+\))?(!)?: ([\w ])+([\s\S]*)|(Merge).*|(fixup!.*)

The commit message should be structured as follows:

<type>[optional scope]: <description>
[optional body]
[optional footer(s)]

More details please refer to https://www.conventionalcommits.org
Suggest: please check your commit message whether matches above regex 
                                             
                                                                  
(2) Type commit_signoff check failed => d4559c2a077730f904f2529789acfdcca149c86b 
It doesn't match regex: Signed-off-by:.*[A-Za-z0-9]\s+<[\w\.]+@([\w-]+\.)+[\w-]{2,4}>

Signed-off-by not found in latest commit
Suggest: run command `git commit -m "conventional commit message" --signoff` 

@shenxianpeng shenxianpeng added enhancement New feature or request help wanted Extra attention is needed and removed documentation Improvements or additions to documentation labels Mar 15, 2024
@shenxianpeng shenxianpeng changed the title update commit-commit output when failed or success Update commit-commit output when failed or success Nov 5, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request help wanted Extra attention is needed
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant