Gitea: Webhook not activated when setting a label on an issue

Created on 18 Dec 2019  路  15Comments  路  Source: go-gitea/gitea

  • Gitea version (or commit ref): 1.10.1
  • Git version: 2.20.1
  • Operating system: Raspbian GNU/Linux 10 (buster)
  • Database (use [x]):

    • [ ] PostgreSQL

    • [ x] MySQL

    • [ ] MSSQL

    • [ ] SQLite

  • Can you reproduce the bug at https://try.gitea.io:

    • [ ] Yes (provide example URL)

    • [ ] No

    • [x ] Not relevant

  • Log gist:

Description

When setting a label with a 3d party app (gitnex in my case) the corresponding event is not fired and the hook doesn't activate itself.

Step to reproduce :

  • create a web hook reacting to issues events, and listen to it someway,
  • create issue (API or web ui is ok : creating the ticket emits the event),
  • use the API to set a label to the issue : the label is correctly set in gitea, but the webhook is not activated
    ...

Screenshots

kinapi kinbug

All 15 comments

There is any failed webhook records on webhook setting?

no. everything looks right...

Then is there a successful webhook?

yes : when creating the issue, the webhook works as expected.
its's juste when setting a label using the API that it dosen't seem to work.

if context can help :
the webhook is an url on integromat.com that fires a work flow which objective is to create a todo in my todoist app.

  • when i create the issue, the todo is created like expected (web ui or api either)
  • when i set the bug label in the web UI, the todo is updated as expected (and there is a log confirming it in integromat)
  • when i set the same label with gitnex (i.e. using gitea API), the todo is not updated (and there is no log at all in integromat : the listening address is not queryed).

Have you chosed fire all events on webhook setting page?

no. I selected custom events / issue events (i see the names in french, english version may be slightly different)
the list of event for issue event contains the french translation of "label updated" (the one i'm interested in)
as i said, it works for updating label with web UI....

it seems that the API endpoint does not fire the event and the web UI does

probably different form #9412 : some hooks work (creating an issue, even in a private repo, for example, works as expected here)

This issue has been automatically marked as stale because it has not had recent activity. I am here to help clear issues left open even if solved or waiting for more insight. This issue will be closed if no further activity occurs during the next 2 weeks. If the issue is still valid just add a comment to keep it alive. Thank you for your contributions.

still here?

still here?

yep... some news ?

@x-beaudet sent fix ...

thanx !

Works great!
thx a lot !

@x-beaudet will be in next 1.11.2 release :)

Was this page helpful?
0 / 5 - 0 ratings

Related issues

BNolet picture BNolet  路  3Comments

flozz picture flozz  路  3Comments

jorise7 picture jorise7  路  3Comments

kolargol picture kolargol  路  3Comments

haytona picture haytona  路  3Comments