tgstation-server 6.12.3
The /tg/station 13 server suite
Loading...
Searching...
No Matches
RepositoryRights.cs
Go to the documentation of this file.
1using System;
2
4{
8 [Flags]
9 public enum RepositoryRights : ulong
10 {
14 None = 0,
15
19 CancelPendingChanges = 1 << 0,
20
24 SetOrigin = 1 << 1,
25
29 SetSha = 1 << 2,
30
34 MergePullRequest = 1 << 3,
35
39 UpdateBranch = 1 << 4,
40
44 ChangeCommitter = 1 << 5,
45
50
54 ChangeCredentials = 1 << 7,
55
59 SetReference = 1 << 8,
60
64 Read = 1 << 9,
65
70
74 Delete = 1 << 11,
75
79 CancelClone = 1 << 12,
80
84 ChangeSubmoduleUpdate = 1 << 13,
85
89 Reclone = 1 << 14,
90 }
91}
@ Read
User can read all chat bot properties except Models.Internal.ChatBotSettings.ConnectionString.
@ Delete
User can delete chat bots.
@ List
User may list files if the Models.Instance allows it.
RepositoryRights
Rights for the git repository.
@ SetReference
User may set Models.Internal.RepositoryApiBase.Reference to another git branch or tag (not a SHA).
@ UpdateBranch
User may fetch and hard reset to the origin version of the current branch.
@ MergePullRequest
User may create Models.TestMerges.
@ SetOrigin
User may clone the repository if it does not exist. This also allows setting Models....
@ ChangeAutoUpdateSettings
User may change Models.RepositorySettings.AutoUpdatesKeepTestMerges and Models.RepositorySettings....
@ ChangeTestMergeCommits
User may change Models.RepositorySettings.PushTestMergeCommits, Models.RepositorySettings....
@ CancelPendingChanges
User may cancel repository jobs excluding clone operations.
@ CancelClone
User may cancel clone jobs.
@ ChangeSubmoduleUpdate
User may change submodule update settings.
@ ChangeCommitter
User may change Models.RepositorySettings.CommitterName and Models.RepositorySettings....
@ Reclone
User may trigger repository recloning.
@ SetSha
User may directly checkout a git SHA that the repository's HEAD will point to.
@ ChangeCredentials
User may read and change Models.RepositorySettings.AccessUser and Models.RepositorySettings....