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

Make SCMHead Actionable

XMLWordPrintable

    • Icon: Improvement Improvement
    • Resolution: Fixed
    • Icon: Minor Minor
    • scm-api-plugin

      SCMHead could extend Actionable, or simply have a getAction(Class) method which can call TransientActionFactory. This would be useful for defining and implementing APIs for associating information with branches without forcing callers to cast to a subtype of SCMHead. For example, for any SCMSource supporting something like pull requests, you would like to be able to define an action listing the author and so on.

      To expose this kind of information directly via REST (Stapler exporting), it would suffice to make BranchJobProperty an @ExportedBean, same for Branch and SCMHead, etc.

            jglick Jesse Glick
            jglick Jesse Glick
            Votes:
            1 Vote for this issue
            Watchers:
            6 Start watching this issue

              Created:
              Updated:
              Resolved: