Skip to content

Commit

Permalink
reporter-bugzilla: Make the supplementary bugs easily identifiable
Browse files Browse the repository at this point in the history
Supplementary bugs will clearly state in the bug summary that these
are "[abrt][attachments]" bugs.

Signed-off-by: Michal Srb <[email protected]>
  • Loading branch information
msrb committed Feb 18, 2024
1 parent cc860d3 commit f7a0bba
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/plugins/python/reporter_bugzilla.py
Original file line number Diff line number Diff line change
Expand Up @@ -776,6 +776,10 @@ def log_out(bug_info, rhbz, dump_dir_name):
f"These attachments are intended to be accessible only to members of the following group(s):\n\n"
f" * {",".join(rhbz['b_private_groups'])}"
).format(rhbz['b_private_groups'])
if report['summary'].startswith('[abrt]'):
# Make the supplementary bugs easily identifiable by adding "[attachments]" to the bug summary
report['summary'] = f"[abrt][attachments]{report['summary'][len('[abrt]'):]}"

attachments_bug_id = bz_conn.bug_create(
problem_data,
rhbz['b_product'],
Expand Down

0 comments on commit f7a0bba

Please sign in to comment.