Posts Tagged ‘Assembla’

Create and list new tickets through the Assembla API

Friday, October 23rd, 2009

A while back I created a PHP library for interacting with the Assembla Ticket API. I thought it might be useful to someone, so here it is.

You can use this library to create and list tickets that exist for one of your Assembla spaces. It’s useful for integrating bug reporting and other feedback features into an application that you may be developing. This code is very much a work in progress, so please let me know if you encounter any bugs or have any new feature requests.

You can view and download the code on GitHub:

github-logo

Delete Branch From Remote Git Repo [Assembla]

Thursday, July 9th, 2009

We’ve just started using Git and Assembla at our office for version control and ticket tracking. Having never used any sort of version control before, this has been an interesting experience. It’s been a joy to work with so far, but there have definitely been some hurdles to overcome.

One issue we had was how to delete a branch that we had created that we no longer wanted to maintain. We had been playing around and had created several branches that we would not be maintaining. The important thing to remember is that both your local and remote repositories are two separate entities. So the branch must be deleted from all repositories to completely be rid of it.

Remote Branch

$ git push remotename :branchname

The key here being the colon preceding the branch name. The format being:

$ git push <repository> <refspec>

Where <refspec> is written:

<src>:<dst>

Pushing an empty <src> allows you to delete the <dst> ref from the remote repository.

Local Branch

$ git branch -D branchname

I stumbled upon the solution in this Assembla forum post.

We’re also starting to accumulate a fair amount of information on our staff wiki. You’re welcome to take a look if you’re into that sort of thing.