From 1c4ffcd563f00ce7be6ad5a270a09f2f42b674d3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Thorben=20G=C3=BCnther?= Date: Mon, 30 Oct 2023 17:27:50 +0100 Subject: [PATCH] Hut supports clearing the README now --- readme.html | 11 ++--------- 1 file changed, 2 insertions(+), 9 deletions(-) diff --git a/readme.html b/readme.html index 0beadea..d34de34 100644 --- a/readme.html +++ b/readme.html @@ -25,13 +25,6 @@

Removing the custom README

If you want to go back to sourcehut's default way of rendering the - README from markdown, you can do this by manually executing a GraphQL - mutation. hut does not yet support this functionality. + README from markdown, you can do this with + hut git update --readme "".

-
# enter your own OAuth2 token
-export TOKEN="YourOAuth2Token"
-# find out the ID of your repository
-curl --oauth2-bearer $TOKEN https://git.sr.ht/query -d '{"query": "query { me { repository(name: \"custom-readme\"){ id } }  }"}'
-# remove custom README
-curl --oauth2-bearer $TOKEN https://git.sr.ht/query -d '{"query": "mutation{ updateRepository(id: 42, input: { readme: null }) { id }  }"}'
-
-- 2.44.0