-
Notifications
You must be signed in to change notification settings - Fork 32
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
feat(taps): Add files
and stats
to PullRequestCommitsStream
#241
feat(taps): Add files
and stats
to PullRequestCommitsStream
#241
Conversation
files
to CommitsStream
files
to CommitsStream
files
to CommitsStream
files
to CommitsStream
This PR does not seem to fix the issue. Need to investigate further! |
@dlouseiro Thanks for the PR!
I wonder if you're running into meltano/meltano#6763. Can you try the recommended workaround of removing the cached catalog in |
Ah possibly! Thanks for the input. I'm already performing a test run on a clean meltano installation in our kubernetes cluster so should be able to test it soon! |
files
to CommitsStream
files
and stats
to PullRequestCommitsStream
for more information, see https://pre-commit.ci
for more information, see https://pre-commit.ci
c013ea2
to
40a5c90
Compare
Quality Gate passedKudos, no new issues were introduced! 0 New issues |
@edgarrmondragon after some testing I actually noticed that, in order to get the Although, the same property as well as |
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.
Thanks @dlouseiro!
I just started looking into using this tap in our Meltano setup and wanted to get a listing of They are indeed listed in the "Response Schema" in the API docs but actual responses don't have them. For example on this pull request: $ curl -L -H "Accept: application/vnd.github+json" -H "X-GitHub-Api-Version: 2022-11-28" https://api.github.com/repos/MeltanoLabs/tap-github/pulls/241/commits | jq -n 'inputs[] | keys[]' | sort | uniq
"author"
"comments_url"
"commit"
"committer"
"html_url"
"node_id"
"parents"
"sha"
"url" Just wondering if you you witnessed different responses? Just want to make sure I'm using the API correctly 😅 I've also started my own fork of this repo, building out a $ curl -L -H "Accept: application/vnd.github+json" -H "X-GitHub-Api-Version: 2022-11-28" https://api.github.com/repos/MeltanoLabs/tap-github/pulls/241/files
[
{
"sha": "16104839cb25e043016a9f00454e66e2c941778c",
"filename": "tap_github/repository_streams.py",
"status": "modified",
"additions": 10,
"deletions": 0,
"changes": 10,
...
},
{
"sha": "98381f16592975c5a1487871205a553b2ca6b85f",
"filename": "tap_github/schema_objects.py",
"status": "modified",
"additions": 14,
"deletions": 0,
"changes": 14,
...
}
] Thanks! |
The purpose of this PR is to add the
files
andstats
propertied to thePullRequestCommitsStream
.These properties contain information about the changes done on a given commit (
additions
,deletions
andtotal
).files
has these detailed at the file level whereasstats
has a summary of changes at the commit level.