zulip/zulip

Gitea webhook integration - Improve event coverage

Aberta

#34.224 aberto em 29 de mar. de 2025

 (17 comentários) (0 reação) (0 responsável)Python (7.339 forks)batch import
area: integrations (incoming webhooks)help wanted

Métricas do repositório

Stars
 (19.672 estrelas)
Métricas de merge de PR
 (Métricas PR pendentes)

Description

Zulip's Gitea webhook integration does not currently support "delete" events and "pull_request_comment" events.

Unsupported events:

  • X-Gitea-Event: delete - This might be triggered by deleting code from the repository.
  • X-Gitea-Event: pull_request_comment - This might be triggered by adding or editing PR comments. There might be more info on the events in the Gitea API.

To add support,

  • Collect the relevant fixtures.
  • Design a suitable message template. Refer to the other message templates in git.py for inspiration.
  • Add event handling for the new events in gitea/view.py, add coverage in gitea/tests.py.

See https://zulip.com/api/incoming-webhooks-overview for details on how our integrations framework works. See Gitea's doc on webhooks.

Guia do colaborador