Skip to Content.
Sympa Menu

sm-commit - [SM-Commit] GIT changes to master wand by Vlad Glagolev (18863537cf915e950fb9b5cc89800c9cff000eb9)

sm-commit AT lists.ibiblio.org

Subject: Source Mage code commit list

List archive

Chronological Thread  
  • From: Vlad Glagolev <scm AT sourcemage.org>
  • To: sm-commit AT lists.ibiblio.org
  • Subject: [SM-Commit] GIT changes to master wand by Vlad Glagolev (18863537cf915e950fb9b5cc89800c9cff000eb9)
  • Date: Wed, 26 May 2021 23:43:44 +0000

GIT changes to master wand by Vlad Glagolev <stealth AT sourcemage.org>:

remirror/remirror | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)

New commits:
commit 18863537cf915e950fb9b5cc89800c9cff000eb9
Author: Vlad Glagolev <stealth AT sourcemage.org>
Commit: Vlad Glagolev <stealth AT sourcemage.org>

Use parameterization in GraphQL query

diff --git a/remirror/remirror b/remirror/remirror
index 53f6b0e..67ec4a7 100755
--- a/remirror/remirror
+++ b/remirror/remirror
@@ -346,7 +346,8 @@ class ProviderSourceHut(Provider):
def sanity_check(self, repo):
# GraphQL
graphql = "/query"
- repo_ok = {'query': '{{ repositoryByOwner(owner: "{0}", repo: "{1}")
{{ name }} }}'.format(self.group, repo.name)}
+ repo_ok = {'query': 'query GetRepo($owner: String!, $repo: String!)
{ repositoryByOwner(owner: $owner, repo: $repo) { name } }',
+ 'variables': {'owner': self.group, 'repo': repo.name}}

req = self.http_call(graphql, repo_ok)




  • [SM-Commit] GIT changes to master wand by Vlad Glagolev (18863537cf915e950fb9b5cc89800c9cff000eb9), Vlad Glagolev, 05/26/2021

Archive powered by MHonArc 2.6.24.

Top of Page