logo
Free, unlimited AI code reviews that run on commit
git-lrc git-lrc GitHub Install Now We'd appreciate a star git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt

Net::GitHub::V3::Actions - GitHub Actions API

Description

METHODSGitHubActions

       <https://developer.github.com/v3/actions/>

       Artifacts

       <https://developer.github.com/v3/actions/artifacts/>

       artifacts
           List artifacts for a repository

               $actions->artifacts( { owner => 'xxx', repo => 'repo' } );

       run_artifacts
               $actions->run_artifacts( { owner => 'xxx', repo => 'repo', run_id => XXX } );

       artifact
               $actions->artifacts( { owner => 'xxx', repo => 'repo', artifact_id => 'ID' } );

       Workflows

       <https://developer.github.com/v3/actions/workflows/>

       workflows
           List repository workflows

               $actions->workflows( { owner => 'xxx', repo => 'repo' } );

       workflow
           Get a workflow

               $actions->workflow( { owner => 'xxx', repo => 'repo', workflow_id => 1234 } );

       WorkflowJobs

       <https://developer.github.com/v3/actions/workflow-jobs/>

       jobs
           List jobs for a workflow run

       job Get a workflow job

Name

       Net::GitHub::V3::Actions - GitHub Actions API

Synopsis

           use Net::GitHub::V3;

           my $gh = Net::GitHub::V3->new; # read L<Net::GitHub::V3> to set right authentication info
           my $actions = $gh->actions;

           # set :user/:repo for simple calls
           $actions->set_default_user_repo('fayland', 'perl-net-github');

           $actions->workflows();
           $actions->workflows( { owner => 'xxx', repo => 'repo' } );

See Also