github-overlord 0.10.0__tar.gz → 0.10.1__tar.gz
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.
- {github_overlord-0.10.0 → github_overlord-0.10.1}/PKG-INFO +1 -1
- {github_overlord-0.10.0 → github_overlord-0.10.1}/github_overlord/dependabot.py +17 -9
- {github_overlord-0.10.0 → github_overlord-0.10.1}/pyproject.toml +1 -1
- {github_overlord-0.10.0 → github_overlord-0.10.1}/pyproject.toml.orig +1 -1
- {github_overlord-0.10.0 → github_overlord-0.10.1}/README.md +0 -0
- {github_overlord-0.10.0 → github_overlord-0.10.1}/github_overlord/__init__.py +0 -0
- {github_overlord-0.10.0 → github_overlord-0.10.1}/github_overlord/ai.py +0 -0
- {github_overlord-0.10.0 → github_overlord-0.10.1}/github_overlord/config.py +0 -0
- {github_overlord-0.10.0 → github_overlord-0.10.1}/github_overlord/data/release_analysis_prompt.j2 +0 -0
- {github_overlord-0.10.0 → github_overlord-0.10.1}/github_overlord/notifications.py +0 -0
- {github_overlord-0.10.0 → github_overlord-0.10.1}/github_overlord/patch.py +0 -0
- {github_overlord-0.10.0 → github_overlord-0.10.1}/github_overlord/release_checker.py +0 -0
- {github_overlord-0.10.0 → github_overlord-0.10.1}/github_overlord/stale_commenter.py +0 -0
- {github_overlord-0.10.0 → github_overlord-0.10.1}/github_overlord/utils.py +0 -0
- {github_overlord-0.10.0 → github_overlord-0.10.1}/github_overlord/version.py +0 -0
|
@@ -210,8 +210,8 @@ def handle_stale_dependabot_pr(pr: PullRequest) -> None:
|
|
|
210
210
|
Handle a dependabot PR that has been open for at least 30 days and has conflicts
|
|
211
211
|
"""
|
|
212
212
|
|
|
213
|
-
|
|
214
|
-
|
|
213
|
+
if not pr.user or pr.user.login != "dependabot[bot]":
|
|
214
|
+
return
|
|
215
215
|
|
|
216
216
|
if pr.body is None:
|
|
217
217
|
return
|
|
@@ -221,25 +221,33 @@ def handle_stale_dependabot_pr(pr: PullRequest) -> None:
|
|
|
221
221
|
"PR has disabled automatic rebases, manually commenting", url=pr.html_url
|
|
222
222
|
)
|
|
223
223
|
|
|
224
|
-
|
|
224
|
+
try:
|
|
225
|
+
pr.create_issue_comment("@dependabot rebase")
|
|
226
|
+
except GithubException as error:
|
|
227
|
+
log.error(
|
|
228
|
+
"failed to comment on stale PR",
|
|
229
|
+
pr=pr.html_url,
|
|
230
|
+
status=error.status,
|
|
231
|
+
error=error.data.get("message", str(error)),
|
|
232
|
+
)
|
|
225
233
|
|
|
226
234
|
|
|
227
235
|
def is_eligible_for_merge(pr: PullRequest) -> bool:
|
|
228
|
-
resolve_async_status(pr, "mergeable")
|
|
229
|
-
|
|
230
236
|
if pr.state == "closed":
|
|
231
237
|
log.debug("PR is closed", url=pr.html_url)
|
|
232
238
|
return False
|
|
233
239
|
|
|
240
|
+
if not pr.user or pr.user.login != "dependabot[bot]":
|
|
241
|
+
log.debug("PR is not from dependabot", url=pr.html_url)
|
|
242
|
+
return False
|
|
243
|
+
|
|
244
|
+
resolve_async_status(pr, "mergeable")
|
|
245
|
+
|
|
234
246
|
if not pr.mergeable:
|
|
235
247
|
log.debug("PR is not mergeable", url=pr.html_url)
|
|
236
248
|
handle_stale_dependabot_pr(pr)
|
|
237
249
|
return False
|
|
238
250
|
|
|
239
|
-
if pr.user.login != "dependabot[bot]":
|
|
240
|
-
log.debug("PR is not from dependabot", url=pr.html_url)
|
|
241
|
-
return False
|
|
242
|
-
|
|
243
251
|
last_commit = pr.get_commits().reversed[0]
|
|
244
252
|
combined_status = last_commit.get_combined_status()
|
|
245
253
|
status = combined_status.state
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{github_overlord-0.10.0 → github_overlord-0.10.1}/github_overlord/data/release_analysis_prompt.j2
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|