All URIs are relative to https://api.gitee.com/enterprises
Method | HTTP request | Description |
---|---|---|
getEnterpriseIdProjectsProjectIdPushConfig | GET /{enterprise_id}/projects/{project_id}/push_config | 查看推送规则详情 |
postEnterpriseIdProjectsProjectIdPushConfigValidate | POST /{enterprise_id}/projects/{project_id}/push_config/validate | 验证commit信息样式,并返回一个合理的样式 |
\GiteeEnterprise\Model\ProjectPushConfig getEnterpriseIdProjectsProjectIdPushConfig($enterpriseId, $projectId, $accessToken, $qt)
查看推送规则详情
查看推送规则详情
<?php
require_once(__DIR__ . '/vendor/autoload.php');
$apiInstance = new GiteeEnterprise\Api\ProjectPushConfigApi(
// If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`.
// This is optional, `GuzzleHttp\Client` will be used as default.
new GuzzleHttp\Client()
);
$enterpriseId = 56; // int | 企业id
$projectId = "projectId_example"; // string | 仓库 id 或 path
$accessToken = "accessToken_example"; // string | 用户授权码
$qt = "qt_example"; // string | path类型(查询参数为path), 空则表示查询参数为id
try {
$result = $apiInstance->getEnterpriseIdProjectsProjectIdPushConfig($enterpriseId, $projectId, $accessToken, $qt);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling ProjectPushConfigApi->getEnterpriseIdProjectsProjectIdPushConfig: ', $e->getMessage(), PHP_EOL;
}
?>
Name | Type | Description | Notes |
---|---|---|---|
enterpriseId | int | 企业id | |
projectId | string | 仓库 id 或 path | |
accessToken | string | 用户授权码 | [optional] |
qt | string | path类型(查询参数为path), 空则表示查询参数为id | [optional] |
\GiteeEnterprise\Model\ProjectPushConfig
No authorization required
[Back to top] [Back to API list] [Back to Model list] [Back to README]
postEnterpriseIdProjectsProjectIdPushConfigValidate($enterpriseId, $projectId, $commitMessage, $accessToken, $qt)
验证commit信息样式,并返回一个合理的样式
验证commit信息样式,并返回一个合理的样式
<?php
require_once(__DIR__ . '/vendor/autoload.php');
$apiInstance = new GiteeEnterprise\Api\ProjectPushConfigApi(
// If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`.
// This is optional, `GuzzleHttp\Client` will be used as default.
new GuzzleHttp\Client()
);
$enterpriseId = 56; // int | 企业id
$projectId = "projectId_example"; // string | 仓库 id 或 path
$commitMessage = array("commitMessage_example"); // string[] | 待验证的commit 消息
$accessToken = "accessToken_example"; // string | 用户授权码
$qt = "qt_example"; // string | path类型(查询参数为path), 空则表示查询参数为id
try {
$apiInstance->postEnterpriseIdProjectsProjectIdPushConfigValidate($enterpriseId, $projectId, $commitMessage, $accessToken, $qt);
} catch (Exception $e) {
echo 'Exception when calling ProjectPushConfigApi->postEnterpriseIdProjectsProjectIdPushConfigValidate: ', $e->getMessage(), PHP_EOL;
}
?>
Name | Type | Description | Notes |
---|---|---|---|
enterpriseId | int | 企业id | |
projectId | string | 仓库 id 或 path | |
commitMessage | string[] | 待验证的commit 消息 | |
accessToken | string | 用户授权码 | [optional] |
qt | string | path类型(查询参数为path), 空则表示查询参数为id | [optional] |
void (empty response body)
No authorization required
[Back to top] [Back to API list] [Back to Model list] [Back to README]