diff options
author | Jesse Plamondon-Willard <Pathoschild@users.noreply.github.com> | 2019-07-29 16:43:25 -0400 |
---|---|---|
committer | Jesse Plamondon-Willard <Pathoschild@users.noreply.github.com> | 2019-09-14 18:59:29 -0400 |
commit | 1d085df5b796e02b3e9e6874bd4e5684e840cb92 (patch) | |
tree | 9c0bb39b7bc6e4618ed2bad4ca17af6f82b1a737 /src/SMAPI.Web/Framework/Clients/GitHub/IGitHubClient.cs | |
parent | 2b4bc2c282e17ba431f9a6ec1892b87a37eb4bb7 (diff) | |
download | SMAPI-1d085df5b796e02b3e9e6874bd4e5684e840cb92.tar.gz SMAPI-1d085df5b796e02b3e9e6874bd4e5684e840cb92.tar.bz2 SMAPI-1d085df5b796e02b3e9e6874bd4e5684e840cb92.zip |
track license info for mod GitHub repos (#651)
Diffstat (limited to 'src/SMAPI.Web/Framework/Clients/GitHub/IGitHubClient.cs')
-rw-r--r-- | src/SMAPI.Web/Framework/Clients/GitHub/IGitHubClient.cs | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/SMAPI.Web/Framework/Clients/GitHub/IGitHubClient.cs b/src/SMAPI.Web/Framework/Clients/GitHub/IGitHubClient.cs index 9519c26f..a34f03bd 100644 --- a/src/SMAPI.Web/Framework/Clients/GitHub/IGitHubClient.cs +++ b/src/SMAPI.Web/Framework/Clients/GitHub/IGitHubClient.cs @@ -9,6 +9,11 @@ namespace StardewModdingAPI.Web.Framework.Clients.GitHub /********* ** Methods *********/ + /// <summary>Get basic metadata for a GitHub repository, if available.</summary> + /// <param name="repo">The repository key (like <c>Pathoschild/SMAPI</c>).</param> + /// <returns>Returns the repository info if it exists, else <c>null</c>.</returns> + Task<GitRepo> GetRepositoryAsync(string repo); + /// <summary>Get the latest release for a GitHub repository.</summary> /// <param name="repo">The repository key (like <c>Pathoschild/SMAPI</c>).</param> /// <param name="includePrerelease">Whether to return a prerelease version if it's latest.</param> |