Skip to content
This repository was archived by the owner on Sep 20, 2022. It is now read-only.

Commit 306ca23

Browse files
committed
Merge pull request #86 from GitTools/feature/gittools_core
Use GitTools.Core and refactoring of main logic
2 parents 7d57dd4 + 168931b commit 306ca23

76 files changed

Lines changed: 684 additions & 1628 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.gitignore

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ TestResults
99
## files generated by popular Visual Studio add-ons.
1010

1111
# User-specific files
12+
src/.vs/
1213
*.suo
1314
*.user
1415
*.sln.docstates
@@ -113,3 +114,6 @@ src/_NCrunch_GitReleaseNotes
113114
*.received.txt
114115
src/GitReleaseNotes.sln.ide/
115116
*.GhostDoc.xml
117+
src/.vs/config/applicationhost.config
118+
GitReleaseNotes.*.nupkg
119+
output/

Build.cmd

Lines changed: 0 additions & 10 deletions
This file was deleted.

GitReleaseNotes.proj

Lines changed: 0 additions & 104 deletions
This file was deleted.

NextVersion.txt

Lines changed: 0 additions & 1 deletion
This file was deleted.

README.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,15 @@
1+
![Icon](https://raw.github.com/GitTools/GitTools.Core/develop/GitTools_logo.png)
2+
13
GitReleaseNotes
24
==============
35

46
[![Join the chat at https://gitter.im/GitTools/GitReleaseNotes](https://badges.gitter.im/Join%20Chat.svg)](https://gitter.im/GitTools/GitReleaseNotes?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge)
57

8+
![License](https://img.shields.io/github/license/gittools/gittools.core.svg)
9+
![NuGet downloads](https://img.shields.io/chocolatey/dt/gitreleasenotes.svg)
10+
[![Chocolatey](https://img.shields.io/chocolatey/v/gitreleasenotes.svg)](https://chocolatey.org/packages/GitReleaseNotes)
11+
[![Build status](https://ci.appveyor.com/api/projects/status/br0rijb3rgn1qb0c/branch/master?svg=true)](https://ci.appveyor.com/project/GitTools/gitreleasenotes/branch/master)
12+
613
Utility which makes it really easy to generate release notes for your Git project. Works with GitHub, Jira and YouTrack. TFS Support coming soon
714

815
Have a look at the release notes in this Repo for a sample of what is generated by GitReleaseNotes

ReleaseNotes.md

Lines changed: 0 additions & 73 deletions
This file was deleted.

appveyor.yml

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
install:
2+
- choco install gitversion.portable -pre -y
3+
4+
platform:
5+
- Any CPU
6+
7+
configuration:
8+
- Release
9+
10+
assembly_info:
11+
patch: false
12+
13+
before_build:
14+
- nuget restore src\
15+
- ps: gitversion /l console /output buildserver /updateAssemblyInfo
16+
17+
build:
18+
project: src\GitReleaseNotes.sln
19+
20+
after_build:
21+
- cmd: nuget pack src\GitReleaseNotes\.NuGetSpec\GitReleaseNotes.nuspec -BasePath src\GitReleaseNotes\bin\%CONFIGURATION%\ -version "%GitVersion_NuGetVersion%" -Tool
22+
- ps: (Get-Content src\GitReleaseNotes\.ChocolateySpec\tools\chocolateyInstall.ps1).replace('__version__', $env:GitVersion_SemVer) | Set-Content src\GitReleaseNotes\.ChocolateySpec\tools\chocolateyInstall.ps1
23+
- cmd: xcopy src\GitReleaseNotes\bin\%CONFIGURATION% output\Chocolatey\tools /S /I
24+
- cmd: xcopy src\GitReleaseNotes\.ChocolateySpec output\Chocolatey /S /I
25+
- cmd: nuget pack src\GitReleaseNotes\.ChocolateySpec\GitReleaseNotes.Portable.nuspec -version "%GitVersion_NuGetVersion%" -Tool
26+
- cmd: 7z a "GitReleaseNotes.%GitVersion_NuGetVersion%.zip" -r .\src\GitReleaseNotes\bin\%CONFIGURATION%\*.*
27+
- cmd: appveyor PushArtifact "GitReleaseNotes.%GitVersion_NuGetVersion%.nupkg"
28+
- cmd: appveyor PushArtifact "GitReleaseNotes.%GitVersion_NuGetVersion%.zip"
29+
- cmd: appveyor PushArtifact "GitReleaseNotes.Portable.%GitVersion_NuGetVersion%.nupkg"
30+
31+
cache:
32+
- src\packages -> **\packages.config # preserve "packages" directory in the root of build folder but will reset it if packages.config is modified

src/.nuget/NuGet.exe

-1.59 MB
Binary file not shown.

src/GitReleaseNotes.Tests/ArgumentTests.cs

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
11
using System;
22
using System.ComponentModel;
3+
using System.Linq;
34
using System.Reflection;
4-
using GitReleaseNotes.IssueTrackers;
5+
using GitTools.IssueTrackers;
56
using Shouldly;
67
using Xunit;
78

@@ -12,10 +13,11 @@ public class ArgumentTests
1213
[Fact]
1314
public void VerifyProviderDescriptions()
1415
{
15-
var propertyInfo = typeof (GitReleaseNotesArguments).GetProperty("IssueTracker");
16+
var propertyInfo = typeof(GitReleaseNotesArguments).GetProperty("IssueTracker");
1617
var description = propertyInfo.GetCustomAttribute<DescriptionAttribute>();
1718

18-
foreach (IssueTracker issueTracker in Enum.GetValues(typeof(IssueTracker)))
19+
var issueTrackers = Enum.GetValues(typeof(IssueTracker)).Cast<IssueTracker>().Except(new[] { IssueTracker.Unknown });
20+
foreach (var issueTracker in issueTrackers)
1921
{
2022
description.Description.ShouldContain(issueTracker.ToString());
2123
}

src/GitReleaseNotes.Tests/CommitGrouperTests.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
using System.Security.Cryptography;
66
using System.Text;
77
using GitReleaseNotes.Git;
8+
using GitTools.Git;
89
using LibGit2Sharp;
910
using NSubstitute;
1011
using Shouldly;

0 commit comments

Comments
 (0)