Skip to content

Commit

Permalink
[JENKINS-39062] More generic
Browse files Browse the repository at this point in the history
  • Loading branch information
stephenc committed Oct 18, 2016
1 parent 25fbe89 commit e09c6e0
Showing 1 changed file with 4 additions and 2 deletions.
Expand Up @@ -24,7 +24,9 @@

package org.jenkinsci.plugins.github_branch_source;

import com.cloudbees.hudson.plugins.folder.Folder;
import hudson.Extension;
import hudson.model.Actionable;
import hudson.model.Item;
import hudson.model.Job;
import hudson.views.ListViewColumn;
Expand All @@ -46,8 +48,8 @@ public GitHubRepositoryDescriptionColumn() {
@Restricted(NoExternalUse.class)
@SuppressWarnings("unused") // used via Jelly EL binding
public GitHubRepoAction getRepositoryOf(Item item) {
if (item instanceof Job) {
return ((Job) item).getAction(GitHubRepoAction.class);
if (item instanceof Actionable) {
return ((Actionable) item).getAction(GitHubRepoAction.class);
}
return null;
}
Expand Down

0 comments on commit e09c6e0

Please sign in to comment.