New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details
Socket
Book a DemoSign in
Socket

commit-from

Package Overview
Dependencies
Maintainers
1
Versions
10
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

commit-from

Create a commit message from ticket details from issue sources.

latest
Source
npmnpm
Version
0.7.0
Version published
Weekly downloads
19
46.15%
Maintainers
1
Weekly downloads
 
Created
Source

commit-from

Create a commit message from ticket details from issue sources.

Why would I use this?

Because:

  • Automate all the things.
  • Save time by rapidly producing commit messages without switching contexts.
  • Enable automated releases by always including necessary metadata.

Currently support issue sources:

  • GitHub
  • Jira

Getting Started

Install node.js 4+.

Install via NPM

npm install -g commit-from

Configuration

Configuration is provided from the .cfconfig file in the user's home directory.

Example

[github]
  issuePrefix = issue-
  template = ~/.gittemplates/github.txt
  timeout = 75000

[jira]
  apiVersion = 2
  host = jira.myhost.org
  password = SprSrsPsswrd1234!@#$
  protocol = https
  strictSSL = true
  template = ~/.gittemplates/jira.txt
  timeout = 75000
  username = someuser

Help

commit-from -h

Git Aliases

# git config file
[alias]
  # current branch name
  current-branch=!git rev-parse --abbrev-ref HEAD
  cb=!git current-branch

  # commit with a message generated from a supported issue source
  commit-from = "!f() { git commit -e -m \"$(CB=$(git cb); if [[ $(dirname "${CB}") = "." ]]; then echo ""; else commit-from $1 $(basename "${CB}") ${@:2}; fi)\"; }; f"
  cf = !git commit-from

  # commit with a message generated from GitHub
  commit-from-github = !git commit-from github
  cfg = !git commit-from-github

  # commit all with a message generated from GitHub
  commit-all-from-github = "!f() { git add -A && git cfg ${@}; }; f"
  cafg = !git commit-all-from-github

  # commit with a message generated from Jira
  commit-from-jira = !git commit-from jira
  cfj = !git commit-from-jira

  # commit all with a message generated from Jira
  commit-all-from-jira = "!f() { git add -A && git cfj ${@}; }; f"
  cafj = !git commit-all-from-jira

Creating a Git Commit

git add <files>
git cfg # From GitHub
git cfj # From Jira

# or commit all the things
git cafg
git cafj

# use a custom template
git cfg -t /path/to/template.txt
git cfj -t /path/to/template.txt

Keywords

commit

FAQs

Package last updated on 27 Feb 2024

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts