The London Perl and Raku Workshop takes place on 26th Oct 2024. If your company depends on Perl, please consider sponsoring and/or attending.

NAME

Gentoo::App::Pram - Library to fetch a GitHub Pull Request as an am-like patch.

DESCRIPTION

The purpose of this module is to fetch Pull Requests from GitHub's CDN as am-like patches in order to facilitate the merging and closing of Pull Requests.

FUNCTIONS

  • fetch_patch($patch_url)

    Fetch patch from $patch_url. Return patch as a string.

  • add_closes_header($close_url, $patch)

    Add a "Closes:" header to each commit in $patch using $close_url. If the patch already contains such headers, skip this step.

  • apply_patch($editor, $git_command, $patch)

    Apply $patch onto HEAD of the current git repository using $git_command. This functions also shows $patch in $editor for a final review.

VERSION

version 0.003

COPYRIGHT AND LICENSE

This software is copyright (c) 2016 by Patrice Clement.

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

AUTHOR

Patrice Clement <monsieurp@gentoo.org>, Kent Fredric <kentln@gentoo.org>.