technoweenie / lighthouse_branch forked from guitsaru/lighthouse_branch

Easily manage branches based off lighthouse tickets.

This URL has Read+Write access

commit  28ecd925279856bc1acc47e357a61aa995b712e4
tree    bf2da659efea70b813ee386dba5644ddb352b72f
parent  a0fbf52c2c9b5816588bffa172dc4d4aee9ad12f
README.rdoc

lighthouse_branch

Installation

    sudo gem install lighthouse_branch

Setup

Add your Lighthouse project settings to your repo’s git config.

    git config lighthouse.account [lighthouse account subdomain]
    git config lighthouse.token [lighthouse API token]
    git config lighthouse.project [lighthouse project id]

Usage

lh-branch [ticket_id]: Creates a branch based on the ticket name.

    lh-branch 1 #=> git checkout -b 1-ticket-title

lh-branch push [ticket_id] [remote name]: Pushes the ticket’s branch to the named remote.

    lh-branch push 1 origin #=> git push origin 1-ticket-title

lh-branch pull [ticket_id] [remote name]: Pulls the ticket’s branch from the named remote.

    lh-branch pull 1 origin #=> git pull origin 1-ticket-title

lh-branch merge [ticket_id]: Merges the ticket’s branch with the current branch.

    lh-branch merge 1 #=> git merge 1-ticket-title

lh-branch checkout [ticket_id]: Checks out the ticket’s branch, making it the current branch.

    lh-branch checkout 1 #=> git checkout 1-ticket-title

lh-branch delete [ticket_id]: Deletes the ticket’s branch.

    lh-branch delete 1 #=> git branch -d 1-ticket-title

lh-branch resolve 1 [message]: Creates a commit that will mark the ticket resolved.

    lh-branch resolve 1 "Fixed the bug." #=> git commit -a -m "Fixed the bug\n\n[#1 state:resolved]"

Copyright

Copyright © 2009 Matt Pruitt. See LICENSE for details.