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.
|Field||Original Value||New Value|
|Component/s||scm-api-plugin [ 18054 ]|
|Component/s||branch-api-plugin [ 18621 ]|
|Assignee||stephenconnolly [ stephenconnolly ]||Jesse Glick [ jglick ]|
|Status||Open [ 1 ]||In Progress [ 3 ]|
|Remote Link||This issue links to "scm-api PR 7 (Web Link)" [ 14043 ]|
|Remote Link||This issue links to "branch-api PR 29 (Web Link)" [ 14044 ]|
|Remote Link||This issue links to "workflow PR 356 (Web Link)" [ 14045 ]|
|Remote Link||This issue links to "github-branch-source PR 31 (Web Link)" [ 14046 ]|
|Resolution||Fixed [ 1 ]|
|Status||In Progress [ 3 ]||Resolved [ 5 ]|
|Workflow||JNJira [ 169209 ]||JNJira + In-Review [ 198564 ]|