junka / feishu-bot-webhook-action

Monitor and send github events to feishu bot
MIT License
5 stars 6 forks source link

Only github trending would be sent for all kinds of events #1

Closed ziming-zh closed 3 months ago

ziming-zh commented 3 months ago

Hi @junka, thanks for the great work!

I've tested your workflow on v.1.0.7 and it seems that for now only github trending would be sent for all kinds of events (e.g. push, star repos). I wonder if that is expected behavior. If not, can you hint on how to fix that issue? Thanks!

Ziming

junka commented 3 months ago

Hi @ziming-zh

Thanks for your interest and thanks for your report. Have a quick glance, it is a line for test that I add here for the github trending. Just remove it. L83 context.eventName = "schedule"

Remider, besides github trending, only star and push event are implmented really for construct a feishu card msg.

ziming-zh commented 3 months ago

Hi @junka, thanks for your prompt feedback!

It seems that the current push and star functionality still has some problem. You can see the difference from v1.0.7 and v1.0.8 after removing the hardcoded schedule events.

push {"StatusCode":0,"StatusMessage":"success","code":0,"data":{},"msg":"success"}

push {"code":9499,"msg":"Bad Request","data":{}}

Also for the star event:

{"code":11246,"data":{},"msg":"msg: template not visible to app, code: 200381"}

junka commented 3 months ago

Hi @ziming-zh

My bad, did not test it.

Hi @junka, thanks for your prompt feedback!

It seems that the current push and star functionality still has some problem. You can see the difference from v1.0.7 and v1.0.8 after removing the hardcoded schedule events.

  • v1.0.7

push {"StatusCode":0,"StatusMessage":"success","code":0,"data":{},"msg":"success"}

  • v1.0.8

push {"code":9499,"msg":"Bad Request","data":{}}

I should concat the message title for this. A bug here.

Also for the star event:

{"code":11246,"data":{},"msg":"msg: template not visible to app, code: 200381"}

There is a setting for the visibility of feishu card message. Now I have allow anybody to use the card. I believe at least for now, you can see these two events in feishu.

ziming-zh commented 3 months ago

Yes, it works now. Thank you for the great work. One small suggestion is to put the commit message inside the namecard. Currently we seem to have only commit id displayed

junka commented 3 months ago

Yes, it works now. Thank you for the great work. One small suggestion is to put the commit message inside the namecard. Currently we seem to have only commit id displayed

Sure, will do.

junka commented 3 months ago

update with commit: https://github.com/junka/feishu-bot-webhook-action/commit/0c904a4823f0a245c87d120d1ad71b1d3e577df2

Close for this issue