mirror of
https://github.com/NixOS/nix
synced 2025-06-25 10:41:16 +02:00
Fix maintainers/release-credits output
(cherry picked from commit b87b3d79f2
)
This commit is contained in:
parent
93248bd92c
commit
4ac9bc08ea
1 changed files with 3 additions and 3 deletions
|
@ -109,15 +109,15 @@ for sample in samples:
|
||||||
s = samples[sample]
|
s = samples[sample]
|
||||||
email = s["email"]
|
email = s["email"]
|
||||||
if not email in email_to_handle_cache.values:
|
if not email in email_to_handle_cache.values:
|
||||||
print(f"Querying GitHub API for {s['hash']}, to get handle for {s['email']}")
|
print(f"Querying GitHub API for {s['hash']}, to get handle for {s['email']}", file=sys.stderr)
|
||||||
ghc = get_github_commit(samples[sample])
|
ghc = get_github_commit(samples[sample])
|
||||||
gha = ghc["author"]
|
gha = ghc["author"]
|
||||||
if gha and gha["login"]:
|
if gha and gha["login"]:
|
||||||
handle = gha["login"]
|
handle = gha["login"]
|
||||||
print(f"Handle: {handle}")
|
print(f"Handle: {handle}", file=sys.stderr)
|
||||||
email_to_handle_cache.values[email] = handle
|
email_to_handle_cache.values[email] = handle
|
||||||
else:
|
else:
|
||||||
print(f"Found no handle for {s['email']}")
|
print(f"Found no handle for {s['email']}", file=sys.stderr)
|
||||||
email_to_handle_cache.values[email] = None
|
email_to_handle_cache.values[email] = None
|
||||||
handle = email_to_handle_cache.values[email]
|
handle = email_to_handle_cache.values[email]
|
||||||
if handle is not None:
|
if handle is not None:
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue