zulip/zulip

Webhook integrations - Support resolving topics

Open

Aperta il 19 mar 2025

Vedi su GitHub
 (16 commenti) (0 reazioni) (0 assegnatari)Python (19.672 star) (7339 fork)batch import
area: integrations (incoming webhooks)difficulthelp wanted

Descrizione

CZO Link: #integrations > git: auto resolve issue/pr topic on specific events @ 💬

Webhook integrations do not currently support resolving and unresolving topics, incoming webhook bots are restricted to sending messages.

Resolving topics could probably involve sending a message (as usual), and then editing it to resolve the topic, if the bot is allowed.

Add a common function that can be called by any webhook integration, to resolve/unresolve a topic. This step is connected to #34074.

We could add a user setting (config option + its UI) to control whether integrations auto-resolve topics, catering to users and organizations who prefer manual topic resolution, or no topic resolution.

Use cases

These can be follow-up issues that are separated out later, I'm listing them here to clarify the motivation.

  • When issues and PRs are closed (or re-opened), Git-related integrations (GitHub, Gitea, Gogs) must be able to auto-resolve (or unresolve) topics.
  • Most integrations create topic names dynamically. On receiving deletion/completion events, we could auto-resolve the respective topics.

We also need to ensure that all further bot messages are sent only to the resolved topic name. This might require the status of the issue/PR/entity to be included in each payload.

Guida contributor