github-haystack 1.2.0__py3-none-any.whl → 1.2.1__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: github-haystack
3
- Version: 1.2.0
3
+ Version: 1.2.1
4
4
  Summary: Haystack components for interacting with GitHub repositories
5
5
  Project-URL: Source, https://github.com/deepset-ai/haystack-core-integrations/github
6
6
  Project-URL: Documentation, https://github.com/deepset-ai/haystack-core-integrations/blob/main/integrations/github/README.md
@@ -1,11 +1,11 @@
1
1
  haystack_integrations/components/connectors/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
2
2
  haystack_integrations/components/connectors/github/__init__.py,sha256=aRIkCcJ_ogsyt67cwjZQu8rqP7yIQu8jRzK6TAYRGx4,557
3
- haystack_integrations/components/connectors/github/file_editor.py,sha256=9WnQuhy8A5hnkoAzm6pCJzD773eQrcmDhLCxnyyQt84,11732
4
- haystack_integrations/components/connectors/github/issue_commenter.py,sha256=S8VhaPaIQJ29TJNMsnfPns4lNBNAnC0QUxuktKTrnfE,5618
5
- haystack_integrations/components/connectors/github/issue_viewer.py,sha256=Xionw1Y8jGxMCo2AXDUjqWk_yaJTW0d9xhvSr8bOGcM,7368
6
- haystack_integrations/components/connectors/github/pr_creator.py,sha256=KEWgXVQlLjaSJiwqn-5vIxOCG1PHH8OKEJtNphI3o_g,11428
7
- haystack_integrations/components/connectors/github/repo_forker.py,sha256=7OYtBgumMlE1HIb9Q0svEoahcdf3S7NJv0Jha6HjoOM,11522
8
- haystack_integrations/components/connectors/github/repo_viewer.py,sha256=tECbnxaBxqX3zAZQ2MzCrqvKfY-Ml9MGMhgtLKrsmKw,9199
3
+ haystack_integrations/components/connectors/github/file_editor.py,sha256=OEhcp5vViF0kjbIb4jYNkl3jHj3t1m2dY836y1cESBQ,11802
4
+ haystack_integrations/components/connectors/github/issue_commenter.py,sha256=Uwlm6NNOsgHgcLXxZgZkRcxZXbHUsevTmx93GV6vsfs,5688
5
+ haystack_integrations/components/connectors/github/issue_viewer.py,sha256=w_E2rW8uAO2B-ndIDnvv9yW3g9T5C3D5PxICpMo17Cg,7438
6
+ haystack_integrations/components/connectors/github/pr_creator.py,sha256=o0zu7xDY3yd6nYBHOWl7LU7wZGSZg2O4ZAel1D6BkVc,11498
7
+ haystack_integrations/components/connectors/github/repo_forker.py,sha256=tGhz77kSC1t3C-XteMsXqE55fDCcktmmZkh3X1JPxM0,11592
8
+ haystack_integrations/components/connectors/github/repo_viewer.py,sha256=lEhjet13k1IKNbLyzvRflzLIGdiG_HkEwgmfH70OAhs,9269
9
9
  haystack_integrations/prompts/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
10
10
  haystack_integrations/prompts/github/__init__.py,sha256=cs_w-7RycC2C9q35pN0jY-McAHWbTIM-j_O2S-AIM7Q,882
11
11
  haystack_integrations/prompts/github/context_prompt.py,sha256=RSzISqtaBHaC7v6rcyyxt2vxmbBVp5OHsWR6Z2wp5pk,8783
@@ -25,7 +25,7 @@ haystack_integrations/tools/github/pr_creator_tool.py,sha256=Bfqn1gSsnfkzJg69Dk4
25
25
  haystack_integrations/tools/github/repo_forker_tool.py,sha256=gd50C3Scfl-KZyJySWMrBq_d-HeAU38rMIQZCBHHI84,4834
26
26
  haystack_integrations/tools/github/repo_viewer_tool.py,sha256=QWnbpQS3XrmxJ3qbBIjTUR9eOXfHR_MfQgd1ClDS5qE,5883
27
27
  haystack_integrations/tools/github/utils.py,sha256=iSIEFulC3KqZvAY1QcrE2rTZJSkCp49SSqC62BTpcs8,3312
