static GHRelease[] wrap(GHRelease[] releases, GHRepository owner) { for (GHRelease release : releases) { release.wrap(owner); } return releases; }
static GHRelease[] wrap(GHRelease[] releases, GHRepository owner) { for (GHRelease release : releases) { release.wrap(owner); } return releases; }
static GHRelease[] wrap(GHRelease[] releases, GHRepository owner) { for (GHRelease release : releases) { release.wrap(owner); } return releases; }
public GHRelease create() throws IOException { return builder.to(repo.getApiTailUrl("releases"), GHRelease.class).wrap(repo); } }
public GHRelease create() throws IOException { return builder.to(repo.getApiTailUrl("releases"), GHRelease.class).wrap(repo); } }
public GHRelease create() throws IOException { return builder.to(repo.getApiTailUrl("releases"), GHRelease.class).wrap(repo); } }
public GHRelease getLatestRelease() throws IOException { try { return root.retrieve().to(getApiTailUrl("releases/latest"), GHRelease.class).wrap(this); } catch (FileNotFoundException e) { return null; // no latest release } }
public GHRelease getReleaseByTagName(String tag) throws IOException { try { return root.retrieve().to(getApiTailUrl("releases/tags/" + tag), GHRelease.class).wrap(this); } catch (FileNotFoundException e) { return null; // no release for this tag } }
public GHRelease update() throws IOException { return builder .method("PATCH") .to(base.owner.getApiTailUrl("releases/"+base.id), GHRelease.class).wrap(base.owner); }
public GHRelease getRelease(long id) throws IOException { try { return root.retrieve().to(getApiTailUrl("releases/" + id), GHRelease.class).wrap(this); } catch (FileNotFoundException e) { return null; // no release for this id } }
public GHRelease getRelease(long id) throws IOException { try { return root.retrieve().to(getApiTailUrl("releases/" + id), GHRelease.class).wrap(this); } catch (FileNotFoundException e) { return null; // no release for this id } }
public GHRelease update() throws IOException { return builder .method("PATCH") .to(base.owner.getApiTailUrl("releases/"+base.id), GHRelease.class).wrap(base.owner); }
public GHRelease getReleaseByTagName(String tag) throws IOException { try { return root.retrieve().to(getApiTailUrl("releases/tags/" + tag), GHRelease.class).wrap(this); } catch (FileNotFoundException e) { return null; // no release for this tag } }
public GHRelease getLatestRelease() throws IOException { try { return root.retrieve().to(getApiTailUrl("releases/latest"), GHRelease.class).wrap(this); } catch (FileNotFoundException e) { return null; // no latest release } }