kaiyuanshe / osschat

Apache Open Source Software Chat BOT
https://oss.chat/dashboard/
Apache License 2.0
182 stars 45 forks source link

Kaiyuanshe tasks issues updates are not delivered into group 开源社开源故事 #197

Closed hailiang-wang closed 2 years ago

hailiang-wang commented 2 years ago

Description

I want to send issues updates into wechat group 开源社开源故事, I have commited

https://github.com/kaiyuanshe/osschat/commit/85303ecfe99de59ca9f6c4954dbbba1adadc8cb6

And add OSSChat BOTs into wechat group.

Update my server codes, after that, I add comment in

https://github.com/kaiyuanshe/tasks/issues/12

Nothing happens in wechat group.

Solution

So, is there more configurations, settings for OAuth GitHub app? Please help, thanks.

huan commented 2 years ago

Can you check the kaiyuanshe/tasks repo and confirm that it has been installed the https://github.com/apps/osschat ?

Only the repo installed the GitHub app can send webhook to osschat bot.

hailiang-wang commented 2 years ago

I get a message, it says:

This action must be performed by an organization owner

image

huan commented 2 years ago

So we found the problem.

Ask the owner to install it, then it should be able to work as expected.

hailiang-wang commented 2 years ago

@zhuangbiaowei Please help, approve the access by link

https://github.com/apps/osschat

image

Thanks!

hailiang-wang commented 2 years ago

The root cause is incorrect room id, fixed with https://github.com/kaiyuanshe/osschat/commit/069d46d74f3f2621031ff0abf1ede2e52cecc7fe

hailiang-wang commented 2 years ago

To get room id, just visit https://oss.chat/dashboard/