Class PendingApprovalAction.ApprovalSpender
java.lang.Object
hudson.model.listeners.RunListener<Run<?,?>>
io.jenkins.plugins.github_pr_approval.PendingApprovalAction.ApprovalSpender
- All Implemented Interfaces:
ExtensionPoint
- Enclosing class:
PendingApprovalAction
Runs when a fork PR build starts. Spends the approval when the trust policy asks for approval on
new commits: the record goes back to pending, so the guard makes the next commit ask again.
It also asks GitHub again for PRs approved because their author can write to the repo. The guard can't make that call, so this is where we notice someone has lost access.
-
Nested Class Summary
Nested classes/interfaces inherited from interface hudson.ExtensionPoint
ExtensionPoint.LegacyInstancesAreScopedToHudson -
Field Summary
Fields inherited from class hudson.model.listeners.RunListener
LISTENERS, targetType -
Constructor Summary
Constructors -
Method Summary
Methods inherited from class hudson.model.listeners.RunListener
all, allowLoad, createLoadAllower, fireCompleted, fireDeleted, fireFinalized, fireInitialize, fireStarted, onCompleted, onDeleted, onFinalized, onInitialize, register, setUpEnvironment, unregister
-
Constructor Details
-
ApprovalSpender
public ApprovalSpender()
-
-
Method Details
-
onStarted
- Overrides:
onStartedin classRunListener<Run<?,?>>
-