mirror of
https://codeberg.org/forgejo/forgejo.git
synced 2026-03-26 22:23:05 -04:00
- UpdateTrustedWithPullRequest - cancels or approves runs and keep track of posters that are to always be trusted - GetPullRequestUserIsTrustedWithActions - logic to determine if a user is to be implicitly trusted (e.g. the admin of the instance), explicitly trusted (i.e. it is in the ActionUser table) or not at all. - PullRequestCancel & PullRequestApprove will either cancel or approve all runs of a given pull request. - RevokeTrust is almost the same as PullRequestCancel except it operates as if revoking all pull requests of a given poster, cancelling ongoing jobs. This is expected to be used when blocking a user. - AlwaysTrust is almost the same as PullRequestApprove except it operates as if allways approving all pull requests of a given poster, switching their jobs to waiting. - SetRunTrustForPullRequest helper to set the fields of ActionRun - CleanupActionUser - get rid of unused trust records
12 lines
199 B
YAML
12 lines
199 B
YAML
-
|
|
id: 10
|
|
repo_id: 10
|
|
user_id: 4
|
|
trusted_with_pull_requests: true
|
|
last_access: 1683636528
|
|
-
|
|
id: 11
|
|
repo_id: 10
|
|
user_id: 29
|
|
trusted_with_pull_requests: true
|
|
last_access: 1683636528
|