public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
* [rpms/php] private-php86: handles links to GH security issues
@ 2026-11-27 7:32 Remi Collet
0 siblings, 0 replies; only message in thread
From: Remi Collet @ 2026-11-27 7:32 UTC (permalink / raw)
To: git-commits
A new commit has been pushed.
Repo : rpms/php
Branch : private-php86
Commit : 2ab121573ee779a2ee0d443ebe4c29045bdf5aa6
Author : Remi Collet <remi@fedoraproject.org>
Date : 2023-02-16T07:36:06+01:00
Stats : +4/-1 in 1 file(s)
URL : https://src.fedoraproject.org/rpms/php/c/2ab121573ee779a2ee0d443ebe4c29045bdf5aa6?branch=private-php86
Log:
handles links to GH security issues
---
diff --git a/news2markdown.php b/news2markdown.php
index cc28590..8387b5d 100755
--- a/news2markdown.php
+++ b/news2markdown.php
@@ -24,8 +24,11 @@ foreach ($text as $line) {
if ($debug) echo "+ Ignore $line\n";
continue;
}
+ $github = 'https://github.com/php/php-src';
+
$line = preg_replace('/(#[0-9]+)/', 'php\1', $line);
- $line = preg_replace('/(GH-([0-9]+))/', '[\1](https://github.com/php/php-src/issues/\2)', $line);
+ $line = preg_replace('/(GH-([0-9]+))/', "[\\1]($github/issues/\\2)", $line);
+ $line = preg_replace('/(GHSA-([^ ]+))/', "[\\1]($github/security/advisories/\\1)", $line);
$line = preg_replace('/(CVE-[0-9]+-[0-9]+)/', '**\1**', $line);
if (empty($line)) {
echo "\n\n";
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2026-11-27 7:32 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-11-27 7:32 [rpms/php] private-php86: handles links to GH security issues Remi Collet
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox