Add Repository.get_default_bug_tracker().
Review Request #15260 — Created Aug. 31, 2026 and updated — Latest diff uploaded
This new method returns the bug tracker configuration acting as a
repository's default. When adefault_bug_trackeris explicitly
assigned, it will use that. Otherwise, if there's a single enabled bug
tracker which applies to the repository, it will fall back to that.The result is cached on the instance, since it requires two queries.
- Ran unit tests.
- Used in conjunction with other changes.