Skip to content

Latest commit

 

History

History
80 lines (51 loc) · 1.78 KB

README.md

File metadata and controls

80 lines (51 loc) · 1.78 KB

VBR.GitHubUrls

resolves API, HTML and RAW Urls for GitHub repositories

By v-braun - www.dev-things.net.

AppVeyor NuGet

Installation

PowerShell

Install-Package VBR.GitHubUrls

project.json

  "dependencies": {
    "VBR.GitHubUrls": "*"
  }

Usage

See the VBR.GitHubUrls.Tests Project.

using VBR.GitHubUrls;

static Main(){

    GitHubUrls urls;
    urls = GitHubUrls.FromHtmlUrl("https://github.com/dotnet/core/");
    // or:
    urls = GitHubUrls.FromUserRepoString("dotnet/core/");
    // or:
    urls = GitHubUrls.FromUserNameAndRepo("dotnet", "core");

    // urls:
    // UserName = dotnet,
    // RepositoryName = core,
    // ApiUrl = $"https://api.github.com/repos/dotnet/core/",
    // HtmlUrl = $"https://github.com/dotnet/core/",
    // RawUrl = $"https://raw.githubusercontent.com/dotnet/core/",
    // UserRepo = $"dotnet/core"
    
}

Known Issues

If you discover any bugs, feel free to create an issue on GitHub fork and send me a pull request.

Issues List.

Authors

image
v-braun

Contributing

  1. Fork it
  2. Create your feature branch (git checkout -b my-new-feature)
  3. Commit your changes (git commit -am 'Add some feature')
  4. Push to the branch (git push origin my-new-feature)
  5. Create new Pull Request

License

See LICENSE.