Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Python script : fork - preflight -assign issue #9

Open
eliselavy opened this issue May 3, 2024 · 5 comments
Open

Python script : fork - preflight -assign issue #9

eliselavy opened this issue May 3, 2024 · 5 comments
Assignees

Comments

@eliselavy
Copy link
Collaborator

eliselavy commented May 3, 2024

A python script:

INPUT:

Take this one in example: https://github.com/jdh-observer/jYcpqGfdXPra
Look at here: https://docs.github.com/en/rest/repos/forks?apiVersion=2022-11-28#create-a-fork

and put it in your place https://github.com/memerchik

-Create an issue with:
Title: Technical review with the GITHUB_REPO_URL
Inside : the link of the report md
https://docs.github.com/en/rest/issues/issues?apiVersion=2022-11-28#create-an-issue

Warning

All github repo not properly created , take this example to catch the exception https://github.com/NadiaPov/Fandoms/

@eliselavy
Copy link
Collaborator Author

@eliselavy
Copy link
Collaborator Author

@eliselavy
Copy link
Collaborator Author

Test made received following output @memerchik

Name - , Owner - Fandoms
Fork request http code - 404
Issue creation http code - 404
done

@jdh-observer
Copy link

Ok works

  • reformat text of the issue and give possibility to easily configure the text
    Please look at the report and take action
    Look at our guidelines for tag not correct
    If any question , tag @jdh-observer in the issue or contact [email protected]
  • In the repo created please add as a collaborator:
    eliselavy

@eliselavy
Copy link
Collaborator Author

Case can not use it , if private repo and access given to jdh-observer
Token use one of jdh-observer

Name - jdh_submission, Owner - maxte0
Fork request http code - 401
Traceback (most recent call last):
  File "script.py", line 111, in <module>
    fire.Fire(main_func)
  File "/Users/elisabeth.guerard/.pyenv/versions/anaconda3-2020.02/lib/python3.7/site-packages/fire/core.py", line 141, in Fire
    component_trace = _Fire(component, args, parsed_flag_args, context, name)
  File "/Users/elisabeth.guerard/.pyenv/versions/anaconda3-2020.02/lib/python3.7/site-packages/fire/core.py", line 480, in _Fire
    target=component.__name__)
  File "/Users/elisabeth.guerard/.pyenv/versions/anaconda3-2020.02/lib/python3.7/site-packages/fire/core.py", line 691, in _CallAndUpdateTrace
    component = fn(*varargs, **kwargs)
  File "script.py", line 64, in main_func
    USERNAME = username["login"]
KeyError: 'login'

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants