Giter Site home page Giter Site logo

p5-badge-depot-plugin-githubactions's Introduction

NAME

Badge::Depot::Plugin::Githubactions - Github Actions plugin for Badge::Depot

Requires Perl 5.10+ coverage 75.8%

VERSION

Version 0.0100, released 2020-12-27.

SYNOPSIS

use Badge::Depot::Plugin::Githubactions;

my $badge = Badge::Depot::Plugin::Githubactions->new(user => 'my_name', repo => 'the_repo', branch => 'master', workflow => 'gh-actions-workflow');

print $badge->to_html;
# prints '<a href="https://github.com/my_name/the_repo/actions?query=workflow%3Agh-actions-workflow+branch%3Amaster"><img src="https://img.shields.io/github/workflow/status/my_name/the_repo/gh-actions-workflow/master" alt="Build status at Github" /></a>'

DESCRIPTION

Create a Github Actions badge for a github repository.

This class consumes the Badge::Depot role.

The badge will look similar to this: Build status at Github

ATTRIBUTES

The user and repo attributes are required or optional, depending on your configuration. It looks for the resources/repository/web setting in META.json:

  • If META.json doesn't exist in the dist root, user and repo are required.
  • If resources/repository/web doesn't exist (or is not a github url), user and repo are required.

user

Github username.

repo

Github repository.

workflow

The name of the Github Actions workflow. Required.

branch

Github branch. Optional, no default.

SEE ALSO

SOURCE

https://github.com/Csson/p5-Badge-Depot-Plugin-Githubactions

HOMEPAGE

https://metacpan.org/release/Badge-Depot-Plugin-Githubactions

AUTHOR

Erik Carlsson [email protected]

COPYRIGHT AND LICENSE

This software is copyright (c) 2020 by Erik Carlsson.

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

p5-badge-depot-plugin-githubactions's People

Contributors

csson avatar

Watchers

James Cloos avatar  avatar

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.