YappyGitLab icon indicating copy to clipboard operation
YappyGitLab copied to clipboard

Add support for event types other than push

Open moigagoo opened this issue 7 years ago • 7 comments

  • Pipeline events are ignored
  • Job events return "Plz use GitLab webhooks,"
  • Merge request events appear in the chat as "An unknown event has been emitted"

moigagoo avatar Apr 12 '18 19:04 moigagoo

I can’t remember right now if I styled pipeline events, but they are, by default, added to the ignoredEvents config option.

As for job events, I’ll try to look into it.

dsevillamartin avatar Apr 12 '18 19:04 dsevillamartin

I can’t remember right now if I styled pipeline events, but they are, by default, added to the ignoredEvents config option.

Thanks for the quick response!

moigagoo avatar Apr 13 '18 07:04 moigagoo

  • Tag push events : This URL will be triggered when a new tag is pushed to the repository
  • Comments : This URL will be triggered when someone adds a comment
  • Confidential Comments : This URL will be triggered when someone adds a comment on a confidential issue
  • Issues events : This URL will be triggered when an issue is created/updated/merged
  • Confidential Issues events : This URL will be triggered when a confidential issue is created/updated/merged
  • Merge request events : This URL will be triggered when a merge request is created/updated/merged
  • Job events : This URL will be triggered when the job status changes
  • Pipeline events : This URL will be triggered when the pipeline status changes
  • Wiki Page events : This URL will be triggered when a wiki page is created/updated

I tried with issue and merge request but that didn't work. Currently only Push are supported right?

noraj avatar May 26 '18 19:05 noraj

@noraj All the events added are supported. You need to make sure that you enabled them in the Gitlab webhook to be sent to the server. Some events are disabled by default, to not cause spam, these events are merge_request/update.

dsevillamartin avatar May 26 '18 21:05 dsevillamartin

@datitisev Of course I enabled Gitlab webhooks but when I made a test with Issue for example the bot is displaying this:

Only push events are not displaying an error like this.

I even tried GL! conf enableEvent issue that does nothing.

noraj avatar May 26 '18 21:05 noraj

Hm, this problem has been popping up recently. I'll go look see what the issue is. FYI: this is unrelated to this issue.

dsevillamartin avatar May 26 '18 22:05 dsevillamartin

Hi, same for me. I have tried "Job test event: and got msg "Hook executed successfully but returned HTTP 403 Invalid data. Plz use Gitlab webhooks".

For Merge Request event I got https://yadi.sk/i/rT8Zbb7HwzBKQw

rndD avatar Oct 01 '18 11:10 rndD