Uploaded image for project: 'Jenkins'
  1. Jenkins
  2. JENKINS-72119

Extend GitHub API to use the new lock_branch property of branch protection

XMLWordPrintable

      I am working on a Jenkins job which need to ensure the current state of locked/protected branches. There was new property introduced in GitHub API which is still not exposed in:
      https://github.com/hub4j/github-api/blob/main/src/main/java/org/kohsuke/github/GHBranchProtection.java
      and
      https://github.com/hub4j/github-api/blob/main/src/main/java/org/kohsuke/github/GHBranchProtectionBuilder.java

      I do not see the property send via hook events when I use Generic-webhook-trigger-plugin as well. 
      From my point of view exposing this property will be very useful in the case when we need to have a job/automation which will apply the required state of branch protection using the lock_branch functionality.

      With regards,
      Plamen Angelov

            tomasbjerre Tomas Bjerre
            plamen_angelov Plamen Angelov
            Votes:
            1 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated: