|
|
@ -10,14 +10,9 @@ import ( |
|
|
|
"time" |
|
|
|
"time" |
|
|
|
) |
|
|
|
) |
|
|
|
|
|
|
|
|
|
|
|
// Protected metadata
|
|
|
|
|
|
|
|
const ( |
|
|
|
const ( |
|
|
|
// Protected User ID
|
|
|
|
// ProtectedBranchRepoID protected Repo ID
|
|
|
|
ProtectedBranchUserID = "GITEA_USER_ID" |
|
|
|
|
|
|
|
// Protected Repo ID
|
|
|
|
|
|
|
|
ProtectedBranchRepoID = "GITEA_REPO_ID" |
|
|
|
ProtectedBranchRepoID = "GITEA_REPO_ID" |
|
|
|
// Protected access mode
|
|
|
|
|
|
|
|
ProtectedBranchAccessMode = "GITEA_ACCESS_MODE" |
|
|
|
|
|
|
|
) |
|
|
|
) |
|
|
|
|
|
|
|
|
|
|
|
// ProtectedBranch struct
|
|
|
|
// ProtectedBranch struct
|
|
|
|