Expose repository for artifacts, workflows and workflow runs

This commit is contained in:
Guillaume Smet
2021-04-03 20:54:31 +02:00
parent f40daf8488
commit 97652c6803
5 changed files with 32 additions and 0 deletions

View File

@@ -60,6 +60,15 @@ public class GHWorkflow extends GHObject {
return GitHubClient.parseURL(htmlUrl);
}
/**
* Repository to which the workflow belongs.
*
* @return the repository
*/
public GHRepository getRepository() {
return owner;
}
/**
* The badge URL, like https://github.com/octo-org/octo-repo/workflows/CI/badge.svg
*