NAME

App::Codeowners::Util - Grab bag of utility subs for Codeowners modules

VERSION

version 0.48

DESCRIPTION

DO NOT USE except in App::Codeowners and related modules.

FUNCTIONS

find_nearest_codeowners

    $filepath = find_nearest_codeowners($dirpath);

Find the CODEOWNERS file in the current working directory, or search in the parent directory recursively until a CODEOWNERS file is found.

Returns undef if no CODEOWNERS is found.

find_codeowners_in_directory

    $filepath = find_codeowners_in_directory($dirpath);

Find the CODEOWNERS file in a given directory. No recursive searching is done.

Returns the first of (or undef if none found):

  • CODEOWNERS

  • docs/CODEOWNERS

  • .bitbucket/CODEOWNERS

  • .github/CODEOWNERS

  • .gitlab/CODEOWNERS

BUGS

Please report any bugs or feature requests on the bugtracker website https://github.com/chazmcgarvey/git-codeowners/issues

When submitting a bug or request, please include a test-file or a patch to an existing test-file that illustrates the bug or desired feature.

AUTHOR

Charles McGarvey <chazmcgarvey@brokenzipper.com>

COPYRIGHT AND LICENSE

This software is copyright (c) 2019 by Charles McGarvey.

This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.