Skip to content

Commit

Permalink
Merge pull request #19 from ricaun-io/develop
Browse files Browse the repository at this point in the history
- Fix IHazGitRepository - `GetGitRepositoryOwner`
  • Loading branch information
ricaun authored Jan 11, 2022
2 parents cea42ca + dfe66e1 commit a63354a
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 3 deletions.
7 changes: 7 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,9 @@ All notable changes to this project will be documented in this file.
The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/)
and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.html).

## [0.0.16] / 2022-01-11
- Fix IHazGitRepository - `GetGitRepositoryOwner`

## [0.0.15] / 2022-01-11
- Update Readme
- Make Simple Nuke - Remove EnvironmentInfo
Expand Down Expand Up @@ -103,6 +106,10 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.
- First Release

[vNext]: https://github.com/ricaun-io/ricaun.Nuke/compare/1.0.0...HEAD
[0.0.16]: https://github.com/ricaun-io/ricaun.Nuke/compare/0.0.15...0.0.16
[0.0.15]: https://github.com/ricaun-io/ricaun.Nuke/compare/0.0.14...0.0.15
[0.0.14]: https://github.com/ricaun-io/ricaun.Nuke/compare/0.0.13...0.0.14
[0.0.13]: https://github.com/ricaun-io/ricaun.Nuke/compare/0.0.12...0.0.13
[0.0.12]: https://github.com/ricaun-io/ricaun.Nuke/compare/0.0.11...0.0.12
[0.0.11]: https://github.com/ricaun-io/ricaun.Nuke/compare/0.0.10...0.0.11
[0.0.10]: https://github.com/ricaun-io/ricaun.Nuke/compare/0.0.9...0.0.10
Expand Down
13 changes: 11 additions & 2 deletions ricaun.Nuke/Components/IHazGitRepository.cs
Original file line number Diff line number Diff line change
Expand Up @@ -20,12 +20,21 @@ public interface IHazGitRepository : INukeBuild
[GitRepository] GitRepository GitRepository => ValueInjectionUtility.TryGetValue(() => GitRepository);

/// <summary>
/// GetGitRepositoryPackageUrl (default: https://nuget.pkg.github.com/../../index.json)
/// GetGitRepositoryPackageUrl (default: https://nuget.pkg.github.com/repository_owner/index.json)
/// </summary>
/// <returns></returns>
public string GetGitRepositoryPackageUrl()
{
return $@"https://nuget.pkg.github.com/{GitRepository.Identifier}/index.json";
return $@"https://nuget.pkg.github.com/{GetGitRepositoryOwner()}/index.json";
}

/// <summary>
/// GetGitRepositoryOwner based on the GitRepository.Identifier
/// </summary>
/// <returns></returns>
public string GetGitRepositoryOwner()
{
return GitRepository.Identifier.Split("/")[0];
}
}
}
2 changes: 1 addition & 1 deletion ricaun.Nuke/ricaun.Nuke.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@

<PropertyGroup>
<PackageId>ricaun.Nuke</PackageId>
<Version>0.0.15</Version>
<Version>0.0.16</Version>
</PropertyGroup>

<PropertyGroup>
Expand Down

0 comments on commit a63354a

Please sign in to comment.