[MacPorts] #69227: Fix references to PRs and issues in other repos

MacPorts noreply at macports.org
Sat Feb 3 20:48:04 UTC 2024


#69227: Fix references to PRs and issues in other repos
-------------------------+---------------------
  Reporter:  ryandesign  |      Owner:  admin@…
      Type:  defect      |     Status:  new
  Priority:  Normal      |  Milestone:
 Component:  trac        |    Version:
Resolution:              |   Keywords:
      Port:              |
-------------------------+---------------------

Comment (by raimue):

 The rules for these replacements are defined in trac.ini:

 https://github.com/macports/trac.macports.org/blob/a939f78907f0d4df6a102215e88865ec73b7d0b7/conf/trac.ini#L25-L31

 We would need to configure a better regex in the Trac configuration to
 replace ticket references only with whitespace before (or at a word
 boundary?). Then we could also add a new rule `([\w.-]+/[\w.-]+)+#(\d+)`
 to match references to other repositories and replace them with the
 corresponding GitHub URL.

-- 
Ticket URL: <https://trac.macports.org/ticket/69227#comment:1>
MacPorts <https://www.macports.org/>
Ports system for macOS


More information about the macports-tickets mailing list