astropy/astropy — pull request #136 by eteq (2012-01-27 19:48:54+00:00)
Title: added issue_to_pr function

This adds a function that makes it simple to attach code to a github issue, converting it to a pull request. Note that there are no tests for this right now, because of course there's no good way to interact with the github repo without messing with the issues list.

A couple things to consider before merging:

1. Should this be included in astropy? I could also just put this as a gist or something like that, and we can just direct people to it that want to use it there. If it should go in astropy, does the location I put it make sense (a new "utils/manage" module - in the future we would put things like release scripts there, as well)?
2. I can't full test how this interacts with permissions because I own the repository I was testing this on... could someone go to https://github.com/eteq/apiexp/issues, add an issue, and see if they can attach code to an issue they created, even if they don't own the repository?