0
0
Fork 0
mirror of https://github.com/discourse/discourse.git synced 2026-08-06 13:08:40 +08:00
discourse/plugins/discourse-github/spec
ducks dd655f15d2
FEATURE: Add category ignore list for GitHub linkbacks (#35921)
Sometimes you have categories where posts mention GitHub URLs but you
don't actually want linkback comments posted to GitHub — think
AI-generated summaries or automated reports that reference commits but
would just create noise on the issue tracker.

This adds a `github_linkback_ignored_categories` site setting that lets
admins specify which categories should be skipped entirely when
processing linkbacks. Posts in those categories won't trigger any GitHub
comments, keeping things clean.

To make this work nicely, the setting uses the `category_list` type
which gives you a proper category picker in the admin UI rather than
having to type raw IDs. This required extending core's `_map`
metaprogramming helper (which previously only worked with `group_list`
settings) to also handle `category_list` — so now any `category_list`
setting automatically gets a `_map` variant that returns an array of
integers, just like group settings do.

Screenshot of new setting:
<img width="774" height="116" alt="discourse-github-ignore-cat"
src="https://github.com/user-attachments/assets/dd9a3c85-7f01-47c6-b1b7-fe6ef120ab8b"
/>

Ref: /t/141863

---------

Co-authored-by: zogstrip <regis@hanol.fr>
2025-12-27 00:42:20 +01:00
..
jobs PERF: optimize GitHub PR onebox rebaking (#36739) 2025-12-17 12:06:16 +01:00
lib FEATURE: Add category ignore list for GitHub linkbacks (#35921) 2025-12-27 00:42:20 +01:00
models
requests FEATURE: GitHub PR live status icon (#36313) 2025-12-04 21:42:44 +01:00
system