From bb3a0221403b53be7e607abc2bd5b569433fa10c Mon Sep 17 00:00:00 2001 From: Matěj Cepl Date: Wed, 27 Mar 2024 16:29:15 +0100 Subject: fix(osurl): gh#foo/bar!num is ID of pull request, not discussion. --- osurl | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'osurl') diff --git a/osurl b/osurl index 4775783..171ab73 100755 --- a/osurl +++ b/osurl @@ -24,7 +24,9 @@ STR="$(echo "$STR" | sed -E -e 's@sr[#-]([0-9])@https://build.opensuse.org/reque STR="$(echo "$STR" | sed -E -e 's@jsc[#-](\S+)@https://jira.suse.com/browse/\1@')" STR="$(echo "$STR" | sed -E -e 's@gh[#-]([^#]*)[#-]([0-9]+)@https://github.com/\1/issues/\2@')" STR="$(echo "$STR" | sed -E -e 's!gh[#-]([^#]*)@(\S+)!https://github.com/\1/commit/\2!')" -STR="$(echo "$STR" | sed -E -e 's@gh[#-]([^#]*)!(\S+)@https://github.com/\1/discussions/\2@')" +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@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