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.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: github-overlord
3
- Version: 0.6.6
3
+ Version: 0.6.7
4
4
  Summary: Automatically merge Dependabot PRs in public repositories
5
5
  Home-page: https://github.com/iloveitaly/github-overlord
6
6
  Keywords: github,dependabot,automation
@@ -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
 
@@ -1,6 +1,6 @@
1
1
  [tool.poetry]
2
2
  name = "github-overlord"
3
- version = "0.6.6"
3
+ version = "0.6.7"
4
4
  description = "Automatically merge Dependabot PRs in public repositories"
5
5
  authors = ["Michael Bianco <mike@mikebian.co>"]
6
6
  readme = "README.md"