mirror of
https://github.com/xonsh/xonsh.git
synced 2025-03-04 08:24:40 +01:00
ok
This commit is contained in:
parent
2cc56a62f8
commit
1c68c1a611
1 changed files with 2 additions and 1 deletions
|
@ -3,6 +3,7 @@
|
|||
import os
|
||||
import re
|
||||
import sys
|
||||
import socket
|
||||
from getpass import getuser, getpass
|
||||
from argparse import ArgumentParser, Action
|
||||
|
||||
|
@ -169,7 +170,7 @@ def create_ghuser_token(ghuser, credfile):
|
|||
password = ''
|
||||
while not password:
|
||||
password = getpass('GitHub Password for {0}: '.format(ghuser))
|
||||
note = 'github3.py release.xsh ' + PROJECT
|
||||
note = 'github3.py release.xsh ' + PROJECT + ' ' + socket.gethostname()
|
||||
note_url = PROJECT_URL
|
||||
scopes = ['user', 'repo']
|
||||
auth = github3.authorize(ghuser, password, scopes, note, note_url)
|
||||
|
|
Loading…
Add table
Reference in a new issue