From c537d6f934ee4ec5c8ee72f8e568e7151fa3135b Mon Sep 17 00:00:00 2001 From: Matěj Cepl Date: Thu, 28 Mar 2024 16:43:10 +0100 Subject: fix(osurl,abbrevURL): add/fix support for GitHub Discussions. --- osurl | 1 + 1 file changed, 1 insertion(+) (limited to 'osurl') diff --git a/osurl b/osurl index 171ab73..ae5504d 100755 --- a/osurl +++ b/osurl @@ -27,6 +27,7 @@ STR="$(echo "$STR" | sed -E -e 's!gh[#-]([^#]*)@(\S+)!https://github.com/\1/comm STR="$(echo "$STR" | sed -E -e 's@gh[#-]([^#]*)!(\S+)@https://github.com/\1/pull/\2@')" # Python exception STR="$(echo "$STR" | sed -E -e 's@gh[#-]([0-9]+)[: ]*@https://github.com/python/cpython/issues/\1@')" +STR="$(echo "$STR" | sed -E -e 's@gh[#-]([^#]*)\$(\S+)@https://github.com/\1/discussions/\2@')" STR="$(echo "$STR" | sed -E -e 's@gl[#-]([^#]*)[#-](\S+)@https://gitlab.com/\1/issues/\2@')" STR="$(echo "$STR" | sed -E -e 's@gl[#-]([^#]*)!(\S+)@https://gitlab.com/\1/-/merge_requests/\2@')" STR="$(echo "$STR" | sed -E -e 's@bt[#-]([^#]*)[#-](\S+)@https://bitbucket.org/\1/issues/\2@')" -- cgit