Build
class Build extends Model
Constants
CREATED_AT |
|
UPDATED_AT |
|
Properties
static protected | $table | from Model | |
static protected | $set_array | from Model | |
static protected | $primaryKey | from Model | |
static protected | $incrementing | from Model | |
static protected | $keyType | 如果主键不是一个整数,则应该在模型上设置 string. | from Model |
static protected | $timestamps | 默认数据表中存在 created_at 和 updated_at 这两个字段. | from Model |
static protected | $connection | from Model |
Methods
static
getData(int $buildId = 0)
No description
static void
deleteByBranch(string $branch, int $rid, $gitType = 'github')
No description
static string
getStartAt(int $build_key_id)
No description
static void
updateStartAt(int $build_key_id, int|null $time)
No description
static string
getStopAt(int $build_key_id)
No description
static void
updateFinishedAt(int $buildId)
No description
static string
getGitType(int $build_key_id)
No description
static int
getRid(int $build_key_id)
No description
static int
updateBuildStatus(int $build_key_id, string|null $status)
No description
static array|string
getBuildStatus(int $build_key_id)
No description
static int
updateBuildStatusByCommitId(string $build_status, int $rid, string $branch, string $commit_id, $git_type = 'github')
No description
static string
getLastBuildStatus(int $rid, string $branch)
No description
static bool
buildStatusIsChanged(int $rid, string $branch)
No description
static array
getBranches(int $rid, $git_type = 'github')
No description
static string
getCurrentBuildKeyId(int $rid, $git_type = 'github')
某仓库最新的一次构建 ID PR 除外.
static string
getConfig(int $build_key_id)
No description
static string
getBuildStatusByBuildKeyId(int $build_key_id)
No description
static string
getBranch($build_key_id)
No description
static array
allByBranch(int $rid, string $branch_name, int|null $before, int|null $limit, $git_type = 'github')
某分支的构建列表.
static array
allByRid(int $rid, int|null $before, int|null $limit, bool $pr, $all = false, $git_type = 'github')
某仓库的构建列表.
static array
allByAdmin(int $uid, int|null $before, int|null $limit, $git_type = 'github')
某用户的构建列表.
static array
getCommitterEmail(int $build_key_id)
No description
static array
getCommitterName(int $build_key_id)
No description
static int
insertTag($branch, $tag, $commit_id, $commit_message, $committer_name, $committer_email, $committer_username, $author_name, $author_email, $author_username, $rid, $event_time, $config, $git_type = 'github')
No description
static int
insert($event_type, $branch, $compare, $commit_id, $commit_message, $committer_name, $committer_email, $committer_username, $author_name, $author_email, $author_username, $rid, $event_time, $config, $git_type = 'github', bool $unique = false)
No description
static int
insertPing($rid, $created_at, $git_type = 'github')
No description
static int
insertPullRequest($event_time, string $action, string $commit_id, string $commit_message, int $committer_uid, string $committer_username, $pull_request_number, string $branch, $rid, string $config, $internal, $pull_request_source, $git_type = 'github')
No description
static void
updateCheckSuiteId(int $rid, string $commit_id, int $check_suite_id, string $git_type = 'github')
No description
static void
deleteLog(int $buildId)
No description
Details
in Model at line 50
static array|string
all()
取得所有数据.
in Model at line 68
static int|array
find(int $table_primary_key_id)
通过主键查找数据.
in Model at line 86
static void
first()
取回符合查询限制的第一个模型 .
..
in Model at line 99
static array|int
findOrFail(int|array $table_primary_key_id)
通过主键查找数据,找不到则抛出异常.
in Model at line 110
static void
firstOrFail()
in Model at line 117
static string|null
getTableName()
in Model at line 132
void
save()
in Model at line 145
void
__set($name, $value)
in Model at line 157
static array|string
getLastKeyId()
in Model at line 167
static void
destroy(int|array $primaryKeyValue)
at line 15
static
getData(int $buildId = 0)
at line 60
static void
deleteByBranch(string $branch, int $rid, $gitType = 'github')
at line 72
static string
getStartAt(int $build_key_id)
at line 82
static void
updateStartAt(int $build_key_id, int|null $time)
at line 95
static string
getStopAt(int $build_key_id)
at line 105
static void
updateFinishedAt(int $buildId)
at line 119
static string
getGitType(int $build_key_id)
at line 131
static int
getRid(int $build_key_id)
at line 151
static int
updateBuildStatus(int $build_key_id, string|null $status)
at line 167
static array|string
getBuildStatus(int $build_key_id)
at line 183
static int
updateBuildStatusByCommitId(string $build_status, int $rid, string $branch, string $commit_id, $git_type = 'github')
at line 199
static string
getLastBuildStatus(int $rid, string $branch)
at line 211
static bool
buildStatusIsChanged(int $rid, string $branch)
at line 231
static array
getBranches(int $rid, $git_type = 'github')
at line 247
static string
getCurrentBuildKeyId(int $rid, $git_type = 'github')
某仓库最新的一次构建 ID PR 除外.
at line 269
static string
getConfig(int $build_key_id)
at line 287
static string
getBuildStatusByBuildKeyId(int $build_key_id)
at line 301
static string
getBranch($build_key_id)
at line 317
static array
allByBranch(int $rid, string $branch_name, int|null $before, int|null $limit, $git_type = 'github')
某分支的构建列表.
at line 354
static array
allByRid(int $rid, int|null $before, int|null $limit, bool $pr, $all = false, $git_type = 'github')
某仓库的构建列表.
at line 403
static array
allByAdmin(int $uid, int|null $before, int|null $limit, $git_type = 'github')
某用户的构建列表.