Skip to content

Commit 05aeeb8

Browse files
fix: read the private repos
1 parent 81fa2f5 commit 05aeeb8

File tree

5 files changed

+9
-2
lines changed

5 files changed

+9
-2
lines changed

README.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,7 @@ jobs:
4949
runs-on: ubuntu-latest
5050
permissions:
5151
pull-requests: write
52+
contents: read
5253

5354
steps:
5455
- uses: Mohit-Raj-Singh/MergeMind_AI@v1
@@ -70,6 +71,7 @@ jobs:
7071
runs-on: ubuntu-latest
7172
permissions:
7273
pull-requests: write
74+
contents: read
7375

7476
steps:
7577
- uses: Mohit-Raj-Singh/MergeMind_AI@v1
@@ -91,6 +93,7 @@ jobs:
9193
runs-on: ubuntu-latest
9294
permissions:
9395
pull-requests: write
96+
contents: read
9497

9598
steps:
9699
- uses: Mohit-Raj-Singh/MergeMind_AI@v1

examples/github-advanced.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ jobs:
99
runs-on: ubuntu-latest
1010
permissions:
1111
pull-requests: write
12+
contents: read
1213

1314
steps:
1415
- uses: Mohit-Raj-Singh/MergeMind_AI@v1

examples/github-basic.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ jobs:
99
runs-on: ubuntu-latest
1010
permissions:
1111
pull-requests: write
12+
contents: read
1213

1314
steps:
1415
- uses: Mohit-Raj-Singh/MergeMind_AI@v1

pyproject.toml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,10 @@ select = ["E", "F", "I", "UP"]
4545
python_version = "3.11"
4646
strict = true
4747

48+
[[tool.mypy.overrides]]
49+
module = ["google.*"]
50+
ignore_missing_imports = true
51+
4852
[tool.pytest.ini_options]
4953
asyncio_mode = "auto"
5054
testpaths = ["tests"]

src/ai_reviewer/git/github.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,6 @@ def post_inline_comments(self, comments: list[InlineComment]) -> None:
6767
if not comments:
6868
return
6969

70-
commit = self.repo.get_commit(self.pr.head.sha)
7170
review_comments = []
7271

7372
for c in comments:
@@ -81,7 +80,6 @@ def post_inline_comments(self, comments: list[InlineComment]) -> None:
8180

8281
if review_comments:
8382
self.pr.create_review(
84-
commit=commit,
8583
body="",
8684
event="COMMENT",
8785
comments=review_comments, # type: ignore[arg-type]

0 commit comments

Comments
 (0)