Skip to content

Commit

Permalink
TDL-239782 Remove files and stats fields from commit-related sche…
Browse files Browse the repository at this point in the history
…mas (#198)

* Remove files and stats fields from commit-related schemas / tests

* Changelog / version bump
  • Loading branch information
dsprayberry authored Sep 12, 2023
1 parent daf14c2 commit dc309b6
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 106 deletions.
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
# Changelog

# 2.0.6
* Remove `files` and `stats` fields from `commits` endpoint as they are not returned without fetching individual commmits [#198](https://github.com/singer-io/tap-github/pull/198)
* Remove `files` and `stats` fields from `pr-commits` endpoint as they are not documented and not returned
* Update tests accordingly

# 2.0.5
* Remove date-time format from the field discussion_url in releases schema [#196](https://github.com/singer-io/tap-github/pull/196)

Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
from setuptools import setup, find_packages

setup(name='tap-github',
version='2.0.5',
version='2.0.6',
description='Singer.io tap for extracting data from the GitHub API',
author='Stitch',
url='http://singer.io',
Expand Down
46 changes: 0 additions & 46 deletions tap_github/schemas/commits.json
Original file line number Diff line number Diff line change
Expand Up @@ -44,38 +44,6 @@
}
}
},
"files": {
"type": ["null", "array"],
"items": {
"type": ["null", "object"],
"properties": {
"filename": {
"type": ["null", "string"]
},
"additions": {
"type": ["null", "number"]
},
"deletions": {
"type": ["null", "number"]
},
"changes": {
"type": ["null", "number"]
},
"status": {
"type": ["null", "string"]
},
"raw_url": {
"type": ["null", "string"]
},
"blob_url": {
"type": ["null", "string"]
},
"patch": {
"type": ["null", "string"]
}
}
}
},
"html_url": {
"type": ["null", "string"]
},
Expand Down Expand Up @@ -258,20 +226,6 @@
},
"author": {
"$ref": "shared/user.json#/"
},
"stats": {
"type": ["null", "object"],
"properties": {
"additions": {
"type": ["null", "integer"]
},
"deletions": {
"type": ["null", "integer"]
},
"total": {
"type": ["null", "integer"]
}
}
}
},
"additionalProperties": false
Expand Down
54 changes: 1 addition & 53 deletions tap_github/schemas/pr_commits.json
Original file line number Diff line number Diff line change
Expand Up @@ -35,44 +35,6 @@
}
}
},
"files": {
"type": ["null","array"],
"items": {
"type": ["null","object"],
"properties": {
"filename": {
"type": ["null","string"]
},
"additions": {
"type": ["null","number"]
},
"deletions": {
"type": ["null","number"]
},
"changes": {
"type": ["null","number"]
},
"status": {
"type": ["null","string"]
},
"raw_url": {
"type": ["null","string"]
},
"blob_url": {
"type": ["null","string"]
},
"contents_url": {
"type": ["null","string"]
},
"sha": {
"type": ["null","string"]
},
"patch": {
"type": ["null","string"]
}
}
}
},
"html_url": {
"type": ["null", "string"],
"description": "The HTML URL to the commit"
Expand Down Expand Up @@ -301,23 +263,9 @@
"author": {
"$ref": "shared/user.json#/"
},
"stats": {
"type": ["null", "object"],
"properties": {
"additions": {
"type": ["null", "integer"]
},
"deletions": {
"type": ["null", "integer"]
},
"total": {
"type": ["null", "integer"]
}
}
},
"updated_at": {
"type": ["null", "string"],
"format": "date-time"
}
}
}
}
6 changes: 0 additions & 6 deletions tests/test_github_all_fields.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,15 +20,9 @@
'project_id'
},
'commits': {
'files',
'pr_id',
'id',
'pr_number',
'stats',
},
'pr_commits': {
'files',
'stats'
},
'review_comments': {
'assignees',
Expand Down

0 comments on commit dc309b6

Please sign in to comment.