Skip to content

This Mercurial hook updates a Jira bug with mercurial commits. It utilizes Jira CLI and is triggered by Mercurial commits.

Notifications You must be signed in to change notification settings

ecnerwalawrence/mercurial-jira-hook

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 

Repository files navigation

mercurial-jira-hook

This Mercurial hook updates a Jira issue with your mercurial commits' comment. It utilizes Jira CLI and is triggered by Mercurial commits.

I wrote this hook so my mercurial commits would appear in a bug by putting my bug number into the comments. The hook will log the bug into the Jira comment field, if comment has "BUG:#JIRA_ISSUE".

Dependencies

jira cli 2.6.0

Installation

  1. If $HOME/.hgrc doesn't exist, you need to create this file. You then need to add the following line your $HOME/.hgrc Trigger by commits .hgrc
[hooks] commit = ~/.hg/jira-commit.sh or Trigger by push/pull/unbundle .hgrc: [hooks] changegroup = ~/.hg/jira-commit.sh Please read http://mercurial.selenic.com/wiki/Hook on how to configure this to fit your need.
  1. Create a jira-setting file in $HOME/.hg/jira-setting jira-settings:
# No space JIRA_HOST=(your mercurial host include port if necessary) JIRA_USERNAME=(your username) JIRA_PASSWORD=(your password)

TODO

Eventually, I will write a installation script that uses ruby brew or something to automate all these steps.

About

This Mercurial hook updates a Jira bug with mercurial commits. It utilizes Jira CLI and is triggered by Mercurial commits.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages