Created
          September 2, 2011 20:56 
        
      - 
      
- 
        Save bitprophet/1189894 to your computer and use it in GitHub Desktop. 
    Partial Cony settings file
  
        
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | def github(query, url): | |
| url = "https://github.com/%s/issues" % url | |
| # Direct to issue number | |
| try: | |
| redirect("%s/%s" % (url, int(query))) | |
| except ValueError: | |
| # New ticket | |
| if query == "new": | |
| redirect("%s/new" % url) | |
| # Issue list | |
| elif query == "": | |
| redirect(url) | |
| # Phrase search | |
| else: | |
| redirect("%s/search?q=%s" % (url, query)) | |
| # Fabric tickets | |
| def cmd_fab(query): | |
| github(query, "fabric/fabric") | 
  
    Sign up for free
    to join this conversation on GitHub.
    Already have an account?
    Sign in to comment