| file-bug.py |
Open a prefilled Bugzilla "enter bug" form in the default browser.
Each argument is a ``field=value`` pair naming a Bugzilla ``enter_bug.cgi`` query
field; the values are URL-encoded for you. Any field the form accepts works, so
there is nothing to update here when a bug needs an extra field. Examples:
file-bug.py product=Core component=General bug_type=defect \\
short_desc="Crash in foo" comment="Steps: ..."
# blocking/depends/see_also and anything else are just more fields:
file-bug.py product=Core component=General short_desc="..." comment="..." \\
blocked=12345 dependson=67890 see_also=https://crash-stats.example/123
Beyond the core fields (product, component, bug_type, short_desc, comment), any
``enter_bug.cgi`` field works -- e.g. ``blocked`` (blocks), ``dependson`` (depends
on), ``see_also``. The same key may repeat to pass multiple values.
A prefilled form carries the whole description percent-encoded in its query
string, which puts the URL past the length at which a terminal stops linkifying
it, so pasting one into a chat reply leaves the reader an unclickable wall of
``%20``. This opens the form and prints only a one-line confirmation, falling
back to the URL when no browser can be found. ``webbrowser`` is cross-platform,
so this works on Linux, macOS, and Windows.
|
2359 |
- |