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 33namespace Github \Api ;
44
55use Github \Api \Organization \Actions \Secrets ;
6+ use Github \Api \Organization \Actions \Variables ;
67use Github \Api \Organization \Hooks ;
78use Github \Api \Organization \Members ;
89use Github \Api \Organization \OutsideCollaborators ;
@@ -110,6 +111,14 @@ public function secrets(): Secrets
110111 return new Secrets ($ this ->getClient ());
111112 }
112113
114+ /**
115+ * @return Variables
116+ */
117+ public function variables (): Variables
118+ {
119+ return new Variables ($ this ->getClient ());
120+ }
121+
113122 /**
114123 * @return OutsideCollaborators
115124 */
Original file line number Diff line number Diff line change 44
55use Github \Api \Repository \Actions \Artifacts ;
66use Github \Api \Repository \Actions \Secrets ;
7+ use Github \Api \Repository \Actions \Variables ;
78use Github \Api \Repository \Actions \SelfHostedRunners ;
89use Github \Api \Repository \Actions \WorkflowJobs ;
910use Github \Api \Repository \Actions \WorkflowRuns ;
@@ -405,6 +406,14 @@ public function secrets(): Secrets
405406 return new Secrets ($ this ->getClient ());
406407 }
407408
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+
408417 /**
409418 * Manage the content of a repository.
410419 *
Original file line number Diff line number Diff line change @@ -88,6 +88,16 @@ public function shouldGetTeamsApiObject()
8888 $ this ->assertInstanceOf (\Github \Api \Organization \Teams::class, $ api ->teams ());
8989 }
9090
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+
91101 /**
92102 * @return string
93103 */
You can’t perform that action at this time.
0 commit comments