Opened 4 months ago

Last modified 4 months ago

#69227 new defect

Fix references to PRs and issues in other repos

Reported by: ryandesign (Ryan Carsten Schmidt) Owned by: admin@…
Priority: Normal Milestone:
Component: trac Version:
Keywords: Cc:
Port:

Description

I committed [fef4f9c647fad253dc30f2a9bf2ad2da7aaf5b74/macports-ports]. Trac added comment:ticket:69058:6 as follows:

py-wxpython-4.0: Fix build with cython 3

Closes: #69058
See: wxWidgets/Phoenixhttps://github.com/macports/macports-ports/pull/2514

What it should have written was:

py-wxpython-4.0: Fix build with cython 3

Closes: #69058
See: https://github.com/wxWidgets/Phoenix/issues/2514

Change History (1)

comment:1 Changed 4 months ago by raimue (Rainer Müller)

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.

Note: See TracTickets for help on using tickets.