App-KGB

 view release on metacpan or  search on metacpan

Changes  view on Meta::CPAN

1.15 2011-09-14
 * Client:
   + make File::Touch usage optional, used only when status_dir is present
   + use single line note for annotated tags
   + document --status-dir
   + consistent POD formatting
   + POD fix for --single-line-commits in synopsis
 * Server:
   + fix single line commits with multi-line explaination
   + move detect_common_dir to App::KGB::Change (as a class method)
   + no bold revision by default
   + drop (bold) repository name from the notification
 * Misc:
   + fix eg/run-test-bot-dump
   + My::Builder: make the 'orig' target also provide a (hardlinked)
     distribution archive
 * Tests:
   + initially trim the dump file only if existing
   + fix single line notification separator
   + tags are single line too
   + add tests for decect_common_dir
   + more extensive tests for debian/patches series some.patch (still passing)

Changes  view on Meta::CPAN

  * use Digest::SHA from core instead of ::SHA1
  * remove references to Svn::* from Build.PL
    Closes: #582739 (by working around #589812)

1.03 2010-04-28
  * Synchronized versions of kgb-bot and KGB

1.02 Not Released
  * Protocol v2
    + Adds a new parameter, revision prefix, which is printed plain before the
      bold commit ID
    + The default revision prefix is empty ('')
    + Subversion revision prefix is 'r'

1.01 2009-12-05
  * Client: drop branch/module detection if not all changed paths are in the
    same branch/module

1.00 2009-12-02
  * ServerRef: send commit_id as a string
  * Commit: decode UTF-8 log messages

etc/kgb.conf  view on Meta::CPAN

#    # Can also be set per-channel
#    #smart_answers:
#    #  - "I'm in ur channel, watching ur commits!"
#    #  - "I am not listening"
#    #  - "Shut up! I am buzy watching you."
pid_dir: /var/run/kgb-bot
# anything less is rejected
min_protocol_ver: 1
# default colors:
# colors:
#  repository: bold
#  revision: bold
#  author: green
#  branch: brown
#  module: purple
#  path: teal
#  addition: green
#  modification: teal
#  deletion: "bold red"
#  replacement: reverse
#  prop_change: underline
#  web: silver
# you can combine them like "bold red" (ouch!)
# available colors: black, navy, green, red, brown, purple, orange, yellow,
#  lime, teal, aqua, blue, fuchsia, gray, silver, white
# available modifiers: bold underline reverse

lib/App/KGB/Client.pm  view on Meta::CPAN

=item addition

Used for added paths. Default: green.

=item modification

Used for modified paths. Default: teal.

=item deletion

Used for deleted paths. Default: bold red.

=item replacement
Used for replaced paths (a Subversion concept). Default: brown.

=item prop_change

Used for paths with changed properties (a Subversion concept), combined with
other colors depending on the action -- addition, modification or replacement.
Default: underline.

lib/App/KGB/Painter.pm  view on Meta::CPAN

use strict;
use warnings;

our $VERSION = 1.27;

use base 'Class::Accessor::Fast';

__PACKAGE__->mk_accessors( qw(item_colors color_codes simulate) );

our %color_codes = (
    bold      => "\002",     # ^B
    normal    => "\017",     # ^O
    underline => "\037",     # ^_
    reverse   => "\026",     # ^V
    black     => "\00301",
    navy      => "\00302",
    green     => "\00303",
    red       => "\00304",
    brown     => "\00305",
    purple    => "\00306",
    orange    => "\00307",

lib/App/KGB/Painter.pm  view on Meta::CPAN

    path      => 'teal',
    author    => 'purple',
    branch    => 'brown',
    project   => 'blue',
    module    => 'green',
    web       => 'silver',
    separator => undef,

    addition     => 'green',
    modification => 'teal',
    deletion     => 'bold red',
    replacement  => 'brown',

    prop_change => 'underline',
);

=head1 CONSTRUCTOR

=head2 new

 my $p = App::KGB::Painter->new({ color_codes => { ... }, item_colors => { ... } } );

man5/kgb.conf.pod  view on Meta::CPAN

=item addition

Used for added paths. Default: green.

=item modification

Used for modified paths. Default: teal.

=item deletion

Used for deleted paths. Default: bold red.

=item replacement

Used for replaced paths (a Subversion concept). Default: brown.

=item prop_change

Used for paths with changed properties (a Subversion concept), combined with
other colors depending on the action -- addition, modification or replacement.
Default: underline.

man5/kgb.conf.pod  view on Meta::CPAN

     # Can also be set per-channel
     #smart_answers:
     #  - "I'm in ur channel, watching ur commits!"
     #  - "I am not listening"
     #  - "Shut up! I am buzy watching you."
 pid_dir: /var/run/kgb-bot
 # anything less is rejected
 min_protocol_ver: 1
 # default colors:
 colors:
  repository: bold
  revision: bold
  author: green
  branch: brown
  module: purple
  path: teal
  addition: green
  modification: teal
  deletion: "bold red"
  replacement: reverse
  prop_change: underline
  web: silver
 # you can combine them like "bold red" (ouch!)
 # available colors: black, navy, green, red, brown, purple, orange, yellow,
 #  lime, teal, aqua, blue, fuchsia, gray, silver, white
 # available modifiers: bold underline reverse
 webhook:
  enabled: 1
  allowed_networks:
   - 127.0.0.1
 short_url_service: Debli

=head1 SEE ALSO

L<kgb-bot(1)>, L<kgb-client(1)>

script/kgb-bot  view on Meta::CPAN

    $conf->{colors}{revision}   //= '';
    $conf->{colors}{path}       //= 'teal';
    $conf->{colors}{author}     //= 'purple';
    $conf->{colors}{branch}     //= 'brown';
    $conf->{colors}{module}     //= 'green';
    $conf->{colors}{web}        //= 'silver';
    $conf->{colors}{separator}  //= '';

    $conf->{colors}{addition}     //= 'green';
    $conf->{colors}{modification} //= 'teal';
    $conf->{colors}{deletion}     //= 'bold red';
    $conf->{colors}{replacement}  //= 'brown';

    $conf->{colors}{prop_change} //= 'underline';

    $conf->{colors}{success}     //= 'reverse green';
    $conf->{colors}{failure}     //= 'reverse red';

    $KGB::debug = $conf->{debug} if exists $conf->{debug};
    $conf->{pid_dir}
        = Cwd::realpath( $conf->{pid_dir} // '/var/run/kgb-bot' );



( run in 1.942 second using v1.01-cache-2.11-cpan-c333fce770f )