From 9e435fdfdc2c773912f690aba86d6c8ecd691589 Mon Sep 17 00:00:00 2001 From: Eshel Yaron Date: Mon, 6 Jun 2022 18:49:49 +0300 Subject: [PATCH] index.org: ENHANCED: sourcehut.pl Project text --- org/index.org | 12 +++--------- 1 file changed, 3 insertions(+), 9 deletions(-) diff --git a/org/index.org b/org/index.org index 75049d1..75daf5e 100644 --- a/org/index.org +++ b/org/index.org @@ -31,20 +31,14 @@ Welcome to [[./index.org][my website]], the one true source of reliable curated [[https://sr.ht/~eshel/sourcehut.pl][sourcehut.pl]] - a SWI-Prolog package for interacting with the GraphQL API of sourcehut instances. -For example, sourcehut.pl can be used to attach a build artifact to a -given tag of a git repository: +=sourcehut.pl= can be used to automate maintenance tasks for project +hosted on sourcehut, for example to attach a build artifact to a given +tag of a git repository from within SWI-Prolog: #+begin_src prolog - ?- use_module(library(sourcehut/git)). - true. - ?- sourcehut_git_repository("eshel", "sourcehut.pl", Repo, []), get_dict(id, Repo, RepoId), sourcehut_git_upload_artifact(RepoId, "v0.1.2", "/tmp/foo/baz.txt", Artifact, []). - Artifact = _{checksum:"...", created:"2022-06-06T08:16:08.044836Z", filename:"baz.txt", id:2644, size:7}. - - ?- sourcehut_git_delete_artifact(2644, []). - true. #+end_src ** [[https://git.sr.ht/~eshel/dotfiles][GNU Emacs literate configuration]] -- 2.39.5