1212class Policies extends AbstractApi
1313{
1414 /**
15- * List deployment branch policies
15+ * List deployment branch policies.
1616 *
1717 * @link https://docs.github.com/en/rest/deployments/branch-policies?apiVersion=2022-11-28#list-deployment-branch-policies
1818 *
19- * @param string $username the username of the user who owns the repository
20- * @param string $repository the name of the repository
19+ * @param string $username the username of the user who owns the repository
20+ * @param string $repository the name of the repository
2121 * @param string $environment the name of the environment.
22- * @param array $params query parameters to filter deployments by (see link)
22+ * @param array $params query parameters to filter deployments by (see link)
2323 *
2424 * @return array the deployments requested
2525 */
@@ -29,14 +29,14 @@ public function all(string $username, string $repository, string $environment, a
2929 }
3030
3131 /**
32- * Get a deployment branch policy
32+ * Get a deployment branch policy.
3333 *
3434 * @link https://docs.github.com/en/rest/deployments/branch-policies?apiVersion=2022-11-28#get-a-deployment-branch-policy
3535 *
36- * @param string $username the username of the user who owns the repository
37- * @param string $repository the name of the repository
36+ * @param string $username the username of the user who owns the repository
37+ * @param string $repository the name of the repository
3838 * @param string $environment the name of the environment.
39- * @param int $id The unique identifier of the branch policy.
39+ * @param int $id the unique identifier of the branch policy.
4040 *
4141 * @return array
4242 */
@@ -50,8 +50,8 @@ public function show(string $username, string $repository, string $environment,
5050 *
5151 * @link https://docs.github.com/en/rest/deployments/branch-policies?apiVersion=2022-11-28#create-a-deployment-branch-policy
5252 *
53- * @param string $username the username of the user who owns the repository
54- * @param string $repository the name of the repository
53+ * @param string $username the username of the user who owns the repository
54+ * @param string $repository the name of the repository
5555 * @param string $environment the name of the environment.
5656 *
5757 * @return array information about the deployment branch policy
@@ -66,10 +66,10 @@ public function create(string $username, string $repository, string $environment
6666 *
6767 * @link https://docs.github.com/en/rest/deployments/branch-policies?apiVersion=2022-11-28#update-a-deployment-branch-policy
6868 *
69- * @param string $username the username of the user who owns the repository
70- * @param string $repository the name of the repository
69+ * @param string $username the username of the user who owns the repository
70+ * @param string $repository the name of the repository
7171 * @param string $environment the name of the environment.
72- * @param int $id The unique identifier of the branch policy.
72+ * @param int $id the unique identifier of the branch policy.
7373 *
7474 * @return array information about the deployment branch policy
7575 */
@@ -79,14 +79,14 @@ public function update(string $username, string $repository, string $environment
7979 }
8080
8181 /**
82- * Delete a deployment branch policy
82+ * Delete a deployment branch policy.
8383 *
8484 * @link https://docs.github.com/en/rest/deployments/branch-policies?apiVersion=2022-11-28#delete-a-deployment-branch-policy
8585 *
86- * @param string $username the username of the user who owns the repository
87- * @param string $repository the name of the repository
86+ * @param string $username the username of the user who owns the repository
87+ * @param string $repository the name of the repository
8888 * @param string $environment the name of the environment.
89- * @param int $id The unique identifier of the branch policy.
89+ * @param int $id the unique identifier of the branch policy.
9090 *
9191 * @return mixed null on success, array on error with 'message'
9292 */
0 commit comments