1
0

Merge pull request #1 from DuckThom/patch-1

Fix undefined variable gots_url error
This commit is contained in:
Logan Bonney 2020-01-02 18:18:37 -09:00 committed by GitHub
commit b42b6576f7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -61,7 +61,7 @@ assert len(gogs_token)>0, 'The gogs token cannot be empty!'
if 'gitlab_token' in os.environ:
gitlab_token=os.environ['gitlab_token']
else:
gitlab_token = input(("\n\nToken to access your GITLAB account. This is NOT your password! Got to \n"
gitlab_token = input(("\n\nToken to access your GITLAB account. This is NOT your password! Go to \n"
"{}/profile/account \n"
"and copy the value in section 'Private token'. It should \n"
"look like du8dfsJlfEWFJAFhs\n"
@ -124,7 +124,7 @@ for i in range(len(filtered_projects)):
# Create repo
if args.add_to_private:
print('Posting to:' + gots_url + '/user/repos')
print('Posting to:' + gogs_url + '/user/repos')
create_repo = s.post(gogs_url+'/user/repos', data=dict(token=gogs_token, name=dst_name, private=True))
elif args.add_to_organization: