kgb-bot (1.61-1) unstable; urgency=medium

  [ Martina Ferrari ]
  * trim_lines: Remove prefix from continuation lines.

  [ gregor herrmann ]
  * t/76-webhook-pipeline.t: add a test for a multi-line pipeline message.

  [ Martina Ferrari ]
  * t/76-webhook-pipeline.t: ensure line is cut mid-word.
  * t/76-webhook-pipeline.t: ensure multi-line test fails without the fix.

 -- Damyan Ivanov <dmn@debian.org>  Fri, 20 Sep 2024 18:12:45 +0000

kgb-bot (1.60-1) unstable; urgency=medium

  [ Damyan Ivanov ]
  * Changes: drop round brackets around release dates (Closes: #1057932)

  [ Antoine Beaupré ]
  * trickle up error messages in JSON RPC calls.

  [ gregor herrmann ]
  * debian/copyright: update copyright holders/years.
  * Declare compliance with Debian Policy 4.6.2.

 -- gregor herrmann <gregoa@debian.org>  Mon, 01 Jan 2024 04:07:44 +0100

kgb-bot (1.59-1) unstable; urgency=medium

  [ gregor herrmann ]
  * t/76-webhook-pipeline.t: use status=failed instead of failure
    to match Gitlab pipeline status (no functional change).

  [ Martina Ferrari ]
  * Update my name and email address.

  [ Damyan Ivanov ]
  * avoid warning in kgb-ci-report when a package is first tested by the CI
    prev_status is undefined in such situations
  * systemd: add Restart=on-failure
    helps providing the service even after a crash

 -- Damyan Ivanov <dmn@debian.org>  Mon, 30 Oct 2023 16:42:12 +0000

kgb-bot (1.58-1.1) unstable; urgency=medium

  * Non-maintainer upload.
  * No source change upload to rebuild with debhelper 13.10.

 -- Michael Biebl <biebl@debian.org>  Sat, 15 Oct 2022 12:12:56 +0200

kgb-bot (1.58-1) unstable; urgency=medium

  * fix tests to not hard-code merge commit messages
    hard-coded merge commit texts, which depend on the git version, which is
    unreliable
    Closes: #973118 -- FTBFS: test failures
  * drop StandardError=syslog from kgb-bot.service

 -- Damyan Ivanov <dmn@debian.org>  Tue, 03 Nov 2020 17:13:20 +0000

kgb-bot (1.57-1) unstable; urgency=medium

  * Update tests to changed output in merge messages for Git 2.28.0+.
    Thanks to Jonathan Nieder for the bug report. (Closes: #965350)
  * Bump debhelper-compat to 13.
  * debian/rules: drop "dh_missing --fail-missing".
    This is the default in debhelper compatibility level 13.

 -- gregor herrmann <gregoa@debian.org>  Fri, 24 Jul 2020 14:32:20 +0200

kgb-bot (1.56-1) unstable; urgency=medium

  [ Iain Lane ]
  * kgb-bot: Support globs in only_branches.
    This will allow derivatives to maintain their packages on Salsa, but not
    announce the changes to their branches to the Debian IRC channels.
    (Closes: #945015)
  * kgb-bot: Add only_tag parameter.
    As with `only_branch`, this will make the bot only announce changes to
    tags matching the given globs.

  [ gregor herrmann ]
  * Update copyright notices.
  * Add new requirements to Build.PL.
  * Drop comment_out_example_channel.patch (applied).
  * Declare compliance with Debian Policy 4.5.0.
  * Set Rules-Requires-Root: no.

 -- Damyan Ivanov <dmn@debian.org>  Sun, 22 Mar 2020 07:44:00 +0000

kgb-bot (1.55-2) unstable; urgency=medium

  * Upload to unstable.
  * kgb-client: drop ancient Breaks/Replaces on kgb-client-git.
  * Drop version constraint from libtest-compile-perl build dependency.
  * Bump debhelper-compat to 12.
  * Remove trailing whitespace from debian/*.
  * Update years of copyright.
  * Add Pre-Depends: ${misc:Pre-Depends} for kgb-bot in debian/control for
    maintainer scripts after the bump to debhelper 12.
  * Annotate test-only build dependencies with <!nocheck>.
  * debian/rules: drop override_dh_compress. debhelper 12 doesn't compress
    examples any more.
  * Comment out example channel in /etc/kgb-bot/kgb.conf. An installation
    with the unchanged config would cause bots to appear in this channel.
    (Closes: #927372)
  * Add an entry to debian/NEWS about a pitfall with use_ssl and port in
    /etc/kgb-bot/kgb.conf. (Closes: #910971)

 -- gregor herrmann <gregoa@debian.org>  Sun, 07 Jul 2019 01:30:31 +0200

kgb-bot (1.55-1) experimental; urgency=medium

  [ gregor herrmann ]
  * fix typo in test diag()

  [ Damyan Ivanov ]
  * fix coloring of failed pipelines (Closes: #930450)
  * upload to experimental

 -- Damyan Ivanov <dmn@debian.org>  Thu, 13 Jun 2019 20:11:57 +0000

kgb-bot (1.54-1) unstable; urgency=medium

  [ Damyan Ivanov ]
  * comment out the test client config example of message-template
    seeing the defaults is more usable
  * use_ssl: 0 in the example test server configs
    there's still a bug when use_ssl is 1 (the default) and the port is 6667

  [ gregor herrmann ]
  * script/kgb-bot: use $client_ip->ip in webhook error message
    like in the debug message.
    Thanks to James Clarke for the suggestion.

  [ Damyan Ivanov ]
  * kgb-bot: convert ::ffff:a.b.c.d to a.b.c.d before looking up client ip in
    the white list
    fixes ipv4 white-list configuration
  * bump years of copyright
  * Declare conformance with Policy 4.3.0 (no chanes needed)

 -- Damyan Ivanov <dmn@debian.org>  Thu, 03 Jan 2019 10:23:40 +0000

kgb-bot (1.53-1) unstable; urgency=medium

  [ Damyan Ivanov ]
  * drop port: option from default config
  * add port to the test server IRC config now that 6697 us the default
  * encode/decode Git directory name when passing it to Git or when reading it
    from the environment
    this matters when the directory name is not plain ASCII (Closes: #822375)
  * auto join: increase NickServ delay to 60 seconds (default is 5)
    this helps joining +r channels on freenode, where nick server identification
    takes more than 5 seconds
  * fix path to scripts in t/critic.t
  * reorder default notification order, keeping the order of colours
    the new order is project/module, branch, commit, author, log
  * Client::Git: strip leading whitespace when parsing the output of
    'git status'
  * bump debhelper compatibility level to 11 via debhelper-compat

  [ gregor herrmann ]
  * kgb-bot: human_duration(): also handle case where there are exactly
    two time parts. Thanks to Mattia Rizzolo for the bug report on IRC.
  * Declare compliance with Debian Policy 4.2.1.

 -- Damyan Ivanov <dmn@debian.org>  Sat, 13 Oct 2018 19:25:32 +0000

kgb-bot (1.52-1) unstable; urgency=medium

  [ gregor herrmann ]
  * Add some documentation about the webhook configuration to kgb.conf(5).
    Thanks to Jerome Charaoui for the bug report. (Closes: #902312)

  [ Damyan Ivanov ]
  * kgb-ci-report: avoid counting duplicate source packages in the UDD SQL
    query
  * bot: add support to use_ssl configuration parameter (per network, defaults
    to 1)
  * add dependency on libpoe-component-sslify-perl

 -- Damyan Ivanov <dmn@debian.org>  Thu, 13 Sep 2018 17:04:02 +0000

kgb-bot (1.51-1) unstable; urgency=medium

  * kgb-ci-report: avoid boolean evaluation of an Dpkg::Version object where a
    simple existence test is enough
    (Closes: #900699)

 -- Damyan Ivanov <dmn@debian.org>  Mon, 04 Jun 2018 12:16:29 +0000

kgb-bot (1.50-1) unstable; urgency=medium

  [ Martina Ferrari ]
  * Add merge request title to merge request notifications.
  * Stop using channel as a unique identifier.
    This is a big change, as most of the code was assuming a channel name is
    unique across networks, causing weird issues when adding channels
    dynamically from a webhook.
  * Factor out some repetitive code.
  * The current code was leaving the configuration in a inconsistent state when
    a channel was dynamically added; now it is done as if it was added to the
    configuration.
  * Finally fix the dynamic join problem.

  [ Damyan Ivanov ]
  * use get_chanid at one more place instead of hand-crafted concatenation
  * when complaining of a repo without channels, suggest adding them to
    the request parameters

 -- Martina Ferrari <tina@debian.org>  Mon, 28 May 2018 01:20:22 +0000

kgb-bot (1.49-1) unstable; urgency=medium

  * add 'always_squash_outside_dir' webhook option (multiple values)
  * Declare conformance with Policy 4.1.4 (no changes needed)

 -- Damyan Ivanov <dmn@debian.org>  Sun, 29 Apr 2018 12:32:38 +0000

kgb-bot (1.48-1) unstable; urgency=medium

  * add only_branch webhook option
  * webhook: add (via ...) only when *both* user name and email differs
    between author and pusher

 -- Damyan Ivanov <dmn@debian.org>  Sat, 21 Apr 2018 09:12:21 +0000

kgb-bot (1.47-1) unstable; urgency=medium

  [ Damyan Ivanov ]
  * webhook/merge request: drop "revision" output and put the action in square
    brackets
  * set default params in one place
  * add shorten_urls webhook parameter, defaults to 1

  [ James Clarke ]
  * webhook:
    + Better tag deletion messages
    + Show branch deletions (Closes: #895283)

  [ Damyan Ivanov ]
  * fix warning about double "my" in 70-webhook-push.t
  * fix 52-client-git.t and 53-client-git-merges.t with Git 1.17.
    (Closes: 894775)

  [ Colin Finck ]
  * Git client: Support an "author-via" placeholder in the message template,
    which shows the author and committer name if both are different.

 -- Damyan Ivanov <dmn@debian.org>  Tue, 10 Apr 2018 13:56:20 +0000

kgb-bot (1.46-1) unstable; urgency=medium

  [ Damyan Ivanov ]
  * webhook/push: add always_squash_branch parameter,
    defaults to [ 'upstream', 'upstream/master' ]
  * fix stats counting
  * bot: reload shortening service when short_url_service changes in the
    config
  * document 'short_url_service' in kgb.conf(5)

  [ James Clarke ]
  * Use ! rather than # for GitLab merge requests
  * Use iid rather than global id for merge requests and issues

  [ gregor herrmann ]
  * bot: rename "signed-tags" to "signed tags", as in the client.
  * Add debian/gbp.conf: Turn off pristine-tar feature.

  [ James Clarke ]
  * Set upstream-tree to SLOPPY since we have no upstream tags nor branch

  [ Damyan Ivanov ]
  * add James Clarke to copyright statements
  * update Upstream-Contact and Source fields in debian/copyright

 -- Damyan Ivanov <dmn@debian.org>  Thu, 08 Mar 2018 05:25:11 +0000

kgb-bot (1.45-1) unstable; urgency=medium

  * kgb-bot.service: run ExecStartPre commands as root (creation/permissions
    of log file)
  * point '/ctcp source' to salsa
  * fix short url code broken in 1.44
  * kgb-bot.service: set TZ=UTC
  * collect some stats - run time, notification counts
  * react to !stats and !statsreset
  * update HOWTO.release
  * fix a mispaste in t/76-webhook-pipeline.t missing a test and a double "my"
    declaration
  * convert debian/watch to a dummy one - there is no other upstream but us
  * autopkgtest: skip smoke tests not supposed to be run with installed
    package
  * shorten compare URL

 -- Damyan Ivanov <dmn@debian.org>  Tue, 06 Mar 2018 06:30:01 +0000

kgb-bot (1.44-1) unstable; urgency=medium

  * bot/webhook: shorten git hashes in URLs
    (as a fallback when URL shortening has problems or is not configured)
  * webhook: no heuristics when determining which params are arrays
  * webhook/pipeline: add support for pipeline_only_status URL parameter
    (multiple values)
    (Closes: #891870)
  * webhook: colorize pipeline success/failure in reverse green/red

 -- Damyan Ivanov <dmn@debian.org>  Sat, 03 Mar 2018 07:45:41 +0000

kgb-bot (1.43-1) unstable; urgency=medium

  * improve pipeline notifications
  * improve commit squash handling

 -- Damyan Ivanov <dmn@debian.org>  Fri, 02 Mar 2018 06:17:51 +0000

kgb-bot (1.42-1) unstable; urgency=medium

  [ Martina Ferrari ]
  * Speed-up KGB joining of channels and setup.
    Monkey-patch the delayed command dispatcher in PoCO::IRC to ignore
    flood-prevention measures for high-priority messages (JOIN, MODE, etc), now
    joins of many channels can be completed in a few seconds.

  [ Damyan Ivanov ]
  * webhooks: make use_irc_notices=1 the default, as advertised

 -- Damyan Ivanov <dmn@debian.org>  Mon, 26 Feb 2018 13:21:58 +0000

kgb-bot (1.41-1) unstable; urgency=medium

  * mark not released versions as 'Not Released' to make Test::CPAN::Changes
    happy
  * add a test ensuring the current release has an entry in Changes
  * webhook: fix accounting the `use_irc_notices` option

 -- Damyan Ivanov <dmn@debian.org>  Sat, 24 Feb 2018 08:52:53 +0000

kgb-bot (1.40-1) unstable; urgency=medium

  [ gregor herrmann ]
  * debian/rules: switch from `dh_install --fail-missing' to `dh_missing
    --fail-missing' to prepare for the former's removal in future
    debhelper compatibility levels.
  * debian/rules: use DEB_VERSION_UPSTREAM instead of stripping the Debian
    revision from DEB_VERSION.
  * debian/rules: move version check to override_dh_auto_configure.
    That way the build fails earlier, and DEB_BUILD_OPTIONS=nocheck is
    honoured.
  * Bump debhelper compatibility level to 10.

  [ Damyan Ivanov ]
  * webhook/push: fix the compare URL when squashing branch updates
  * webhook/push: change the default for squash_threshold from 4 to 20

 -- Damyan Ivanov <dmn@debian.org>  Tue, 20 Feb 2018 21:02:13 +0000

kgb-bot (1.39-1) unstable; urgency=medium

  [ gregor herrmann]
  * Fix URL in Homepage in debian/control.

  [ Damyan Ivanov]
  * webhook/push: handle the case when the author is not the person pushing
    the branch

 -- Damyan Ivanov <dmn@debian.org>  Mon, 19 Feb 2018 20:35:12 +0000

kgb-bot (1.38-1) unstable; urgency=medium

  * webhok/tag_push:
    + add tag URL
    + recognize signed tags

 -- Damyan Ivanov <dmn@debian.org>  Sat, 17 Feb 2018 13:06:55 +0000

kgb-bot (1.37-1) unstable; urgency=medium

  * webhooks: support squashing of branch updates

 -- Damyan Ivanov <dmn@debian.org>  Fri, 16 Feb 2018 14:17:08 +0000

kgb-bot (1.36-1) unstable; urgency=medium

  * fix typo (push_tag → tag_push) missing tag push webhook events

 -- Damyan Ivanov <dmn@debian.org>  Mon, 12 Feb 2018 21:30:14 +0000

kgb-bot (1.35-1) unstable; urgency=medium

  [ gregor herrmann ]
  * WWW::Shorten::Debli: use https for deb.li URLs.
    Thanks to pabs for the pointer.

  [ Damyan Ivanov ]
  * use the interpreter running the test to run the test client
    otherwise the system-wide perl is used, which may be configured
    (e.g. @INC) quite differently
    Thanks to Slaven Rezić (RT#108400)
  * fix comparison of Git version to 2.9.0, when the minor version is greater
    than 9 "2.15.0" ge "2.9.0" returns false, because it uses string
    comparison and "1" is less than "9".
  * bump copyright years
  * TestBot: die if the bot exits with non-zero status
  * bot:
    + add support for GitLab webhook termination at /webhook/
    + add systemd .service file
    + irc_new_hash: make new entries enter at the top of the list
    + stop sending /WHO when somebody joins
    + debug: prepend the line number
    + fix disabling of colors on use_color=0
  * Painter: fix 'item_colors' member name mistake
  * kgb-ci-report
    + POD: wrap links in L<>, use https
    + use https for ci.debian.net
    + use udd-mirror.debian.net for connecting to UDD
    + allow running without --kgb-config
  * change Maintainer to kgb-bot@packages.d.o
  * Point Vcs-* and Homepage to Salsa
  * tests: allow overriding of bot/client location
  * enable autopkgtests

 -- Damyan Ivanov <dmn@debian.org>  Mon, 12 Feb 2018 21:13:07 +0000

kgb-bot (1.34-2) unstable; urgency=medium

  * Add patch to fix version comparison in a test.
    Thanks to Santiago Vila for the bug report.
    (Closes: #842722)
  * Add dependency on lsb-base to kgb-bot.
    Needed for the init script.
    Thanks to lintian.

 -- gregor herrmann <gregoa@debian.org>  Mon, 31 Oct 2016 18:44:25 +0100

kgb-bot (1.34-1) unstable; urgency=medium

  [ gregor herrmann ]
  * kgb-client.conf(5): change example shortening service from Metamark to
    TinyURL, following the example of WWW::Shorten. Metamark is not
    accepting new URLs anymore.

  [ Damyan Ivanov ]
  * also mention cgit in the web-link description
  * add a new script, kgb-ci-report. used to notify about CI failures
  * bump years of copyright

  [ Pierre Schweitzer ]
  * kgb-client: use login name when the full user name is not available
    Closes: #772747
  * Remove ${{project/}} token from the example multi-line message
    configuration (already removed from the single-line configuration)
    Closes: #772749
  * Fix multiline message template
    Closes: #772750

  [ Damyan Ivanov ]
  * TestBot:
    - when waiting for the PID file to appear, also see if it has any content
    - close the PID file after reading it
  * kgb-bot:
    - add the PID to the "Listening on ..." line in the log
    - rewrite the PID management code using OO interface of Proc::PID::File.
      This fixes a rather nasty hardly-reproducible bug causing the PID file
      to be re-created after being removed, which may fool the tests and make
      them hang.
      Closes: #782079
  * kgb-client: add libwww-perl to Recommends, needed by kgb-ci-report

  [ gregor herrmann ]
  * Update (build) dependencies.
    - build-depend on libmodule-build-perl only
      Closes: #834597
    - move libmodule-build-perl to Build-Depends.
    - remove unneeded version from kgb-client dependency
    - add build dependency on libdbd-pg-perl
  * Update Vcs-* headers-.
  * Declare compliance with Debian Policy 3.9.8.
  * Bump debhelper compatibility level to 9.
  * Build.PL:
    - install new kgb-ci-report script
    - add DBD::Pg as requirement in Build.PL
  * debian/*: Switch some URLs to HTTPS. Thanks to duck.
  * Fix some typos in the POD. Thanks to lintian.
  * Drop fix-username-in-tests.patch; applied.
  * Update years of packaging copyright.

  [ Martina Ferrari ]
  * App::KGB::Client::ServerRef:
    - More consistent verbose reporting of server communication.
    - Add --dry-run option for debugging.
    - Bug fix: use correct method when sending a commit info with
      default protocol.
  * App::KGB::Client: format_message: Don't lose data.
    When the commit object does not have all the info, it still overwrites
    data coming from the extra arguments. It meant SVN commits were lacking
    branch and module information completely.

  [ gregor herrmann ]
  * Fix t/52-client-git.t to work with newer git versions as well.
    Since 2.9.0, git allows merging branches without a common ancestors only
    when "--allow-unrelated-histories" is passed. This has lead to test
    failures.
    Pass the parameter conditionally.

 -- gregor herrmann <gregoa@debian.org>  Mon, 26 Sep 2016 18:26:04 +0200

kgb-bot (1.33-2) unstable; urgency=medium

  * add patch fixing tests in build environments where the current user has no
    full name (Closes: #769239 -- FTBFS)

 -- Damyan Ivanov <dmn@debian.org>  Sat, 15 Nov 2014 19:03:05 +0000

kgb-bot (1.33-1) unstable; urgency=medium

  * TestBot: set $ENV{USER} to getpwuid($>) to fix discrepancy when running
    under pbuilder
  * Standards-Version: 3.9.4 → 3.9.5 (no changes needed)

 -- Damyan Ivanov <dmn@debian.org>  Wed, 06 Aug 2014 20:01:47 +0000

kgb-bot (1.32-1) unstable; urgency=medium

  [ Damyan Ivanov ]
  * bot: store real path to the pid directory
  * bot: remove PID file on exit
  * fix utf-8 locale detection in 50-client.t
  * TestBot: test helper module for running a real bot for tests
  * 50-client.t: check real bot output
  * TestBot: report bot PID when starting/stopping
  * convert 52-client-git to TestBot
  * fix detection of common changes path when using msg_template
  * require File::Remove and Test::Differences for tests
  * convert 53-client-git-merges.t to TestBot
  * convert 54-client-git-squash.t to TestBot
  * convert t/55-client-git-merges-ff.t to TestBot
  * convert t/56-client-git-ff-merge-2.t to TestBot
  * convert t/57-client-git-squash-tags.t to TestBot
  * avoid double-spaces when formatting messages
  * bot: honour broadcast channels setting when relaying messages too

  [ gregor herrmann ]
  * kgb.conf(5): improve documentation for server_addr variable.
    (Closes: #744689)

  [ Damyan Ivanov ]
  * kgb-client: add support for setting Git-specific options via the
    configuration file/command line
  * point to client backends for backend-specific configuration options
  * use encoding 'utf8' --> use utf8
  * replace given/when with chained if/elsif/else
  * missing newline between =items (POD)
  * update FSF address
  * bump years of copyrigght
  * put GPL_2 as license in Build.PL (gpl2 is not recognised anymore)
  * move gathering of data from new() to _detect_commits
  * a new internal method, _reset, for resetting the parsed reflog data
  * use strict and warnings in tests
  * tests: replace explicit plans with done_testing()
  * die when the reflog is empty

 -- Damyan Ivanov <dmn@debian.org>  Mon, 04 Aug 2014 19:48:20 +0000

kgb-bot (1.31-1) unstable; urgency=low

  * client: default to using json
  * remove author-login from default message templates
  * TODO: plans for implementing central configuration
  * import dirname in Client.pm
  * configure test git repositories whether test bot is running or not
  * remove project from default configuration
  * update documentation about default message templates
  * add author_name field for CVS commits
  * client: decode arguments given to --relay-msg
  * require JSON::XS instead of plain JSON

 -- Damyan Ivanov <dmn@debian.org>  Sat, 17 Aug 2013 09:41:02 +0200

kgb-bot (1.30-1) unstable; urgency=low

  * bot: fix colorize_change_wrapper

 -- Damyan Ivanov <dmn@debian.org>  Fri, 09 Aug 2013 15:57:55 +0200

kgb-bot (1.29-1) unstable; urgency=low

  [ Martina Ferrari ]
  * Fix invalid Vcs-Svn field.
  * Check BOT_ENABLED before starting the bot in the restart action.

  [ gregor herrmann ]
  * Install missing App/KGB/Painter.pm and other files.
  * debian/rules: call dh_install with --fail-missing to avoid forgetting new
    files in the future.
  * debian/control: kgb-client: move libjson-* from Recommends to Depends.
    Thanks to Pete Wyckoff for the hint in #718286.
  * debian/control: make Vcs-* fields canonical. Thanks, lintian.
  * debian/control: use git instead of git-core, the package was renamed some
    years ago.
  * Fix failure with Safe-2.35.
    Thanks to Petr Písař <ppisar@redhat.com> for the patch.

  [ Damyan Ivanov ]
  * detect UTF8 in full author name
  * add kgb.enable-branch-ff-notification Git option (true by default) for
    managing fast forward notifications
  * declare test dependencies in test_requires
  * client: add --debug option
  * chomp git-config-determined config file path before usage
  * replace ~~ (smartmatch) usage. ~~ is deprecated in perl 5.18
  * replace given/when usage, declared experimental in perl 5.18
  * client: verify config file structures
  * git client: do not die on unknown ref updates (see #706375)
  * git client: squash creation if numerous tags (>5 currently)
  * configurable tag squash threshold/message
  * correct POD about Client->format_message arguments
  * bot: allow setting of "" color to disable colouring of a given item
  * bot: use App::KGB::Painter for coloring
  * bot: add --simulate-color option enabling color codes in the dump file
  * include tag name in the Tag object created from annotated tags
  * merge back kgb-client-git package into kgb-client
  * git client: allow specifying project-id via git-config
  * t/50-client.t: skip tests with UTF-8 commit messages (subversion) unless
    C_TYPE is known to use UTF-8. RT#80664
  * adapt to newer JSON-RPC which renamed the client module (RT#80666)
  * add versions to all modules to satisfy the CPAN indexer
  * make sure that strict and warnings are used everywhere

 -- Damyan Ivanov <dmn@debian.org>  Thu, 08 Aug 2013 00:59:54 +0200

kgb-bot (1.27-1) unstable; urgency=low

  [ Damyan Ivanov ]
  * New upstream release
    + now supports including full author name in the notification
      Closes: #700319 -- kgb-bot should allow to use the real name or entire
      mail address in messages
    + supports entirely client-constructed notifications
      Closes: #693258 -- Permit output of the repo-id string

  [ gregor gerrmann ]
  * Install the new kgb-protocol(7) manpage.
    Thanks to Andrea Veri for noticing it was missing.
  * debian/copyright: Update years of copyright.

 -- Damyan Ivanov <dmn@debian.org>  Wed, 29 May 2013 21:07:27 +0300

kgb-bot (1.26-1) unstable; urgency=low

  * update kgb-client.conf manual with the new options
  * rework Git branch walking
    avoids multiple notification about merged commits (Closes: #698133)
  * init: Use user configured in $RUN_AS as owner of logfiles.
    Otherwise log files created as 'Debian-kgb' can't be written to if the
    RUN_AS variable is modified
    Thanks to Alexander Barton for the patch.
    (Closes: #699027)
  * notify even if log message is invalid UTF-8
    notification with log of "(log is invalid UTF-8)" is better than
    no notification at all
    (Closes: #691183)

 -- Damyan Ivanov <dmn@debian.org>  Thu, 28 Mar 2013 08:41:36 +0200

kgb-bot (1.25-1) unstable; urgency=low

  * New upstream release
    + slignt improvement of CVS-related documentation
    + added support for using IRC notices instead of ordinary messages
    + added support for disabling colors

 -- Damyan Ivanov <dmn@debian.org>  Mon, 17 Dec 2012 14:25:01 +0200

kgb-bot (1.24-1) unstable; urgency=low

  * New release. See Changes for details. Closes: #691562.
  * debian/control: Add missing App::KGB::Client::RelayMsg module.
  * debian/control: Make build dependency on libtest-compile-perl
    versioned.
  * debian/NEWS: add NEWS file for the port change
  * debian/control: fix libmodule-build-perl version

 -- Martina Ferrari <tina@debian.org>  Thu, 22 Nov 2012 11:54:21 +0000

kgb-bot (1.23-1) unstable; urgency=low

  * t/compile*: use Test::Compile::Internal in order to show verbose errors
  * Server:
    + add --debug command line switch
    + replace --config-dir option with 'include:' configuration item
      add 'include: "/etc/kgb-bot/kgb.conf.d"' to the default config
    + default pid_dir to /var/run/kgb-bot
  * Documentation:
    + add manuals for kgb.conf and kgb-client.conf
    + pod.t: test documentation in man*/ too
    + give example for gitweb URL
  * Client:
    + show expanded web-link in verbose mode
    + dump processed configuration in verbose mode
    + shorten_url: really return plain URL if shortening is not enabled
    + send_changes: detailed dump in verbose mode
    + introduce module-and-branch-re setting and deprecate
      branch-and-module-re-swap

 -- Damyan Ivanov <dmn@debian.org>  Sat, 20 Oct 2012 21:13:44 +0300

kgb-bot (1.22-1) unstable; urgency=low

  [ gregor herrmann ]
  * kgb-add-project: document the new --dir option
  * Install /etc/kgb-bot/kgb.conf.d directory into kgb-bot package.
  * add kgb-split-config script for splitting monolythic config into
    per-project files

  [ Damyan Ivanov ]
  * Add API documentation (JSON-RPC only)
  * Server:
    + prepend all IRC strings with a hidden character to avoid addressing
    + check permissions of the conf.d directory
    + pass --config-dir too on restart
    + honour --foreground when reloading and don't reopen the log
    + change the delimiters around web links to make konsole users' life
      easier
    + refuse to load world-readable configuration files
  * fix a bug in determining the longest common directory in a change set

 -- Damyan Ivanov <dmn@debian.org>  Sun, 14 Oct 2012 11:30:10 +0300

kgb-bot (1.21-1) unstable; urgency=low

  * Server:
    + fix exception handling
    + better error messages
  * Debli: RPC returns the key only, prepend 'http://deb.li/'

 -- Damyan Ivanov <dmn@debian.org>  Thu, 11 Oct 2012 23:00:33 +0300

kgb-bot (1.20-1) unstable; urgency=low

  [ Damyan Ivanov ]
  * kgb-add-project: avoid using 'keys($hashref)' which requires too recent perl
  * client:
   + add --repository to synopsis
   + fix --repository in CVS example
   + CVS: silence debugging output
   + WWW:Shorten::Debli implementation (uses deb.li for URL shortening)
   + determine default repository type from the environment
     (makes --repository useless)
   + determine default module from git directory
     (makes --module redundant for Git)
   + allow explicit protocol configuration
   + saving of last contacted server -- in a separate method
  * server:
   + ensure trailing \n in KGB->out
   + note repository id on internal errors
   + conf.d/*.conf style configuration
   + use exceptions for handling argument errors
   + turn on utf8 mode on STDOUT/ERR
   + use shorter timestamp representation
  * client and server:
   + protocol 4 (JSON-RPC)
   + plain message relaying (Closes: #689641)
  * packaging:
   + install Client::Fake in kgb-client package (Closes: #689984)
   + add libjson-perl to kgb-bot Depends

  [ gregor herrmann ]
  * some spellchecking in the POD

 -- Damyan Ivanov <dmn@debian.org>  Thu, 11 Oct 2012 22:25:21 +0300

kgb-bot (1.19-1) unstable; urgency=low

  [ Damyan Ivanov ]
  * bot: add timestamp to log messages
  * bot: use KGB->out() instead of plain warn() for consistent log messages
  * bot: tighten auto-responce rate-limit to stop storms in the first screen
  * bot: silently ignore empty changes
  * bot: do not crash on internal errors while processing requests

  [ gregor herrmann ]
  * kgb-add-project: sort the channel hashes to make sure "name" is the first
    key.

 -- Damyan Ivanov <dmn@debian.org>  Fri, 05 Oct 2012 21:20:09 +0300

kgb-bot (1.18-1) unstable; urgency=low

  * bot: fix channel-must-have-a-repository check for broadcast channels

 -- Damyan Ivanov <dmn@debian.org>  Fri, 05 Oct 2012 14:07:27 +0300

kgb-bot (1.17-1) unstable; urgency=low

  [ Damyan Ivanov ]
  * improve wording of web-link description
  * 50-client.t: support keeping temporary directory
  * declare POD encoding
  * additional documentation for web-link
  * explain status-dir in the sample client config
  * add support for URL shortening via WWW::Shorten
    + kgb-client: add libwww-shorten-perl to Recommends
  * client: add --fake option. Fakes a commit to help testing server connection
    (Closes: #689540)
  * bot: introduce broadcast channels which receive notifications from all
    repositories
    Closes: #688993
    + introduce private repositories
  * bot: fail if a repository has no associated channels

  [ gregor herrmann ]
  * typo/doc fixes
  * kgb-add-project: add option to save config back to file

 -- Damyan Ivanov <dmn@debian.org>  Fri, 05 Oct 2012 13:35:15 +0300

kgb-bot (1.16-1) unstable; urgency=low

  [ Martina Ferrari ]
  * Fix typo.

  [ Damyan Ivanov ]
  * indicate replacement using 'brown' (which should be displayed as low
    intensity red or something) instead of inverse
  * honour 'repository' setting in kgb-client.conf (Closes: 688992)
  * bot: support web links for commits
  * more typos in the documentation
  * script to add simple projects quickly (destroys comments)
  * call $poe_kernel->has_forked in the child process
    Makes the reload action of the bot work (Closes: #689018)
  * bot: reopen logs on reload
  * create log file in the init script, not in postinst
  * protocol v3 in server
  * protocol v3 in client (only used irfn extra arguments are present)
  * Add CVS support (Closes: #689288)
  * fix forced single-line commit mode. reported by joeyh, fix by dondelelcaro

  [ gregor herrmann ]
  * debian/copyright: use Copyright-Format 1.0, bump years of copyright.
  * Set Standards-Version to 3.9.4 (no changes).
  * Update {versioned,alternative} (build) dependencies.
  * kgb-bot init script: depend on $network facility and add status option.
  * init script: add pidfile argument to status option
  * add bot reload to logrotate configuration

 -- Damyan Ivanov <dmn@debian.org>  Wed, 03 Oct 2012 11:45:39 +0300

kgb-bot (1.15-2) unstable; urgency=low

  * client: denote libfile-touch-perl dependency to a recommendation
  * bot: require client 1.15 for the detect_common_dir move

 -- Damyan Ivanov <dmn@debian.org>  Thu, 15 Sep 2011 10:03:37 +0300

kgb-bot (1.15-1) unstable; urgency=low

  * New release

  * Client:
   + use single line note for annotated tags
  * Server:
   + fix single line commits with multi-line explaination
   + no bold revision by default
   + drop (bold) repository name from the notification

 -- Damyan Ivanov <dmn@debian.org>  Wed, 14 Sep 2011 19:54:16 +0300

kgb-bot (1.14-1) unstable; urgency=low

  * Client: add an option to keep the last used server in a directory
  * Client/Server: add support for single line commit notifications
  * add (build-)dependency on libfile-touch-perl

 -- Damyan Ivanov <dmn@debian.org>  Wed, 24 Aug 2011 23:41:20 +0300

kgb-bot (1.13-1) unstable; urgency=low

  * numerous test improvements
  * fix: no warnings when commits have no author
  * bot: log repository on authentication failure
  * put tag name in changes for plain tags too
  * bot: always decode parameters

 -- Damyan Ivanov <dmn@debian.org>  Sat, 13 Aug 2011 18:48:16 +0300

kgb-bot (1.10-1) unstable; urgency=low

  * Skip tests requiring SVN::* or Git when these are missing
  * fix dist_name from App::KGB to App-KGB
  * disable indexing of privinc
  * fix a couple of cases of conditional declaration
  * add a Perl::Critic test for conditional declarations
  * bot: do not answer back if no answers are configured.
  * rate-limit autoresponses
  * bump years in debian/copyright

 -- Damyan Ivanov <dmn@debian.org>  Thu, 11 Aug 2011 16:43:03 +0300

kgb-bot (1.08-1) unstable; urgency=low

  [ Damyan Ivanov ]
  * Client::Git: use --format=raw when describing annotated tags

  [ Salvatore Bonaccorso ]
  * debian/control: Remove libdigest-sha1-perl from Depends for kgb-client
    binary package.
  * Bump Standards-Version to 3.9.2.

  [ gregor herrmann ]
  * Switch to source format 3.0 (quilt).
  * Bump debhelper compatibility level to 8; remove "--buildsystem=perl_build"
    in debian/rules.
  * debian/control: remove versioned dependency on perl >= 5.10.

 -- Damyan Ivanov <dmn@debian.org>  Fri, 05 Aug 2011 16:52:02 +0300

kgb-bot (1.06-2) unstable; urgency=low

  [ gregor herrmann ]
  * Add a postrm script to remove the log in purge; thanks to Holger Levsen
    and piuparts for the bug report (closes: #605978).
  * Add a logrotate config file.
  * Add /me to Uploaders.
  * debian/copyright: switch to DEP5 formatting.

 -- Damyan Ivanov <dmn@debian.org>  Sun, 05 Dec 2010 17:37:01 +0200

kgb-bot (1.06-1) unstable; urgency=low

  [ gregor herrmann ]
  * kgb-bot:
    - fix typo when accessing global config
    - call polygen_available with full class name

  [ Damyan Ivanov ]
  * kgb-bot: drop the asterix prefix from revision number
  * Makefile: fix (real|dist)clean targets to use ./Build for the real work
  * App::KGB::Change:
    + fix typo in POD
    + make the stringification method public and document it
  * t/52-client-git.t: when comparing changes, force objects to stringify
  * MANIFEST.SKIP: add MYMETA.yml
  * fix typo in Client::Subversion POD

  * Packaging:
   + rules: fix determining package version
   + copyright: point to versioned GPL
   + control: add Homepage

 -- Damyan Ivanov <dmn@debian.org>  Sat, 04 Dec 2010 11:12:31 +0200

kgb-bot (1.05-1) unstable; urgency=low

  [ gregor herrmann, Damyan Ivanov ]
  * kgb-bot: use File::Which to find polygen binary; split out the
    polygen-finding function; add libfile-which-perl to Suggests;
    closes: #593631 -- can't access /usr/bin/polygen
  * kgb-bot: check existence of polygen binary just before using it;
    closes: #593633 -- dies when polygen is removed after daemon startup
  * any problems in finding/running polygen binary are logged only when debug
    is enabled as a counter-measure against remotely-assisted log abuse

 -- Damyan Ivanov <dmn@debian.org>  Fri, 10 Sep 2010 22:49:25 +0300

kgb-bot (1.04-1) unstable; urgency=low

  * use Digest::SHA from core instead of ::SHA1
  * remove references to Svn::* from Build.PL
    Closes: #582739 (by working around #589812)
  * Standards-Version: 3.9.1 (no changes necessary)

 -- Damyan Ivanov <dmn@debian.org>  Tue, 03 Aug 2010 22:33:23 +0300

kgb-bot (1.03-1) unstable; urgency=low

  * New upstream release
    + adds rotocol v2 with the ability to explicitly specify revision prefix,
      which is 'r' for Subversion and empty otherwise
  * Standardss-Version: 3.8.4 (no changes necessary)

 -- Damyan Ivanov <dmn@debian.org>  Wed, 28 Apr 2010 23:40:15 +0300

kgb-bot (1.01-3) unstable; urgency=medium

  * Make 'restart' init.d script action stop and re-start the daemon as
    directed by the policy. Closes: #566004. Thanks to Evgeni Golov.

 -- Damyan Ivanov <dmn@debian.org>  Mon, 25 Jan 2010 18:40:15 +0200

kgb-bot (1.01-2) unstable; urgency=low

  [ gregor herrmann ]
  * Build depend on locales-all and run tests under a UTF-8 locale
    (closes: #560657).

  [ Damyan Ivanov ]
  * add a watch file

 -- Damyan Ivanov <dmn@debian.org>  Fri, 11 Dec 2009 22:27:36 +0200

kgb-bot (1.01-1) unstable; urgency=low

  * New upstream release
    + Fixex client when cross-branch/module commits are made

 -- Damyan Ivanov <dmn@debian.org>  Sat, 05 Dec 2009 16:16:02 +0200

kgb-bot (1.00-1) unstable; urgency=low

  * New upsream release
    + Fixes support for unicode commit messages

 -- Damyan Ivanov <dmn@debian.org>  Wed, 02 Dec 2009 19:34:35 +0200

kgb-bot (0.16-1) unstable; urgency=low

  * New upstream release

 -- Damyan Ivanov <dmn@debian.org>  Tue, 24 Nov 2009 18:49:49 +0200

kgb-bot (0.15-1) unstable; urgency=low

  * New upstream release
  * Split Git support in kgb-client-git
    - avoids a bunch of dependencies being installed with the server
  * kgb-bot: drop polygen and libipc-run-perl to Recommends

 -- Damyan Ivanov <dmn@debian.org>  Sat, 07 Nov 2009 16:22:01 +0200

kgb-bot (0.14-1) unstable; urgency=low

  * New upstream release
    + make kgb-bot depend on kgb-client (it uses some of its modules)

 -- Damyan Ivanov <dmn@debian.org>  Mon, 02 Nov 2009 22:34:17 +0200

kgb-bot (0.13-1) unstable; urgency=low

  * New upstream release

 -- Damyan Ivanov <dmn@debian.org>  Sun, 01 Nov 2009 18:22:25 +0200

kgb-bot (0.12-1) unstable; urgency=low

  * New upstream release
  * rules: check that package version matches module version

 -- Damyan Ivanov <dmn@debian.org>  Sat, 31 Oct 2009 16:04:55 +0200

kgb-bot (0.11-1) unstable; urgency=low

  * new upstream release
    + the autoresponder can use polygen
  * add polygen and libipc-run-perl to Recommends

 -- Damyan Ivanov <dmn@debian.org>  Mon, 26 Oct 2009 21:03:15 +0200

kgb-bot (0.10-1) unstable; urgency=low

  * New upstream release
    + kgb-bot no longer needs App::KGB, which is in the kgb-client package

 -- Damyan Ivanov <dmn@debian.org>  Sun, 25 Oct 2009 21:09:00 +0200

kgb-bot (0.09-1) unstable; urgency=low

  * New upstream release
    + postinst: set up /var/log/kgb-bot.log if not present
    + respond to !version command (only allowed to a list of masks)
    + also handle private messages

 -- Damyan Ivanov <dmn@debian.org>  Sat, 24 Oct 2009 19:14:17 +0300

kgb-bot (0.08-1) unstable; urgency=low

  * new upstream release
    + fixes a typo causing crash on received IRC messages

 -- Damyan Ivanov <dmn@debian.org>  Wed, 21 Oct 2009 08:17:46 +0300

kgb-bot (0.07-1) unstable; urgency=low

  [ Damyan Ivanov ]
  * add Git support
  * set Maintainer address to kgb-maintainers@lists.alioth.d.o
  * add --git-reflog switch, passed to Client::Git
  * add support for a dummy "_ECHO_" network
  * add an example bot config useful for local testing
  * mention supported VCS in kgb-client long description
  * drop included RateLimit and use send_queue to detect congestion
  * use non-svn-checkout upstream source location
  * add git-core as (build-) dependency
  * Update Vcs-* URLs to match the new home on Alioth
  * Section: net->devel; Priority: extra->optional

  * Upload to Debian

 -- Damyan Ivanov <dmn@debian.org>  Wed, 21 Oct 2009 01:17:15 +0300

kgb-bot (0.06) unstable; urgency=low

  * client: install App::KGB::Client* in kgb-client
  * install also the manuals
  * use Module::Build

 -- Damyan Ivanov <dmn@debian.org>  Thu, 01 Oct 2009 22:31:11 +0300

kgb-bot (0.05) unstable; urgency=low

  [ Martina Ferrari ]
  * server
    + Decode utf8 sequences before passing to sha1_hex function. Fixes DoS with
      extended chars in the commit log.
  * client
    + Try to correctly handle the svn-provided strings, convertien them to utf8
      sequences. Decode them before sha1 and use the utf8 versions for SOAP.
      This triggers a bug in SOAP::Lite 0.710.08, because it incorrectly
      handles utf8 strings.

 -- Damyan Ivanov <dmn@debian.org>  Sat, 26 Sep 2009 11:00:33 +0300

kgb-bot (0.04) unstable; urgency=low

  [ Damyan Ivanov ]
  * server
    + use "dir" or "dirs" depending on the number (1 or greater)
    + make colors configurable
    + drop ":" after repository name
  * client
    + avoid wrong trimming of changed paths when branch or module cannot be
      detected
    + fix population of default password and proxy for servers
    + move checksum calculation back into servers loop
    + randomize server list
    + improve documentation
    + split self-contained parts of the code into separate modules as
      preparation for Git support
    + add --verbose option
  * split client script/man in kgb-client package
  * add syntax check and POD tests

  [ gregor herrmann ]
  * debian/rules: simplify, and don't compress examples.

 -- Damyan Ivanov <dmn@debian.org>  Mon, 14 Sep 2009 16:32:01 +0300

kgb-bot (0.03) unstable; urgency=low

  [ Damyan Ivanov ]
  * make dependency on libpoe-component-irc-perl versioned >= 5.56, in which
    NickServID plugin is first mentioned
  * add support for a list of answers
  * make all IO handles use utf8 encoding

  [ Martina Ferrari ]
  * server/KGB: move configuration reading and verification to a subroutine,
    for future support of config reloading.
  * server/KGB: separate into packages for clearer code. Allow SIGQUIT to
    restart the server (with complete close and disconnect).
  * server/KGB: support for reloading the configuration file with SIGHUP.
  * server/KGB: fixed an error in the password verification (protocol 1).
    Protocol versions: use a hardcoded hash of the *really* supported
    versions, and then a configuration option to filter them out.
  * debian/*, server/KGB, Makefile: match the /etc directory name with the
    package name.
  * client/*: remove hardcodings.
  * debian/init: make use of the SIG(HUP|QUIT) handlers.
  * client/KGB_sendcommit: use v1 protocol.
  * server/KGB: daemonize, handle parent/child communication during setup, and
    forcefully die when POE gets silly.
  * server/KGB, server/kgb.conf.sample: now the bot answers when addressed on a
    channel.
  * server/KGB, server/kgb.conf.sample: support for rate limiting the SOAP
    interface (only global limits, not per client).
  * client/KGB_sendcommit: shut up the compiler warnings about typos.

  [ gregor herrmann ]
  * debian/control:
    - fix Vcs-Svn URL
    - bump Standards-Version to 3.8.1
    - add ${misc:Depends}, ${perl:Depends} to Depends

  [ Damyan Ivanov ]
  * implement server failover
  * create /var/run/kgb-bot in the init script
  * client: process faults synchronously, report verbosely
  * add support for discovering branch and package name
  * server: fix branch/module colourization
  * bump perl (build) dependency to 5.10
  * remove the slash after the module name
  * strip leading shash from transmitted paths
  * omit flags if the change is a mere modification
  * bump Standards-Version to 3.8.3 (no changes needed)

 -- Damyan Ivanov <dmn@debian.org>  Sun, 06 Sep 2009 15:31:02 +0300
