ai-cr 2.0.1__py3-none-any.whl → 2.0.2__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.3
2
2
  Name: ai-cr
3
- Version: 2.0.1
3
+ Version: 2.0.2
4
4
  Summary: AI code review tool that works with any language model provider. It detects issues in GitHub pull requests or local changes—instantly, reliably, and without vendor lock-in.
5
5
  License: MIT
6
6
  Keywords: static code analysis,code review,code quality,ai,coding,assistant,llm,github,automation,devops,developer tools,github actions,workflows,git
@@ -32,7 +32,7 @@ Description-Content-Type: text/markdown
32
32
  <a href="https://pypi.org/project/gito.bot/" target="_blank"><img src="https://img.shields.io/pypi/v/gito.bot" alt="PYPI Release"></a>
33
33
  <a href="https://github.com/Nayjest/Gito/actions/workflows/code-style.yml" target="_blank"><img src="https://github.com/Nayjest/Gito/actions/workflows/code-style.yml/badge.svg" alt="PyLint"></a>
34
34
  <a href="https://github.com/Nayjest/Gito/actions/workflows/tests.yml" target="_blank"><img src="https://github.com/Nayjest/Gito/actions/workflows/tests.yml/badge.svg" alt="Tests"></a>
35
- <img src="https://github.com/Nayjest/Gito/blob/main/coverage.svg" alt="Code Coverage">
35
+ <img src="https://raw.githubusercontent.com/Nayjest/Gito/main/coverage.svg" alt="Code Coverage">
36
36
  <a href="https://github.com/Nayjest/Gito/blob/main/LICENSE" target="_blank"><img src="https://img.shields.io/static/v1?label=license&message=MIT&color=d08aff" alt="License"></a>
37
37
  </p>
38
38
 
@@ -58,7 +58,7 @@ Get consistent, thorough code reviews in seconds—no waiting for human availabi
58
58
  - Open source projects maintaining high code quality at scale
59
59
  - CI/CD pipelines requiring automated quality gates
60
60
 
61
- ✨ See [code review in action](https://github.com/Nayjest/Gito/pull/39#issuecomment-2906968729) ✨
61
+ ✨ See [code review in action](https://github.com/Nayjest/Gito/pull/99) ✨
62
62
 
63
63
  ## 🚀 Quickstart
64
64
 
@@ -15,12 +15,12 @@ gito/issue_trackers.py,sha256=nfib6zhvmL_zjRDCdZ0d6rMT4ZFJ3PxO5UORaJzb6gk,1495
15
15
  gito/pipeline.py,sha256=Nq5VUVrXVDXVVYX6nVSMX1CyhoWsNtSeTOQyNgQAsdE,2672
16
16
  gito/pipeline_steps/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
17
17
  gito/pipeline_steps/jira.py,sha256=cgRSHoU6j0lcK6hQfhg950PEmIu3uWLGMKZbW3-H3mg,1683
18
- gito/pipeline_steps/linear.py,sha256=stCuTWgVF3SG1XNmIdNwelTDQzKE9PnJLIOS27wKavw,2376
18
+ gito/pipeline_steps/linear.py,sha256=6UDc8nGKGpwHruPq8VItE2QBWshWxaTapoMhu_qjN_g,2445
19
19
  gito/project_config.py,sha256=XdpXsRDFWBNNpktbZDp9p-nbijyKjG_oD6UWzGZSLjM,2580
20
20
  gito/report_struct.py,sha256=tLhdmCPse3Jbo56y752vuGlndWY2f2g_mNFQ-BmJZGw,4160
21
21
  gito/utils.py,sha256=HpterYtjceVhklJe0w1n7PIQJk8MJFUYi4FiG-CzMqg,6418
22
- ai_cr-2.0.1.dist-info/LICENSE,sha256=VbdF_GbbDK24JvdTfnsxa2M6jmhsxmRSFeHCx-lICGE,1075
23
- ai_cr-2.0.1.dist-info/METADATA,sha256=0-kY4AU4Af24ElJj6n4bLLHVxfcpwmZpdbUFkpNur8w,8003
24
- ai_cr-2.0.1.dist-info/WHEEL,sha256=b4K_helf-jlQoXBBETfwnf4B04YC67LOev0jo4fX5m8,88
25
- ai_cr-2.0.1.dist-info/entry_points.txt,sha256=Ua1DxkhJJ8TZuLgnH-IlWCkrre_0S0dq_GtYRaYupWk,38
26
- ai_cr-2.0.1.dist-info/RECORD,,
22
+ ai_cr-2.0.2.dist-info/LICENSE,sha256=VbdF_GbbDK24JvdTfnsxa2M6jmhsxmRSFeHCx-lICGE,1075
23
+ ai_cr-2.0.2.dist-info/METADATA,sha256=K8YJPk8Mv3GwYKbGe3gpE4qJgoWfv2wQBemoXOe-awc,7989
24
+ ai_cr-2.0.2.dist-info/WHEEL,sha256=b4K_helf-jlQoXBBETfwnf4B04YC67LOev0jo4fX5m8,88
25
+ ai_cr-2.0.2.dist-info/entry_points.txt,sha256=Ua1DxkhJJ8TZuLgnH-IlWCkrre_0S0dq_GtYRaYupWk,38
26
+ ai_cr-2.0.2.dist-info/RECORD,,
@@ -7,10 +7,11 @@ import git
7
7
  from gito.issue_trackers import IssueTrackerIssue, resolve_issue_key
8
8
 
9
9
 
10
- def fetch_issue(issue_key, api_key) -> IssueTrackerIssue | None:
10
+ def fetch_issue(issue_key: str, api_key: str = None) -> IssueTrackerIssue | None:
11
11
  """
12
12
  Fetch a Linear issue using GraphQL API.
13
13
  """
14
+ api_key = api_key or os.getenv("LINEAR_API_KEY")
14
15
  try:
15
16
  url = "https://api.linear.app/graphql"
16
17
  headers = {
@@ -36,7 +37,7 @@ def fetch_issue(issue_key, api_key) -> IssueTrackerIssue | None:
36
37
  url,
37
38
  json={
38
39
  "query": query,
39
- "variables": {'teamKey': team_key, 'issueNumber': int(issue_number)}
40
+ "variables": {'teamKey': team_key, 'issueNumber': int(issue_number)}
40
41
  },
41
42
  headers=headers
42
43
  )
File without changes
File without changes