Giter Site home page Giter Site logo

Comments (5)

tayloramurphy avatar tayloramurphy commented on July 23, 2024 1

@scottmtp I'm sure @ericboucher would love a PR to come through for this.

from tap-github.

scottmtp avatar scottmtp commented on July 23, 2024

I'm able to work around this with this change:

diff --git a/tap_github/repository_streams.py b/tap_github/repository_streams.py
index e80c4f1..0701250 100644
--- a/tap_github/repository_streams.py
+++ b/tap_github/repository_streams.py
@@ -1351,6 +1351,10 @@ class PullRequestCommits(GitHubRestStream):
         ),
     ).to_dict()
 
+    def post_process(self, row: dict, context: Optional[Dict[str, str]] = None) -> dict:
+        if context is not None and "pull_number" in context:
+            row["pull_number"] = context["pull_number"]
+        return row
 
 class ReviewsStream(GitHubRestStream):
     name = "reviews"

However, I'm not sure if this is the correct fix.

from tap-github.

ericboucher avatar ericboucher commented on July 23, 2024

Great catch @scottmtp. Indeed, we would love a PR for this. Your change looks quite reasonable :)

from tap-github.

ericboucher avatar ericboucher commented on July 23, 2024

@edgarrmondragon any thoughts on why this part of the context is not forwarded to the record by default? @scottmtp's change looks reasonable but I'm wondering if we should look into a higher-level fix.

from tap-github.

edgarrmondragon avatar edgarrmondragon commented on July 23, 2024

@edgarrmondragon any thoughts on why this part of the context is not forwarded to the record by default? @scottmtp's change looks reasonable but I'm wondering if we should look into a higher-level fix.

@ericboucher Without diving deeper, my guess is that state_partitioning_keys is limiting the keys passed to pull_requests_commits from its parent stream.

from tap-github.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.