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

Allow for commit prefix #160

Open
wants to merge 16 commits into
base: dev
Choose a base branch
from

Commits on May 4, 2023

  1. feat(api.ts): add support for prefix configuration to be added to the…

    … generated message
    
    feat(config.ts): add prefix configuration option to be used in the generated message. Add validation to ensure prefix is not empty.
    amitayk committed May 4, 2023
    Configuration menu
    Copy the full SHA
    83a919b View commit details
    Browse the repository at this point in the history
  2. refactor(api.ts): improve readability by adding a space between prefi…

    …x and message content
    
    fix(config.ts): fix config validation for prefix to allow non-empty values
    amitayk committed May 4, 2023
    Configuration menu
    Copy the full SHA
    098db00 View commit details
    Browse the repository at this point in the history
  3. fix(api.ts): fix generatePrefix function to return undefined when con…

    …fig.prefix is undefined instead of falsy
    amitayk committed May 4, 2023
    Configuration menu
    Copy the full SHA
    b15a100 View commit details
    Browse the repository at this point in the history
  4. feat(api.ts): add support for generating commit message prefix from r…

    …egex pattern in git branch name
    
    feat(api.ts): add support for generating commit message prefix from git branch name if regex pattern is not provided
    feat(api.ts): add getCurrentGitBranch function to get current git branch name
    feat(api.ts): add generatePrefixFromRegex function to generate prefix from regex pattern in git branch name
    amitayk committed May 4, 2023
    Configuration menu
    Copy the full SHA
    abb488e View commit details
    Browse the repository at this point in the history

Commits on May 7, 2023

  1. Update src/api.ts

    Improve generatePrefixFromRegex function to handle capturing groups
    
    Co-authored-by: Takuya Ono <[email protected]>
    amitayk and takuya-o authored May 7, 2023
    Configuration menu
    Copy the full SHA
    2577ec1 View commit details
    Browse the repository at this point in the history
  2. refactor(api.ts): replace child_process.execSync with execaCommandSyn…

    …c to improve security and reliability
    
    refactor(api.ts): simplify prefix generation logic by checking if prefix is defined and not empty before using it
    fix(api.ts): fix conditional statement in generatePrefixFromRegex to return undefined when no match is found
    fix(api.ts): catch error in getCurrentGitBranch and log it to console instead of throwing it
    amitayk committed May 7, 2023
    Configuration menu
    Copy the full SHA
    4f6e95a View commit details
    Browse the repository at this point in the history
  3. chore(package.json): remove unused "child_process" dependency to decl…

    …utter dependencies list
    amitayk committed May 7, 2023
    Configuration menu
    Copy the full SHA
    148773e View commit details
    Browse the repository at this point in the history

Commits on May 23, 2023

  1. Merge with master

    amitayk committed May 23, 2023
    Configuration menu
    Copy the full SHA
    52122de View commit details
    Browse the repository at this point in the history

Commits on May 27, 2023

  1. Allow For Prefix: fix(config.ts): fix typo in OCO_PREFIX environment …

    …variable name
    
    feat(config.ts): add validation for OCO_PREFIX environment variable to ensure it is a valid string or regex pattern
    amitayk committed May 27, 2023
    Configuration menu
    Copy the full SHA
    dae0408 View commit details
    Browse the repository at this point in the history
  2. Allow For Prefix: refactor(api.ts): improve prefix validation by usin…

    …g regex instead of startsWith and endsWith methods
    amitayk committed May 27, 2023
    Configuration menu
    Copy the full SHA
    e0d1850 View commit details
    Browse the repository at this point in the history
  3. build

    amitayk committed May 27, 2023
    Configuration menu
    Copy the full SHA
    5021017 View commit details
    Browse the repository at this point in the history
  4. Allow For Prefix: refactor(api.ts): extract message prefixing logic t…

    …o a separate function to improve readability and maintainability
    
    feat(api.ts): add prefix to the message returned by getOpenCommitLatestVersion function to improve semantics and consistency with other functions
    amitayk committed May 27, 2023
    Configuration menu
    Copy the full SHA
    af6f99b View commit details
    Browse the repository at this point in the history
  5. build

    amitayk committed May 27, 2023
    Configuration menu
    Copy the full SHA
    59bc005 View commit details
    Browse the repository at this point in the history
  6. Merge branch 'dev' of https://github.com/di-sukharev/opencommit into …

    …allowForCommitPrefix
    amitayk committed May 27, 2023
    Configuration menu
    Copy the full SHA
    a82f8d0 View commit details
    Browse the repository at this point in the history

Commits on May 28, 2023

  1. build

    amitayk committed May 28, 2023
    Configuration menu
    Copy the full SHA
    02d0171 View commit details
    Browse the repository at this point in the history

Commits on Jul 5, 2023

  1. Configuration menu
    Copy the full SHA
    140761c View commit details
    Browse the repository at this point in the history