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

Make SCMHead Actionable

    XMLWordPrintable

    Details

    • Similar Issues:

      Description

      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.

        Attachments

          Issue Links

            Activity

            jglick Jesse Glick created issue -
            jglick Jesse Glick made changes -
            Field Original Value New Value
            Component/s scm-api-plugin [ 18054 ]
            Component/s branch-api-plugin [ 18621 ]
            jglick Jesse Glick made changes -
            Link This issue depends on JENKINS-33399 [ JENKINS-33399 ]
            jglick Jesse Glick made changes -
            Assignee stephenconnolly [ stephenconnolly ] Jesse Glick [ jglick ]
            jglick Jesse Glick made changes -
            Status Open [ 1 ] In Progress [ 3 ]
            jglick Jesse Glick made changes -
            Remote Link This issue links to "scm-api PR 7 (Web Link)" [ 14043 ]
            jglick Jesse Glick made changes -
            Remote Link This issue links to "branch-api PR 29 (Web Link)" [ 14044 ]
            jglick Jesse Glick made changes -
            Remote Link This issue links to "workflow PR 356 (Web Link)" [ 14045 ]
            jglick Jesse Glick made changes -
            Remote Link This issue links to "github-branch-source PR 31 (Web Link)" [ 14046 ]
            jglick Jesse Glick made changes -
            Status In Progress [ 3 ] Resolved [ 5 ]
            Resolution Fixed [ 1 ]
            rtyler R. Tyler Croy made changes -
            Workflow JNJira [ 169209 ] JNJira + In-Review [ 198564 ]

              People

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

                Dates

                • Created:
                  Updated:
                  Resolved: