forgejo/services/actions/TestActionsTrust_GetPullRequestUserIsTrustedWithActions/pull_request.yml
Earl Warren e6522c1ecc
feat: trust management for runs created from a forked pull request
- 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
2025-11-06 11:07:38 +01:00

64 lines
1.2 KiB
YAML

-
id: 1000
type: 0 # pull request
status: 2 # mergeable
issue_id: 81000
index: 1000
head_repo_id: 11
base_repo_id: 10
head_branch: branch2000
base_branch: master
merge_base: 0abcb056019adb83
has_merged: false
-
id: 2000
type: 0 # pull request
status: 2 # mergeable
issue_id: 82000
index: 2000
head_repo_id: 11
base_repo_id: 11
head_branch: branch2000
base_branch: master
merge_base: 0abcb056019adb83
has_merged: false
-
id: 3000
type: 0 # pull request
status: 2 # mergeable
issue_id: 83000
index: 3000
head_repo_id: 11 # different from base_repo
base_repo_id: 10
head_branch: branch3000
base_branch: master
merge_base: 0abcb056019adb83
has_merged: false
-
id: 4000
type: 0 # pull request
status: 2 # mergeable
issue_id: 84000
index: 4000
head_repo_id: 11 # different from base_repo
base_repo_id: 10
head_branch: branch4000
base_branch: master
merge_base: 0abcb056019adb83
has_merged: false
-
id: 5000
type: 0 # pull request
status: 2 # mergeable
issue_id: 85000
index: 5000
head_repo_id: 11 # different from base_repo
base_repo_id: 10
head_branch: branch5000
base_branch: master
merge_base: 0abcb056019adb83
has_merged: false