You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi 👍
I gave a try to run your project. Though our mantis does not have all the columns listed in your script, so I picked up the common ones, # if len(row_data) < 27:
if len(row_data) < 21:
I am getting this error:
python mantis_to_github.py
Processing issue ID 1728
Failed to create GitHub issue:
https://api.github.com/repos/bpabla50/pab_mantistogitlab/issues
{'Authorization': 'token ghp_unRSY6XYZClXCuFQMCUqXANdV65Nx73123kN', 'accept': 'application/vnd.github.v3+json'}
'Issue' object has no attribute 'tags'
******************************************************************************************
SUMMARY
******************************************************************************************
Found 1 issues in the CSV file
The way I created this token for my project on github gui : Settings, Developer settings, classic tokens
Thanks for any help.
BP
I did further work on it. Got rid of various columns, which are NOT there in my CSV file.
I think code dies in requests.post:
==
pab..headers
{'Authorization': 'token ghp_xyzSY6FKQClXCuFQMCUqXANdV65Nx73zvlkN', 'accept': 'application/vnd.github.v3+json'}
pab..e
argument of type 'NoneType' is not iterable
pab..finished exceptions
==
while try_again and not stop:
print("hello2")
r = requests.post(url, data={'website':'pabla'})
print("hello3")
print(r.ok)
**r = requests.post(
url, headers=headers, json=issue.to_github_api_fields()
)** .looks like code is dying here. Any idea, what I am doing wrong here, my token look like ghp_*
print("hello")
print(r)
print(r.ok)
print(r.status_code)
==
start of while loop
hello2
hello3
False
Failed to create GitHub issue:
The text was updated successfully, but these errors were encountered:
Hi 👍
I gave a try to run your project. Though our mantis does not have all the columns listed in your script, so I picked up the common ones, # if len(row_data) < 27:
if len(row_data) < 21:
I am getting this error:
The text was updated successfully, but these errors were encountered: