Skip to content

Update commit-commit output when failed or success #29

Closed

Description

@shenxianpeng

Maybe?

  • combine multi errors into one error
  • print success msg when executed without errors?

Activity

  1. added
    documentation
    on Nov 24, 2022
  2. changed the title [-]Print success msg when execute without errors[/-] [+]update commit-commit output when failed or success[/+] on Feb 1, 2023
  3. shenxianpeng commented on Mar 11, 2024

    @shenxianpeng
    MemberAuthor

    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` 
  4. added
    enhancement
    help wanted
    and removed
    documentation
    on Mar 15, 2024
  5. changed the title [-]update commit-commit output when failed or success[/-] [+]Update commit-commit output when failed or success[/+] on Nov 5, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementhelp wanted

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions