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

@Extension public static class PendingApprovalAction.ApprovalSpender extends RunListener<Run<?,?>>
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.

  • Constructor Details

    • ApprovalSpender

      public ApprovalSpender()
  • Method Details