commit:     df4a1304edd1dec44ced875ee7c83698e6834f5b
Author:     Thomas Bracht Laumann Jespersen <t <AT> laumann <DOT> xyz>
AuthorDate: Sun Oct 19 10:45:48 2025 +0000
Commit:     Michał Górny <mgorny <AT> gentoo <DOT> org>
CommitDate: Wed Dec 17 16:40:01 2025 +0000
URL:        https://gitweb.gentoo.org/proj/pram.git/commit/?id=df4a1304

add initial codeberg support

Part-of: https://github.com/gentoo/pram/pull/16
Signed-off-by: Michał Górny <mgorny <AT> gentoo.org>

 pram | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/pram b/pram
index 1ffa942..d333b6d 100755
--- a/pram
+++ b/pram
@@ -271,6 +271,11 @@ main() {
                        to_close=${pr%%.bugs*}
                        to_close="https://bugs.gentoo.org/${to_close#*://}";
                        ;;
+               *://codeberg.org/*/*/pulls/*)
+                       # Codeberg URL
+                       to_close=${pr%.patch}
+                       pr=${to_close}.patch
+                       ;;
                *://*)
                        # arbitrary URL
                        to_close=

Reply via email to