Coder Social home page Coder Social logo

guillaumeaubert / app-githooks-plugin-requirecommitmessage Goto Github PK

View Code? Open in Web Editor NEW
0.0 0.0 1.0 47 KB

App::GitHooks plugin to require a commit message.

Home Page: https://metacpan.org/pod/App::GitHooks::Plugin::RequireCommitMessage

License: Other

Perl 100.00%
cpan githooks-plugin maintenance-mode perl

app-githooks-plugin-requirecommitmessage's People

Contributors

book avatar guillaumeaubert avatar

Watchers

 avatar  avatar

Forkers

book

app-githooks-plugin-requirecommitmessage's Issues

Make test language-independent

From http://cpantesters.org/cpan/report/a238faaa-e9c4-11e3-adde-23b6dfbfc7aa:

# Testing App::GitHooks::Plugin::RequireCommitMessage 1.0.0, Perl 5.018002, /usr/perl5.18.2/bin/perl5.18.2
t/00-load.t .. ok

    #   Failed test 'The output matches expected results.'
    #   at t/10-run.t line 100.
    #                   'Commit aufgrund leerer Beschreibung abgebrochen. at t/10-run.t line 91.
    # '
    #     doesn't match '(?^:^Aborting\ commit\ due\ to\ empty\ commit\ message\.)'
    # Looks like you failed 1 test of 5.

#   Failed test 'Completely empty commit message.'
#   at t/10-run.t line 112.
# Looks like you failed 1 test of 4.
t/10-run.t ... 
Dubious, test returned 1 (wstat 256, 0x100)
Failed 1/4 subtests 

RequireCommitMessage does not seem to properly detect auto-generated commit IDs

With the following configuration:

force_plugins = PerlCompile, PerlCritic, ValidatePODFormat, BlockNOCOMMIT, PrependTicketID, RequireCommitMessage
project_prefixes = GH
extract_ticket_id_from_branch = /^($project_prefixes\d+)/
normalize_branch_ticket_id = s/^(.*?)(\d+)$/\U$1-$2/
extract_ticket_id_from_commit = /^\(($project_prefixes-\d+)\) /

[PrependTicketID]
commit_prefix_format = /($ticket_id) /

The RequireCommitMessage plugin incorrectly lets the following commit message go through: (GH-1).

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.