Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 5 additions & 5 deletions airbyte-integrations/connectors/source-github/fixtures/github.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ def wrapper(*args):
for response in responses:
# github return 3 success status code 200, 201 and 204, we should check all of them
logging.info(
f'Response status: {response.status_code}, response body: {"Success" if response.status_code in [200, 201, 204] else response.content}'
f"Response status: {response.status_code}, response body: {'Success' if response.status_code in [200, 201, 204] else response.content}"
)

return wrapper
Expand Down Expand Up @@ -69,7 +69,7 @@ def pull_requests(self) -> Iterator:

for branch in self.branches:
create_pr_data = {
"title": f'New PR from {branch.get("name")}',
"title": f"New PR from {branch.get('name')}",
"head": branch.get("name"),
"base": "master",
}
Expand All @@ -80,7 +80,7 @@ def pull_requests(self) -> Iterator:
if response.status_code == 200 or 201:
# create review for PR
create_review_data = {
"body": f'Review commit for branch {branch.get("name")}',
"body": f"Review commit for branch {branch.get('name')}",
"event": "COMMENT",
}
review_url = f"{self.BASE_URL}/repos/{self.repository}/pulls/{response.json().get('number')}/reviews"
Expand All @@ -89,7 +89,7 @@ def pull_requests(self) -> Iterator:

# create comment for commit
create_comment_data = {
"body": f'comment for {branch.get("commit").get("sha")} branch',
"body": f"comment for {branch.get('commit').get('sha')} branch",
}
commit_url = f"https://api.github.com/repos/{self.repository}/commits/{branch.get('commit').get('sha')}/comments"
response = self.session.post(url=commit_url, data=json.dumps(create_comment_data))
Expand All @@ -106,7 +106,7 @@ def add_issues_with_comments(

for branch in self.branches:
data = {
"title": f'Issue for branch {branch.get("name")}',
"title": f"Issue for branch {branch.get('name')}",
"head": branch.get("name"),
"labels": labels,
"milestone": milestone,
Expand Down
4 changes: 2 additions & 2 deletions airbyte-integrations/connectors/source-github/metadata.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,11 @@ data:
hosts:
- ${api_url}
connectorBuildOptions:
baseImage: docker.io/airbyte/python-connector-base:4.0.2@sha256:9fdb1888c4264cf6fee473649ecb593f56f58e5d0096a87ee0b231777e2e3e73
baseImage: docker.io/airbyte/python-connector-base:4.1.0@sha256:1d1aa21d34e851df4e8a87b391c27724c06e2597608e7161f4d167be853bd7b6
connectorSubtype: api
connectorType: source
definitionId: ef69ef6e-aa7f-4af1-a01d-ef775033524e
dockerImageTag: 2.0.0
dockerImageTag: 2.1.0
dockerRepository: airbyte/source-github
documentationUrl: https://docs.airbyte.com/integrations/sources/github
erdUrl: https://dbdocs.io/airbyteio/source-github?view=relationships
Expand Down
1,236 changes: 606 additions & 630 deletions airbyte-integrations/connectors/source-github/poetry.lock

Large diffs are not rendered by default.

6 changes: 3 additions & 3 deletions airbyte-integrations/connectors/source-github/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ requires = [ "poetry-core>=1.0.0",]
build-backend = "poetry.core.masonry.api"

[tool.poetry]
version = "2.0.0"
version = "2.1.0"
name = "source-github"
description = "Source implementation for GitHub."
authors = [ "Airbyte <contact@airbyte.io>",]
Expand All @@ -16,8 +16,8 @@ repository = "https://github.com/airbytehq/airbyte"
include = "source_github"

[tool.poetry.dependencies]
python = "^3.10,<3.12"
airbyte-cdk = "^7.3.4"
python = "^3.10,<3.14"
airbyte-cdk = "^7.0.0"
sgqlc = "==16.3"

[tool.poetry.scripts]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,4 +24,5 @@

from .source import SourceGithub


__all__ = ["SourceGithub"]
Original file line number Diff line number Diff line change
Expand Up @@ -1685,7 +1685,7 @@ def read_records(self, stream_slice: Mapping[str, Any] = None, **kwargs) -> Iter
type=MessageType.LOG,
log=AirbyteLogMessage(
level=Level.INFO,
message=f"Syncing `{self.__class__.__name__}` " f"stream isn't available for repository `{repository}`.",
message=f"Syncing `{self.__class__.__name__}` stream isn't available for repository `{repository}`.",
),
)

Expand Down
1 change: 1 addition & 0 deletions docs/integrations/sources/github.md
Original file line number Diff line number Diff line change
Expand Up @@ -225,6 +225,7 @@ Your token should have at least the `repo` scope. Depending on which streams you

| Version | Date | Pull Request | Subject |
|:-----------|:-----------|:------------------------------------------------------------------------------------------------------------------|:-----------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| 2.1.0 | 2025-10-24 | [68637](https://github.com/airbytehq/airbyte/pull/68637) | Update dependencies |
| 2.0.0 | 2025-10-14 | [68095](https://github.com/airbytehq/airbyte/pull/68095) | **Breaking Change**: Renames `+1` and `-1` fields to `plus_one` and `minus_one` respectively. |
| 1.9.2 | 2025-10-21 | [68332](https://github.com/airbytehq/airbyte/pull/68332) | Update dependencies |
| 1.9.1 | 2025-10-20 | [68197](https://github.com/airbytehq/airbyte/pull/68197) | Promoting release candidate 1.9.1-rc.1 to a main version. |
Expand Down
Loading