Skip to content

Bug v0.4

Latest
Compare
Choose a tag to compare
@driusan driusan released this 28 Feb 22:29
· 11 commits to master since this release

New Features

  • The default "bug commit" message will now include a summary of what changed (prefixed with the string "bug:", so you can still identify them in git rebase) (courtesy of @Komosa)
  • Added "bug create --generate-id" option to generate a stable identifier for new bugs

Golang Integrations

  • Implemented io.Reader, io.Writer, and io.Closer interfaces for bugs.Bug class. Reading or
    writing a bug will read from or append to the Description of the bug.

    Closing it will close the Read/Writer file descriptor, not close the bug.

    This should make it possible to integrate bug into standard other Go programs by using ie. fmt.Fprintf
    or anything else that takes an io.ReadWriter or an io.ReadCloser

  • Added a bugs.New("Bug Title") constructor that returns a bugs.Bug instance to make it
    easier to use as a library

Bug Fixes

  • Fixed bug where help would not be printed if there was no issues directory

  • Added friendlier note suggesting creation of "issues" directory if it isn't present (courtesy of @Komosa, again).

    The error message is still a little obtuse, but now at least has a hint of what's wrong.

  • Fixed bug that allowed you to create empty bug titles, if other options were present with bug create

  • Fixed a bug where "bug close" on multiple issues at the same time may have closed the wrong issue, if
    the first issue caused subsequent directory indexes to change.

Other changes

  • bug will no longer automatically try and invoke less for long output. This was causing problems on some platforms or for people who preferred other pagers.
  • Moved bug-serve (the HTTP implementation of accessing an issues/) directory to a different repo (http://github.com/driusan/bug-serve), so that it
    can be developed and releases done independently of bug. It was never included in an official release
    anyways.