Class PendingApprovalAction.ApprovalItemListener

java.lang.Object
hudson.model.listeners.ItemListener
io.jenkins.plugins.github_pr_approval.PendingApprovalAction.ApprovalItemListener
All Implemented Interfaces:
ExtensionPoint
Enclosing class:
PendingApprovalAction

@Extension public static class PendingApprovalAction.ApprovalItemListener extends ItemListener
Puts a newly discovered fork pull request on hold, and catches the jobs that were already there when the trust policy got switched on.
  • Constructor Details

    • ApprovalItemListener

      public ApprovalItemListener()
  • Method Details

    • onCreated

      public void onCreated(Item item)
      Overrides:
      onCreated in class ItemListener
    • onLoaded

      public void onLoaded()
      Re-enables any held pull request an older version of this plugin left disabled. We no longer disable jobs for approval — the guard blocks them — so at startup we just undo that stale disable, leaving branches branch-api has marked dead alone. Only touches jobs that already have a record, so this never calls GitHub while Jenkins is still starting.
      Overrides:
      onLoaded in class ItemListener
    • onUpdated

      public void onUpdated(Item item)
      Overrides:
      onUpdated in class ItemListener