Files
github-api/src/main/java/org/kohsuke/github/GHContentWithLicense.java
2020-02-21 15:58:39 -08:00

20 lines
485 B
Java

package org.kohsuke.github;
/**
* {@link GHContent} with license information.
*
* @see <a href="https://developer.github.com/v3/licenses/#get-a-repositorys-license">documentation</a>
* @see GHRepository#getLicense()
*/
class GHContentWithLicense extends GHContent {
GHLicense license;
@Override
GHContentWithLicense wrap(GHRepository owner) {
super.wrap(owner);
if (license != null)
license.wrap(owner.root);
return this;
}
}