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.