Skip to content

Run in command line #21

Open
Open

Description

@ZhaoXiangXML

Is it possible to run the script for a range of commits from command line?

Something like:

commit-msg-linter sha1 sha2

So it can be ran from CI to make sure every commit message from sha1 and sha2 are valid.

Activity

  1. legend80s commented on Jun 8, 2022

    @legend80s
    Owner
  2. legend80s commented on Feb 9, 2023

    @legend80s
    Owner

    How to get the commit messages from sha1 to sha2?

  3. legend80s commented on Feb 9, 2023

    @legend80s
    Owner

    How to get the commit messages from sha1 to sha2?

    git log sha1..sha2 --pretty=format:%s
    

    output

    msg1
    msg2
    msg3
    

    What is your expected output of commit-msg-linter sha1 sha2? Just exit with code 1 and print the invalid msg list?

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

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions