Merge pdbq:add-pkg-bug into pdbq:main

Proposed by Bryce Harrington
Status: Merged
Merge reported by: Bryce Harrington
Merged at revision: 9c777bedc737472fca489ebc885358dfe3863397
Proposed branch: pdbq:add-pkg-bug
Merge into: pdbq:main
Diff against target: 247 lines (+241/-0)
1 file modified
scripts/pkg-bug (+241/-0)
Reviewer Review Type Date Requested Status
Athos Ribeiro (community) Approve
Review via email: mp+408841@code.staging.launchpad.net

Description of the change

This is a rough first cut at a cli script for filing bug reports.

This is able to file bugs against Ubuntu itself, but not yet against source packages. You should be able to test it like this:

   pkg-bug --dry-run --debug --private -m "This is the description" create 'Private bug report'

Drop the --dry-run parameter to test it actually filing a real bug. You can go to your https://bugs.launchpad.net/~<username> page, sort by ID, and see (and close) the resultant bug.

Note that all options have to come on the cli before the 'create' command. It'd be nice to have them either before or after but this will require more wrestling with argparse. But beyond that I'd love to have feedback on the cli interface, option names, etc.

There are some TODO's sprinkled around places where I plan further development. I intend to get most of those addressed before landing this.

To post a comment you must log in.
Revision history for this message
Athos Ribeiro (athos-ribeiro) wrote :

Thanks Bryce, this looks great!

I added a few nitpick comments inline. Feel free to ignore as many as you want/need to before merging this :)

review: Approve
Revision history for this message
Bryce Harrington (bryce) wrote :

Thanks, I've added a few of the suggestions, and replied on the rest. I'll go ahead and land. I have some additional fixes from pylint, etc. and some new API, but that can come on the next MP.

There was an error fetching revisions from git servers. Please try again in a few minutes. If the problem persists, contact Launchpad support.

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
The diff is not available at this time. You can reload the page or download it.

Subscribers

People subscribed via source and target branches

to all changes: