class Git

Constants

SUPPORT_ALIYUN

SUPPORT_CODING

SUPPORT_GITEE

SUPPORT_GITHUB

SUPPORT_GOGS

SUPPORT_GIT_ARRAY

Methods

static void
checkGit($git_type)

No description

static string
getUrl(string $type, string $repo_full_name, bool $ssh = false)

No description

static string
getPullRequestUrl(string $type, string $repo_full_name, int $pull_id)

No description

static string
getIssueUrl(string $type, string $repo_full_name, string $issue_id)

No description

static string
getCommitUrl(string $type, string $repo_full_name, string $commit_id)

No description

static string
getRawUrl(string $type, string $repo_full_name, string $commit_id, string $file_name)

No description

static string
getApiUrl(string $git_type)

No description

static string
getClassName(string $git_type)

No description

Details

at line 34
static void checkGit($git_type)

Parameters

$git_type

Return Value

void

Exceptions

Exception

at line 46
static string getUrl(string $type, string $repo_full_name, bool $ssh = false)

Parameters

string $type
string $repo_full_name
bool $ssh

Return Value

string

Exceptions

Exception

at line 97
static string getPullRequestUrl(string $type, string $repo_full_name, int $pull_id)

Parameters

string $type
string $repo_full_name
int $pull_id

Return Value

string

Exceptions

Exception

at line 121
static string getIssueUrl(string $type, string $repo_full_name, string $issue_id)

Parameters

string $type
string $repo_full_name
string $issue_id

Return Value

string

Exceptions

Exception

at line 145
static string getCommitUrl(string $type, string $repo_full_name, string $commit_id)

Parameters

string $type
string $repo_full_name
string $commit_id

Return Value

string

Exceptions

Exception

at line 167
static string getRawUrl(string $type, string $repo_full_name, string $commit_id, string $file_name)

Parameters

string $type
string $repo_full_name
string $commit_id
string $file_name

Return Value

string

Exceptions

Exception

at line 191
static string getApiUrl(string $git_type)

Parameters

string $git_type

Return Value

string

Exceptions

Exception

at line 228
static string getClassName(string $git_type)

Parameters

string $git_type

Return Value

string

Exceptions

Exception