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

Adding pull requests, assignees and collaborars to the tap #8

Merged

Conversation

alisaraa
Copy link
Contributor

I am adding code to pull the assignees and collabs or a repo as well as the pull requests.

@cmerrick
Copy link
Contributor

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.

@alisaraa alisaraa changed the title Adding pull requests, assignees and collaborats to the tap Adding pull requests, assignees and collaborars to the tap Feb 23, 2018
@cmerrick
Copy link
Contributor

You did it @alisaraa!

Thank you for signing the Singer Contribution License Agreement.

"url": {"type": "string"},
"additionalProperties": false
}
}
Copy link
Contributor

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?

},
"additionalProperties": false
}
}
Copy link
Contributor

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))
Copy link
Contributor

@KAllan357 KAllan357 Feb 28, 2018

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

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

tap_github.py Outdated
singer.write_records('collaborators', collaborators)



Copy link
Contributor

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)

Copy link
Contributor

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)


Copy link
Contributor

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.

@agaman
Copy link

agaman commented Mar 5, 2018

@KAllan357 Any additional work to be done here?

@KAllan357
Copy link
Contributor

👍

@KAllan357 KAllan357 merged commit fa8f091 into singer-io:master Mar 5, 2018
AJWurts pushed a commit to villagelabsco/tap-github that referenced this pull request Oct 24, 2024
…o_github

Adding pull requests, assignees and collaborars to the tap
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

Successfully merging this pull request may close these issues.

4 participants