github-overlord 0.6.6__tar.gz → 0.6.7__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.6.6 → github_overlord-0.6.7}/PKG-INFO +1 -1
- {github_overlord-0.6.6 → github_overlord-0.6.7}/github_overlord/__init__.py +8 -1
- {github_overlord-0.6.6 → github_overlord-0.6.7}/pyproject.toml +1 -1
- {github_overlord-0.6.6 → github_overlord-0.6.7}/LICENSE.md +0 -0
- {github_overlord-0.6.6 → github_overlord-0.6.7}/README.md +0 -0
- {github_overlord-0.6.6 → github_overlord-0.6.7}/github_overlord/stale_commenter.py +0 -0
- {github_overlord-0.6.6 → github_overlord-0.6.7}/github_overlord/utils.py +0 -0
|
@@ -192,6 +192,8 @@ def dependabot(token, dry_run, repo):
|
|
|
192
192
|
Automatically merge dependabot PRs in public repos that have passed CI checks
|
|
193
193
|
"""
|
|
194
194
|
|
|
195
|
+
log.info("merging dependabot PRs")
|
|
196
|
+
|
|
195
197
|
repo = extract_repo_reference_from_github_url(repo)
|
|
196
198
|
|
|
197
199
|
main(token, dry_run, repo)
|
|
@@ -210,6 +212,8 @@ def keep_alive_prs(token, dry_run, repo):
|
|
|
210
212
|
assert token, "GitHub token is required"
|
|
211
213
|
# TODO should assert on openai setup
|
|
212
214
|
|
|
215
|
+
log.info("checking for stale PRs")
|
|
216
|
+
|
|
213
217
|
github = Github(token)
|
|
214
218
|
user = github.get_user()
|
|
215
219
|
login = user.login
|
|
@@ -220,8 +224,11 @@ def keep_alive_prs(token, dry_run, repo):
|
|
|
220
224
|
inspect_repo_for_stale_prs(dry_run, login, github.get_repo(repo))
|
|
221
225
|
return
|
|
222
226
|
|
|
227
|
+
def transform_forked_repos(repo):
|
|
228
|
+
return repo.parent if repo.fork else repo
|
|
229
|
+
|
|
223
230
|
# TODO this isn't perfect because you may be a contributor :/
|
|
224
|
-
user.get_repos(type="public") | fp.filter(
|
|
231
|
+
user.get_repos(type="public") | fp.map(transform_forked_repos) | fp.filter(
|
|
225
232
|
lambda repo: repo.owner.login != login
|
|
226
233
|
) | fp.map(fp.partial(inspect_repo_for_stale_prs, dry_run, login)) | fp.to_list()
|
|
227
234
|
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|