azmiao / github_reminder

一个适用hoshinobot 的 github仓库commits更新推送 插件
8 stars 0 forks source link

无法“查仓库“ #5

Closed WindStill closed 3 years ago

WindStill commented 3 years ago

image

我这边走的旁路由,github自动翻墙,访问github是没问题的。

试了下用镜像库也不行 image

azmiao commented 3 years ago

查的时候不需要.git的,只需要一个网页就行,你再试试看?

WindStill commented 3 years ago

查的时候不需要.git的,只需要一个网页就行,你再试试看?

不加.git的话,报错如下:

[2021-11-09 17:43:53,293 github_reminder] ERROR: list index out of range
Traceback (most recent call last):
  File "/HoshinoBot/hoshino/msghandler.py", line 28, in handle_message
    await sf.func(bot, event)
  File "/HoshinoBot/hoshino/modules/github_reminder/__init__.py", line 43, in search_depo
    msg = create_msg(url)
  File "/HoshinoBot/hoshino/modules/github_reminder/get_com.py", line 96, in create_msg
    link_list, n = get_commits(html)
  File "/HoshinoBot/hoshino/modules/github_reminder/get_com.py", line 68, in get_commits
    edit_html = another_list_1[0].replace(f'{other_list_1[0]}', '')
IndexError: list index out of range
azmiao commented 3 years ago

嗯嗯,这个问题是因为github源码变化了,你重新git clone一下我今天刚更新的应该就能用了

WindStill commented 3 years ago

嗯嗯,这个问题是因为github源码变化了,你重新git clone一下我今天刚更新的应该就能用了

好了。重新拉取代码没问题了

azmiao commented 3 years ago

ok