diff --git a/airbyte-integrations/connectors/source-github/source_github/graphql.py b/airbyte-integrations/connectors/source-github/source_github/graphql.py index 03f44daf7c03..2b1d7d1233e5 100644 --- a/airbyte-integrations/connectors/source-github/source_github/graphql.py +++ b/airbyte-integrations/connectors/source-github/source_github/graphql.py @@ -12,7 +12,7 @@ def get_query(owner, name, page_size, next_page_token): - kwargs = {"first": page_size} + kwargs = {"first": page_size, "order_by": {"field": "UPDATED_AT", "direction": "ASC"}} if next_page_token: kwargs["after"] = next_page_token diff --git a/airbyte-integrations/connectors/source-github/source_github/streams.py b/airbyte-integrations/connectors/source-github/source_github/streams.py index 567d406ddb1c..06c348e50271 100644 --- a/airbyte-integrations/connectors/source-github/source_github/streams.py +++ b/airbyte-integrations/connectors/source-github/source_github/streams.py @@ -728,6 +728,7 @@ class PullRequestStats(SemiIncrementalMixin, GithubStream): API docs: https://docs.github.com/en/graphql/reference/objects#pullrequest """ + is_sorted = "asc" http_method = "POST" def path(