From 5467cd7166c8bcad9b113a16dd71c654b4cf0a10 Mon Sep 17 00:00:00 2001 From: John Andersen Date: Tue, 5 Sep 2023 19:34:21 +0000 Subject: [PATCH] scripts: dump discussion: usage: Fix for upstream names with trailing forwardslash Signed-off-by: John Andersen --- scripts/dump_discussion.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/dump_discussion.py b/scripts/dump_discussion.py index 9288df3d45..9a0a333082 100644 --- a/scripts/dump_discussion.py +++ b/scripts/dump_discussion.py @@ -4,7 +4,7 @@ .. code-block:: console - $ python -u scripts/dump_discussion.py --token $(gh auth token) --owner $(git remote get-url upstream | sed -e 's/.*github.com\///g' | sed -e 's/\/.*//g') --repo $(git remote get-url upstream | sed -e 's/.*\///g') --discussion-number 1406 | tee 1406.json + $ python -u scripts/dump_discussion.py --token $(gh auth token) --owner $(git remote get-url upstream | sed -e 's/.*github.com\///g' | sed -e 's/\/.*//g') --repo $(git remote get-url upstream | sed -e 's/\/$//g' -e 's/.*\///g') --discussion-number 1406 | tee 1406.json """ import os import asyncio