File tree Expand file tree Collapse file tree 3 files changed +28
-0
lines changed Expand file tree Collapse file tree 3 files changed +28
-0
lines changed Original file line number Diff line number Diff line change 3
3
namespace Github \Api ;
4
4
5
5
use Github \Api \Organization \Actions \Secrets ;
6
+ use Github \Api \Organization \Actions \Variables ;
6
7
use Github \Api \Organization \Hooks ;
7
8
use Github \Api \Organization \Members ;
8
9
use Github \Api \Organization \OutsideCollaborators ;
@@ -110,6 +111,14 @@ public function secrets(): Secrets
110
111
return new Secrets ($ this ->getClient ());
111
112
}
112
113
114
+ /**
115
+ * @return Variables
116
+ */
117
+ public function variables (): Variables
118
+ {
119
+ return new Variables ($ this ->getClient ());
120
+ }
121
+
113
122
/**
114
123
* @return OutsideCollaborators
115
124
*/
Original file line number Diff line number Diff line change 4
4
5
5
use Github \Api \Repository \Actions \Artifacts ;
6
6
use Github \Api \Repository \Actions \Secrets ;
7
+ use Github \Api \Repository \Actions \Variables ;
7
8
use Github \Api \Repository \Actions \SelfHostedRunners ;
8
9
use Github \Api \Repository \Actions \WorkflowJobs ;
9
10
use Github \Api \Repository \Actions \WorkflowRuns ;
@@ -405,6 +406,14 @@ public function secrets(): Secrets
405
406
return new Secrets ($ this ->getClient ());
406
407
}
407
408
409
+ /**
410
+ * @link https://docs.github.com/en/rest/reference/actions#secrets
411
+ */
412
+ public function variables (): Variables
413
+ {
414
+ return new Variables ($ this ->getClient ());
415
+ }
416
+
408
417
/**
409
418
* Manage the content of a repository.
410
419
*
Original file line number Diff line number Diff line change @@ -88,6 +88,16 @@ public function shouldGetTeamsApiObject()
88
88
$ this ->assertInstanceOf (\Github \Api \Organization \Teams::class, $ api ->teams ());
89
89
}
90
90
91
+ /**
92
+ * @test
93
+ */
94
+ public function shouldGetVariablesApiObject ()
95
+ {
96
+ $ api = $ this ->getApiMock ();
97
+
98
+ $ this ->assertInstanceOf (\Github \Api \Organization \Actions \Variables::class, $ api ->variables ());
99
+ }
100
+
91
101
/**
92
102
* @return string
93
103
*/
You can’t perform that action at this time.
0 commit comments