Skip to content

Commit

Permalink
JENKINS-72958 expose branch properties and actions to API
Browse files Browse the repository at this point in the history
  • Loading branch information
MarkRx committed Apr 22, 2024
1 parent 66d6a8a commit 9b251ab
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/main/java/jenkins/branch/Branch.java
Original file line number Diff line number Diff line change
Expand Up @@ -208,6 +208,7 @@ public <T extends BranchProperty> T getProperty(Class<T> clazz) {
* @return the properties.
*/
@NonNull
@Exported
public List<BranchProperty> getProperties() {
return properties;
}
Expand All @@ -218,6 +219,7 @@ public List<BranchProperty> getProperties() {
* @return all the actions
*/
@NonNull
@Exported
public List<Action> getActions() {
return actions == null ? Collections.emptyList() : Collections.unmodifiableList(actions);
}
Expand Down

0 comments on commit 9b251ab

Please sign in to comment.