Add helper method to get and linkify issue numbers

Review Request #8553 — Created Nov. 27, 2016 and discarded

misery
RBTools
release-0.7.x
8554
rbtools
halvorlu
The methods can be used to automatically find
issue numbers in review request description.

* linkify_ticket_refs: Make issues to a link
* get_ticket_refs: Returns issues as a set

Patch is based on work of Halvor Lund!


reviewbot
  1. Tool: Pyflakes
    Processed Files:
        rbtools/hooks/common.py
        rbtools/hooks/tests.py
    
    
    
    Tool: PEP8 Style Checker
    Processed Files:
        rbtools/hooks/common.py
        rbtools/hooks/tests.py
    
    
  2. 
      
misery
reviewbot
  1. Tool: Pyflakes
    Processed Files:
        rbtools/hooks/common.py
        rbtools/hooks/tests.py
    
    
    
    Tool: PEP8 Style Checker
    Processed Files:
        rbtools/hooks/common.py
        rbtools/hooks/tests.py
    
    
  2. 
      
david
  1. What is this used for?

    1. This can be used to parse possible issue numbers in a text like a commit description. So this can be used to automatically add issues to bugs_closed like https://reviews.reviewboard.org/r/8554/ do.

    2. Oh, I was searching for linkify_ticket_refs, which /r/8554/ doesn't use. For now, I think I'd prefer this to be localized within rbtools/hooks/mercurial.py.

  2. 
      
misery
Review request changed

Status: Discarded

Change Summary:

Merged into https://reviews.reviewboard.org/r/8554/

Loading...