28
- github_haystack-1.2.0.dist-info/METADATA,sha256=UJCimOUWJoKgdjVreeQ5uLJoD5RR8cls-WvDLaxxuxs,1771
29
- github_haystack-1.2.0.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
30
- github_haystack-1.2.0.dist-info/licenses/LICENSE.txt,sha256=B05uMshqTA74s-0ltyHKI6yoPfJ3zYgQbvcXfDVGFf8,10280
31
- github_haystack-1.2.0.dist-info/RECORD,,
28
+ github_haystack-1.2.1.dist-info/METADATA,sha256=RMkJ0sLH47n1QLRdgXdjkqpUM-DpHga_1Azncpr66RQ,1771
29
+ github_haystack-1.2.1.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
30
+ github_haystack-1.2.1.dist-info/licenses/LICENSE.txt,sha256=B05uMshqTA74s-0ltyHKI6yoPfJ3zYgQbvcXfDVGFf8,10280
31
+ github_haystack-1.2.1.dist-info/RECORD,,
@@ -115,7 +115,9 @@ class GitHubFileEditor:
115
115
  """
116
116
  headers = self.base_headers.copy()
117
117
  if self.github_token is not None:
118
- headers["Authorization"] = f"Bearer {self.github_token.resolve_value()}"
118
+ token_value = self.github_token.resolve_value()
119
+ if token_value:
120
+ headers["Authorization"] = f"Bearer {token_value}"
119
121
  return headers
120
122
 
121
123
  def _get_file_content(self, owner: str, repo: str, path: str, branch: str) -> tuple[str, str]:
@@ -67,7 +67,9 @@ class GitHubIssueCommenter:
67
67
  """
68
68
  headers = self.base_headers.copy()
69
69
  if self.github_token is not None:
70
- headers["Authorization"] = f"Bearer {self.github_token.resolve_value()}"
70
+ token_value = self.github_token.resolve_value()
71
+ if token_value:
72
+ headers["Authorization"] = f"Bearer {token_value}"
71
73
  return headers
72
74
 
73
75
  def _parse_github_url(self, url: str) -> tuple[str, str, int]:
@@ -66,7 +66,9 @@ class GitHubIssueViewer:
66
66
  """
67
67
  headers = self.base_headers.copy()
68
68
  if self.github_token:
69
- headers["Authorization"] = f"Bearer {self.github_token.resolve_value()}"
69
+ token_value = self.github_token.resolve_value()
70
+ if token_value:
71
+ headers["Authorization"] = f"Bearer {token_value}"
70
72
  return headers
71
73
 
72
74
  def _parse_github_url(self, url: str) -> tuple[str, str, int]:
@@ -65,7 +65,9 @@ class GitHubPRCreator:
65
65
  """
66
66
  headers = self.base_headers.copy()
67
67
  if self.github_token is not None:
68
- headers["Authorization"] = f"Bearer {self.github_token.resolve_value()}"
68
+ token_value = self.github_token.resolve_value()
69
+ if token_value:
70
+ headers["Authorization"] = f"Bearer {token_value}"
69
71
  return headers
70
72
 
71
73
  def _parse_issue_url(self, issue_url: str) -> tuple[str, str, str]:
@@ -85,7 +85,9 @@ class GitHubRepoForker:
85
85
  """
86
86
  headers = self.base_headers.copy()
87
87
  if self.github_token is not None:
88
- headers["Authorization"] = f"Bearer {self.github_token.resolve_value()}"
88
+ token_value = self.github_token.resolve_value()
89
+ if token_value:
90
+ headers["Authorization"] = f"Bearer {token_value}"
89
91
  return headers
90
92
 
91
93
  def _parse_github_url(self, url: str) -> tuple[str, str, str]:
@@ -109,7 +109,9 @@ class GitHubRepoViewer:
109
109
  """
110
110
  headers = self.base_headers.copy()
111
111
  if self.github_token is not None:
112
- headers["Authorization"] = f"Bearer {self.github_token.resolve_value()}"
112
+ token_value = self.github_token.resolve_value()
113
+ if token_value:
114
+ headers["Authorization"] = f"Bearer {token_value}"
113
115
  return headers
114
116
 
115
117
  def to_dict(self) -> Dict[str, Any]: