Skip to content

Commit 6c79b05

Browse files
committed
Removed trait for custom beta accept header,
This api doesn't require a custom beta accept header, so the trait usage can be removed
1 parent 48da337 commit 6c79b05

File tree

1 file changed

+16
-2
lines changed

1 file changed

+16
-2
lines changed

lib/Github/Api/Environment.php

Lines changed: 16 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,6 @@
99
*/
1010
class Environment extends AbstractApi
1111
{
12-
use AcceptHeaderTrait;
13-
1412
/**
1513
* List environments for a particular repository.
1614
*
@@ -69,4 +67,20 @@ public function remove(string $username, string $repository, string $name)
6967
{
7068
return $this->delete('/repos/'.rawurlencode($username).'/'.rawurlencode($repository).'/environments/'.$name);
7169
}
70+
71+
/**
72+
* @link https://docs.github.com/en/rest/reference/actions#secrets
73+
*/
74+
public function secrets(): Secrets
75+
{
76+
return new Secrets($this->getClient());
77+
}
78+
79+
/**
80+
* @link https://docs.github.com/en/rest/reference/actions#secrets
81+
*/
82+
public function variables(): Variables
83+
{
84+
return new Variables($this->getClient());
85+
}
7286
}

0 commit comments

Comments
 (0)