-
Notifications
You must be signed in to change notification settings - Fork 88
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
Adding pull requests, assignees and collaborars to the tap #8
Adding pull requests, assignees and collaborars to the tap #8
Conversation
Hi @alisaraa, thanks for your contribution! In order for us to evaluate and accept your PR, we ask that you sign a contribution license agreement. It's all electronic and will take just minutes. |
You did it @alisaraa! Thank you for signing the Singer Contribution License Agreement. |
tap_github/files.json
Outdated
"url": {"type": "string"}, | ||
"additionalProperties": false | ||
} | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can this get linted / formatted so the indentation is correct?
tap_github/reviews.json
Outdated
}, | ||
"additionalProperties": false | ||
} | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can this get linted / formatted so the indentation is correct?
tap_github.py
Outdated
for filename in os.listdir(get_abs_path('tap_github')): | ||
path = get_abs_path('tap_github') + '/' + filename | ||
file_raw = filename.replace('.json', '') | ||
schemas[file_raw] = json.load(open(path)) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Do you know if json.load()
will close the file afterwards? I'm wondering if this loop should include:
with open(path) as f:
schemas[file_raw] = json.load(f)
to be safe
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
you're right; I should either do a with
or close it
tap_github.py
Outdated
singer.write_records('collaborators', collaborators) | ||
|
||
|
||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please remove some of the extra whitespace here.
tap_github.py
Outdated
assignees = response.json() | ||
|
||
singer.write_records('assignees', assignees) | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please remove some of the extra whitespace here.
tap_github.py
Outdated
reviews = review_response.json() | ||
singer.write_records('reviews', reviews) | ||
|
||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please remove some of the extra whitespace here.
@KAllan357 Any additional work to be done here? |
👍 |
…o_github Adding pull requests, assignees and collaborars to the tap
I am adding code to pull the assignees and collabs or a repo as well as the pull requests.