GitHub/V3/Actions.pm

filter: Statementstmt 100% 24 / 24 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 100% 6 / 6 Podpod n/a totaltotal 100% 30 / 30 CC 1 SCAR 0.0
CC
1
Cov
100%
BEGIN
1.0
BEGIN
1.0
BEGIN
1.0
CRAP 1.0
« GitHub/V3/ResultSet.pm ↑ Summary GitHub/V3/Events.pm »
1 package Net::GitHub::V3::Actions;
2  
3 1 ▶use Moo;
Subroutine BEGIN: called CC=1 SCAR=0.0
4  
5 1 our $VERSION = '1.02';
6 1 our $AUTHORITY = 'cpan:FAYLAND';
7  
8 1 ▶use Carp;
Subroutine BEGIN: called CC=1 SCAR=0.0
9 1 ▶use URI::Escape;
Subroutine BEGIN: called CC=1 SCAR=0.0
10 1 ▶use URI;
Subroutine BEGIN: called CC=1 SCAR=0.0
11 1 ▶use HTTP::Request::Common qw(POST);
Subroutine BEGIN: called CC=1 SCAR=0.0
12  
13 1 with 'Net::GitHub::V3::Query';
14  
15 ## build methods on fly
16 1 my %__methods = (
17  
18 ### -------------------------------------------------------------------------------
19 ### Artifacts
20 ### -------------------------------------------------------------------------------
21  
22 # List artifacts for a repository
23 artifacts => { v => 2, url => '/repos/:owner/:repo/actions/artifacts', method => 'GET', paginate => 1 },
24  
25 # List workflow run artifacts
26 # GET /repos/:owner/:repo/actions/runs/:run_id/artifacts
27 run_artifacts => { v => 2, url => '/repos/:owner/:repo/actions/runs/:run_id/artifacts', method => 'GET', paginate => 1 },
28  
29 # Get an artifact
30 # GET /repos/:owner/:repo/actions/artifacts/:artifact_id
31 artifact => { v => 2, url => '/repos/:owner/:repo/actions/artifacts/:artifact_id', method => 'GET' },
32  
33 ### -------------------------------------------------------------------------------
34 ### Workflows - https://developer.github.com/v3/actions/workflows/
35 ### -------------------------------------------------------------------------------
36  
37 # List repository workflows
38 # GET /repos/:owner/:repo/actions/workflows
39 workflows => { v => 2, url => '/repos/:owner/:repo/actions/workflows', method => 'GET', paginate => 1 },
40  
41 # Get a workflow
42 # GET /repos/:owner/:repo/actions/workflows/:workflow_id
43 workflow => { v => 2, url => '/repos/:owner/:repo/actions/workflows/:workflow_id', method => 'GET' },
44  
45 ### -------------------------------------------------------------------------------
46 ### Workflow Jobs - https://developer.github.com/v3/actions/workflow-jobs/
47 ### -------------------------------------------------------------------------------
48  
49 # List jobs for a workflow run
50 # GET /repos/:owner/:repo/actions/runs/:run_id/jobs pagination
51 jobs => { v => 2, url => '/repos/:owner/:repo/actions/runs/:run_id/jobs', method => 'GET', paginate => 1 },
52  
53 # Get a workflow job
54 # GET /repos/:owner/:repo/actions/jobs/:job_id
55 job => { v => 2, url => '/repos/:owner/:repo/actions/jobs/:job_id', method => 'GET' },
56  
57 ### -------------------------------------------------------------------------------
58 ### Workflow Runs - https://developer.github.com/v3/actions/workflow-runs/
59 ### -------------------------------------------------------------------------------
60  
61 runs => { v => 2, url => '/repos/:owner/:repo/actions/workflows/:workflow_id/runs', method => 'GET', paginate => 1 },
62  
63 # ...
64 );
65 1 __build_methods( __PACKAGE__, %__methods );
66  
67 1 ▶no Moo;
Subroutine BEGIN: called CC=1 SCAR=0.0
68  
69 1 1;
70 __END__
« GitHub/V3/ResultSet.pm ↑ Summary GitHub/V3/Events.pm »